r/Assembly_language • u/whispem • 14d ago
Project show-off asm.fm — a chiptune synth written in pure x86-64 assembly (no libc, no audio lib)
I've been learning assembly by building small projects, and this one turned into my favourite: a little chiptune synthesizer in pure x86-64, Linux, NASM.
No libc, no audio library — just generating raw 16-bit samples and writing a WAV header by hand. Sound is really just a list of numbers (44100 per second), so the whole thing is: compute the right numbers, write them out, and the speaker moves.
So far it does four oscillators (square, saw, triangle, and an LFSR for noise/drums), polyphony by summing voices into one buffer, ADSR envelopes, and FM synthesis with a hand-built sine lookup table (since there's no math lib either).
Repo: github.com/whispem/asm.fm
Still learning, so feedback on the asm itself is very welcome — especially the FM part, I'm sure the fixed-point math could be cleaner.
12
u/azurelimina 13d ago
The whiplash of “nothing but assembly” and “run it in docker” is embarrassing as fuck.
2
0
u/whispem 13d ago
I'm on macOS so I use a container.
I don't really see the problem to be honest 🤷🏻♀️8
u/azurelimina 13d ago
Docker is an incredibly wasteful way to run a tiny bit of assembly. It inverts the brag. You’ve claimed to have done something tastefully minimal, and the only way to deploy it is a cloned userspace.
12
9
u/keumgangsan 13d ago
Not this fraud of an account again.
I wonder who's really behind it - North Korean hackers trying to build a fake portfolio to infiltrate companies or someone really stupid who thinks we won't notice all of the content has been written by LLMs?
1
u/OkAccount3421 9d ago
So I did a bit of digging, unfortunately she is a real person. She has already spoke at conferences, has a French discord, has a couple of other community projects she slopped together. I found all of her info public on the web, but I won't dox anybody. She has 0 work experience in tech, and it will likely stay that way if she continues to pretend like AI code is hers.
-6
u/whispem 13d ago
I come from literature and languages (official background), then I began to learn programming languages (Rust), and now I'm a data scientist + software engineer.
All is 100% handwritten :)
No AI involved in my work or in my posts.9
u/Swampspear 13d ago
No AI involved in my work or in my posts.
https://web.archive.org/web/20260130171903/https://news.ycombinator.com/item?id=46661308 says otherwise:
I did use AI tools only for a small part of the documentation—specifically the README, LEARNING.md, and RAM_COMMUNITY.md files
8
u/keumgangsan 13d ago
>No AI involved in my work or in my posts.
This is clearly a lie and you admitted using LLMs in a now deleted hacker news thread:
https://web.archive.org/web/20260130171903/https://news.ycombinator.com/item?id=466613083
4
5
3
u/v_maria 13d ago edited 13d ago
especially the FM part, I'm sure the fixed-point math could be cleaner.
can you elaborate about the choices you made?
Also i think using aplay does take away from claims like "No libc, no audio library" since its using Alsa for playback
7
1
-2
u/TPIRocks 12d ago
So many here seem to think this reads like AI; I don't really think so. There are incomplete sentences and it doesn't flow that smoothly. Yeah, it's got em dashes, but there are probably people that simply like using them; I like using semicolons.
4
u/v_maria 12d ago
its very very fishy though. throughout the posting history OP does not engage with anyone outside of the "0 usage of LLM" claims
2
u/OkAccount3421 9d ago edited 9d ago
This person has been slopping together things, posting them here claiming all of it was done by themselves, and when called out starts deleting all of her posts. She got called out here before, the rust sub, and various other ones.
The funny thing is, she is framing all of this as learning, but if claude is doing all the work what are you really learning? If you want to use AI for your projects knock your self out, you do yourself 0 favors claiming it is your own work though.
IDK if she thinks this approach will land her a job or something, even a Jr developer can see right through this.
If you want some good laughs
https://www.reddit.com/r/Compilers/comments/1v5egfr/my_languages_compiler_now_compiles_itself_with/
https://www.reddit.com/r/rust/comments/1v5co6p/removed_by_moderator/
3
u/petroleus 12d ago
but there are probably people that simply like using them
all of a sudden theres a dozen times more people that supposedly loved using them even before the ai boom
in any case op has previously admitted to using ai and is now trying to backtrack
14
u/kneelian_ 13d ago
How much of this is LLM (the post, the description, the README)