4 ms·
Problem with Hare is that it is (or at least was last time I checked) Linux/Unix only and so by design. That kinda makes it DOA for many.
by mustermannBB 1y ago
Problem with Hare is that it is (or at least was last time I checked) Linux/Unix only and so by design.
That kinda makes it DOA for many.
- plainOldText 1y agoIndeed. There’s a port for macOS though. And yet out all these newer C-like languages, it looks like Hare probably takes the crown for simplicity. Among other things, Hare uses QBE[1] as a backend compiler, which is about 10% the complexity of LLVM. [1] https://c9x.me/compile/ https://c9x.me/compile/
- sitkack 1y agoQBE is an art project. Read the source.
- orthoxerox 1y agoI tried. It's not at Arthur Whitney's levels of terseness, but compared to the source of, say, Redis it's a pain to read.
- lerno 1y agoThe downside of QBE is that it then requires an assembler and a linker. And QBE's only input and output is still text. Plus the "frontend -> QBE -> assembler -> binary" process is slower than "frontend -> LLVM -> binary". And LLVM is known for being a fairly slow compiler.
- stevefolta 1y agoThe downside of QBE is that it doesn't have a way to generate debug symbols. But I still love and use it.
- YorickPeterse 1y agoThe most recent release has the ability to generate basic debugging information (see "new experimental dbgfile and dbgloc directives. " from the release notes) as Hare needed that (and IIRC a Hare contributor added it). Unfortunately, there's no documentation on it, and last I checked to see how to use it I had to go spelunking in the Hare source code.
- atiedebee 1y agoIt's funny how they say they are at 10% of the code of LLVM in their marketing, when it is actually closer to 0.1%. Throwing LLVM version 20.1 through wc (just the subdirectory llvm/lib) results in 2.3 million lines for all .c and .cpp files. QBE was around 14k last time I checked.
- alpaca128 1y agoThat and no multithreading.