Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leshow
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
391.
▲
by
leshow
7y ago
I wouldn't. Why would you want to take errors that happen at compile time and create runtime errors? In dynamic languages you still have type invariants, it's just now they are invisible and can break your code at runtime.
392.
▲
by
leshow
7y ago
I think Elm gets old after a couple weeks when you realize how handicapped it is as a language. Personally, I think something like Reason/OCaml is a great place to start. Haskell is a good choice too but laziness adds an additional hur
393.
▲
by
leshow
7y ago
I don't know how you can claim that static typing & pattern matching don't help with maintainability. In languages with exhaustiveness checking and good pattern matching you can often make a change in one spot and literally ju
394.
▲
by
leshow
7y ago
Sum types infinitely useful in regular, non-algorithmic code you find every day. Look at something like redux and redux actions, those are essentially sum types and would benefit greatly from a pattern matching syntax. The benefits for this
395.
▲
by
leshow
7y ago
If you improve a situation, but you benefit from it, does that make it bad? There was a great article that came out years ago called the "coopenhagen interpretation of ethics" that describes this effect pretty well.
396.
▲
by
leshow
7y ago
I love Haskell, I find it a joy to write. If you don't really enjoy it then there isn't much reason to spend time on it. It's probably not going to help you with employment. As a side benefit, it's helped me solidify man
397.
▲
by
leshow
7y ago
Maybe, but libraries that you use in Nim will probably use the GC, so will many functions in the std library (I imagine). Additionally, the binary you ship will still probably include the runtime & GC. So it's not really fair to sa
398.
▲
by
leshow
7y ago
An article about covariance/contravariance that doesn't once mention either terms...
399.
▲
by
leshow
7y ago
Zig and Rust both don't have a runtime/GC, they should be on par with performance in C, meaning they are slightly faster than the others (of course this all depends). Go is the only one you listed that doesn't have some kind
400.
▲
by
leshow
7y ago
It's not really fair to count pre-1.0, it's only been 4-5 years
401.
▲
by
leshow
7y ago
I learned typed FP from Haskell, coming from JS, and I'm glad I started there. It was a bit of a slog, but there are some wonderful books out there. I don't think we should discount the amount of pedagological resources that are a
402.
▲
by
leshow
7y ago
> According to currying, 'a -> 'b -> 'c is interchangeable with 'a * 'b -> 'c. (The fancy math word for this interchangeability is "isomorphism.") I thought isomorphism was when a function
403.
▲
by
leshow
7y ago
You've got a kind of made up definition of 'proper'. Java has generics, they don't have the best implementation of it I've seen, but I wouldn't call it 'improper'. It's just not a word that has a
404.
▲
by
leshow
7y ago
That only happens in an extremely small amount of cases. Almost all of the time cargo does nothing but make your life easier. No tool is perfect, but the team seems pretty dedicated to improving things.
405.
▲
by
leshow
7y ago
C++ isn't very homogenous in the features that people use. I was speaking more to the fact that one can use Rust in situations where C traditionally dominates. OS's, embedded development. It's memory safety model allows you t
406.
▲
by
leshow
7y ago
Well, in my defense, I wasn't looking at the graph when I wrote that, I was trying to remember a graph that I saw a week ago.
407.
▲
by
leshow
7y ago
literally any data structure that stores different types similarly. hashmaps, linkedlists, vectors, binary trees (assuming you can bound on some ordering function), etc, then all the operations you expect to work on those data structures. Y
408.
▲
by
leshow
7y ago
> Go is faster than Java / C#, more memory-efficient than Java / C#, and definitely has better concurrency than Java / C# C# is a great language and has a ton of modern features. It's also quite a bit faster than the
409.
▲
by
leshow
7y ago
> you can still cause side effects and create impure functions without dealing with monads or working your way through atoms Why do they have to put a dig to other languages in the opening paragraph?
410.
▲
by
leshow
7y ago
Are their uses of unsafe necessary? After briefly looking over the implementation it seems like they could just be using references in a bunch of places. Take for example: let queue = &mut self.rx_queues[queue_id as usize]; rx_i
411.
▲
by
leshow
7y ago
Well that's obviously not going to happen unless you live in a super high population area. There isn't enough people to support a niche market like that. But you can buy them online.
412.
▲
by
leshow
7y ago
> 12k in the US is not so bad for costs other than healthcare (lots of families of 3 are living on $35,000). Lots may be doing it, but you'd be living in poverty your whole life. There's no way a family of 3 could get by on 35k
413.
▲
by
leshow
7y ago
So one should learn Ada because it doesn't coerce integers? Plenty of modern languages won't do that.
414.
▲
by
leshow
7y ago
Reading this post I can't help but feel for the sibling. When I was 5 I lost my sister and best friend; you just aren't equipped to deal with the event at that age.
415.
▲
by
leshow
7y ago
Yeah, it's not like 12k a year is enough to live on. People on UBI will still need jobs.
416.
▲
by
leshow
7y ago
The argument here is terrible. Basically, billionaires want UBI, therefore it must be bad for us. Sorry, but you have to do better than that. You need to actually argue against the principles not just assume bad faith of those supporting it
417.
▲
by
leshow
7y ago
Does windows have virtual desktops? I don't see any hotkeys for moving between vdesks. Never thought I'd see the day MS makes a tiling wm with hotkeys inspired by i3 & friends. I'll stick with i3 though.
418.
▲
by
leshow
7y ago
I don't think it's that simple. AVR was merged into LLVM, but I think you'd be hard pressed to get either rust or swift running on it right now. > So you can use any backend LLVM does.. theres a little runtime friction in
419.
▲
by
leshow
7y ago
You can buy silent switches, they cost about the same as non-silent ones. There's really nothing that special about them.
420.
▲
by
leshow
7y ago
I got into custom DIY keyboards. Specifically split ortholinear. A bonus to using these boards is they are flashable with the wonderful QMK firmware, they can have multiple layers, dual function keys, mouse emulation, almost anything you ca
More ›