News for hackers. Stuff that matters.
Re:Rust Is the Future of JavaScript Infrastructure by davnicwil on Thursday November 11, 2021 @03:25PM (#29192692)
I really like how javascript tooling appears to have followed the make it work -> make it good -> make it fast pattern, which is pretty much always the correct way to build software.

It is reassuring that we have actually got the feature sets and interfaces correct, since we are now, at last, turning to making stuff really fast. If we had started with speed being the goal of tools, I'd wager they would have been nowhere near the standard they are today in those regards.

Re:Rust Is the Future of JavaScript Infrastructure by verdagon on Thursday November 11, 2021 @06:46PM (#29194747)
I've discovered a similar pattern, when I look at successful projects in my past. I prioritize "working", then "solid", then "fast" where it's needed.

Ironically, it's this principle that makes me look to non-Rust languages; I find that Rust's borrow checker forces us into faster but less flexible patterns up-front, and incurs a lot of refactoring friction later.

It's because of this that I'm interested in the PL space, and excited about upcoming languages like Lobster and Cone.

Re:Rust Is the Future of JavaScript Infrastructure by fee1-dead on Saturday November 13, 2021 @12:32AM (#29207687)
That's just.. not how Rust works. I assume that after being frustrated by the Rust borrow checker, you chose to use easy to write wrappers like `Arc` and `RefCell`. I think it is something that beginners often do.

I wouldn't rewrite my project to some other language before I know how it is going to look like in the language. I had to be somewhat confident. If you find yourself frustrated by Rust's borrow checker, that tells me that you are not yet ready to port a project to Rust. You don't have the "Rust mindset" yet.

Re:Rust Is the Future of JavaScript Infrastructure by verdagon on Saturday November 13, 2021 @08:45PM (#29214804)
You make a lot of assumptions, and dismiss my valid opinion as uninformed. I would say that's arrogant and offensive, but I'm sure you meant well.

More to the point, in my many years of experience with Rust, I've found that if you're working on a stateless project, or a small project, or have a very clear picture up-front, you can know what data you will need to centralize and split ahead of time, and things will go smoothly. However, that's rarely the case in the parts of industry I've been in, where we need to prototype, refactor, and build out our programs constantly. In these cases, Rust is slower to work with compared to other languages, because the borrow checker makes our APIs brittle, causing refactors' blast radius to increase.

I'd be curious to hear if your architecture experience with large Rust projects might be different, I'm always open to more data points.

Re:Rust Is the Future of JavaScript Infrastructure by c7DJTLrn on Thursday November 11, 2021 @03:36PM (#29192818)
>make it good

Wait, when did that happen?

Re:Rust Is the Future of JavaScript Infrastructure by layer8 on Thursday November 11, 2021 @03:38PM (#29192851)
Even "make it work" is debatable.
Re:Rust Is the Future of JavaScript Infrastructure by zeroxfe on Thursday November 11, 2021 @05:19PM (#29193973)
I'd say when ES6 landed. I used to hate JS, but since ES6, I think it's a pretty good language for building frontends.
Re:Rust Is the Future of JavaScript Infrastructure by LordDragonfang on Thursday November 11, 2021 @11:34PM (#29196340)
ES6 is indeed pretty good, all things considered, but GP specified javascript tooling, which, uh, could still use some work before it's considered truly "good".
Re:Rust Is the Future of JavaScript Infrastructure by spartanatreyu on Thursday November 11, 2021 @08:47PM (#29195476)
I'd say ES5 made it work and ES6+ made it good. I think by the time the Pattern Matching, and Record & Tuple proposals are completed and implemented it'll go to fast.
Re:Rust Is the Future of JavaScript Infrastructure by Already__Taken on Thursday November 11, 2021 @04:47PM (#29193615)
to be fair they didn't say it has completed the progression through that program.
Re:Rust Is the Future of JavaScript Infrastructure by te_chris on Thursday November 11, 2021 @03:41PM (#29192892)
This got a genuine laugh from me. Stockholm syndrome is a prerequisite for writing JS
Re:Rust Is the Future of JavaScript Infrastructure by jakequade on Thursday November 11, 2021 @08:38PM (#29195421)
I like how you've followed the delusional -> delusional pattern.