Тёмный

Prime Reacts: Building a Startup in Rust; I won't do it again 

ThePrimeTime
Подписаться 589 тыс.
Просмотров 227 тыс.
50% 1

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 438   
@ze2like
@ze2like Год назад
I tried and failed to build an entire startup in Rust... I created an array of 1000 Customer instances but no money went to my bank account.
@ThePrimeTimeagen
@ThePrimeTimeagen Год назад
damn
@lucaslopes1260
@lucaslopes1260 Год назад
Maybe you forgot to implement the pay trait on the customer struct.
@RenderingUser
@RenderingUser Год назад
​@@lucaslopes1260 I don't think it's possible The customer may have the broke trait
@brutetriple8637
@brutetriple8637 Год назад
did you forget to call `.collect()` to actually collect it from the iter?
@RenderingUser
@RenderingUser Год назад
@@brutetriple8637 sadly, the IRS called .collect() on iter first 😔
@SebastianSipos
@SebastianSipos Год назад
IMO the dude who wrote the article and his team were slowed down because they were trying to build a startup in rust while also learning the language.
@bug3937
@bug3937 Год назад
Literally this.
@3DArea
@3DArea 4 месяца назад
Is it not how it is usually done?
@flarebear5346
@flarebear5346 3 месяца назад
Why would you build a company around something that you are not good at?
@spyseefan975
@spyseefan975 3 месяца назад
@@flarebear5346 how do you protect an idea for years while you learn something new?
@richardgeddes630
@richardgeddes630 Год назад
A mate who programs in C/C++ tried Javascript and was confounded by the plethora of values in a truth table. His final approach was to use === and its variants. However, there so much code out there that depends on == and its variants, that you're force to cope with it.
@Flameandfireclan
@Flameandfireclan Год назад
Js stands for: “Just Stop”
@jonaskoelker
@jonaskoelker Год назад
> confounded by the plethora of values in a truth table. I'm mainly confounded by the fact that == is not an equivalence relation. Here's stuff I expect from _every_ equality operator: (a) x == x for all x (b) if x == y then y == x (c) if x == y and y == z then x == z (This is the definition of an equivalence relation.) I remember that JS violates at least one of these but I can't remember which one(s) or how many. Other confounders: there is no simple 'add' operation, there is only "coerce my arguments and then add whatever the results were". See also Gary Bernhard's "Wat" talk. I could go on.
@sacha9593
@sacha9593 9 месяцев назад
Is there any JS dev who still use == instead of === ?
@richardgeddes630
@richardgeddes630 9 месяцев назад
@@sacha9593 There's plenty of legacy code that relies on == . That's the reason why == won't be deprecated any time soon.
@sacha9593
@sacha9593 9 месяцев назад
@@richardgeddes630 I was talking about writing new code with ==, not about deprecating the feature.
@trebabcock
@trebabcock Год назад
It definitely took time to become efficient, but I absolutely love writing a separate backend and client. Go for backend, Vue for frontend. Keeps me sane.
@trebabcock
@trebabcock 11 месяцев назад
@@darthvader1191 I mean, I don't choose what I use at work, but everyone can choose what they use for side projects.
@daphenomenalz4100
@daphenomenalz4100 3 месяца назад
I love rust, nd will never stop loving it. But man it takes time to do almost anything, so I started using go. It is also fun like rust, nd atleast I am able to do stuff with time constraints 😂
@michaelz8260
@michaelz8260 Год назад
"Rust provided us with an incredibly solid foundation" Never again...
@ThePrimeTimeagen
@ThePrimeTimeagen Год назад
haha
@Originalimoc
@Originalimoc Год назад
What happened?
@Holobrine
@Holobrine 8 месяцев назад
@@Originalimoc The Rust Foundation
@creativecraving
@creativecraving 7 месяцев назад
😂 Well, a solid foundation is quite antithetical to a startup, so that's not surprising.
@wadecodez
@wadecodez Год назад
Ah yes a planned rewrite on the client’s time that will go smoothly.
@ThePrimeTimeagen
@ThePrimeTimeagen Год назад
classic rewrite
@abdelhaksaouli8802
@abdelhaksaouli8802 Год назад
man why did not prototyped with python. if things work go on full performance mode and re-write it with rust ?
@shaunkeys7887
@shaunkeys7887 Год назад
I find that writing in Rust dramatically increases my productivity during prototyping when using “unclean” rust (clones, extra loops, Rc, etc). When you’re still figuring things out, the “fearless refactoring” principle is invaluable, because I don’t have to throw out the entire codebase or spend hours or even days trying to figure out why the connection between these two modules no longer works. Rust Analyzer tells me *everything* and walks me through my execution and information flow, leading me directly to the problem. Every bit of time you lose writing slightly better code is immediately gained the moment you have to change a lynchpin module in your prototype
@sk-sm9sh
@sk-sm9sh Год назад
Have you been living under a rock? Static languages had been doing this for more than 30 years. If until now you chose to go with Perl-like philosophy of pulling strings together and "hoping it works" it's kind of your own fault. And even in most popular languages that didn't used to have static checking they got it solve. For example in case of javascript - google closure compiler enabled (if you learned how to use it) writing statically checked and sound code about 15 years ago - long before even typescript arrived.
@zzzyyyxxx
@zzzyyyxxx Год назад
Exactly, just clone where required, get product market fit, then optimize. The difference with TS is while it may be fast at first, you literally can't optimize it later on (perhaps when your AWS credits run out after a year which is usually how long they give you them for) simply due to TS being garbage collected.
@cherubin7th
@cherubin7th Год назад
I stopped prototyping in python because I became slower in it than Rust. I learned Rust after years of using unhappily Python. I am just wired for Rust I guess.
@zzzyyyxxx
@zzzyyyxxx Год назад
@@cherubin7th Same, and the frustration for Python begins from the toolchain itself. I was trying to set up a new project for some AI stuff and it was like pulling teeth compared to a simple "cargo new"
@rostislavzhuravsky3342
@rostislavzhuravsky3342 Год назад
One point that I think is really important as well is how many developers you can choose from when it comes to hiring and their cost. Usually Rust isn’t their first language, which means that a developer is likely to be a senior.
@jk-pc1iv
@jk-pc1iv 4 месяца назад
But if you hire for less seniority and js to be quick on your feet, do you re-hire once you decide it’s time to start building a solid foundation.. 🤔 everything will take even longer then
@not_ever
@not_ever Год назад
This doesn’t make sense. I can’t wait for the, “I thought creating a start up in some other language and rewriting it in Rust would be a time saver but I was horribly mistaken” article. There so obviously are better reasons not to use Rust, I can’t help but believe this is Rustacean reverse psychology trolling.
@ThePrimeTimeagen
@ThePrimeTimeagen Год назад
yes, the idea of writing a startup and then rewriting it in rust once you find your direction sounds like a real bad idea. it makes no sense (i should that out in this)
@not_ever
@not_ever Год назад
@@ThePrimeTimeagen yeah I heard you shout out. I agree with all your takes, except the Go thing, since thankfully I know nothing about Go. It was an interesting video about a terrible article. I just have a hard time believing the article was this awful by mistake.
@echoptic775
@echoptic775 Год назад
And people dont usually do that, but keep expanding using nodejs
@Cookiekeks
@Cookiekeks Год назад
What are the obvious reasons not to use rust?
@not_ever
@not_ever Год назад
@@Cookiekeks I said obviously better reasons than the ones given. Not obvious reasons not to use Rust at all.
@HotakaPeter
@HotakaPeter 11 месяцев назад
I write in Erlang. I have two uses for Rust, performance critical code, and low level interfacing. For proof of concept and quick prototyping Erlang is great.
@mario7501
@mario7501 Год назад
Fully agree with you "get it done first" mentality. Optimising before you have anything useful not just makes you waste time on low value things, it also burns you out because you don't really have anything to show for a very long time. Writing rust feels like writing a decluttered version of modern c++ which doesn't carry decades of baggage. It's truly amazing and if you look at where modern c++ is going for example it feels like they are trying really hard to be more like rust. The only thing I miss when writing rust is more flexible operator overloading and function overloading in general. Generics are a bit lacking compared to c++ as well, but I guess that's where macros come in. Something I still have to take a closer look at
@robrick9361
@robrick9361 Год назад
C++ is always trying to be more like everything..............which is the problem. Gotta get every damn feature into the language. But the problem is that every standard does have some stuff that I like. So I guess I'm part of the problem.
@dealloc
@dealloc Год назад
With regards to the two modes of Rust. One thing to consider here is idealistic vs. realistic. Ideally we would write things fast and make it nicer later. But in reality this is rarely the case, especially considering you're also building a startup. Let's say you wrote all your business logic with this mindset and you get to a point where things take up a lot of memory and you end up with slow hot paths. During profiling you recognize that the problem is that you're cloning things and passing them around. To avoid this, you now need to start pass references which means you're going to deal with lifetimes. Depending on the scale of your project, this can be a massive undertaking and not easily done in isolation. Anything that uses those APIs will also have to deal with lifetimes. That said, I love Rust and personally also take the approach to write quick and dirty code to get an idea, then later, once I've found the right approach, rewrite it with a nicer API and error handling. However these projects are _tiny_ compared to a lot of startups.
@ThePrimeTimeagen
@ThePrimeTimeagen Год назад
i do this in small scopes though. i am totally on your team with this. I get the smaller chunk well thought out, then move into the more "beautiful / idiomatic" code. I would never do a project like this. I always do what i call shitty / not shitty coding :)
@Luxalpa
@Luxalpa Год назад
The advantage of using Rust here is obviously that you probably never actually optimize your code because it's fast enough from the get-go, while in garbage collected languages we need to optimize the hotpaths pretty much always as the GC makes things very slow. Also another thing I love about Rust is that you know while you're writing the code how to optimize it. Like, when you put `clone` everywhere you can immediately write the todos, and also when looking at rewrites later, you can easily find the places where you used `Rc`, `unwrap`, etc, because these things are all explicit in Rust.
@dealloc
@dealloc Год назад
​@@Luxalpa That depends on what you're doing. Clone doesn't always mean that memory will be allocated-it may very well be optimized away; it depends on what happens at runtime, over time, as you scale. Rust doesn't automatically make all your worries about memory leaks and CPU loads dissapear. Some things just cannot be optimized away by the compiler, and others may require a different approach to prevent these types of issues which can cost $$$ if you're not careful.
@doxologist
@doxologist Год назад
What I've started doing is creating my own boilerplate framework, where I define a skeleton I'd use for almost any project, built on top of existing packages e.g: REST (Actix), DB (sqlx), Errors (thiserror + anyhow), Integration Testing (bespoke framework), MQ (lapin). This helps me iterate really quickly since dev-processes can be easily documented, and we don't need to think much about the underlying technology, just write the business logic (endpoints, queries, etc). Once the startup fails we just move along with the same skeleton :) Quick.
@bug3937
@bug3937 Год назад
Sounds good, would it be possible to see a repo of the basic skeleton starter?
@jk-pc1iv
@jk-pc1iv 4 месяца назад
Yeah share it 😊
@nandans2506
@nandans2506 Год назад
Its about libraries and community for me, typescript/ golang community, packages and libraries are so vast that there's very little custom things you need to build and get most things done fairly easily. This is very important for early stage startups with very limited resources.
@Cookiekeks
@Cookiekeks Год назад
Isn't that true for rust too? There are tons of crates out there
@Luxalpa
@Luxalpa Год назад
I found Rusts ecosystem way more mature than javascripts. The main thing is that I don't have to dive through weird docs or simply no docs at all and I don't have to deal with monkeypatching etc. The Rust crates just have all those methods and you just immediately know if they are fallible, if they can return None, what kind of types they expect as parameters, etc. With any new JS library I first need to learn how to actually use it by trying different things because even with Typescript typings, they are very often inaccurate and very hacky.
@TheMrKeksLp
@TheMrKeksLp Год назад
Rust's ecosystem might not be as big yet but the libraries are almost universally much higher quality than any other ecosystem I have seen
@rednafi
@rednafi Год назад
These language wars are so funny to see when you've worked in multiple successful startups that became successful writing their products in Django, Laravel, Node.
@tomaszn9201
@tomaszn9201 9 месяцев назад
Actually it is completely bullshit. Over 50% of the most successful startups started with Python backends: google, youtube, dropbox, spotify, instagram, pinterest, uber, tinder, stripe, reddit. Rest started with PHP, java, erlang. Startups biggest disaster is hiring javascript full stack developer...
@rodreiser
@rodreiser 9 месяцев назад
@@tomaszn9201 source: my head
@joshuaokunola6261
@joshuaokunola6261 7 месяцев назад
​@tomaszn9201 node just came into the picture in 2009. Most of these companies u mentioned are older than fullstack js itself.
@rodreiser
@rodreiser 7 месяцев назад
@@joshuaokunola6261 yes, and they all have nodejs api's as well.
@tomaszn9201
@tomaszn9201 7 месяцев назад
@@joshuaokunola6261 Give me the list of very successful companies started with nodejs.js . Nodejs is is red flag for VC the same like TDD or 100% coverage
@kenchilton
@kenchilton Год назад
I suspect everyone who tries these startup efforts (which in some ways are like running and tying your shoelaces at the same time) regrets decisions they made and thinks that the grass would have been greener if done another way. However, every way of doing it will be wrong in some way - that is (unfortunately) the nature of the beast and one reason why not everyone can do it. My experience is to lean toward processes that produce results that you can live with forever. For code, every line you invest work in can be one that will be in the code base when it ships. Yes, it is an investment in your future, and the cost now will reap rewards later. The more you can do to make the right investments, the better. Yes, the customer may require changes, but what does not change is closer to shippable, even if not perfect. If you want the product code in Rust, hire coders who know Rust and write it in Rust. And please, stop writing _anything_ in Javascript. 😂
@sacha9593
@sacha9593 9 месяцев назад
"My experience is to lean toward processes that produce results that you can live with forever. For code, every line you invest work in can be one that will be in the code base when it ships. Yes, it is an investment in your future, and the cost now will reap rewards later. The more you can do to make the right investments, the better" For most startups this looks like a terrible advice. It depends of course of the kind of startup* you want to build and the kind of money you will be able to raise or invest at first but for the typical reasonably small app/website/software you will probably have at the beginning: few customers, little availability requirements, no need for performance, not enough money to hire the kind of developers you would like to have, potentially quite a lot of change to do all the time (potentially many full pivots when you will drop most of your company's code)... Yes if you are successful you may run into scalability/technical issues later because of this strategy, but by then you will have the money, people and experience to handle them.** By priority: - Choose a language that many people use in your domain or location - Choose a language you are confortable with (if you are the tech lead) - Choose a well established language (not a recent one) - Choose a still relevant language (a language that it still widely used for new projects) - Choose a language that allow fast iterations - Choose a language that is junior friendly (if you don't have the money to hire seniors) Don't be fancy if you don't really have too. *Of course if your startup launch satellites the problem is not exactly the same. **The scalability issues tends to be overblown: GitHub is still a Rails monolith, using a language notoriously slow and a framework that allows fast bootstrapping but is known to be difficult to scale, and it works fine. (Not that I would recommend Rails nowadays.)
@dadlord689
@dadlord689 8 месяцев назад
Many old projects have died and have burned all the money they made in attempt to get rewritten. This was the reason some authors have wrote books about design patterns. So having money in your pocket today is not saying you will keep them. And so the project planning is indeed a big thing. The scalability and flexibility are essential. Unless you can just sell the product and forget it (like a mobile game or just a single player one). And so I would say that architecture is far more important than language. If you can't plug/unplug stuff without resetting the whole thing - what are you even complaining about?
@orterves
@orterves 10 месяцев назад
8:56 it's true, the type system is a real draw of Rust - sum-types are massively underrated and I wish more developers were willing to put in the effort to understand why. I think the biggest benefit from Rust is how it has combined multiple concepts into one great language (with a few missteps to be fair, like Async), it has all you need to build solid, reliable, maintainable systems for any purpose.
@arturfil
@arturfil Год назад
I know this channel is very pro Rust and I have tried Rust myself and I like it (dont' love it) BUT for rapid prototyping and also having a good dev experience and be able to train and hire I do find Go very easy to choose as a language. For me, in terms of syntax, has some similarities to typescript but obviously has a lot more features once you get to know the ins and outs and I would feel that it would be a good language to choose, to build a startup.
@pascualsu
@pascualsu Год назад
I totally agree. I really like rust but I doubt I could ever be as fast at prototyping something as I currently am in go
@peter9477
@peter9477 Год назад
​@@pascualsuFor me the jury's still out on that question. It feels like the only reason I'm not producing working prototypes in Rust as fast as I can in Python is my relative unfamiliarity with the right libs. Sure, I can write lines of code faster in Python, but then I need to test/fix/test/fix and deal with unexpected runtime failures because I was a bit too fast and sloppy. With Rust it goes a little slower up front but then just works. And when I need to refactor (mandatory when prototyping) with Rust it's trivial and with Python I'm back to test/fix/test/fix. So once I'm more comfortable with the right Rust crates I now expect to go faster with it than with Python even in the prototype stage.
@__jan
@__jan Год назад
Seeing the progression of Prime's opinions on Rust as he learns the language more has been interesting. At first sceptical, just dabbling in it a bit, still under the belief that other languages are just more productive and the safety/performance are not good enough to offset the supposedly lower productivity. Then as you start using it a bit more for more involved projects, those belief systems kinda fall apart when you realise you're actually just as productive in Rust, but you also get all the other benefits. Suddenly it seems like Rust has no downsides... why isn't everyone using this thing?!?! And now you're a full-on Rust propaganda machine. It turns out that a well-thought out static type system (traits and enums with pattern matching) combined with best-in-class tooling (cargo, rustfmt, clippy, rust-analyzer) is such a massive productivity boost that even with the lower compile times and "type juggling" you still end up churning out blazingly fast code blazingly fast. Last step is realising that the language is actually kind of incomplete and there are still tons of rough edges. However, seeing the steady progress without compromising on the core values of the language means it's only going to get better, and the future is bright. :)
@ThePrimeTimeagen
@ThePrimeTimeagen Год назад
:) i like this answer
@roblesrt
@roblesrt Год назад
Prime's tries things in Rust, so you don't have to.. err so you get better insights in Rust. Thanks a lot Prime for sharing.
@SumoCumLoudly
@SumoCumLoudly Год назад
Rust analyser is not best in class, it's bloated and slow. Cargo is great, altho compile times are a joke. As someone who doesn't shoot myself in the feet, and who doesn't have any issues whatsoever with memory management, Rust doesn't really appeal to me. The only time I'd ever use Rust is if threre is a better library written in rust compared to the cpp version. This rarely happens.
@neildutoit5177
@neildutoit5177 Год назад
@@SumoCumLoudly what's your secret for memory management?
@fulconandroadcone9488
@fulconandroadcone9488 Год назад
@@SumoCumLoudly say what you will, you almost never work alone and the amount of gunshot wounds I saw was immeasurable in js, you might be good but if language doesn't allow bad things every one will be good.
@richardgeddes630
@richardgeddes630 Год назад
The problem with using Rust or any other language sparingly, is just that. You won't become productive by "timid" programming. When you code, day-in and day-out, with a particular language, you become productive with it. Stick with it, the "muscle memory" will kick in.
@___gg421
@___gg421 Год назад
Always find it strange when people try to choose the right language for a project when the right language is the one you know well.
@fiskegalendbpk
@fiskegalendbpk 8 месяцев назад
I built a million dollar app in typescript, now all my dependencies keep deprecating every two weeks, what do i do? All my friends say I should refactor to a “real” language, but I can’t hear them over my soy latte and M1 ARM chip…
@rammrras9683
@rammrras9683 Год назад
I read that article one week ago and I didn't understand why he wouldn't recommend or use it again from the beginning. It's just one basic downside and a lot of great features expecially for his startup that seems to be around safety logins or something
@georgehelyar
@georgehelyar Год назад
I don't think writing it in one language then rewriting it in another language is a good idea for start ups anyway. You start, hire a few language X devs, get something working, then tell them to throw that away and rewrite in language Y, which they are probably not as familiar with. In reality these early decisions will stay with you for a long time so start as you mean to go on.
@Luxalpa
@Luxalpa Год назад
Exactly. I've been in 3 startups so far and they all suffered from this same problem: a few years after the initial launch of the product, their code is in very messy state. They don't even want to switch to Rust because all their devs are familiar with JS, their code base is far too large to change anyway, and it's so unmaintainable that even small changes take weeks to complete. Like, I know the Rust compiler is quite slow, but looking at how long some of these Typescript projects take to compile in the CI given their rather medium size, it's crazy.
@syzore2
@syzore2 Год назад
I think he meant *Above and Behind the scenes* , which would be like above and beyond but behind the scenes in such a way that you don't event notice it..
@alpsavasdev
@alpsavasdev Год назад
Love your thoughts. Very informative too. Thanks for these videos.
@ducksies
@ducksies Год назад
match is very common across post-ML functional programming languages
@marusdod3685
@marusdod3685 Год назад
tldr: they were more in love with the language than the product they were building
@RedHandedBug
@RedHandedBug Год назад
This video gave me the inspiration to make a startup in Rust.
@ThePrimeTimeagen
@ThePrimeTimeagen Год назад
rewrite rust in rust
@wlockuz4467
@wlockuz4467 Год назад
@@ThePrimeTimeagen Isn't the Rust compiler self-hosted? so technically its already writing rust with rust.
@cherubin7th
@cherubin7th Год назад
@@wlockuz4467 Rewrite it again and again in Rust. XD
@shivamjhaa
@shivamjhaa Год назад
"When you are building a product, boring is okay"
@pangolinSoftware
@pangolinSoftware Год назад
I like Go error handling. It does make the code a bit more verbose, but it's very straightforward, like all other things in Go
@jasonwhite5578
@jasonwhite5578 Год назад
Yes, sir. The error handling model in Go forces the programmer to handle them, it provides transparency and is definitely not a weakness of the language.
@CuriousSpy
@CuriousSpy Год назад
erm... No
@mohdsalmanansari5992
@mohdsalmanansari5992 Год назад
no
@_slier
@_slier Год назад
the most shitty error handling in the universe..
@avithedev
@avithedev Год назад
Agreed
@BlurryBit
@BlurryBit Год назад
IMO it should be a case per case thing to decide the tech. Not every startup (heck, not two startups even if they are selling the same thing) are the same. Money, team, management are different. Even the customers can be different for different businesses even if they are offering the same thing (depending on what audience they are targetting). Don't Deny or Accept a tech just because someone told you to. :)
@bsmithril
@bsmithril Год назад
I come from a place where I have no idea even remotely what "line didn't live long enough" could be referring too. I can see it being a good example of the compiler learning curve.
@PouriyaJamshidi
@PouriyaJamshidi Год назад
Nim seems to be a better option than Go. It has a better and optional GC, syntax, features and more mature imo.
@lhd7105
@lhd7105 Год назад
Hmmm has anyone written a guide/book that essentially lasso's together all the techniques that one can employ to rapidly prototype with Rust? And then in the advanced chapters show how to refactor the "dirty rust" code to something respectable. Maybe talk about guard rails or bookmarking code that are "dirty rust" so that you don't leave them accidentally behind.
@highlyevolved4977
@highlyevolved4977 Год назад
For me, the biggest negative for rust is actually that it’s not statically compiled. I love everything else about it..
@Cookiekeks
@Cookiekeks Год назад
What does that mean? Sorry I'm new to this.
@Luxalpa
@Luxalpa Год назад
It is statically compiled.
@AshleySamLeslie
@AshleySamLeslie 11 месяцев назад
The best part is, almost 90% of the "pro's" and "reasons" to use rust, exist in Java, except that Rust is more performant due to absent layer of interpreter. So, as a Java developer, I am actually pretty happy here and have plenty of jobs to choose from :D And another point is... Java is actually very good nowadays and GC have been improved dramatically.
@MrVeps1
@MrVeps1 Год назад
I agree wholeheartedly that postponing is expensive. There's always something new to add, unfucking old mistakes that still aren't a huge problem will always just help you sustain your current revenue flow. Suddenly, you'll find yourself in your tenth year of your two-month refactoring project wondering why people won't leave you alone to focus on fixing ancient code. Technical debt is a real thing, and when it hits, it hits hard.
@BennyDeeDev
@BennyDeeDev Год назад
I would love to use Go, but everytime I do, I just hate how much boilerplate code is needed to write some small task like adding a query to my Url. Then I just quietly go back to my TypeScript.
@abhisekde6841
@abhisekde6841 9 месяцев назад
I am building a product in my spare time in Go. I just wish Go had enums out of the box.
@u9vata
@u9vata Год назад
Why I choose to stay with C++ instead is because for me its just so much faster to develop. Rust I find more beneficial in bigger teams where code review would not scale well anymore... People also misunderstand why people use C++: I don't give a shit that I can shoot myself in the foot, I give a shit for zero cost abstrations that are FAST TO WRITE. That's all. This is why C++ and RUST live together and not one over the other because the reason why one picks up a tool is actually totally different. To be honest more web people pick up rust than C++ people I would say.
@orychowaw
@orychowaw Год назад
Sounds a lot like they decided to use Rust for their startup because they heard good things about it, but where not proficient with it. So they had to learn the language at the same time as building their value. IMHOP a) they would have been happier with using a language/tech stack they were already comfortable with and b) now that they are familiar with Rust it will be easier to use for a new startup...
@TheEvertw
@TheEvertw Год назад
5:00 - This comment shows that he was both starting a new company AND becoming acquainted with the language Rust. NEVER start a company on a language you are not deeply familiar with. You can not afford the additional risk.
@MarcosVMSoares
@MarcosVMSoares Год назад
Elixir you don't need k8s, it's faster to write even than JS, Ruby, GO etc because it's no OOP and not strongly type. And you have case/1 instead of match. And don't forget too, sqlx it's amazin but ecto ... and you have sandbox mode when testing.
@zzzyyyxxx
@zzzyyyxxx Год назад
Elixir is kinda the worst of both worlds to be honest, no static types means there will always be some bug or another, plus not as fast as TS, much less Rust.
@MarcosVMSoares
@MarcosVMSoares Год назад
@@zzzyyyxxx not fast as TS? are u crazy? Static type dont save you from bug, is much better to have good testing for that propose.
@zzzyyyxxx
@zzzyyyxxx Год назад
@@MarcosVMSoares hahaha, static typing doesn't save me from bugs? Good one, I had a good laugh. Manual testing is in no way a substitute for something I can have the computer do automatically, like why would I manually write out data type checking tests? Waste of time (not other types of tests though of course) And yes, Elixir is not as fast in runtime as TS which when transpiled to JS runs on V8 and its very fast
@MarcosVMSoares
@MarcosVMSoares Год назад
@@zzzyyyxxx ok with you say so ^^
@narekasadorian
@narekasadorian Год назад
i think the article should be renamed "building a startup in rust while learning rust" if you already know the language, you can move really quickly...
@theplanebrain
@theplanebrain Год назад
I enjoyed your prototyping examples using “clone”. It’s a great point.
@benwilcox1192
@benwilcox1192 Год назад
Anyone notice that when Prime highlights text, he always leaves out the first and last letter from the selection? 7:33 9:24 lol
@herkulessi
@herkulessi Год назад
One important point is, you can (relatively) safely throw something together without any real error handling and stuff like that, because Rust basically forces the crate devs to write good code. The only time I managed to have a library panic was nesting Tokio instances... Basically telling async code to block forever...
@bobweiram6321
@bobweiram6321 9 месяцев назад
Most Rust programmers have never programmed in a systems level programing language.
@floriansalihovic3697
@floriansalihovic3697 Год назад
“Inherently colours your thoughts” - a valuable idea for a lot of people
@PotatoGameDev
@PotatoGameDev 8 месяцев назад
"Above and behind" seems like a fantastic porn movie title!
@rohanpandey9957
@rohanpandey9957 10 месяцев назад
Basically he's talkin about not using rust before reaching the line of prime 😭
@AdrianDiaz-ob8qn
@AdrianDiaz-ob8qn Год назад
that fly-like thing at the bottom of the screen was triggering my anxiety levels to the roof, I think I need therapy now
@dn5426
@dn5426 Год назад
Go with a slightly better type system would be perfect.
@ЏонМастерман
@ЏонМастерман 8 месяцев назад
The question is, what would he choose if not Rust ? And how worse/better his roadmap would be with that language.
@nairjithus
@nairjithus Год назад
I get the developers love of rust but for a startup, I'm gonna defend this person and say that Rust is not a great choice for most (at least of web-based) startups. It depends on the product ofcourse. Something like fintech product, for eg might need safety and performance. For the most web cases, why not just use JS. And if performance is a serious consideration, just use Go. And if you reach such a scale that Go has become a bottleneck, then reach for something even faster like Rust. Engineering and programming language beauty is great n all, but frankly, the product's users mostly don't care about that. If a competitor builds a product with JS/TS with more features and iterates faster than you, then eventually you're gonna be at a disadvantage. Will the users then care if your app is 200ms faster? I doubt it.
@deiminator2
@deiminator2 Год назад
200ms is a shitton lol
@nairjithus
@nairjithus Год назад
@@deiminator2 Probably. I was just making a point. 🙂
@Luxalpa
@Luxalpa Год назад
The problem is that you'll be much faster writing your App in Rust than writing it in JS. People put safety and performance as being separate from the code but that's not true. Every application has the same requirement which is that it works properly, and it just happens that Rust's approach to correctness is the quickest one for the developer. You can write super performant JS code as well and make it bugfree but that will take you much longer because you spend all this time dealing with code organization and hunting bugs and fixing issues and writing tests and debugging, etc whereas the Rust user only has to deal with the actual business logic of the program and can skip all those extras. And they get documentation for free as well.
@nairjithus
@nairjithus Год назад
@@Luxalpa I don't deny the benefits of rust. But saying that Rust productivity is *always* faster than JS... I don't know about that. Long-term what you say is probably true, it'll be ultimately less time consuming to build and maintain an app using Rust. But when you start out, you're almost never sure the product you're building will work out. You'll have to constantly change. Rust will probably be a major productivity hit for such an environment. Being completely bug-free, or edge-case free would mostly don't matter in those situations. Unless your app needs to be extremely performant, secure, going to serve to millions right out of the gate or any other cases where Rust just-makes-sense - I'm not sure Rust is gonna be faster to develop than JS.
@warever9999
@warever9999 Год назад
If you love enums, then how it is possible that you are not using match expressions? )
@thomassparrevohn8577
@thomassparrevohn8577 Год назад
This is most common argument you hear when it comes to code for startups, but behind it seems to be an assumption that the main reason to do the start up it to get it it sold and move on hence architecture, longevity and future cost is of little or no concern. It's one of the things you normally look out for when assessing aqusitions or long term financing. Unfortunately there are often a common synergy between "startup" and people who specialise in financing startup's where immediate results are more important. Nonetheless 80% of the future cost relates to these decisions and very often the viability of the product
@ggnorton7
@ggnorton7 Год назад
Realistically for a startup, MVP and all of that - just pick either JS or RoR, there’s really no reason not to
@diadetediotedio6918
@diadetediotedio6918 Год назад
10:00 the definition of entrepreneurship
@loicgrossetete9570
@loicgrossetete9570 Год назад
Honestly I don't understand the rust hype, each time I see rust code I have a hard time figuring out exactly what it does, this only happens to me in one other language which is caml, on the other hand python, Java, C, C++, C#, go, ruby, Fortran makes sense, even assembly... This is probably due to the learning curve but man this does not seems the way. I hope that using AI assisted compilation we will be able to have a language similar to python without losing on performance or security.
@jishnuviswanath
@jishnuviswanath Год назад
Primes argument is stupid, you don't hire a cpp guy for js, there are more than enough js developers that's not true for Rust.
@DNA912
@DNA912 Год назад
real talk, I have a bachelor in CS and been working at my company for a few month. I still have no idea what I'm doing in JS
@myname2462
@myname2462 Год назад
Well, JS is garbage
@koalakakes
@koalakakes 11 месяцев назад
Startups cannot spend an extra month on things. That's way too much money when the amount of money you have is limited and running out quickly.
@tuskiomisham
@tuskiomisham Год назад
The only time not to use anyhow is if you're not writing fn main(). if you're writing a crate or consumed lib, don't use anyhow.
@cruz9617
@cruz9617 Год назад
07:31 This was literally me 🤣😅
@nieczerwony
@nieczerwony Год назад
So the guy just said:"F**k it, I'll build with Rust". Without actually doing proper recognition etc. You pick tools for the task not just random. Let's say I love chainsaw, and it's a perfect choice if I go to woods for some trees, but if I go to cut down some boards or plys, I'll take skill saw, not chainsaw just because I love it.
@timseguine2
@timseguine2 11 месяцев назад
You have been showing up in my recommendations for a while, but never clicked because a lot of the titles seemed click baity. From this video at least you seem to have your head on straight. So I guess I will be looking at more of your content.
@ernesto8738
@ernesto8738 Год назад
"Slower iterations" i think is more about "am i building the right features" not "do i have the right solution to this technical problem that itself is contingent on us having product market fit already"
@ericvogler6909
@ericvogler6909 Год назад
Side note: I _love_ eating Wheaties.
@gabrielkind2970
@gabrielkind2970 10 месяцев назад
On hiring: I feel like just where the ecosystem is right now people will take a job BECAUSE it's Rust. Yeah, there's less people out there who know rust, but the people who know rust usually love it and are looking specifically for rust jobs. I feel that you could actually stand out in this market by being rust-based. Also, imo, everyone should try to be language agnostic amap. But that's neither here nor there.
@grim.reaper
@grim.reaper Год назад
This video makes me want to learn rust 😅. The channel itself was enough boost but Prime reading the article and explaining things I can relate it to missing pieces in Go …
@replicator__
@replicator__ Год назад
For me, Gos biggest weakness is that it misses so many nice syntax features I love in Rust. Macros are on the extreme end of that. Go is designed to be super simple and, for my liking, it compromises too many features for that. But I get the reason and understand why it's the case. Still, even with go modules and go workspaces it doesn't convince me.
@raybarrera9002
@raybarrera9002 Год назад
1:45 Nails on a chalkboard
@MagnusAnand
@MagnusAnand 9 месяцев назад
Python, Typrscript, Java, C#, Go. Many options before Rust.
@phanirithvij
@phanirithvij Год назад
I think F's in the chat were to pay respect to that post author for coming to that conclusion.
@br3nto
@br3nto Год назад
12:20 yeah rewriting and starting again in a new language is a pretty big call. At what point do you make that call? At what point is it too late? And it’s not just the code, it’s also the whole deployment pipeline, and any other tools you’ve written, and the people hired with the specific skill sets. And maybe the frameworks used with the two languages aren’t exactly compatible, so you may have to restructure the code too. Not that it can’t be done… it’s just a big call… Personally, I would only make that call if something had catastrophically gone wrong with the first language choice or the first choice was going to financially ruin the company or hold it back in some significant way.
@beak90sfx
@beak90sfx Год назад
Anyone else notice he highlights all of a paragraph except the first and last letters 😅
@mykyar9142
@mykyar9142 Год назад
Scala is an answer
@boot-strapper
@boot-strapper Год назад
Prime, you are in denial that it takes wayyy longer to develop in rust than most other languages.
@NuncNuncNuncNunc
@NuncNuncNuncNunc Год назад
Not sure what was being said about not being able to handle error in javascript with fetch_user. It would be either a Promise, an awaited Promise, or an Observable, and all of those have patterns for handling thrown errors. I'll grant that an '?' is more succinct than try/catch but that's it. If it's really a burden configure your ide to write the try/catch block.
@MrWorshipMe
@MrWorshipMe Год назад
I'd use python for prototyping, then replace safety critical and performance critical parts with rust.
@thegrumpydeveloper
@thegrumpydeveloper Год назад
This reads like why you shouldn’t pick a language you’re not familiar with for a startup. It’s not a personal project, if you’re learning on the fly that’s time you could have used to build a feature in a language you know better. No silver bullet essay basically explains there’s not an order of magnitude difference in most tools. Cost benefit probably doesn’t pay off in the short term.
@heldim92
@heldim92 Год назад
17:00 when he starts bouncing on the chair: ADHD vs UTP (urge to pee) MAKE YOUR BETS!
@ferretcode
@ferretcode Год назад
it seems like a lot of companies are choosing go rather than rust for startups
@Danielo515
@Danielo515 Год назад
You keep praising rust for features that are in other languages, that are better than rust in compilation speed, ergonomics and ease of use and quite good performance. Result was not invented by rust
@oakley6889
@oakley6889 Год назад
I wrote a NEAT algorithm in python... I'll never do that again. Have no types is so awful, and I just end up with hundreds of print statements to look for issue as the errors were pretty terrible (it would error at a line, but that actually error would occur somewhere else usual because something outputted undefined) No way I could of done it in anything else tho. But I would of loved to do it in rust, if I had the foresight to learn it and wasnt on a deadline
@roccociccone597
@roccociccone597 Год назад
We use go for our APIs at work, I do like it. And it's a heck of a lot better than Java.
@ykhi
@ykhi Год назад
It was again super interesting to hear your thoughts on this!!
@karl4813
@karl4813 Год назад
Yo Prime! I want to see you break down CS50's Tideman task in C ;)
@rickdg
@rickdg Год назад
Startups are all about timing and if something doesn't come through when you need it, you can always blame the language you're using. Not even just the language itself, you can blame its lack of adoption. I wonder what's the current state of hiring people to do rust. Can startups find rust juniors?
@krtirtho
@krtirtho Год назад
Don't kill me Primegen but it's *sequel x* not *squil x*
@esra_erimez
@esra_erimez Год назад
You beat me to it
@Leto2ndAtreides
@Leto2ndAtreides Год назад
Never heard someone pronounce SQL, Squeal, before. lol
@emjizone
@emjizone Год назад
This person doesn't want to use _Rust_ anymore for reasons that don't seem to have much to do with _Rust_ . It's more a matter of being able to hire people who are as competent with _Rust_ as they are with _JS_. This is not a technical flaw but a market flaw: historically, _JS_ arrived before _Rust_, nested in universities and hobby clubs, spread like a swarm of Zergs, so that it is now a little difficult to switch to extremely better technologies.
@mtushar
@mtushar Год назад
Prime stop with the squeels 😶‍🌫️
@bellissimo4520
@bellissimo4520 10 месяцев назад
Am I the only one who is confused by what "building a 'startup' in Rust" even means? Do people build a company with a programming language?
@MagnusAnand
@MagnusAnand 9 месяцев назад
Building a startup with Rust is one of the most idiotic things ever. Unless you need what Rust offers, use something else.
@metaltyphoon
@metaltyphoon Год назад
I reeeeeeeally hope he is fucking around saying SQL “sequel” as “squeal”
@TakenPilot
@TakenPilot Год назад
No it’s “squirrel”!
@DummyFace123
@DummyFace123 Год назад
I love rust btw
@masoodahmad3312
@masoodahmad3312 Год назад
Any comments on clojure vs rust?
@mustafaemin7389
@mustafaemin7389 8 месяцев назад
I hate JS because it is too easy. Yes this definitely gives speed when building products but when you try to make things more performant then it becomes so hard. Let developers help to the compiler a bit.