4,485 karma · joined Jun 30, 2015 (11y ago) · 2,043 submissions
comment 5y ago · link · parent
The Big tech firms benefit from all of the above, but are not contributing anything back. The system is broken and needs to be fixed, so let's not pretend there is no problem.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
Linux does exceptionally well considering there is almost no money at all going into this use case. But there are many bugs, sometimes due to hardware (e.g ACPI inconsistencies, even Thinkpads have issues) and because of software churn (few fix bugs in their spare time, it's more fun to create something new).
If you wish to pretend that everything is perfect and there are no problems, then you aren't helping Linux either.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
Static types are a form of static analysis. One that is deeply integrated into the language and compiler, which gives obvious advantages such as machine-checked documentation, custom invariants and error messages (expected a Currency but got a Country), better code generation, better tooling (IDE pop-ups, fast incremental checking) etc. Other forms of static analysis are of course useful too.
comment 5y ago · link · parent
comment 5y ago · link · parent
IMHO, programming in Rust is no harder than C++ or C. It just forces one to be explicit about lifetimes and ownership, concepts one should be carefully thinking about in other systems programming languages.
comment 5y ago · link · parent
In your example, why bother naming the inner "x" variable for the function param? It cannot be used on the right-hand-side (definition of "bar"). For that reason, the notation is not exactly "clear". In OCaml the annotation would be:
bar( x : int -> string )