Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nercury
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
nercury
10y ago
Not sure what you are talking about - it is the first bigger syntax addition since 1.0, and I actually want more.
92.
▲
by
nercury
10y ago
But consider that the Rust does not have null, so every case where you need to step over the code and see if it does the right thing when value is null does not need debugging!
93.
▲
by
nercury
10y ago
I guess Rust may seem more complex, if you know C++ well, but from the side it may not seem like it. For example, C++ Core Guidelines [0] is longer than Rust Book. Core Guidelines is itself a great example of things one needs to keep in the
94.
▲
by
nercury
10y ago
> `collect()` doesn't know what type of collection to collect into. Yes, unless there is some other mention of Vec, i.e. it is returned from the function. > This is impossible without varargs, no? Varargs would definitely help, a
95.
▲
by
nercury
10y ago
Looking at the example, I can't find a thing in there that is not required (except the obvious `:Vec<_>` type that is not required). We need `.iter` to tell that iterator is imutable (there is mutable version), we need `.collect`
96.
▲
by
nercury
10y ago
I worked with PHP for 5 years and I am well aware of the composer; I am being downvoted because I said that author is right on some point.
97.
▲
by
nercury
10y ago
It is near impossible to write "Modern" PHP and achieve good performance. On every request, PHP reads and parses every file that is referenced somehow. It is in direct contradiction to the language constructs the PHP itself provid
98.
▲
by
nercury
10y ago
Yes, the stable release is lagging behind a bit, as it must be stable :)
99.
▲
by
nercury
10y ago
Most importantly, the finished MIR revolution [0] will finally allow developers to focus on new exciting features, like ergonomic "impl Trait" [1], incremental compilation, or even the beginnings of Gc [2]. [0]: https://
100.
▲
TRAFI Transit App Expands in US
(medium.com)
1 points
by
nercury
10y ago
|
0 comments
101.
▲
by
nercury
10y ago
It takes time to build things.
102.
▲
by
nercury
10y ago
Good article, but loosing 50 pounds over 2 months seems impossible. I always thought the optimal weight loss rate was max 2-3 pounds per week.
103.
▲
by
nercury
10y ago
The idea here is to separate lifetime of iteration (the scope in which "next" is used 'i) and the lifetime of data ('a), which would result in following signature: fn next<'i>(&'i mut self) ->
104.
▲
by
nercury
10y ago
Retrying on any exception might be wrong thing to do. For example, the I/O error many levels bellow might happen for wildly different reasons, and handling them all the same way might be wrong. If not, then the correct behavior of the
105.
▲
by
nercury
10y ago
This worries me a bit: I have another github account that is definitely a robot: it publishes documentation on github pages automatically on successful travis build. There are robots everywhere: for example, the Rust's github repos won
106.
▲
Running .NET Core on Docker
(medium.com)
8 points
by
nercury
10y ago
|
0 comments
107.
▲
by
nercury
10y ago
Rust is good. Great tooling: Libraries can be written, published and used quickly. Code can be easily rebuilt on upcoming Rust versions without uninstalling anything. Integrated testing and documentation generation. Cross-compilation. Truly
108.
▲
by
nercury
10y ago
Wait for this to land: https://github.com/rust-lang/rust/pull/33500
109.
▲
by
nercury
10y ago
Nice Al Legory
110.
▲
by
nercury
10y ago
I don't know about what the author's goals are, but I am in favor of offloading as much work to computer as possible. To err is to be human, but compilers never forget.
111.
▲
by
nercury
10y ago
The engineering decisions are not based on beliefs. They are usually trade-offs. Safety in Rust has a very specific meaning clearly outlined in the official book. There are users who prefer it for certain tasks. The answer to your last ques
112.
▲
Exploring Rust (from C#)
(nblumhardt.com)
148 points
by
nercury
11y ago
|
131 comments
113.
▲
Parallel Iterators Part 1: Foundations
(smallcultfollowing.com)
5 points
by
nercury
11y ago
|
0 comments
114.
▲
by
nercury
11y ago
It is rare to see a cross platform release with so much collaboration behind the scenes. Extremely exciting!
115.
▲
by
nercury
11y ago
Yeah, I am also wondering. All I see is the same ol' link to half-outdated NDK documentation.
116.
▲
by
nercury
11y ago
"auto a = ConjureMagic();" "SetMagic(a);" The problem here is actually is an old one of failing to separate a getter from a command. It looks like ConjureMagic is causing side effects and modifying the state of whatever
117.
▲
by
nercury
11y ago
If you are more gender-inclusive than me, I suggest you create a new open source project with these rules: - Require all contributors to specify their gender; - Do not allow new contributions if they exceed gender quota for release. Good lu
118.
▲
Accessing and Modifying Page Tables in Rust
(os.phil-opp.com)
2 points
by
nercury
11y ago
|
0 comments
119.
▲
by
nercury
11y ago
I disagree that the way is "worse". I like that in templates, string handling is _enforced_ to be different. For example, when you manipulate strings in template, you can be reasonably sure all output is escaped, unless you specif
120.
▲
by
nercury
11y ago
I can also say smart things: Template language is useful not because it allows to do things, but because it limits what can be done.
More ›