Rust makes me feel dirty whenever I allocate memory from the heap or use mutable state
-
-
@bascule Shouldn’t RAII make heap allocations less of an issue? -
@jimmycuadra the whole raison d’etre of RAII is use the stack -
@bascule Hmm, I must read more.., -
@jimmycuadra Rust’s lifetime system is what makes heap allocations pretty cool, albeit slower thatn zero-allocation. “Smart-pointers” -
@bascule My understanding was that Rust's special sauce for heap memory is that it's auto-freed when it goes out of scope, without GC. - End of conversation
New conversation -
-
-
@bascule OCaml is like that too. -
@EdgarArout OCaml is probably the language I'd learn if I weren't learning Rust ;) -
@bascule@EdgarArout any reason why OCaml over Haskell? -
@alfiedotwtf@bascule Because Haskell is harder to reason about, the toolchain for OCaml is better, and doing side effects is easier. -
@EdgarArout@bascule fair enough. I've never looked at it before as I assume OCaml vs Haskell is like Python vs Perl
End of conversation
New conversation -
-
-
@bascule What could go wrong broThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.