Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leshow
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
241.
▲
by
leshow
6y ago
I disagree, I think the fact Range is polymorphic is extremely useful. Perhaps if your only interaction with it is writing a range of usize's. The only real 'pain point' I've ever had to deal with is passing `&`, but
242.
▲
by
leshow
6y ago
You don't need to know the rules though, it's impossible to get the rules wrong, the compiler will check for you.
243.
▲
by
leshow
6y ago
> Those two, yes (and vectors really only apply -as such- in C++), but the rest? It depends (the best answer to every conundrum). I think other systems langs make the distinction, Rust does also, this is what I've been doing at my d
244.
▲
by
leshow
6y ago
> It's what used to be called "retirement" back when businesses were not run by 20-year-olds who plan to live forever. Isn't this also a bit ageist
245.
▲
by
leshow
6y ago
While I don't think that whiteboarding aho-corasick from scratch is a good quality interview. I don't think algorithms and data structures are useless or impractical. IMO a basic understanding of the main data structures is import
246.
▲
by
leshow
6y ago
This was a year or more ago, but this failed to install: https://aur.archlinux.org/packages/bs-platform/ It's pretty out of date here too. I can't remember if I tried to install with npm.
247.
▲
by
leshow
6y ago
Just curious, have you seen amethyst? https://amethyst.rs/ I'm wondering what you find not well thought out about it.
248.
▲
by
leshow
6y ago
Has it been confirmed that the servo team got fired? I read rumblings about this on twitter. If so, that is very sad.
249.
▲
by
leshow
6y ago
Apparently they fired the servo devs so you may not be able to support them at mozilla anymore anyway.
250.
▲
by
leshow
6y ago
Cool, I hope this does well. Last I looked at reason/bucklescript I really liked it, but found the barrier for entry pretty high. The bsc compiler wouldn't even install on arch.
251.
▲
by
leshow
6y ago
You could just write your will and sign it with a known public key. I don't see any reason why you'd want to keep the will hidden, or require participation to read it
252.
▲
by
leshow
6y ago
Mentions FP Complete, who worked on cardano I think. So is the accusation that cardano is running a shady exchange and stealing from people? I don't follow the crypto space, but it seems like we might actually want to know which compan
253.
▲
by
leshow
6y ago
You lose the ability to make sure you've handled an error AOT, but sure, this feature is pretty much the same as a sum type except that it's structural. When I used to write typescript, there were plenty of times I was happy to ha
254.
▲
by
leshow
6y ago
There is nothing stopping you from returning both an error and a value. Sure, you can just be diligent everywhere and not do that, we know how well that type of advice usually turns out.
255.
▲
by
leshow
6y ago
You can get all these benefits and not have any of the downsides if you have something like Result or Either, which requires generics. You only really compare Go's solution against exceptions. That's not the only solution that exi
256.
▲
by
leshow
6y ago
This site is amazing. I had a real problem with nerves during interviews, I did about half a dozen practice interviews on the site over about 2 or 3 months, while I was brushing up on algorithms and data structures in my spare time. It was
257.
▲
by
leshow
6y ago
writing `lambda` must get really old
258.
▲
by
leshow
6y ago
> there were a few that could led them to success which ones? If they tried 2 or 3 times with C++ and the Rust one succeeded, what other information would you need to have to convince you that Rust was the differentiating factor? It seem
259.
▲
by
leshow
6y ago
"Staff picks": "seargent.ai" What the heck is a "seargent"? I assume they mean "sergeant"?
260.
▲
by
leshow
6y ago
Names just need to be valid UTF-8, which it is
261.
▲
by
leshow
6y ago
Big scare quotes there, you can't really 'prove' much in typescript. Don't get me wrong, it's a nice type system they've tacked on to JS, but it's far and away from proofs of correctness. At best, it'
262.
▲
by
leshow
6y ago
cs140e was a phenomenal class that I learned a lot doing, highly recommend to anyone that wants to learn more Rust or systems topics
263.
▲
by
leshow
7y ago
The guide was pretty good as I remember, I ran Gentoo through most of university. It did take a while from a stage1 install though.
264.
▲
by
leshow
7y ago
Oh please, maybe if all you're doing is reading hackernews articles. The language hasn't really changed that much in the last few years. The only major feature is async/await.
265.
▲
by
leshow
7y ago
I gave up on Elm years ago. It's kind of funny, I paid for the Elm in Action book that was partially written like 6 or 7 years ago. I got an email last week that it's finally finished. It's hilarious that the book has taken t
266.
▲
by
leshow
7y ago
You'll find examples on both sides. Rust is a great example of a successful language growing in the open.
267.
▲
by
leshow
7y ago
IMO haskells way of defining type parameters with forall is the best option. It doesn't fit with C-style function definitions though. It's kind of a stupid thing to rant over. Whether a language uses <> or [] is the least in
268.
▲
by
leshow
7y ago
It looks like this is really asking for DataKinds or something similar. Since it's required to lift the enum variant to the type level.
269.
▲
by
leshow
7y ago
Why did they lick the solder?
270.
▲
by
leshow
7y ago
You obviously don't understand, unsafe isn't always optional. You literally can't do some things without it. If you tried to build a Vec from scratch without unsafe for example (or using code that uses unsafe) you would fail.
More ›