pull down to refresh
231 sats \ 6 replies \ @TonyGiorgio 1 Aug 2023 \ on: SN post-mortem: crazy rewards meta
People have been criticizing my joke that we won't even let Paul do any math in the frontend, it has to be converted to rust web assembly and added there.
This is why. JavaScript no math.
You can mangle numbers pretty easy in Rust too. Rust and C++ may be called "static typed languages" but they are a lot less static than Go. You really have to go out of your way to muddle strings, 64 bit values and big integers in Go. In rust you can easily do it with a macro invocation you forgot you had in there.
reply
Which one is it?
a) You have personal experience with muddling types in Rust
b) Heard war stories from other Rust programmers
c) Assumptions based on the existence of a macro system
reply
Yeah idk what this guy is going on about, never heard of someone fucking up an equation in rust.
reply
We ordinarily do math in postgres stored procedures for this reason. It throws on under/overflow ... this is the one exception and I fucked up ... not sleeping enough and trying to get too much done too fast.
reply
🫂🫂🫂
reply
This is why prioritise native apps over web apps. Javascript's loose typing will make you lazy.
reply