Live data from Hacker News

Why use Pascal?

castle-engine.io

301–310 of 516 posts

Re: Why use Pascal?

#301

I'm using Free Pascal for my 3D game engine (recent-ish screenshot[0]). For me there is really two main simple reasons: 1. Lazarus. A game engine is -waaay- more than just a 3D engine with the tools being a very important aspect. Lazarus and LCL provide a rich and well featured WYSIWYG RAD IDE and framework for making desktop applications. As a bonus Lazarus as an IDE (even ignoring the LCL framework) is very fast. 2…

(continued) These are some of the annoyances with Free Pascal as the language, but there are others like how a unit (think module in other languages) has an "initialization" and "finalization" section that is executed on startup and shutdown respectively. This is good and useful thing, however the problem is that the initialization also has implicit code that zeroes out any global memory in that unit. This means that…

[deleted]

Re: Why use Pascal?

#302
post #299

Earlier quoted context omitted.

I agree that triple equals is an abomination. It's one of the many things ensuring I use JavaScript as little as possible.

You can pretty much ignore mostly anyone most of the time who screeches at you to use triple equals (strict equality comparison) instead of regular ol' "==" (abstract equality comparison). It's one of modern programming's dumbest, least well-founded memes, resulting in such brilliant advice as insisting during code review that typeof(foo) == 'string' be changed to typeof(foo) === 'string' because the latter is "safer…

A well designed language should not have an equals that results in a cargo cult

Re: Why use Pascal?

#303
post #287

Earlier quoted context omitted.

Those busy using R, Python, Excel, alongside PowerBI and Tableau?

No, the ones using Spark. Do keep up!

It is a bit hard when after all isn't every bank as originally described.

Need to move that goalpost around.

Re: Why use Pascal?

#305
post #300

Earlier quoted context omitted.

Anyone can check out Oh! Pascal! [1] just like a library book. Even now, it's one of the best introductory programming books for any programming language. [1]: https://archive.org/details/ohpascal0000coop/mode/2up

I was interested to revisit the book, but when I tried, it says: DOWNLOAD OPTIONS download 1 file ENCRYPTED ADOBE PDF download High Quality Page Images In order to access your downloaded book you will need LCP-compliant or Adobe-compliant software on your device. The Internet Archive will administer this loan, but Adobe may also collect some information. That's a turnoff.

Thanks for the update… I’ve only checked out books, not download them.

Re: Why use Pascal?

#306

Earlier quoted context omitted.

No, the ones using Spark. Do keep up!

It's a bad sign if use of a language is tied to a singular framework such as Spark or Rails. The next fad is in, the language is out.

Interesting, then Java is in trouble I guess because it's mostly tied to Spring Boot?

Re: Why use Pascal?

#307
post #302
post #299

Earlier quoted context omitted.

You can pretty much ignore mostly anyone most of the time who screeches at you to use triple equals (strict equality comparison) instead of regular ol' "==" (abstract equality comparison). It's one of modern programming's dumbest, least well-founded memes, resulting in such brilliant advice as insisting during code review that typeof(foo) == 'string' be changed to typeof(foo) === 'string' because the latter is "safer…

A well designed language should not have an equals that results in a cargo cult

I have missed the part of the discussion that contains an imperative for folks to debate the resolution of whether JS is a "well designed language"—and not about JS's equality comparisons per se and whether it's still usable or not despite that. These:

> JavaScript equals is an abomination, which to me seems like a larger issue, and people use it just fine.

... are your own words...

Re: Why use Pascal?

#308
post #75

My first languaje after BASIC was Modula2, which looks a lot like Pascal. I studied OOP, algorithms and data structures with Pascal in college, so it's a languaje for which I have great memeories. Nice to see it's still around.

Modula-2 is a much better language than original Pascal, but if you want OO features Oberon-2 is the corresponding Wirth language.

And it's the fastest language in the benchmarks game, whilst also producing the smallest code. Not only better than Pascal or Go, but even better than C++.

Re: Why use Pascal?

#309
post #308
post #75

Earlier quoted context omitted.

Modula-2 is a much better language than original Pascal, but if you want OO features Oberon-2 is the corresponding Wirth language.

And it's the fastest language in the benchmarks game, whilst also producing the smallest code. Not only better than Pascal or Go, but even better than C++.

Modula-2 is not included?

https://benchmarksgame-team.pages.debian.net/benchmarksgame/

Post reply on HN