News for hackers. Stuff that matters.
Re:Can Rust Beat JavaScript in 2023? by wiz21c on Friday April 21, 2023 @09:11AM (#35653198)
I code alone and need performance for my project. I had choice beween C++ which I know a bit of; Go or Rust which I had to learn. Considering that I screw my mallocs and threads in C++ more often than not, I decided to check Rust. I am not disappointed: the safety helps a lot in getting my codebase free of many bugs (rust won't let me be lazy, I have to solve many bugs upfront). Sure the BC is madenning at times, but the support of the compiler allows me to not think too much about what I do and spend time on my business.

Now, on my old PC, the compiler is super slow so I end up prototyping tricky stuff (like maths) in python and then I port it to rust when I feel it's ready.

(my stuff is emulator: no DB, not much GUI but lots of performance, threading, etc.)

Re:Can Rust Beat JavaScript in 2023? by jvanderbot on Friday April 21, 2023 @01:41PM (#35657350)
Not to be too snarky, but malloc really seems out of place in modern c++.
Re:Can Rust Beat JavaScript in 2023? by wiz21c on Saturday April 22, 2023 @11:37AM (#35667619)
yeah, I admit it's been a long time :-)