[–] djriley 1 day ago
The only bummer I'm seeing with fcc is not having a linker mean not being able to use external libraries. So you're really limited to what you can include in your own project, but if it truly is C89 compliant there are plenty of useful single header libraries you could use for various things.
I'll check it out!
[–] xenophonf 17 hours ago
[–] Chaosvex 15 hours ago
[–] rgovostes 1 day ago
[–] shoobiedoo 1 day ago
[–] RetroTechie 17 hours ago
May have what you're looking for. Steps & tools used are in the "parts.rst" file.
[–] hn_submit 23 hours ago
Projects like these are defiling the programmer's guild.
[–] sn0n 20 hours ago
[–] rfgplk 19 hours ago
https://github.com/rfgplk/micron.cpp
This is an example of a true "from scratch implementation" (as long as you target the freestanding compile option, hosted still depends on pthread for threading). Absolutely zero external code or references anywhere outside the stated repo. (Not even compiler builtins or includes are needed). You can drag and drop it wherever you'd like hit compile and you're done.
[–] rfgplk 19 hours ago
[–] rowanG077 21 hours ago
There are outliers where an excellent team of devs produce great quality, better that even frontier LLM code now. SQLite comes to mind. But it's easy to forget that is the 0.x%.
[–] throawayonthe 21 hours ago
[–] rowanG077 21 hours ago
Or is it "To make an apple pie, you must first invent the universe" kind of deal. Which doesn't make sense to me either.
[–] FeteCommuniste 21 hours ago
[–] rowanG077 21 hours ago
In the same way a program manager is free to say "We build X from scratch" even though they made no code contribution to it. The we is replaced with I since no other person was involved in this case.
[–] ranger_danger 19 hours ago
That's fine for bread, but for people that see code more like art, they have a preconceived notion that "from scratch" means writing the code yourself.
Some people code to solve a problem and they don't care how it gets done. They have no problems using AI and see other methods as prehistoric. That's fine for them, carry on.
For me, the journey is more important than the destination.
Being able to code "by hand" is what strokes my sense of worth and accomplishment... knowing I can do something that not just anyone can. Pushing a button or prompting an AI isn't the same for me, that's more like a project manager and something I never want to be.
When people bash on the anti-AI crowd, they just don't understand that people code for different reasons, and neither is more right or wrong.
[–] program_whiz 20 hours ago
[–] JdeBP 20 hours ago
[–] FeteCommuniste 21 hours ago
[–] aleph_minus_one 20 hours ago
If people were similar confrontive in calling out such managers ...
[–] jhbadger 17 hours ago
[–] aleph_minus_one 17 hours ago
[–] jhbadger 17 hours ago
[–] fooker 14 hours ago
Pretty much everyone developing software for a living is using AI. This basically outs you as not having any recent tech involvement.
No amount of nostalgia and wishful thinking overcomes reality.
[–] childintime 19 hours ago
[–] sylware 22 hours ago
[–] q4y2u35uk 17 hours ago
[–] flossly 15 hours ago
I've seen this approach already in practice: LLM+decompiler give better code than the original code that the binary was compiled from.
[–] foldr 15 hours ago
[–] raphlinus 12 hours ago
The task was rewriting an MP3 decoder from Rust into ARM assembly language, Cortex-M33 flavor specifically, optimizing for both speed and code size. The output is approx 3k instructions. The tl;dr is that Opus 5.5 nailed the task, whether writing assembly or symbolasm. It took approximately 2x tokens for the latter, which I think is largely explained by the fact that it was dealing with a novel language nowhere represented in its training set.
The quality of the result was comparable; the raw asm was slightly faster and slightly less dense, which I consider insignificant because I think you can get the same effect just by tuning the prompt. In particular, if I were re-running the experiment, I might set a strict code size budget and then ask it to optimize for speed within that budget, allowing comparison on a single scalar.
The experiment was compelling in another way: the code was 3x denser and 1.5x faster than -O3 output from Rust. So for certain applications, going to assembler will be worth it, especially as the cost of generating the code goes to zero.
[–] anonymous908213 1 day ago
LLM-generated blogpost. The stench is all over it.
[–] mrlonglong 23 hours ago
[–] bayesnet 19 hours ago
[–] flykespice 17 hours ago
There will always need a human on the end to check if the LLM didn't hallucinate anything on it, including manually writing the unit tests.
[–] lume 1 day ago
[–] cors-fls 23 hours ago
[–] ranger_danger 19 hours ago
There can be other valid perspectives than your own.
Different people code for different reasons.
Some see it as a means to an end... "I want X as an end result and I don't care how I get it."
Others see it as an art form and something special to them; their sense of worth is tied to their knowledge and experience in something that not just anyone can do (without an AI).
OP uses an LLM because they just want the end result. You might write code for different reasons entirely. Neither is "wrong" or "useless."
[–] ndiddy 18 hours ago
[–] small_model 16 hours ago
[–] skybrian 17 hours ago
In particular, I’d want to experiment with how to get coding agent to generate more readable code and better documentation. I can get it to make the code somewhat readable, but haven’t really solved yet.
[–] flossly 15 hours ago
It's easily to spot a code base that's build LLM-assisted. But to know that no human actually took interest in the code is hard to know without talking to the humans that prompted the LLM.
[–] ndiddy 14 hours ago
[–] krapp 15 hours ago
[–] zerr 16 hours ago
[–] flykespice 17 hours ago
Either my C skills are getting rusty and that is how a C codebase normally looks like, or LLM was trained on some suspicious codebases.
[–] fooker 14 hours ago
LLMs are very good at copying best practices.
[–] foldr 17 hours ago
[–] brabel 16 hours ago
[–] lelanthran 16 hours ago
The commits were done by Claude.
[–] brabel 1 hour ago
[–] q4y2u35uk 17 hours ago