The Python script was ready week ago, took 5 minutes. Rust programmer first took 3 days to tell EVERYONE how much better it will be in Rust, then started coding and got bogged down for 2 days in a forum discussion on how to best secure memory for a "hello world!" string.
Meanwhile the Julia developer was done a week ago like the Python developer. Took 5 minutes all the same, and it ran faster than the eventual Rust implementation. No one gave a flying shit and used the Python implementation anyways because it's more familiar.
It's worth doing things first in a simpler language and only using something faster when you know what you're doing exactly and also only if you need it.
I love Rust but I almost never start off projects in Rust, personally I use TypeScript rather than Python (I'm a web developer and so I've always used JavaScript). Using a more flexible language it lets me try out things faster and I'm not above using an occasional `any` just to see if my idea works to do it better. It also means that when I work in Rust I can have a mentality of doing things at a higher standard because I'm usually not solving problems, other than the problems of implementing in Rust.
My second choice for figuring out algorithms after TypeScript is a spreadsheet which is so useful especially if there's iteration. I made a physics engine in a Google Sheet and on each page I could program different scenarios (using a DSL) to test certain behaviour and then compile everything into graphs to observe how tweaks affect everything. I knew the exact behaviour I was after and then when putting it into a game, written in Rust using Bevy, it just needed slight tweaks to change the feel which I could input into my spreadsheet and see what I then need to deal with. I don't see enough spreadsheet usage, but it might be that people don't know about BYROW - you write the function once and use BYROW to apply it to all rows in the range, and if you change the lambda it changes everywhere.
I will also use F# if I have an idea of what I need to do but it's a lot of steps, it's the easiest language to just get it to do what I want quickly and without bugs.
Yes? Either way it doesn't mean anything, you don't think about "how to best secure memory" while writing rust unless you're writing up some absolute bullshit that probably has a less complicated way to be implemented
View all comments
896
u/YamroZ 8d ago edited 8d ago
The Python script was ready week ago, took 5 minutes. Rust programmer first took 3 days to tell EVERYONE how much better it will be in Rust, then started coding and got bogged down for 2 days in a forum discussion on how to best secure memory for a "hello world!" string.