frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Rust the Process

https://www.amalbansode.com/writing/2025-12-24-rust-the-process/
30•quadrophenia•3d ago

Comments

epage•1h ago
> It may have been nice to expose some reasonable defaults for code coverage measurements too.

Would love built in coverage support but investigation is needed on the design (https://github.com/rust-lang/cargo/issues/13040) and we likely need to redo how we handle doctests (https://blog.rust-lang.org/inside-rust/2025/10/01/this-devel...).

justatdotin•1h ago
"Fortunately, I’m not that smart." - love that attitude.
saghm•34m ago
> I sometimes feel C and C++ were very clear on where data lives (stack vs heap) and how it’s organized (struct alignment), while Rust seems a little more opaque . I’ve felt a similar way working in Go.

This is interesting to me. I fully agree about this with Go (and in the past I've sometimes seen this make optimizations difficult as in practice it's hard to keep track of heap allocations other than runtime inspection), but I feel like Rust is actually better at C++ than this. Alignment is certainly a different beast, as by default I don't think you can really assume anything about how Rust will lay out a struct (with the workarounds being various `repr` attributes), but in terms of heap allocations, I'd argue there isn't anything as ambiguous as a raw C++ pointer. If you're able to get away with smart pointers all of the time, I could see this being less of an issue, but from my somewhat limited experience with C++ there seem to often be cases where APIs still expect raw pointers from time to time, so I wouldn't expect to be able to look at some random function call in a call graph and know what type of memory it's dealing with in the absence of documentation or runtime inspection.

In Rust, it's a `Box<T>`, `Rc<T>`, `Arc<T>`, `Vec<T>`, or `String`, it's on the heap. If it's not, chances are it's on the stack. There are separate types for the non-owning versions of those types for references (`&T`), slices (`&[T]`), and string references (`&str)`, none of which require heap allocations to create (although they might indirectly refer to heap-allocated data in one of the other types mentioned before). There are probably other types that one might run into that are heap-allocated, but even when dealing with something like indirection from dynamic dispatch, any heap allocations needed to make things work will end up being explicit via something like `Box` or `Arc`. I might just be misunderstanding the point being made here; maybe the author was looking for documentation rather than relying on the types themselves, or maybe they had reason to be concerned about whether the type behind a reference or slice happened to be heap allocated or not, but in my experience, only needing to care about that in the context of when explicitly making a new allocation is a benefit, not a drawback.

jstimpfle•8m ago
In C++, in particular when restricting to a C like subset, I prefer looking at an expression like

    foo->bar.baz
instead of (in Rust and other modern languages that decided to get rid of the distinction)

    foo.bar.baz
For example, the former lets me easily see that I can copy foo->bar and I now have a copy of baz (and indeed bar). In a newer language, it's harder to see whether we are copying a value or a reference.

Replacing JavaScript with Just HTML

https://www.htmhell.dev/adventcalendar/2025/27/
64•soheilpro•1h ago•16 comments

How we lost communication to entertainment

https://ploum.net/2025-12-15-communication-entertainment.html
286•8organicbits•6h ago•148 comments

Why Reliability Demands Functional Programming

https://blog.rastrian.dev/post/why-reliability-demands-functional-programming-adts-safety-and-cri...
41•rastrian•2h ago•19 comments

Dad's Fitness May Be Packaged and Passed Down in Sperm RNA

https://www.quantamagazine.org/how-dads-fitness-may-be-packaged-and-passed-down-in-sperm-rna-2025...
10•vismit2000•42m ago•2 comments

Floor796

https://floor796.com/
565•krtkush•13h ago•72 comments

Project Vend: Phase Two

https://www.anthropic.com/research/project-vend-2
61•kubami•5d ago•19 comments

Gpg.fail

https://gpg.fail
281•todsacerdoti•9h ago•143 comments

Text rendering hates you

https://faultlore.com/blah/text-hates-you/
82•andsoitis•6d ago•25 comments

Rainbow Six Siege hacked as players get billions of credits and random bans

https://www.shanethegamer.com/esports-news/rainbow-six-siege-hacked-global-server-outage/
96•erhuve•6h ago•31 comments

Windows 2 for the Apricot PC/Xi

https://www.ninakalinina.com/notes/win2apri/
98•todsacerdoti•7h ago•22 comments

Show HN: Waycore – an open-source, offline-first modular field computer

35•DGrechko•2h ago•19 comments

Show HN: What 4M posts reveal about going viral on Hacker News

https://hn-ph.vercel.app
12•salebanolow•1h ago•2 comments

immer – a library of persistent and immutable data structures written in C++

https://github.com/arximboldi/immer
16•smartmic•6d ago•6 comments

Clock synchronization is a nightmare

https://arpitbhayani.me/blogs/clock-sync-nightmare/
124•grep_it•4d ago•77 comments

Rust the Process

https://www.amalbansode.com/writing/2025-12-24-rust-the-process/
30•quadrophenia•3d ago•4 comments

Nvidia's $20B antitrust loophole

https://ossa-ma.github.io/blog/groq
343•ossa-ma•8h ago•118 comments

Janet Jackson had the power to crash laptop computers (2022)

https://devblogs.microsoft.com/oldnewthing/20220816-00/?p=106994
230•montalbano•9h ago•95 comments

Show HN: Ez FFmpeg – Video editing in plain English

http://npmjs.com/package/ezff
342•josharsh•17h ago•164 comments

Pantograph: Building a preschool for robots

https://pantograph.com/blog/building-a-preschool-for-robots.html
37•agajews•4d ago•7 comments

Toll roads are spreading in America

https://www.economist.com/united-states/2025/12/18/toll-roads-are-spreading-in-america
128•smurda•7h ago•381 comments

OrangePi 6 Plus Review

https://boilingsteam.com/orange-pi-6-plus-review/
135•ekianjo•13h ago•120 comments

Ask HN: Resources to get better at outbound sales?

156•sieep•6d ago•40 comments

Pfizer ended up passing on my GLP-1 work back in the early '90s (2024)

https://www.statnews.com/2024/09/09/glp-1-history-pfizer-john-baxter-jeffrey-flier-calbio-metabio/
61•rajlego•4h ago•27 comments

7- and 14-segment fonts "DSEG"

https://www.keshikan.net/fonts.html
10•anigbrowl•3h ago•1 comments

They made me an offer I couldn't refuse (1997)

https://jens.mooseyard.com/1997/04/13/they-made-me-an-offer-i-couldnt-refuse/
39•classichasclass•4d ago•26 comments

Say No to Palantir in the NHS

https://notopalantir.goodlawproject.org/email-to-target/stop-palantir-in-the-nhs/
77•_____k•5h ago•6 comments

Richard Stallman at the First Hackers Conference in 1984 [video]

https://www.youtube.com/watch?v=Hf2pfzzWPYE
95•schmuckonwheels•5h ago•14 comments

Mruby: Ruby for Embedded Systems

https://github.com/mruby/mruby
125•nateb2022•5d ago•32 comments

Show HN: Mysti – Claude, Codex, and Gemini debate your code, then synthesize

https://github.com/DeepMyst/Mysti
170•bahaAbunojaim•4d ago•134 comments

How We Found Out About COINTELPRO (2014)

https://monthlyreview.org/articles/how-we-found-out-about-cointelpro/
66•bryanrasmussen•4h ago•34 comments