Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jcmoyer
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
jcmoyer
5mo ago
There is a really convincing set of arguments against this idea by Robert Seacord[1]. I used to be in the signed size camp, but I've come around to preferring unsigned as much as possible because it's much easier to reason about.
2.
▲
by
jcmoyer
2y ago
> logical operators do not short-circuit (so both sides of an or will execute even if the left side is true) There are two syntaxes: `and` which doesn't short circuit, and `and then` which does. Ditto for `or` and `or else`.
3.
▲
by
jcmoyer
3y ago
>Without compiler bugs, on stock Linux, you can achieve the same thing via /proc/self/mem. The documentation addresses this case specifically: https://doc.rust-lang.org/stable/std/os/unix
4.
▲
by
jcmoyer
3y ago
Anecdotally, Chrome used to pin my hard drive at 100% usage until I killed a process called "software_reporter_tool.exe." I still have a version of the binary located at "%localappdata%\Google\Chrome\User Data\SwReporter\107.
5.
▲
by
jcmoyer
4y ago
Is the Rust compose backwards? Normally I would expect compose(f,g)(x) = (f∘g)(x) = f(g(x)), but in this post it's g(f(x)). In Haskell for instance, (+2) . (*10) $ 2 => 22
6.
▲
by
jcmoyer
4y ago
Reading the manual, searching the stdlib for terms related to what I'm trying to do and reading tests, searching the issue tracker, and accidentally discovering things via LSP autocomplete. For higher level concepts that aren't im
7.
▲
by
jcmoyer
6y ago
The same concept applies in 2D, which might help you build the intuition to understand it in 3D. If you have a vector v=(1,0) that points to the right, you can scale this vector infinitely in that direction by multiplying it by a positive s
8.
▲
John Frum and the Cargo Cults (2007)
(damninteresting.com)
1 points
by
jcmoyer
9y ago
|
0 comments
9.
▲
Guaranteeing memory safety in Rust [video]
(air.mozilla.org)
53 points
by
jcmoyer
12y ago
|
26 comments
10.
▲
by
jcmoyer
12y ago
>1 - If memory management is a serious problem for the software you work on, I've never found the boost library lacking. This seems like the main selling point for RUST. Given the scope of the project: you guys must be doing somethi
11.
▲
by
jcmoyer
12y ago
Breaking changes still happen, but commits to the rust repo are tagged with [breaking-change] so you can easily do a `git log --grep breaking-change` and (hopefully) get a good idea of how to fix your code. For more gradual breaking changes