HELLO I KNOW WHAT YOU'RE THINKING
"I could really use a 40 page treatise on uninitialized memory, move semantics, and destructors. Hopefully it's an absolute feverdream."
DO NOT WORRY, I HAVE CREATED IT FOR YOU
gankra.github.io/blah/deinitial
YOU ARE WELCOME
NOW I MUST COLLAPSE
Conversation
made me look at boost::tribool, saw boost.org/doc/libs/1_59_
and, entirely predictably, immediatelly thought of:
BOOST_TRIBOOL_THIRD_STATE(FileNotFound)
2
7
oops forgot about the Swift COW thing
if anyone wants it in Rust, you're in luck!
Rc::make_mut is your friend, have fun COW-ing (mooing?)
Lean4 liked that trick so much they built an entire functional programming language (well, a proof assistant) on it: leanprover.github.io/talks/IFL2019.
2
5
Doesn't Koka use a similar trick? Or am I mis-remembering?
sorry, sounds right: microsoft.com/en-us/research
heh, they even mention Lean4:
> In particular, we build on the pioneering reference counting work in the Lean theorem prover [42],
I must've forgotten about it, since I've found logs where was clearly telling me about it, lol
1
2
Nice! Yeah was checking as I've not really taken the time to understand it in my perpetual distraction. Seems neat though. koka-lang.github.io/koka/doc/book.
1
Show replies


