Sometimes I read things on HN and wonder if I'm living in some alternate universe by myself. I would never in a million years, allow someone else to remote-operate a robot in my house. The idea of even allowing something above Roomba-level intelligence in my living area is a no-go.
Food, medicine, etc have intrinsic value. That's what the OP is talking about. The US gov't says that the US dollar has value and is willing to back it up. That is extrinsic value.
Yeah I wonder what the actual cost is of (2). I know the Standard ML compiler MLton takes the monomorphization (2) approach as well, with good success. I'm currently writing a toy SML compiler for fun, and I'm planning on doing the same, since you get better run time performance, assuming you're using that info to do unboxing.
Generics in the sense of C++ templates can be a compile time killer. However generics in the sense of HM type systems are basically just asking the compiler to fill in the type for you, which it has already figured out. HM type inference in general is ~O(n) (and exponential in the worst case, but you basically have to try to do that)
You cannot unify a string and an integer. 'Base type' is just an abstraction over the enumerable primitive types (bool, unit, char, etc). It's generally understood that these are simple cases to unify, so they aren't even mentioned most of the time.
Level based generalization is a massive improvement in speed - I'm currently writing a Standard ML compiler for fun, and I saw a 30-50% decrease in elaboration type-checking duration when I switched to using levels. And it's not difficult at all to implement.
Yea bidirectional systems are nice - one of the big benefits is that you can also have polymorphic function arguments, something you can't do in standard HM.
I recently implemented the bidirectional system in Rust from the paper you linked, it was fun (and a challenge!)
I think you're barking up the wrong tree here. A cursory glance over my comments would show that I don't have a desire for big government. I think we should immediately abolish the IRS, ATF, DEA, and NSA
Haha, yeah I love how he thinks that the government shouldn't have access to our data without a warrant, period, full stop and that the 3rd party doctrine and "reasonable belief" doctines should be repealed.
The Constitution? No, it applies to states as well. The SC has also explicitly ruled that the Due Process clause of the 14th Amendment makes the Bill of Rights applicable to the states.
Gorsuch is definitely my favorite Justice. His opinions are always fun to read. You know when the words "Trail of Tears" appear in the first sentence of a decision that things aren't going to turn out well for the government...
This comment just demonstrates your political biases, that's all. I don't know why you would be surprised that Gorsuch or Scalia would be in favor of freedoms for the people.
I'm a big Rust fan too. I have experience in all of the languages you've mentioned, and I'm most productive in Rust as well.
It's funny you mention enums, there was just another thread last week where I brought up how crazy it is that sum types (Rust enums) and pattern matching have been around since the 70s but have largely been limited to the FP languages. After extensively using Rust for ~3 years now, I don't ever want to use a language without sum types - you can write incredibly expressive and concise code with them.
The other major productivity boost for me is the ability to compose and chain Iterators and mix those with collection types.
> Rust is the first language I've seen that is trying to do something about it. I think the idea is that MIR is an intermediate language that still retains type information, after lifetimes have been resolved. Using this, they can implement better analysis and preoptimize code before it hits LLVMs optimizers.
MLton also keeps type information around basically until machine code generation (as far as I understand, at least). There have also been several interesting papers/projects about typed assembly languages.
It's gonna be an unpopular opinion here I suppose, but I agree with you. The only times I ever find myself reaching for python are one-off scripts, and when I have a simple problem that can be solved in < 50 loc with some combination of pandas + numpy + matplotlib. It's a good language for gluing together libraries, but I would never pick it for anything involving "actual" programming.
I mean I could see learning Rust being really hard if you only know something like Python or JS. The only "system", as you say, that is present in Rust that doesn't have something analogous in C++ is the borrow checker, and lifetimes still exist in C and C++. Rust is significantly simpler and easier to learn than C++
The crazy thing is that sum types (Rust enums) and pattern matching have been around for at least 30 years. I'm simply not interested in learning any new language that doesn't have sum types, they allow you to write incredibly expressive and terse code.
> I always say to them that this is not for everbody, you are banging your head against the wall most of the time
This is what I tell people who want to get into bench science. It's funny, because I find programming to be an escape from the 'head-banging' of science. At least when I get stuck debugging a programming issue, I know that there is a fix, and I'll eventually find it. Compare that to science, where you might bang your head against the wall for weeks, months, or years, only to later find out that the problem simply isn't tractable, or that the problem had nothing to do with you at all.
"Spooky action at a distance" doesn't imply that it's not governed by physical rules - and I think it's certainly a valid descriptor for biological systems as a whole.
Yes, we can break down aspects of biology into nice subsystems that we can define rules for - e.g. we have a pretty good idea of how DNA polymerase, or the ribosome carry out their duties (in isolation). It's when we start looking at the emergent properties of having all of these things in one larger system that our understanding starts to break down.