News for hackers. Stuff that matters.
Re:Why most of us won't be inventing little languages by chrismsimpson on Monday April 17, 2023 @08:11AM (#35599577)
Firstly, JS is a horrendous target. Second, breakpointing in another language is about as great (possibly worse) as debugging via printf.
Re:Why most of us won't be inventing little languages by pmoriarty on Monday April 17, 2023 @08:14AM (#35599598)
printf debugging is infinitely better
Re:Why most of us won't be inventing little languages by chrismsimpson on Monday April 17, 2023 @08:15AM (#35599614)
Agreed
Re:Why most of us won't be inventing little languages by auggierose on Monday April 17, 2023 @08:48AM (#35599875)
Depends on your needs. In terms of functionality, JS has everything you might want, even the ability to execute itself. Viewed as a platform, not just a language, it offers WebAssembly, soon WebGPU. I don't see anything else that comes even close as a target platform!
Re:Why most of us won't be inventing little languages by JonChesterfield on Monday April 17, 2023 @08:54AM (#35599925)
The usual choice is C. I'm currently liking luajit as the tracing cuts through some of the DSL. The JavaScript compilers probably manage the same thing.
Re:Why most of us won't be inventing little languages by viraptor on Monday April 17, 2023 @08:55AM (#35599939)
Unless you write a basic interpreter or code in plain binary, you're breakpointing in another language. It's really not a big deal as long as you preserve the mapping to the original code.

When you breakpoint in C, you breakpoint in assembly and find your C location from the debug information for example.

Re:Why most of us won't be inventing little languages by hu3 on Monday April 17, 2023 @08:56AM (#35599940)
> Second, breakpointing in another language is about as great (possibly worse) as debugging via printf.

You don't have to. Just generate sourcemaps and you'll be able to set breakpoints in your own language even when targeting JS.

If anything that makes JS an even better target since you can leverage tooling.