volkerwirsing@feddit.org to Technology@lemmy.worldEnglish · 5 days agoRust is Eating JavaScriptleerob.comexternal-linkmessage-square103fedilinkarrow-up1328arrow-down121
arrow-up1307arrow-down1external-linkRust is Eating JavaScriptleerob.comvolkerwirsing@feddit.org to Technology@lemmy.worldEnglish · 5 days agomessage-square103fedilink
minus-squaresugar_in_your_tea@sh.itjust.workslinkfedilinkEnglisharrow-up9·4 days agoGo is fine, but it has its flaws. I prefer Rust because: memory safety is a compiler check, not a runtime check, so you catch issues earlier locks contain their values, so you can’t accidentally do anything unsafe no nil (() is semantically different), so no surprises with contracts everything is an expression, which lends itself really well to FP concepts actual dependency management at 1.0 pretty much no runtime, so calling from another language is super easy targets WASM and microcontrollers no pointers (not exactly true) It takes longer to learn, but I’m about as productive with both now.
minus-squaresolrize@lemmy.worldlinkfedilinkEnglisharrow-up1·4 days agoThanks, “Comprehensive Rust” is readable so far, though I haven’t gotten to the “fun” (memory management) parts yet.
Go is fine, but it has its flaws. I prefer Rust because:
()
is semantically different), so no surprises with contractsIt takes longer to learn, but I’m about as productive with both now.
Thanks, “Comprehensive Rust” is readable so far, though I haven’t gotten to the “fun” (memory management) parts yet.