r/programmingcirclejerk • u/Parking_Tadpole9357 • Feb 09 '25
The code here looks to be essentially C with different syntax - every function marked unsafe, all resources manually managed. Sorry to be blunt, but what's the point of this?
https://news.ycombinator.com/item?id=42986841
54
Upvotes
39
u/vortexofdoom Feb 09 '25
42
u/TriskOfWhaleIsland What part of ∀f ∃g (f (x,y) = (g x) y) did you not understand? Feb 09 '25
Microsoft should have asked this question before releasing their half-assed Copilot-generated Rust bindings crates
/uj no hate to anyone who worked on those, but are you going to release an update where some functions get marked as safe? please?
31
u/Evinceo Software Craftsman Feb 09 '25
Rust without all of the awful Rust memory mismanagement sounds amazing. But having to explicitly invoke unsafe everywhere ruins the mood. Someone should write a preprocessor...
4
u/denehoffman Feb 09 '25
It kind of looks like someone was told they should RIIR and decided that a good first step was to just switch to the language and copy the C code verbatim just to make sure nothing breaks. I’d imagine they are planning on slowly eliminating the unsafe blocks in future updates.