logoalt Hacker News

you_can::turn_off_the_borrow_checker

46 pointsby strikinglast Friday at 8:31 PM20 commentsview on HN

Comments

tempesttempo86today at 2:18 PM

Arbitrary mention: Crust[0]

[0] https://github.com/tsoding/crust

show 1 reply
extraduder_iretoday at 1:13 PM

Cool idea. I was expecting more than just turn_off_the_borrow_checker in you_can though.

Maybe with time, as more counterexamples are needed for things "you can't just..." in rust.

EFLKumotoday at 1:08 PM

though said for education purpose, keep finding these boundary-pushings playful. I can recall early days arrested by "several ways to access private members in C++" lol

show 1 reply
himata4113today at 1:03 PM

I usually just box it and then Box::into_raw when I need multiple mutable references in a singlethreaded application where there's no deallocation or cleanup has to occur post shutdown.

Pesthuftoday at 2:20 PM

I wonder if this has any measurable impact on compile times.

space_ghosttoday at 1:03 PM

This reminds me of Perl's ACME modules and I'm here for that.

codedokodetoday at 1:06 PM

Macros can secretly add "unsafe" blocks into the code?

show 3 replies
rurbantoday at 2:04 PM

Even more unsafe rust, great!

orpheatoday at 12:35 PM

Disgusting. I love it.