Live data from Hacker News

Programming in D: Tutorial and Reference

ddili.org

131–134 of 134 posts

Re: Programming in D: Tutorial and Reference

#131
post #130
post #21

Anything compiled with LDC2 >=1.29 (3y old) will immediately crash/segfault on macOS >=15.4 A fix is on master/beta but will still take some time to be released. https://github.com/dlang/dmd/issues/21126

Good thing there's the DMD and GDC compilers too then

DMD is also affected

Re: Programming in D: Tutorial and Reference

#132
post #51

Earlier quoted context omitted.

speaking of typescript and dart, the language i was really rooting for in that niche was haxe. wish it had gotten more mainstream.

Haxe is still alive! The devs are working on 5.0 as we speak! Its really calming that Haxe is not moving as fast as the JS/TS ecosystem. You upgrade once every 3-4 years. Everything just usually "works" We use Haxe for PHP and its really a secret hidden superpower, im amazed people dont know about / use. Its mostly marketing, i guess. But i wish more devs tried it as an alternative to PHP or TypeScript, as the langua…

yeah, I know it's alive :) but I was hoping it would be one of the standard recommendations for javascript devs to reach for when they wanted a better type system. (I was also sad that it never developed a good option for desktop apps, the language itself was very pleasant to use but the ecosystem seemed very focused on game dev the couple of times I tried it)

Re: Programming in D: Tutorial and Reference

#133
post #83
post #65

Earlier quoted context omitted.

I belive asking the favorite LLM to generate an executable will be the future, just like high level languages drove Assembly development into a niche. Yes it isn't here today, just like it took several decades for optimizing compiler backends to do a very good job. In fact one of the reasons why Matt Goldbolt created Compiler Explorer was to have a way to settle arguments he was having in the games industry.

> LLM to generate an executable ... and the job of a programmer will be to explain, in as precise terms as possible, what they need the executable to do. (Reminds me of the idea of programming based on a natural language.)

Correct.

We migrated from Asm to C. And C to C++, then to Java. And then Java to Python.

And now we write code in English.

I haven't written much code in many months.

Re: Programming in D: Tutorial and Reference

#134
post #77

Earlier quoted context omitted.

I'd suggest F#, Clojure, Elixir, Scala, and TS, if that counts.

Clojure could never really be a thing since it ignores the most important rule: fast startup. Because of this, and for no other reason, Clojure will always be an "also ran". It's not about competency of the people working on it. It's a solvable problem the community doesn't acknowledge exists, unless you press them on it, in which case they think "graal" and "babashka" is a valid response, and you're back to square 1…

If you like Clojure's syntax and stress on immutability but don't like the JVM-induced slow startup, take a look at janet.
Post reply on HN