News for hackers. Stuff that matters.
Re:TIL: Tcl-inspired command language on top of D by mhh__ on Sunday May 16, 2021 @08:41AM (#27173300)
dmd as a library does not give you access to the compilers backend as of today.

The whole point in D is to write the program in D or write the DSL directly into a D file.

If I can be blunt here, why not? Because it would be crap. It's like sprinting in Wellies, by using a scripting language you either create an absolute Herculean task to wrap everything properly or immediately lose all the powerful things D let's you do.

Re:TIL: Tcl-inspired command language on top of D by cleberz on Sunday May 16, 2021 @02:19PM (#27175791)
Well, "wrap everything" is not really a concern (phew!) and I can't see how would anyone "lose all the powerful things D let's you do" with D being the language you'll write most of the code, anyway.

But maybe you're right about writing everything always in D!!! It's, hands down, the final answer to everything anyone would want, isn't? I wonder if there is some way of warning people who write software in Javascript, PHP, Ruby, Python, Perl, Erlang, Elixir, Tcl and all those other clearly inferior languages about that... I'm pretty sure they'll switch to D right away!!!!1!

(Just kidding: I'm writing Til because I want to and nothing more.)