3 ms·
That x86 machine code link reminded me of an LLM project I did just last week - https://tools.simonwillison.net/sloccount https://tools.simonwillison.net/slocco
by simonw 1y ago
That x86 machine code link reminded me of an LLM project I did just last week - https://tools.simonwillison.net/sloccount https://tools.simonwillison.net/sloccount
I decided to see if I could get an old Perl and C codebase running via WebAasembly in the browser having Claude brute-force figuring out how to compile the various components to WASM. Details
here: https://simonwillison.net/2025/Oct/22/sloccount-in-webassembly/ https://simonwillison.net/2025/Oct/22/sloccount-in-webassemb...
Here are notes it wrote for me on the compilation process it figured out: https://github.com/simonw/tools/blob/473e89edfebc27781b434430f2e8a76adfbe3b16/lib/README.md#webassembly-compilation-of-c-programs https://github.com/simonw/tools/blob/473e89edfebc27781b43443...
I'm not saying it could have created your exact example (I doubt that it could) but you may be under-estimating how promising it's getting for problems of that shape.
- tensility 1y ago"This tool uses the WebAssembly build of Perl running actual SLOCCount algorithms from licquia/sloccount." The best form of (AI) plagiarism is to simply wrap the original tool in your own facade and pretend like you built anything of value. Is this intended to be a bad joke?
- simonw 1y agoYou're criticizing me for directly crediting the original here. That's the correct and ethical thing to do! Honestly, I've seen the occasional bad faith argument from people with a passionate dislike of AI tooling but this one is pretty extreme even by those standards. I hope you don't ever use open source libraries in your own work.
- tensility 1y agoActually, my criticism was the result of my own misunderstanding of what you were claiming. My apologies for that, although I'm still unlikely to use these tools based upon the example when my own personal counterexamples have shown me that it's often as much or more work to get there via prompting than it is to simply do the thinking myself. Have a good day.
- simonw 1y agoThanks - this was a misunderstanding, apology accepted!
- tensility 1y agoFor whatever it's worth, this is exactly the kind of awful that I never want in any code base that I'm working on: <https://github.com/simonw/tools/blob/473e89edfebc27781b434430f2e8a76adfbe3b16/lib/webperl/emperl.js https://github.com/simonw/tools/blob/473e89edfebc27781b43443...> At least run a pretty-printer on the code so that it can be reviewed by anything but a robot. Part of developing a good software system is about exercising taste in vendored-in libraries and, especially, the structure around them. P.S. I've gone to look at other chunks of Javascript and see that I was unlucky to grab this steaming pile first.
- simonw 1y agoThat was vendored in from this project: https://webperl.zero-g.net/ https://webperl.zero-g.net/ - it's one of the files distributed in the zip file listed here: https://webperl.zero-g.net/using.html#basic-usage https://webperl.zero-g.net/using.html#basic-usage Originally I tried to get it working loading code directly but as far as I can tell there's no stable CDN build of that, so I had to vendor it instead.
- lrvick 1y agoI do not doubt that LLMs might some day be able to generate something like my work in stagex, but it would only be because someone trained one on my work and that of other people that insist on solving new problems by hand. Even then, I would never use it, because it would be some proprietary model I have to pay some corpo for either with my privacy, my money, or both... and they could take it away at any time. I do not believe in or use centralized corpotech. Centralized power is always abused eventually. Also is that regurgitated code under an incompatible license? Who knows. Also, again, I would rob myself of the experience and neural pathway growth and rote memory that come from doing things myself. I need to lift my own weights to build physical strength just as I need to solve my own puzzles to build patience and memory for obscure details that make me better at auditing the code of others and spotting security bugs other humans and machines miss. I know when I can get away with LTO, and when I cannot, without causing issues with determinism, and how to track down over linking and under linking. Experience like that you only get by experimenting and compiling shit hundreds of times, and that is why stagex is the first Linux distro to ever hit 100% determinism. Circling back, no, I am not worried about being unemployable because I do not use LLMs. And hey, if I am totally wrong and LLMs can create perfectly secure projects better than I can in the future, and spot security bugs better than I can, and I am unemployable, then I will go be an artist or something, because there are always people out there that appreciate hard work done by humans by hand, because that is how I am wired.
- simonw 1y ago> Even then, I would never use it, because it would be some proprietary model I have to pay some corpo for either with my privacy, my money, or both... and they could take it away at any time. Have you been following the developments in open source / open weight models you can run on your own hardware? They're getting pretty good now, especially the ones coming out of China. The GLM, Qwen and DeepSeek models out of China are all excellent. Mistral's open weight models (from France) are good too, as are the OpenAI gpt-oss models. No privacy or money cost involved in running those. I get your concern about learning more if you do everything yourself. All I can say there is that the rate and depth of technical topics I'm learning has been expanded by my LLM usage because I'm able to take on a much wider range of technical projects, all of which teach me new things. You're not alone in this - there are many experienced developers who are choosing not to engage with this new family of technology. I've been thinking of it similar to veganism - there are plenty of rational reasons to embrace a vegan lifestyle and I respect people who do it but I've made different choices myself.