News for hackers. Stuff that matters.

overbring_labs

Re:I let LLMs write an Elixir NIF in C; it mostly worked on Saturday August 16, 2025 @01:51PM (#44925520)
Well, it's in Rust now, thanks to your and someone else's comments! https://github.com/waseigo/disk_space
Re:I let LLMs write an Elixir NIF in C; it mostly worked on Saturday August 16, 2025 @01:51PM (#44925516)
Truly, way better than before: https://github.com/waseigo/disk_space

And it now runs on everything, across more Elixir and Erlang/OTP versions than before!

Re:I let LLMs write an Elixir NIF in C; it mostly worked on Saturday August 16, 2025 @04:00AM (#44921245)
Thanks, one day I'll look into Zig too, because I've been impressed with what Tigerbeetle has achieved with it! For now, I'm all-in on Elixir.
Re:I let LLMs write an Elixir NIF in C; it mostly worked on Friday August 15, 2025 @05:30PM (#44917486)
Holy moly, you weren't kidding. Grok 4 is so much better. Thanks!
Re:I let LLMs write an Elixir NIF in C; it mostly worked on Friday August 15, 2025 @05:11PM (#44917310)
Given the amount of issues the code had when I ran splint on the C file, I agree. The question was for me whether I can get something working to get over the "speed bump" of lacking such a function for the API client I'm writing.

I'm now re-vibe-coding it into Rust with the same process, but also using Grok 4 to get better results. It now builds and passes the tests on Elixir 1.14 to 1.18 on macOS and Ubuntu, but I'm still trying to get Grok 3 and 4 to fix the Windows-specific parts of the Rust code.

Re:I let LLMs write an Elixir NIF in C; it mostly worked on Friday August 15, 2025 @05:06PM (#44917247)
Amen, thank you for noticing. The goal here was not to produce something of stellar quality, which is anyway out of the question as I don't have the skills/knowledge to evaluate anything other than "it returns the Elixir map I wanted". It was to see if this is feasible at all.
Re:I let LLMs write an Elixir NIF in C; it mostly worked on Friday August 15, 2025 @05:04PM (#44917235)
It's just that Grok 3 is faster than 4, so I've set it by default. But point taken, I'll try out the newer ones now that I'm converting it to Rust.
Re:I let LLMs write an Elixir NIF in C; it mostly worked on Friday August 15, 2025 @05:02PM (#44917209)
Because what difference would it make, given the bad quality of code?

Also, is Claude Code free to use?

The manual process has the upside that you get to see how the sausage is (badly) made. Otherwise, just YOLO it and put your trust in GenAI completely.

Furthermore, if there is the interim step of pushing to GitHub to trigger the build & test workflow and see if it works on something other than Linux, is the choice of Vibe-Coding IDE really the limiting factor in the entire process?

Re:I let LLMs write an Elixir NIF in C; it mostly worked on Friday August 15, 2025 @04:00PM (#44916730)
What is your definition of "a working project"? It does what it says on the tin (actually it probably does more, because splint throws some warnings...)
Re:I let LLMs write an Elixir NIF in C; it mostly worked on Friday August 15, 2025 @03:56PM (#44916695)
It's more of "yeah it worked, but I had to do a lot of hand-holding" and "it passes the tests but I cannot tell if the code has memory leaks".

Actually, I can tell; I ran split on the C source and got things like this:

disk_space.c:144:16: Only storage bin.ref_bin (type void *) derived from variable declared in this scope is not released (memory leak)

So I'm looking into a Rust version with Rustler now.

Re:I let LLMs write an Elixir NIF in C; it mostly worked on Friday August 15, 2025 @03:55PM (#44916682)
I mean, you aren't wrong. I'm looking into converting it into Rust with Rustler right now.
Re:Questions censored by DeepSeek on Wednesday January 29, 2025 @06:14AM (#42863702)
You wouldn't ask a rabbi about the New Testament or an imam about the Torah and expect unbiased responses. So why ask a CCP-influenced LLM about things you already know you won't get an unbiased answer to?
Re:Ask HN: Coping with Politics in 2025? on Wednesday January 29, 2025 @06:10AM (#42863678)
Stop following the news? My recipe for success for 10 years now and counting. The news is meant to elicit views, clicks, and emotional reactions. Why would you subject yourself to that on a regular basis, or at all?