frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

There Is Life Before Main in Rust

https://grack.com/blog/2026/06/11/life-before-main/
27•mmastrac•1d ago

Comments

mmastrac•1h ago
Author here, happy to answer any questions. I've been working on building some higher-level abstractions on link sections (specifically, link-time optimized collections like maps (1) and sorted slices (2)) and wanted to share the hard-fought knowledge from the last couple of months.

There's a decent amount of knowledge around pre-main work in Rust, but I think this is one of the first attempts to walk through mutable link sections, which open up a pretty wide world of optimization, IMO. Even without mutability, I figured there isn't nearly enough documentation on these approaches out there.

(1) https://docs.rs/scattered-collect/0.20.0/scattered_collect/m...

(2) https://docs.rs/scattered-collect/0.20.0/scattered_collect/s...

smy20011•1h ago
> This post is 100% human-written. Claude was used for feedback and to assist with the linker symbol diagram. Cursor was used for feedback and to ensure examples were compilable.

Love this, I hope every blog have the same disclaimer about how AI is used.

rootnod3•57m ago
If Claude gave feedback then it’s not really 100% human written is it?
ronsor•55m ago
If you merely get feedback from a human, are they now a co-author?
frakt0x90•22m ago
I'm pretty much hardline anti-AI and even I would say this is too far. If I read documentation or ask my wife to review something, those people did not write the final product. Perhaps it would be mentioned in a citation, like this person has.
vitally3643•21m ago
It was written on a computer with a keyboard, so clearly it's 0% human written
Sharlin•5m ago
Editors (as in, the human kind) are not co-writers either.
jeffbee•29m ago
The general lesson of these things is main is not that special and it pays to understand how your program actually starts. This has little/nothing to do with Rust or other language tools. On Linux, given a static ELF program, the kernel returns to the IP given by e_entry, which can proceed to do anything. If the program is dynamic (has a .interp) then it loads the interpreter and returns to its e_entry instead. The interpreter, in turn, can do absolutely whatever.

CRISPR tech selectively shreds cancer cells, including "undruggable" cancers

https://innovativegenomics.org/news/crispr-technique-selectively-shreds-cancer-cells/
339•gmays•3h ago•87 comments

I Am Not a Reverse Centaur

https://blog.miguelgrinberg.com/post/i-am-not-a-reverse-centaur
64•ibobev•1h ago•17 comments

How to Setup a Local Coding Agent on macOS

https://ikyle.me/blog/2026/how-to-setup-a-local-coding-agent-on-macos
37•kkm•1h ago•9 comments

I Won't Buy You a Coffee

https://hakkerman.eu/blog/i-wont-buy-you-a-coffee/
11•speckx•18m ago•3 comments

A PDF that changes based on how its read

https://sgaud.com/texts/pdf
66•SarthakGaud•2h ago•28 comments

Pirates, a naval warfare game inspired by Sid Meier's Pirates

https://piwodlaiwo.github.io/pirates/
37•iweczek•1h ago•12 comments

Slightly reducing the sloppiness of AI generated front end

https://envs.net/~volpe/blog/posts/reduce-slop.html
115•FergusArgyll•4h ago•71 comments

Looking Forward to Postgres 19: It's About Time

https://www.pgedge.com/blog/looking-forward-to-postgres-19-its-about-time
51•xngbuilds•2h ago•16 comments

Malware developers added nuclear and biological weapons text to to their spyware

https://twitter.com/jsrailton/status/2064661778978533571
101•marc__1•22h ago•77 comments

A dumpster arrived behind my university's library

https://yalereview.org/article/sheila-liming-the-end-of-books
111•mooreds•4h ago•86 comments

Where Did Earth Get Its Oceans? Maybe It Made Them Itself

https://www.quantamagazine.org/where-did-earth-get-its-oceans-maybe-it-made-them-itself-20260612/
64•ibobev•3h ago•41 comments

Tesla Full Self Driving uses bicycle lane in official Denmark approval video

https://politiken.dk/danmark/forbrug/biler/art10875514/Allerede-12-sekunder-inde-i-PR-videoen-beg...
69•Veserv•1h ago•19 comments

Launch HN: BitBoard (YC P25) – Analytics Workspace for Agents

https://bitboard.work/
15•arcb•1h ago•4 comments

Keygen.music

https://keygen.music
95•soupspaces•3h ago•56 comments

There Is Life Before Main in Rust

https://grack.com/blog/2026/06/11/life-before-main/
28•mmastrac•1d ago•8 comments

Cosmodial Sky Atlas

https://killedbyapixel.github.io/Cosmodial/
6•memalign•35m ago•1 comments

Hazel (YC W24) Is Hiring a Full Stack Engineer

https://www.ycombinator.com/companies/hazel-2/jobs/3epPWgu-full-stack-engineer-ts-sci
1•augustschen•5h ago

Introduction to UEFI HTTP(s) Boot with QEMU/OVMF

https://blog.yadutaf.fr/2026/06/12/introduction-to-uefi-https-boot-qemu-ovmf/
33•jtlebigot•4h ago•7 comments

Maxproof

https://arxiv.org/abs/2606.13473
108•ilreb•6h ago•8 comments

AI agent bankrupted their operator while trying to scan DN42

https://lantian.pub/en/article/fun/ai-agent-bankrupted-their-operator-scan-dn42lantian.lantian/
1299•xiaoyu2006•14h ago•473 comments

A Call to Action: Stop the FCC's KYC Regime

https://blog.lopp.net/call-to-action-stop-the-fcc-kyc-regime/
265•FergusArgyll•4h ago•168 comments

Law Enforcement's "Warrior" Problem (2015)

https://harvardlawreview.org/forum/vol-128/law-enforcements-warrior-problem/
21•bookofjoe•1h ago•12 comments

WASI 0.3

https://bytecodealliance.org/articles/WASI-0.3
191•mavdol04•5h ago•76 comments

"Don't You Just Upload It to ChatGPT?"

https://correresmidestino.com/dont-you-just-upload-it-to-chatgpt/
72•speckx•1h ago•71 comments

If you are asking for human attention, demonstrate human effort

https://tombedor.dev/human-attention-and-human-effort/
1377•jjfoooo4•19h ago•439 comments

Show HN: StackScope – I crawled over 40k indie launches to see what they ship

https://stackscope.dev/
23•datafreak_•3h ago•7 comments

New privacy frontier: Europe eyes crackdown on smart glasses

https://www.politico.com/www.politico.eu/article/new-privacy-frontier-europe-eyes-crackdown-smart...
41•1vuio0pswjnm7•2h ago•24 comments

Show HN: Script to bulk delete Claude chats from the web UI

https://github.com/MatteoLeonesi/bulk-delete-claude-chat
41•ML0037•3h ago•12 comments

How we made hit video game Prince of Persia

https://www.theguardian.com/culture/2026/jan/05/raiders-of-the-lost-ark-hit-video-game-prince-of-...
246•msephton•2d ago•92 comments

Encrypted Spaces An architecture for collaborative applications

https://encryptedspaces.org/
42•_____k•6h ago•5 comments