News for hackers. Stuff that matters.
Re:Hobby x86 kernel written with Zig by pron on Monday January 06, 2020 @11:17AM (#21970284)
The question is, as always, at what cost?

Low-level languages (aka "systems programming" languages) already suffer from various constraints that increase their accidental complexity. Is it really necessary to complicate those particular languages further to support embedded DSLs?

I don't think there's a universal right or wrong answer here, but there is certainly a big question.

Re:Hobby x86 kernel written with Zig by gw on Monday January 06, 2020 @11:32AM (#21970432)
Ironically, the lack of macros leads to an explosion of ad-hoc, extra-language DSLs. Look at rules engines, for example. In Drools (java), you have to write rules with a special language, DRL. Meanwhile in Clara (clojure) you write your rules in clojure. Macros simplify languages, they don't complicate them.