HN user

stevefolta

148 karma
Posts2
Comments78
View on HN

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!

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.

Learning C3 1 year ago

The downside of QBE is that it doesn't have a way to generate debug symbols. But I still love and use it.

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.

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).

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".

...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?

23words.com 2 years ago

Not true, the JS _does_ get a chance to prevent the search behavior. It's not a problem with other games.

23words.com 2 years ago

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.

Hello World 2 years ago

Unlike python, however, you can’t just call an interpreter to run this program.

Sure you can: "tcc -run hello.c". Okay, technically that's an in-memory compiler rather than an interpreter.

For extra geek points, have your program say "Hellorld" instead of "Hello world".