News for hackers. Stuff that matters.
Re:The Adoption of Rust in Business by LoganDark on Tuesday February 07, 2023 @07:30AM (#34691860)
> It took me probably more like 1-2 months to really understand how to code in Rust. I do not think a typical team of JS/Python devs would be productive in 3 weeks. I think it would be more like 3 months.

Our very first Rust project (to learn the language) was a path tracer that was done (fully functional) in 2 weeks. I doubt it would take a team 3 months to become productive in Rust. There's always more to learn, but "being productive" is quite a low bar if they already know basic programming concepts.

With that said, "typical JS/Python devs" might not even know said basic programming concepts, so maybe you're talking about those? Regardless, 3 months is an extremely conservative estimate.

-Emily

Re:The Adoption of Rust in Business by toyg on Tuesday February 07, 2023 @07:51AM (#34692057)
I cannot hear you over the sound of your massive humblebragging.
Re:The Adoption of Rust in Business by LoganDark on Tuesday February 07, 2023 @08:30AM (#34692455)
I actually decided not to say "maybe we're particularly smart but..." for this reason. (I'm trying hard not to make it "humblebragging".) Regardless of that, we definitely don't feel smart due to ADHD.

Really all I'm saying is that I can't fathom how someone could take 3 months to be productive in Rust, that's a massive over-estimate.

-Emily

Re:The Adoption of Rust in Business by pclmulqdq on Tuesday February 07, 2023 @10:09AM (#34693745)
A lot of people have a different understanding of what "learning a language" means. Your example of a path tracer doesn't show a lot of understanding of the deep parts of Rust (algebraic types, async, etc), while the guy who spent 3 months may have been trying to learn a lot more than just the basics to write a path tracer.
Re:The Adoption of Rust in Business by LoganDark on Tuesday February 07, 2023 @11:10AM (#34694566)
Ah, async is indeed the beast. We haven't really put a bunch of effort into understanding futures and reactors, but we understand them to be state machines (which is unfortunately glossed over by a whole ton of reference material?).

AFAIK it shouldn't take 3 months to pick a crate off the shelf like tokio and use futures effectively, but it could take at least that long to understand them deeply enough to the point where you can make your own reactor from scratch (like tokio) if you're also trying to pick up the rest of the language in parallel.

Most of the two weeks was indeed slaving away at math and not necessarily learning the language better. I think it wouldn't take longer than a few weeks to complete the official book and the nomicon if you're determined to learn the language. And then you'd use the remaining time to get acquainted with the ecosystem... but probably not 3 months of time.

-Emily

Re:The Adoption of Rust in Business by FpUser on Tuesday February 07, 2023 @08:30AM (#34692463)
>"With that said, "typical JS/Python devs" might not even know said basic programming concepts"

If Python / JS is all they've ever used they most likely have gaping holes in regards to many general concepts of computing and some might not be able to grasp those for a loooong time.

Re:The Adoption of Rust in Business by jcelerier on Tuesday February 07, 2023 @09:24AM (#34693118)
A path tracer is a classic classroom project example. I really do not think knowing how to write one is even remotely related to "knowing a programming language" at least in the way it's expected in a professional setting
Re:The Adoption of Rust in Business by Thaxll on Tuesday February 07, 2023 @10:47AM (#34694275)
Pather tracing / ray tracer are very easy to implement because it requires basic programming concept. It's all about the math not really programming. You can copy paste from one language to another.
Re:The Adoption of Rust in Business by pjmlp on Wednesday February 08, 2023 @04:48AM (#34706129)
Indeed, in fact the raytracing weekend is one of my hello worlds to try out new languages.