Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nrc
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
nrc
4y ago
Many of the features of such crates are making their way to the standard library, so things will definitely improve. Figuring out what is best has taken some time and Rust has not wanted to prematurely commit.
2.
▲
by
nrc
4y ago
Nope, try blocks are a new (unstable) feature
3.
▲
A guide to error handling in Rust
(nrc.github.io)
173 points
by
nrc
4y ago
|
74 comments
4.
▲
by
nrc
4y ago
My point is that there or may or may not be reasonable justification for adding GATs, reasonable people can disagree on that. But async methods are not part of that justification. Similarly, generators may or may not be good for the languag
5.
▲
by
nrc
4y ago
To be clear, there are not use cases in the std lib. The use case is as an intermediate representation for the compiler, and that is no motivation for inclusion in the language (in the same way that we don't have vtables or register al
6.
▲
by
nrc
4y ago
No, they're not. GATs are used internally in the compiler to implement async methods, but there is absolutely no need for them to be in the language for that (just like generators are used to implement await but are not part of the (st
7.
▲
by
nrc
5y ago
We'd like anyone who is interested in Rust to fill out the survey, even if you've stopped using Rust or have never used Rust (and of course if you're a Rust user, however much or little you use it).
8.
▲
Rust 2021 Annual Survey
(blog.rust-lang.org)
1 points
by
nrc
5y ago
|
1 comments
9.
▲
TiKV Rust Client – 0.1 release
(ncameron.org)
2 points
by
nrc
5y ago
|
0 comments
10.
▲
by
nrc
7y ago
I'm sorry you've had that experience. We are working hard to be better open source citizens in many ways, including better communication on issues, etc.
11.
▲
A proof-of-concept GraphQL server framework for Rust
(ncameron.org)
2 points
by
nrc
9y ago
|
0 comments
12.
▲
by
nrc
9y ago
This should work (it's my goto test case). You have to put the cursor in the erroring code to see the possible fix icon in the margin. If you don't see it please file an issue with the project you're trying this in and I'
13.
▲
by
nrc
10y ago
We're literally hacking on this right now. It should be part of the early June stable release.
14.
▲
by
nrc
10y ago
It should yes, if it doesn't then its a bug that I should fix...
15.
▲
by
nrc
10y ago
Syntax highlighting is (usually) done by the editor, not the server in the LS protocol. The changes sent from editor to server are pretty minimal, and so the whole thing is pretty quick. The overhead, never caused us any problems.
16.
▲
by
nrc
10y ago
Indeed, the RLS uses that protocol to communicate with IDEs.
17.
▲
by
nrc
11y ago
The compiler will not enforce more style in the future, that will be done by Rustfmt, a separate and optional tool. In fact, it is likely that the compiler lints which enforce style will move out of the compiler and in to Rustfmt at some po
18.
▲
by
nrc
12y ago
Major points: donations are used for projects working on things like web literacy, rather than on large engineering projects like Firefox. The more Mozilla get from donations, the less dependent on Google/Yahoo they have to be and thus
19.
▲
by
nrc
12y ago
There is syntax highlighting for Vim, Emacs, and Sublime Text editors. GitHub does syntax highlighting for Rust repos and in Gists. There is support for Rust in the Pygments syntax highlighting library (which is used by a bunch of tools). S
20.
▲
by
nrc
12y ago
With structs, pretty much the only difference is the syntax. Enums are probably where the biggest differences are from C, as far as data types go.
21.
▲
by
nrc
12y ago
In Rust, we are quite strict about the syntax used for destructuring matching the syntax used for instantiation. There is a name in the tuple-struct declaration, therefore you must use the name when pattern matching (even though it is redun
22.
▲
by
nrc
12y ago
Featherweight Java ( http://www.fos.kuis.kyoto-u.ac.jp/~igarashi/papers/fj.html ) was a seminal paper which showed type soundness for Java. The formal syntax was a subset of Java subset and preserved the interesting
23.
▲
by
nrc
12y ago
All array indexing is bounds checked, so those kind of errors are prevented. We're still working on the story around overflow checking
24.
▲
by
nrc
12y ago
I actually used enumerate in an earlier version of this post, but in the case I used it didn't work (pointed out to me on /r/rust). I'm going to go into enumerate and other iterator functions in future posts, so left it
25.
▲
by
nrc
12y ago
It was a design decision made long ago and seems to have stuck (although is slightly less extreme than it used to be). I also used to hate the abbreviation, but I find you get used to it quickly and after a few weeks it doesn't impact
26.
▲
by
nrc
13y ago
To clarify, current Firefox does support Windows XP, as long as it is up to date, which means service pack 3. If you are still using an _unpatched_ version of Windows XP, well, you're on your own.
27.
▲
by
nrc
13y ago
I think you underestimate what can be done with bad hardware if the motivation is there - FirefoxOS phones are really bottom end hardware and the UI (app opening, or changing screens, for example) is built using CSS transitions etc. They ar
28.
▲
by
nrc
13y ago
For Firefox at least, this is probably because you are not using DirectWrite - that in turn is probably because you are not getting D3D10 (you are probably using D3D9 or no hardware acceleration), the usual cause of this is due to out of da
29.
▲
by
nrc
13y ago
The translate z trick does not work in general. It works right now in Chrome (and probably Safari). It does not work in Firefox, it may not work in Chrome in the future. (Because you are trying to trick the browser by gaming it's heuri