Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
crabbygrabby
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
crabbygrabby
4y ago
Did scala 3 finally clean up the syntax. Scala is a difficult language because there are so many ways to do things. I ran away from it after dealing with it professionally off and on for a year. Which is a shame because I did a hobby projec
92.
▲
by
crabbygrabby
4y ago
Would you agree that it is "easier to do it correctly?" Because rust makes lifetimes explicit? I think that's what rustaceans are trying to say generally. I don't think anyone is trying to claim that rust is some trivial
93.
▲
by
crabbygrabby
4y ago
You're not wrong. Being an exdata geek, I can say almost all metrics are flawed. We could even look at the most popular language and realize how that is flawed/not very meaningful too. Thanks for clarifying. Didn't mean to ge
94.
▲
by
crabbygrabby
4y ago
The funny thing about this is, using rust for production is way safer than an old language like C or even C++. So the YOLO part isn't crazy here. If you don't use unsafe you cannot, read can not, get data races, among a host of ot
95.
▲
by
crabbygrabby
4y ago
Bingo, it's a true systems language. That said, the fact that people can and do write web applications(for practical reasons) with it kind of says something about it's breadth.
96.
▲
by
crabbygrabby
4y ago
So here's a weird thought, why should you ever write your own doubly linked list? Why shouldn't you use one that a community of people has vetted and juiced for performance instead? In C what I just said is for some reason heresy.
97.
▲
by
crabbygrabby
4y ago
Rust only limits you from writing nonsense code. Seriously that's what the compiler is doing, and that's what people are complaining about. "Why won't this language let me write bad code!". I get it it's hard t
98.
▲
by
crabbygrabby
4y ago
Its so hard for me to think someone actually thinks this. Rust really is a great programming language that solves a lot of other problems other languages don't. It does so by introducing a pretty clever paradigm. The rust community is
99.
▲
by
crabbygrabby
4y ago
Pretty sure you could hire 5 rust developers pretty easily. A lot of people in the rust community are dying to find a job that will let them write rust professionally...
100.
▲
by
crabbygrabby
4y ago
Read the rust book and practice for two weeks, you'll get the hang of it. It's just not a language you can pick up 80% of it in a day. Like BASIC or Go or something
101.
▲
by
crabbygrabby
4y ago
It really depends. I agree it's not always an entire order of magnitude didn't mean to paint that picture for passerbys who don't know better. Not trying to touch the "this lang vs that lang performance" conversatio
102.
▲
by
crabbygrabby
4y ago
If you need performance, compiled binaries, etc then yea it sure can be worth it. In some cases you don't have a product if you can't get the performance to reach a certain level. In other cases you spend a lot more money tracking
103.
▲
by
crabbygrabby
4y ago
Yea it's hard to say without context, I just gave the generic answer. I'm not sure you ever 'need' a garbage collector, and if avoiding one lets me save 20k in cloud expenses a year on a small team, it's probably wo
104.
▲
by
crabbygrabby
4y ago
It's actually really fun once you get the hang of it and realize the compiler is there to help you ship code that runs! This person hit a rough spot and got very frustrated basically... It happens, it's part of learning. The harde
105.
▲
by
crabbygrabby
4y ago
I've heard people complain about languages having too many ways to do one thing. Never have I heard the opposite complaint hahaha. You can't please everyone.
106.
▲
by
crabbygrabby
4y ago
Why? Because it's stupid fast, fast means serving an order of magnitude or more clients before requiring scale up. Scale up means $. No stop the world GC time situations, etc. That's basically it. To be fair, I usually prefer to
107.
▲
by
crabbygrabby
4y ago
This is good advice. Write simple code first. Another generic thing I've come across is, "if the borrow checker is screaming at me when I hit a patch of code, I probably have a design flaw not a programming problem". I'v
108.
▲
by
crabbygrabby
4y ago
It's unreadable until you learn the language. It is not something you can just look at and start writing/reading. Also there aren't that many special symbols, it's not scala after all. Spend two weeks with it and it make
109.
▲
by
crabbygrabby
4y ago
I find it enjoyable to type for the most part. Explicit type casts aren't a treasure or anything, but then I think about why I am doing it and I can't really complain. I feel you, but, my experience differs in the end I guess. To
110.
▲
by
crabbygrabby
4y ago
Although I agree with almost everything you said, I still feel rust is a general purpose language. Most programming projects are single thread, not async, and if you aren't juicing for performance, is pretty easy to write. Even in rust
111.
▲
by
crabbygrabby
4y ago
In my opinion, easy rust is easy, hard rust is hard. A lot of people take for granted how hard some things are to do correctly until they are asked to do them correctly. Not saying this to put you down, we all struggle with this until we ge
112.
▲
by
crabbygrabby
4y ago
Without diving into completely obscure programming languages, you can look at Scala, F#(doesn't scale super great ime), or I guess golang. That said, they all don't give you what rust gives you and have their own troubles. The tru