logoalt Hacker News

ux266478yesterday at 1:48 PM3 repliesview on HN

Fennel really is great, and a great way to get into the clojure family. My biggest gripe with it is that debugging is the typical transpilation bed of needles. The bridge between Fennel and the Lua VM is super fragile, and it just doesn't have half the quality of the Janet debugger and REPL. It's a real shame, because Fennel is way more portable, and thanks to LuaJIT is capable of breaking SBCL's jaw, which is absolutely fucking insane. But the transpilation experience just completely kneecaps it imo. There are workarounds you can do, but even if you mess around with implementing a debug.setinfo you still run into less-than-fun edge cases like with match-blocks.

I think there's a lot of value in forking LuaJIT2 and reworking the debugging and error structures within to make it more suitable for language transparency. Doing so would make languages like Fennel much more attractive.


Replies

radiatoryesterday at 9:34 PM

Relevant issue #1457 VM instrumentation for third-party tools https://github.com/LuaJIT/LuaJIT/issues/1457 was opened by Mike Pall as recently as three weeks ago.

I gather that some features will be added to 2.1 but others only to 3.0.

show 1 reply
JHonakeryesterday at 2:23 PM

> capable of breaking SBCL's jaw

What exactly do you mean by this? Speed? Portability? Ease of use?

show 1 reply
chamomealyesterday at 3:41 PM

Is fennel clojure-ish? I’m vaguely aware of it being a lisp, but I didn’t know it was clojure-ey. Pretty neat sounding!

show 1 reply