| ▲ | piker 2 hours ago |
| I think you’re kidding, but wouldn’t you have to maintain different code bases for each platform? C compiler gets you everywhere and WASM. |
|
| ▲ | genxy 2 hours ago | parent | next [-] |
| Once you have Wasm, it gets you everywhere and the best path to Wasm is Rust. |
| |
| ▲ | arbll 2 hours ago | parent [-] | | Funny in a thread that started with `increasingly makes sense for compile times` | | |
| ▲ | genxy 37 minutes ago | parent [-] | | Fine, I'll make a fast rust compiler. Rust with no deps and a single compilation unit is already fast. |
|
|
|
| ▲ | raphlinus 2 hours ago | parent | prev | next [-] |
| Yes, and? As the cost of code generation approaches zero, this starts to make more sense, especially if you do have mechanisms in place to ensure safety and correctness. I did an experiment a couple weeks ago of having Opus 5.5 translate an MP3 decoder from Rust into Cortex-M33 assembly language, both raw asm and symbolasm. The code was 3x smaller and ~1.5x faster than Rust -O3. These seem like gains that are worth it. |
| |
| ▲ | zamadatix 22 minutes ago | parent | next [-] | | As the cost of code gen approaches 0 the cost of the test suite actually grows. Not just in definition, but execution. An MP3 decoder for a single target doesn't really run into that complexity, a UI components library for (Linux, Windows, macOS) * (x86-64, ARM64) suddenly has a 6x multiplier on what was already something with waaay deeper dependencies and integrations than MP3. At least that's what I've noticed vibing my DE without external libraries. It went really fast when the complexity was small because most of the work was in adding code. Then it started taking longer to build and test, even with optimized builds and tests, than it took for the AI to do its part. | |
| ▲ | piker 2 hours ago | parent | prev | next [-] | | Yes that makes sense, but if you're iterating on software then I think C will generally win due to its ability to compile cross-platform until you want to build a "release" which you could do by having Fable translate it to ASM at that point. | |
| ▲ | genxy 2 hours ago | parent | prev | next [-] | | Did you have it go directly to asm or emit the assembly from the Rust toolchain and then contract that? For small stuff, I have been having it write directly, or larger pieces I am having better results via contractions. | | |
| ▲ | raphlinus an hour ago | parent [-] | | For this experiment I had it write directly. I should add, part of the experiment was to test whether having variable names and (C style) types would help the LLM. For a task of this size (about 1.5 kLoC Rust, 3k insn asm) it was inconclusive, but for larger projects I suspect it would make a difference. And the plan for symbolasm is to move past C style types into Rust style and maybe dependent typing, specifically to facilitate automated proofs. |
| |
| ▲ | mlfreeman an hour ago | parent | prev [-] | | at that point, how hard would it be to get the LLM to just make the binary? (iow, llm as compiler) |
|
|
| ▲ | linkdd 2 hours ago | parent | prev [-] |
| Just ask the slop machine to translate the binary to every platform. |