frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

My application programmer instincts failed when debugging assembler

https://landedstar.com/blog/posts/how-my-application-programmer-instincts-failed-when-debugging-assembler/
8•lifefeed•1d ago

Comments

Kiboneu•1h ago
Neat. The author is about to stumble onto a secret.

> In Sum# > Abstractions. They don’t exist in assembler. Memory is read from registers and the stack and written to registers and the stack.

Abstractions do not exist periodi. They are patterns, but these patterns aren’t isolated from each other. This is how a hacker is born, through this deconstruction.

It’s just like the fact that electrons and protons don’t really exist. but the patterns in energy gradients are consistent enough to give them names and model their relationship. There are still points where these models fail (QM and GR at plank scale, or just the classical-quantum boundaries). It’s gradients all the way down, and even that is an abstraction layer.

Equipped with this understanding you can make an exploit like Rowhammer.

https://en.wikipedia.org/wiki/Row_hammer

Chaosvex•1h ago
Not sure what to take away from this. __abstract works because GCC allows it as an alias to __abstract__, not because parsing the syntax is forgiving.

Abstractions do exist (disagreeing with the single other post in here) and they also exist in most flavours of assembly, because assembly itself is still an abstraction for machine code. A very thin one, sure, but assemblers will generally provide a fair amount of syntactic sugar on top, if you want to make use of it.

Protip: your functions should be padded with instructions that'll trap if you miss a return.

userbinator•58m ago
Asm is simple enough that "mental execution" is far easier, if more tedious, than in HLLs, especially those with lots of hidden side-effects. The concept of a function doesn't really exist (and this is even more true when working with RISCs that don't have implicit stack management instructions), and although there are instructions that make it more convenient to do HLL-style call and return, it's just as easy to write a "function" that returns to its caller's caller (or further), switches to a different task or thread, etc. If you're going to learn Asm, then IMHO you should try to exploit this freedom in control flow and leverage the rest of the machine's ability, since merely being a human compiler is not particularly enlightening nor useful.
mathisfun123•41m ago
> Asm is simple enough that "mental execution" is far easier, if more tedious, than in HLLs

Ya totally I can also keep 32 registers, a memory file, and stack pointer all in my head at once ...fellow human... (In 2026 I might actually be an LLM in which I really can keep all that context in my "head"!)

userbinator•11m ago
8 registers are sufficient; if you forget what one holds, looking up at the previous write to it is enough.

Contrast this with trying to figure out all the nested implicit actions that a single line of some HLL like C++ will do.

jiehong•26m ago
Then you goto hell…

Plasma Bigscreen – 10-foot interface for KDE plasma

https://plasma-bigscreen.org
408•PaulHoule•9h ago•115 comments

UUID package coming to Go standard library

https://github.com/golang/go/issues/62026
177•soypat•7h ago•98 comments

this css proves me human

https://will-keleher.com/posts/this-css-makes-me-human/
257•todsacerdoti•11h ago•87 comments

QGIS 4.0

https://changelog.qgis.org/en/version/4.0/
15•jonbaer•39m ago•0 comments

Maybe there's a pattern here?

https://dynomight.net/pattern/
111•surprisetalk•2d ago•65 comments

Galileo's handwritten notes found in ancient astronomy text

https://www.science.org/content/article/galileo-s-handwritten-notes-found-ancient-astronomy-text
119•tzury•1d ago•24 comments

LLMs work best when the user defines their acceptance criteria first

https://blog.katanaquant.com/p/your-llm-doesnt-write-correct-code
210•dnw•8h ago•171 comments

Helix: A post-modern text editor

https://helix-editor.com/
131•doener•9h ago•43 comments

Working and Communicating with Japanese Engineers

https://www.tokyodev.com/articles/working-and-communicating-with-japanese-engineers
14•zdw•3d ago•4 comments

Querying 3B Vectors

https://vickiboykis.com/2026/02/21/querying-3-billion-vectors/
43•surprisetalk•3d ago•5 comments

Show HN: Moongate – Ultima Online server emulator in .NET 10 with Lua scripting

https://github.com/moongate-community/moongatev2
253•squidleon•19h ago•139 comments

Sarvam 105B, the first competitive Indian open source LLM

https://www.sarvam.ai/blogs/sarvam-30b-105b
26•logicchains•1h ago•2 comments

Editing changes in patch format with Jujutsu

https://www.knifepoint.net/~kat/kb-jj-patchedit.html
21•cassepipe•2d ago•2 comments

The Longing (1999)

https://www.cluetrain.com/book/longing.html
18•herbertl•3d ago•1 comments

What canceled my Go context?

https://rednafi.com/go/context-cancellation-cause/
55•mweibel•3d ago•28 comments

Modernizing swapping: virtual swap spaces

https://lwn.net/Articles/1059201/
22•voxadam•1d ago•13 comments

Tech employment now significantly worse than the 2008 or 2020 recessions

https://twitter.com/JosephPolitano/status/2029916364664611242
875•enraged_camel•15h ago•582 comments

Show HN: Kula – Lightweight, self-contained Linux server monitoring tool

https://github.com/c0m4r/kula
51•c0m4r•9h ago•23 comments

CT Scans of Health Wearables

https://www.lumafield.com/scan-of-the-month/health-wearables
215•radeeyate•19h ago•44 comments

My application programmer instincts failed when debugging assembler

https://landedstar.com/blog/posts/how-my-application-programmer-instincts-failed-when-debugging-a...
8•lifefeed•1d ago•6 comments

Launch HN: Palus Finance (YC W26): Better yields on idle cash for startups, SMBs

50•sam_palus•15h ago•72 comments

Entomologists use a particle accelerator to image ants at scale

https://spectrum.ieee.org/3d-scanning-particle-accelerator-antscan
128•gmays•17h ago•24 comments

The shady world of IP leasing

https://acid.vegas/blog/the-shady-world-of-ip-leasing/
109•alibarber•12h ago•61 comments

C# strings silently kill your SQL Server indexes in Dapper

https://consultwithgriff.com/dapper-nvarchar-implicit-conversion-performance-trap
97•PretzelFisch•10h ago•68 comments

Hardening Firefox with Anthropic's Red Team

https://www.anthropic.com/news/mozilla-firefox-security
564•todsacerdoti•21h ago•153 comments

A tool that removes censorship from open-weight LLMs

https://github.com/elder-plinius/OBLITERATUS
163•mvdwoord•19h ago•76 comments

Tell HN: I'm 60 years old. Claude Code has re-ignited a passion

423•shannoncc•9h ago•293 comments

Show HN: 1v1 coding game that LLMs struggle with

https://yare.io
21•levmiseri•1d ago•6 comments

A Modular Robot Dashboard

https://github.com/transitiverobotics/transact
19•chfritz•1d ago•0 comments

Workers who love ‘synergizing paradigms’ might be bad at their jobs

https://news.cornell.edu/stories/2026/03/workers-who-love-synergizing-paradigms-might-be-bad-thei...
556•Anon84•20h ago•310 comments