News for hackers. Stuff that matters.
Re:Five Memorable Books About Programming by kragen on Saturday November 07, 2026 @08:19PM (#50409658)
Over the last few weeks, I've been eliciting a compiler for an experimental programming language called 5emel from Claude Opus 5.5. To give you the flavor, here's a randomly selected function from its compiler:

    # The table of the program's own functions, by their descriptors, which
    # the runtime searches for --memo-every and --memo-all.
    def function_data(:defs) =
      :rows = loop :next(:r = defs, :acc = []) (
        | [] = r; acc
        | [Def { :fname, _, _, _ }, ...:more] = r;
          next(more, [acc, "  .quad d_", fname, "\n"])
      );
      ["  .balign 8\n  .globl rt_functions, rt_nfunctions\n",
       "rt_nfunctions: .quad ", show(length(defs)), "\n",
       "rt_functions:\n", rows]
There's a lot of code in 5emel I haven't read; there's something like 15000 lines of TypeScript and JavaScript and 3000 lines of C. I've read almost none of any of that. I haven't even read all of the compiler, which is only about 1600 lines of code.

Despite that, I think I've been putting my extensive past reading of programming books to pretty good use in this process. 5emel is directed at finding a workable, though not optimal, general solution to one of the famously most difficult problems in computer science, and if it is successful, I think it'll be a real advance — and one that LLMs can use as well as humans. Better, maybe.

Re:Five Memorable Books About Programming by so-cal-schemer on Sunday November 08, 2026 @12:30AM (#50410675)
I confess this is above my pay grade, but very intersting and I would like to probe the machine with this data.

I enjoy your choice of phrase: 'to elicit' code from Claude. Like wishes from the Djinn. I imagine a guiding light through the Library of Babel ..or a trail of bread crumbs.

Over several months I watched over a friend's shoulder, with heavy lifting from Cluade, as he designed and verified a PCB for an IoT SoC with custom drivers for components, even hacking a video encoder to be a partial GPU such that it can playably run Quake (and more planned). And another friend designing a RISC-V core in an FPGA with aid from AI. I feel like quoting Roy Batty in Bladerunner.

Anyway, mate?

Re:Five Memorable Books About Programming by kragen on Sunday November 08, 2026 @01:10AM (#50410846)
Totally.

I'm going to try to write 5emel up properly this weekend.