News for hackers. Stuff that matters.

stevefolta

Looks nice and small. Too bad it doesn't quite actually build (on Linux). Also, no string interpolation (AFAIC) and no kebab-case.

Here's my current stab at a small compiled language: <https://codeberg.org/stevefolta/lx-2025>.

Re "c)": No, self-hosting is the biggest temptation, and the worst mistake, for any programming language. It's death to bootstrapping. However, if you do succumb to the temptation to self-host, having a C backend, as Copper does, is probably the best way to handle it.
Re:Anthropeum on Tuesday July 28, 2026 @12:43PM (#49086561)
Someone turned me on to this recently, but mainly it ended up getting me back into Timeguessr. (I'm much better at Timeguessr.)
"If you have a procedure with ten parameters, you probably missed some." -- Alan Perlis
Re:QBE – Compiler Back End on Friday May 08, 2026 @03:42PM (#48067758)
Looks like a new 1.3 release is coming very soon.

I love QBE, but it does have its limitations: - It handles the ABIs for passing and returning structures in registers, but only with superfluous copies to and from the stack. - Can't generate debug info for data. This is probably due to lack of assembler support and/or complexity in the DWARF format. - The line number debug info directives are currently undocumented and don't support inlined functions.

But it's smol, effective, and it doesn't make you deal with phi nodes!

Re:Mere: A New Package Manager on Wednesday March 25, 2026 @08:15PM (#47525150)
There's also my own "KX" (<https://codeberg.org/stevefolta/kx>), a very similar project. Mere looks like it wants to be more serious in the long term.
Re:Zen-C: Write like a high-level language, run like C on Monday January 12, 2026 @09:30PM (#46596715)
Oh, it _does_ have string interpolation, my bad. Sadly, not by default -- you still have to go back and add an "f" before the string once you've started typing it and then realize that you want an interpolated string. Also, it doesn't always work -- if I define two interpolated string variables in one function, GCC chokes in a way I'm not understanding. And every interpolated string variable consumes 4K of global memory.
Re:Zen-C: Write like a high-level language, run like C on Monday January 12, 2026 @02:45PM (#46593241)
Nice! Compiles in 2s on my unexceptional hardware. But it lacks my other main desiderata in a new language: string interpolation and kebab-case.
Re: on Tuesday December 30, 2025 @01:41PM (#46436463)
Hooray! Personally, I'm hoping this'll lead to support for the GPU on Spacemit SoCs.
Re:-tucky on Friday December 26, 2025 @11:06PM (#46399038)
I’ve often heard “Fontucky” for Fontana CA.
Re:Things you can do with diodes on Tuesday November 04, 2025 @01:13PM (#45814088)
In synthesizers, diodes are used in oscillators to shape triangle waves into sine waves.
Re:StageConnect: Behringer protocol is open source on Saturday October 18, 2025 @01:58PM (#45629206)
This video says latency is two samples: <https://www.youtube.com/watch?v=TzEoYlaj9u8&t=110s>.
Once you cut through all the verbiage, this is just a re-invention of Woosh (https://woosh.sourceforge.net/).
Re:GitHub Pull Requests Are Down on Tuesday August 05, 2025 @01:50PM (#44801572)
But if that's what they want, they may be driving out the exact wrong subset of their devs.
Re:Dwl: Dwm for Wayland on Friday July 25, 2025 @01:05PM (#44685487)
Another interesting one is Scroll, a scrolling-tiling fork of Sway: https://github.com/dawsers/scroll/
I still have one of these that I bought back in its heyday, but it doesn't work. I suspect it just needs new belts.
Re:Retrobootstrapping Rust for some reason on Monday June 16, 2025 @06:59PM (#44294160)
No it can't. Not for RISC-V/musl, so I'm sure that must be true for other platforms too.
Re:Learning C3 on Thursday May 29, 2025 @04:50PM (#44130277)
The downside of QBE is that it doesn't have a way to generate debug symbols. But I still love and use it.
Re:The Future Is Niri on Wednesday March 12, 2025 @02:58PM (#43346535)
Oh, perfect, thanks! I've been using Niri for less than a week, hadn't got to using named workspaces yet, and missed the bit in the docs where it says they can be empty.
Re:The Future Is Niri on Wednesday March 12, 2025 @01:37PM (#43345703)
The one caveat -- and it's a big one -- is that Niri numbers workspaces dynamically, and won't let you have an empty workspace (except temporarily).
Re:Modern Baby: A pioneering computer from Manchester on Tuesday March 11, 2025 @04:17PM (#43336575)
> In the ENIAC the form of the [sic] that [program] storage (decimal) was quite different to that of the data that ENIAC operated on (binary).

Huh? ENIAC was a decimal machine all the way through.

Re:Carbon is not a programming language (sort of) on Saturday February 08, 2025 @03:59PM (#42986155)
Depends on your definition of "a good name". It seems like yours includes "must be a short English word", but doesn't include things like "is easily web-searchable" and "doesn't conflict with existing names". Throwing out the "short English word" criterion opens up a universe of names like "Wubulus" or "Flarnit".
Re:BSD kqueue is a mountain of technical debt on Sunday December 29, 2024 @01:47PM (#42541950)
> ...nobody really should be using either of them.

What's wrong with poll(), at least for smaller values of nfds? And what should one use instead when writing POSIX-compatible portable code, where epoll() and kqueue() don't exist?

Re:LwIP – Lightweight IP Stack on Thursday September 05, 2024 @09:35PM (#41462047)
What is nongnu.org, and what is its relationship to gnu.org?
Yeah, Rust is the language for people who think C++ is not complex (or hostile) _enough_.
Re:A Linux kernel syscall implementation tracker on Saturday July 20, 2024 @04:26PM (#41019528)
Yeah, it seems odd that it has PowerPC but not RISC-V.
Re:23words.com on Monday June 10, 2024 @09:06PM (#40641150)
Not true, the JS _does_ get a chance to prevent the search behavior. It's not a problem with other games.
Re:23words.com on Monday June 10, 2024 @01:21PM (#40635823)
Too bad the keyboard doesn't work (Firefox with "Search for text when you start typing" on). They didn't do the "event.preventDefault(); event.stopPropagation();" dance.
I tried looking at code in Mebinac, and was surprised at how strongly it reminded me of old screenshots of Smalltalk.

Older »