Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Breaking Up with Google Play: Why Conversations Is Now Free (gultsch.de)
    133comments
  2. Fifteen years later, the Apple Cards origin story (lexontech.org)
    25comments
  3. Revealing the details of how OpenAI agents hacked Hugging Face (swarmtraces.org)
    377comments
  4. Modern Object Pascal Introduction for Programmers – Castle Game Engine (castle-engine.io)
    19comments
  5. We're gonna need a lot more mathematicians (terrytao.wordpress.com)
    333comments
  6. Analyzing Frontier Model Progress with My Favourite Game: Prince of Persia (blog.priyan.in)
    4comments
  7. Earth is tearing apart beneath the Pacific Northwest (sciencedaily.com)
    6comments
  8. Reflections on 1,000 Days of Math (gmays.com)
    4comments
  9. Plan mode is dead (aymannadeem.com)
    398comments
  10. Floci: Locally emulating any cloud service (floci.io)
    15comments
  11. Ollaya – Ollama for open-source, Jev-style decision models (ollaya.dev)
    128comments
  12. Is your Postgres migration safe or not safe? (safenotsafe.dev)
    27comments
  13. A single function Jev-like wrapper for LLMs, including vision models (allanrbo.blogspot.com)
    30comments
  14. 16GB iPod Nano 3G Upgrade (tuckerosman.com)
    9comments
  15. Show HN: Jev Plays Pokémon Red (jev-pokemon.vercel.app)
    93comments
  16. Understanding the Impact of LLM Watermarking on AI Agent Behavior (lasso.security)
    49comments
  17. Parsing Expression Grammar vs. Regexes: Building Org Parser in Lisp, Export HTML (jointhefreeworld.org)
    10comments
  18. What even is an OS now? (sockpuppet.org)
    351comments
  19. PipePipe: NewPipe hard fork implementing SponsorBlock (github.com/infinityloop1308)
    1comments
  20. Calculating atmospheric drag on satellites for a Cubesat [pdf] (osti.gov)
    7comments
  21. Ask HN: Who's still keeping a DOS machine up because the business depends on it?
    187comments
  22. Gravity seems holographic. What does that mean for reality? (quantamagazine.org)
    192comments
  23. The Murky History of Soviet-Born Tetris (mitpress.mit.edu)
    15comments
  24. Scientists build most accurate atomic clock (phys.org)
    20comments
  25. Jury finds Facebook liable for deceiving users in Cambridge Analytica case (cbsnews.com)
    85comments
  26. ASML currently sells no chipmaking machines in Europe, executive says (nltimes.nl)
    98comments
  27. One Month Without AI (bustikiller.com)
    145comments
  28. The Copilot+ PC brand is dead (windowscentral.com)
    34comments
  29. Fourier Analysis: Drawing Llamas with Circles (adekau.github.io)
    7comments
  30. Excel now supports multiple values in a single cell (techcommunity.microsoft.com)
    156comments

Modern Object Pascal Introduction for Programmers – Castle Game Engine

42 pointsby 2d agocastle-engine.io
19 comments
2d agoHN ↗

I was introduced a very long time ago --- aka Delphi 2. I really like the language but there are mainly 2 problems that stand in the way of using it.

1) The code isn't as "optimized" as it could be.

2) The talent pool is limited --- chicken or egg issue.

It has been this way for a very long time so I don't see it changing.

1h agoHN ↗

As a different datapoint Pascal is still taught here in Romania in secondary school just as it was the case 20 years ago.

Bigger problem is that they teach the fundamentals with the abandonware that is turbo pascal instead of using something like the modern Free Pascal Compiler. Which means knowledge of what is possible outside curricula is limited.

Last year I almost was tasked with porting some Pascal codebase to a modern language. Problem was the project had a bus factor of 1, legacy overengineered and would only compile on windows with some proprietary compiler.

Maybe that company would use Claude/Codex or something like that, today, to port the project.

33m agoHN ↗

What do you mean by “not optimized enough“? Binaries created with Free Pascal Compiler are very small, compilation time is super fast and runtime performance was never an issue for the typical system/userland programs. I think in many ways on par or ahead of other mainstream system programming languages.

30m agoHN ↗

Additionally, it eventually shared the same backend with Borland C++, and nowadays C++ Builder.

Also Embarcadero has also adopted LLVM, while still having fast build times.

1h agoHN ↗

It's amazing how underestimated the Object Pascal language is. Certain people or rivals want to write it off or declare it's "dead", yet the language (including various dialects) are still going strong.

1h agoHN ↗

Yeah, it was pity that Borland lost its way, and Apple decided to refocus from Object Pascal into C++.

Otherwise it would still be a big contender.

Everything that Zig offers over C as selling point was already there in Object Pascal.

1h agoHN ↗

Comptime? Vastly superior toolchain? Trivial C interop? Sub-second incremental compilation in large projects? I'm not familiar with Object Pascal at all, so do correct me if I'm wrong, but I'd really be surprised if it has much of Zig's standout features.

1h agoHN ↗

Comptime is the only thing going for it.

Object Pascal compilers were already super fast in MS-DOS hardware!

59m agoHN ↗

Comptime? Vastly superior toolchain? Trivial C interop? Sub-second incremental compilation in large projects?

No comptime, but everything else, sure, Turbo Pascal (and then Delphi) had.

Maybe it'll blow your mind (not sure if you find this impressive or not), but Turbo Pascal had sub-second compilation per module on large modules back on my 486 with 4MB of RAM.

Sure, Zig has more features than Pascal, but not the ones you listed (except, of course, for comptime).

22m agoHN ↗

If I remember right, it was memory safe - something C has yet to achieve.

10m agoHN ↗

Even PL/I, JOVIAL, and NEWP on the decade predating C had it.

15m agoHN ↗

I recall the turning point was when id used the Watcom compiler for DOOM. Watcom had the 32-bit flat model DOS extender and were starting to add the difficult optimizations. Turbo/Borland Pascal was built for compile and link speed, not even getting a real -O option until Delphi (except for turning off range and stack checking)

23m agoHN ↗

IMO it is not entirely dead, but not really "alive" either. TIOBE even has Object Pascal mentioned right now in TOP 20. Now, TIOBE has tons of issues, but it also means that there exists some tangible interest.

Still, I don't feel many people want to use Object Pascal these days. If you have the choice between Python and Object Pascal, most people will undoubtedly use Python. It's just how it is right now, and I also don't see how that can change in favour of Object Pascal. Programming languages nowadays have so much more competition, and people are less tolerant of flaws. Strangely enough, people barely seem to work on these flaws; this is one of my pet peeve with ruby, the documentation should be much better but it is not. I no longer find that acceptable in 2026, with AI spam slop lowering the quality and google search being terrible and almost totally useless nowadays. You'd assume that a counter-move to this slop-degradation would be to massively improve documentation, but you still find core projects in ruby or at the least important add-ons, to have low-quality documentation. And barely anybody wants to improve on that either.

1h agoHN ↗

I bought Delphi ages ago, but never got very far with it, which I regret.

I'd love to be able to take it up again, and this document looks very promising for that, esp. paired with:

https://wiki.freepascal.org/pas2js

which I now see is supported in Lazarus.

If someone has an example graphical project which compiles to an HTML page w/ JavaScript using the above, I'd love to see it and a detailed set of build instructions and notes on installing the needed toolchain and deployment. (as a note, I'm currently working in flet.dev using Python which allowed me to get a small prototype up-and-running, but I'm still looking into self-hosting and doing something more complex)

26m agoHN ↗

I think I last used Pascal, TurboPascal if I remember correctly, in school - perhaps at age 17 or something like that. I recall that we used to define some things from geometry, e. g. a triangle, calculating sides, angles, surface area and so forth, and then of some more objects from geometry.

I have not used Pascal since then but it was not the most terrible programming language of all times either. These days I would not know why I'd want to use it, compared to IMO better languages. Nonetheless I found it ok for teaching in school back then.

24m agoHN ↗

There's also a new book called Free Pascal From Square One released in 2025 that teaches programming and pascal

10m agoHN ↗

this is really neat to see and that it has support for any modern system. I don't know pascal and could be a fun way to learn it.