Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Rust from a JavaScript Perspective (blogs.harvard.edu)
30 points by kiyanwang on June 13, 2021 | hide | past | favorite | 9 comments


To learn rust I tried to port a thing I previously made in Javascript. It felt like if Javascript is a straight hallway with booby traps here and there Rust is hallway with huge bank locker doors every few steps.

I felt drained managing lifetimes in attempt to create a factory for different 2d drawing implementations using different libraries and have left it there.


Rust killer application are kernels, device drivers and similar domains where GC is a no-go, anything GUI related is better served with languages using any form of automatic memory management.


That's one of the reasons I feel that games use a scripting language for their UI and event logic and a fast compiled language for the important bits. There aren't too many games I can think of that are UI heavy that don't use a scripting language for it.


This might be the most annoying writing style I have encoutered. The constant interruptions with random pop culture references fall flat every time and just distract from the main topic. It’s like a written version of a YouTube channel with a target demographic of ADHD-addled Zoomers. Even skimming, I couldn’t stand more than four paragraphs of it.


Yeah this reads like it was written by a child that thinks they’re really smart.


The author says “A tongue in cheek walk-through”


I feel alot of js developers could benefit from learning other languages like rust :)


I feel alot of developers could benefit from learning other languages


Yes! The great thing about JS is that it's really flexible and expressive. I spend a lot of time dabbling with other languages and then I love coming back and trying to apply that knowledge to my JavaScript work.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: