Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
GolDDranks
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
89 ms
·
871.
▲
by
GolDDranks
11y ago
It's the opposite; the Rust community feels very welcoming, well-behaved and indeed – non-toxic.
872.
▲
The Quantum Secret to Superconductivity
(quantamagazine.org)
1 points
by
GolDDranks
11y ago
|
0 comments
873.
▲
When the U.S. air force discovered the flaw of averages
(thestar.com)
2 points
by
GolDDranks
11y ago
|
0 comments
874.
▲
What is wrong with “A successful Git branching model”?
(barro.github.io)
6 points
by
GolDDranks
11y ago
|
4 comments
875.
▲
Rust vs. C++: Fine-grained Performance
(cantrip.org)
5 points
by
GolDDranks
11y ago
|
0 comments
876.
▲
by
GolDDranks
11y ago
If it's the former, I agree. If it's the latter, well, in Rust, the norm is to design safe abstractions around unsafe code. For example the vector class of the Rust standard library contains some unsafe code, but with the all part
877.
▲
by
GolDDranks
11y ago
What do you mean? Do you mean that hardware is unreliable or might break and thus even a sound program, or a program that doesn't do anything that counts as unspecified behaviour, is not 100% safe? Or that with "unsafe" escap
878.
▲
My thoughts on Rust in 2016
(ncameron.org)
8 points
by
GolDDranks
11y ago
|
0 comments
879.
▲
by
GolDDranks
11y ago
What is meant by "rules" is, of course, dependant on the definition, but in the field of SLA (second-language acquisition), "rules" are commonly understood to be like rules presented in language classrooms, and separate
880.
▲
by
GolDDranks
11y ago
Not true. Adults are ABLE to learn rules, but they don't NEED to learn them (there's plenty of evidence of adult language immersion). Also, doubt exists whether knowing some rules explicitly is of any help when trying to use langu
881.
▲
by
GolDDranks
11y ago
Pimsleur is a child of it's age; a so-called audio-lingual method that has its roots in Skinnerian behaviorism. I think no language acquisition researcher takes it seriously any more. Check This out for a modern viewpoint: https:/
882.
▲
by
GolDDranks
11y ago
Dubbing / subtitling isn't everything, although it certainly helps. According to the theories of language acquisition, it is processing of linguistic input (connecting form to meaning to be able to understand the meaning) that mak
883.
▲
by
GolDDranks
11y ago
Also, he doesn't like Rust's stance on safety -- he thinks it's going to lead to too much hand-holding and boilerplate annotations.
884.
▲
by
GolDDranks
11y ago
Yes, because of the Lorenz contraction.
885.
▲
by
GolDDranks
11y ago
Well, if you use the term "machine learning", you've got to accept that the "learning" there doesn't have all the same connotations than the word "learning" has in general. But if we just define learn
886.
▲
by
GolDDranks
11y ago
Of course you can -- but at the same time you ditch tens of years worth of muscle memory and habits. Also the physical buttons don't correspond to the characters anymore, which can be irritating when trying to remember where that one d
887.
▲
by
GolDDranks
11y ago
That's going to render whole countries worth of developers reconsider using Atom. AltGr is widely used at Nordic countries at least and I wouldn't be surprised if elsewhere too.
888.
▲
by
GolDDranks
11y ago
Actually it is. Rust Option and Result types implement .and_then(), which is equivalent to bind. They are also equipped with many of the other things you'd expect of a monadic types. The thing is, Rust's type system is currently i
889.
▲
by
GolDDranks
11y ago
Yeah, I think the compiler has enough information to do that, in principle. But there is another problem: Rust has the design principle that every language-enforced invariant should be clear just from the function signature. This has at lea
890.
▲
by
GolDDranks
11y ago
Rust functions can still have side effects: they can access unsafely global variables and read them even without unsafe access. They can call libraries that do IO. I.e. they are not referentially transparent. Constexp would be pure, because
891.
▲
by
GolDDranks
11y ago
Congratulations to everyone involved!! Exciting times!
892.
▲
by
GolDDranks
11y ago
On the other hand, an alternative design would be that the single-arm if wrapped the return type R to "Some(R)", and None for the "phantom else" arm. I haven't considered the ramifications of this, but I'd expe
893.
▲
by
GolDDranks
11y ago
I always thought that iterators would be _easier_ to optimize (assuming that the compiler can statically access the implementation) because they are more constrained in form at the use site. Loop unrolling etc.
894.
▲
by
GolDDranks
11y ago
How would you put or index objects in a vector in C++ if they are virtual / dynamically sized? I'm in impression that unless you have the dynamically sized object behind a pointer, you get object slicing.
895.
▲
by
GolDDranks
11y ago
> Traits are somewhat between an interface and a mixin: an interface is made only of method signatures, while a trait includes also the full method definitions, on the other side mixins include method definitions, but they can also carry
896.
▲
by
GolDDranks
12y ago
There's already some toy OSes written in Rust: http://scialex.github.io/reenix.pdf I think Rust IS able to replace C, precisely for the same reason why Java and Go fail to do that: they have runtimes and they are garba