Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leshow
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
571.
▲
by
leshow
8y ago
There are other ways to handle errors besides Go's overly pedantic way and exceptions. Either/Result types are in a few languages and are wonderful.
572.
▲
by
leshow
8y ago
I was writing some code in 2018 recently and didn't realise how much NLL really makes a difference. I went to push the a change to a CI and realised I would have to heavily refactor in order to get things working on stable. Your work i
573.
▲
by
leshow
8y ago
fair enough, I don't need any of the fancy features.
574.
▲
by
leshow
8y ago
I wouldn't be using any of the advanced features. I just want a filesystem. The automatic compression stuff seemed attractive, but if there's anything else I have to do besides just format a drive differently it's not worth i
575.
▲
by
leshow
8y ago
How much compression do you get out of video files? My understanding is they are already pretty compressed so you don't see a great improvement. I have many terabytes of files on some drives, even 5% of savings could go a long way.
576.
▲
by
leshow
8y ago
I would never use ntfs or apple's filesystem for linux though.
577.
▲
by
leshow
8y ago
Is btrfs a good choice for a format for a regular Linux install on a dev or user machine now? I've been using ext4 for almost a decade, curious to hear responses.
578.
▲
by
leshow
8y ago
There's lots of great stuff for embedded in Rust now too, you can no_std and use core, the new panic stuff. IMO it's awesome to write a language and do some more 'advanced' type stuff like add compile time safety with ph
579.
▲
by
leshow
8y ago
you can also enable things like "strict", then you need less team discipline, it will be enforced by the compiler. People can still use 'any' explicitly (but not implicitly), however
580.
▲
by
leshow
8y ago
I would not use typescript without the "strict" compiler option. It enforces lots of things that should have been default and covers a lot of the issues you mentioned.
581.
▲
by
leshow
8y ago
You can't write python 'without OOP'. Almost everything you do requires instantiating some class, or called a method on a class. Unless you write everything globally with no mutation. You can write python in a functional styl
582.
▲
by
leshow
8y ago
Prove it. I don't believe you, and you haven't posted any data. Try compiling some computationally intensive code with wasm-pack (and rust) and run it against an idiomatic javascript version. The Rust/wasm version will be fas
583.
▲
by
leshow
8y ago
u32 is a type that implements Copy, it doesn't get moved. You'd have to wrap it in a Box or something to show move semantics.
584.
▲
by
leshow
8y ago
I'm not familiar with any of these memes about lisp. If anything, the stuff you're claiming about lisp I've heard about Haskell.
585.
▲
by
leshow
8y ago
I'd just like to add, most engineers aren't writing data structures all day. There are certainly some sharp corners, some of these Rust will help you with though: re: multithreaded algorithms. Robust libraries are helpful also.
586.
▲
by
leshow
8y ago
Cool project! I would think Elm would be a bad choice for compiling to other languages because it isn't general purpose. You can only write 1 kind of application in Elm, right?
587.
▲
by
leshow
8y ago
I've found the ergodox to be the 'ultimate hacking' keyboard. Although, pretty much anything that flashes QMK will be sufficient.
588.
▲
by
leshow
8y ago
Because it's a post for hackernews, and we're mostly engineers and developers so we care to know what it's written in. Rust is a awesome new language with growing popularity and it gets hits whenever it's posted.
589.
▲
by
leshow
8y ago
> Or the hole that allowed RAII guard subversion. ?
590.
▲
by
leshow
8y ago
You shouldn't, and I write Rust all the time. Don't implicitly trust it because it's written in Rust. There could still be errors, there could be uses of unsafe, etc.
591.
▲
by
leshow
8y ago
I think the tools speak for themselves. They get use and then they get included in repos, not just by virtue of the fact they were written in lang X.
592.
▲
by
leshow
8y ago
In 150ms the other tool would be finished before any of those had even begun. Plus, this is for a print statement, you'd have to factor in dependencies as well to get a real idea of how long it took.
593.
▲
by
leshow
8y ago
> Go avoids magic What? Go is all about magic. All the std lib stuff that is able to take any type works by magic. Those "obscure rules" (which I prefer to call being able to reason about code) look like they are going to get a
594.
▲
by
leshow
8y ago
This is something else. C++ has had parametric polymorphism in the form of template metaprogramming for a long time (the article on hashmaps even covers it). This is one of the reasons I don't really like the name 'generics',
595.
▲
by
leshow
8y ago
The post itself was removed by moderators and locked for nothing more than being critical of Elm.
596.
▲
by
leshow
8y ago
I feel like I went through all of the same frustrations as the OP starting from Elm. It's a fun language, but the restrictions the bdfl puts in place make you quickly outgrow it.
597.
▲
by
leshow
8y ago
> What makes you say that? Because Evan has shown no interest in implementing a feature like what I'm describing.
598.
▲
by
leshow
8y ago
They all belong in a continuum of ML languages, starting from (I think) SML.
599.
▲
by
leshow
8y ago
IMO people in the original thread had a pretty good understanding that Redis core was going to have the same license, and some of the modules RL developed would be proprietary (sorry, "source-available"). I think many people are j
600.
▲
by
leshow
8y ago
The book is functionally complete. We're not waiting on any new chapters or anything. If you want a printed edition I wouldn't wait. The digital version is very good though.
More ›