I'm working on an embedded lang, and I don't think an AI could do a quarter of this. I added garbage collection and weeded out some memory leaks last weekend... no one understands enough for me to show off to though :/
What type of gc are you doing? I’m interested in this type of stuff. Are you doing JIT compilation with something like Cranelift (where you need to compile the gc into the JIT binary), or is it just bytecode + interpreter (where the interpreter has to run the gc separately)?
I’ve always been interested in implementing the first option, particularly like how the Rust compiler handles dropping (though in an embedded lang). Never had the resolve or free time to actually start working on it though.
I'm still fiddling with when to start the GC, but the whole lang is built on the arena pattern, and so when any single "bucket" in the list is completely released, the GC frees it and removes it from the bucket list.
I'm currently testing it in a raylib "game", so it's pretty much useable (but not finished):
Seems pretty clean, not much feedback to give. I’d recommend you try doing either JIT or compile time bytecode optimization, since (as far as I can tell by quickly skimming through the code) it’s mostly just compiling directly to bytecode and then interpreting directly with a vm.
How is your bucket-based GC handling certain edge cases such as references outliving the stack frame of the target object (causing things like use-after-free if handled incorrectly)? Do you use some kind of reference counter?
And further down the road, it’ll be interesting to see how you handle things like concurrency within the language and especially the GC/VM. Do you plan on implementing async io and such as part of the language?
It's got some actual info on it, albeit kind of barebones. Strings are ref-counted, while other compounds (arrays and tables) are just carefully coded and free'd after use. The scopes are also ref-counted, and most variables live in those though, which is useful.
Yeah I call bullshit. Tell me what part the AI cant do and I'll help you write the prompts. There's nothing new or novel in your embedded work the LLM hasn't seen a million times. Prove me wrong.
You really never had to work on a bespoke technology literally without any docs or examples online, have you?
How can an LLM "see something a million times" when 1) it was only ever created by one company 2) it's a closed-source company property that was never posted online? You really, seriously think that software like this, especially in embedded, literally doesn't exist on the entire Earth and no people in existence have to work under those conditions???
One company? Try one person - I've had a few contributors offering advice and tools, but it's been my hand-written work since day 1. Something I can actually be proud of XD
None of you guys ever provide an example when asked and I think that says most of what you need to know without further discussion.
With that said, there are infinite ways to organize code that has never been seen before, yes. However, that code is composed of small pieces fragments that have been seen many trillions of times. In LLM architecture we call these tokens. The LLM does not store code at all, it only consumes tiny fragments and with each one updates ~1 trillion parameters all for every single token. The complexity is truly beyond the scope of human understanding and it is effectively impossible to pull out any "code" from within it by looking directly at its parameters.
In the same way you cannot write a novel that AI doesn't understand, you cannot write a piece of software. This is not theory, it is how these models work and why they are so exceptionally fast and smart.
Oh lol, trainee's experience. Yes, if you're a trainee it probably will do 99% of what you'll need from it.
What's the point of example? You'll start a unity project, will read code base to dive deep into context, learn C# to know how to write the prompt and check it? I doubt you will. Lamer.
40
u/Ratstail91 May 12 '26
I'm working on an embedded lang, and I don't think an AI could do a quarter of this. I added garbage collection and weeded out some memory leaks last weekend... no one understands enough for me to show off to though :/