Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pflanze
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
pflanze
3mo ago
> Teasing an owl: https://youtube.com/watch?v=Y0i9tjnW7r0 There was a video on youtube about a crow coming to a human and making that sound, also in winter with snow; commenters agreed that it was probably thirsty and wa
2.
▲
by
pflanze
6mo ago
Thanks for the info! I guess it also makes sense as I realized after posting, if it did use the result of malloc unused it should crash immediately due to references into the zero page segment, thus can't have been what I saw.
3.
▲
by
pflanze
6mo ago
Do you happen to use memory resource limits? I used to run Firefox under some, like everything, to prevent it from potentially making the whole system unresponsible, and at the same time had frequent cases of Firefox showing random visual c
4.
▲
by
pflanze
8mo ago
If the code in the closure moves a value, then the closure becomes an FnOnce and does move the value out of the context. That's what you probably have in mind. So, Rust does support partially-moving closures, and does so automatically.
5.
▲
by
pflanze
8mo ago
> So AFAICT Embassy doesn't do this at all? I haven't used Embassy, but the README mentions "Tasks on the same async executor run cooperatively, but you can create multiple executors with different priorities so that highe
6.
▲
by
pflanze
9mo ago
No, unless you ask for it via the `move` keyword in front of the closure. This works fine: https://play.rust-lang.org/?version=stable&mode=debug&editio...
7.
▲
by
pflanze
11mo ago
> The behavior is all the more impressive given that the rodents hunt at night, when they are effectively blind I can't access the paper to check if they verified it, but given there is a strong IR light, and even humans can see IR
8.
▲
by
pflanze
11mo ago
There's an independent reimplementation of the PIO assembler here: https://crates.io/crates/pio -- I haven't tried it so don't know how good.
9.
▲
by
pflanze
1y ago
I think the hard drive platter moves in the wrong direction--it pushes the head into the platter instead of away from it if it gets too close.
10.
▲
by
pflanze
2y ago
I wonder if they sensed that at some point number plates would be automatically recorded wherever you drive, even when not causing an accident or doing anything illegal. Just a funny coincidence or is there some connection?: OP writes that
11.
▲
by
pflanze
2y ago
Thanks for the nojs version!
12.
▲
by
pflanze
2y ago
I would expect that this increases the gap between new and old phones / makes old phones unusable more quickly: new phones will typically have enough RAM and can live with the 9% less efficient memory use, and will see the 5-10% speedu
13.
▲
by
pflanze
2y ago
That sounds plausible. I've sent them a mail.
14.
▲
by
pflanze
2y ago
OK, but they wrote "At the end of the last century", which implies towards 2000 not 1900.
15.
▲
by
pflanze
2y ago
> At the end of the last century, coal was used to generate more than 95% of the UK's energy, but last year it had fallen to 1%. That looks like an impressive change, even if the coal use hasn't been replaced with renewables. B
16.
▲
by
pflanze
2y ago
If we're talking about constructing structs, like in `Foo { bar, baz: 123 }` (with the `bar` style shortcut in it), I have used that kind of syntax 10 times in 16 KLOC of Rust. Not a lot, but it does happen, and I found it kinda neat w
17.
▲
by
pflanze
2y ago
Linkers & Loaders is their own book (I haven't checked the others). They have a page at https://www.iecc.com/linker/ where they used to publish a draft of the book contents, but changed the page to say "C
18.
▲
by
pflanze
2y ago
I was looking at the main branch, and described the situation there. They have a different branch for the optimization work; in that branch, they do mark those functions as `unsafe` (and already did when I posted).
19.
▲
by
pflanze
2y ago
Using clone or Arc with boxing everywhere to avoid using references with lifetimes at all will lead to code that's slower than Go/Java, yes, unless you're just cloning small objects that don't internally use heap alloc
20.
▲
by
pflanze
2y ago
Yes, but their code appears to actually be `unsafe` (in the Rust terminology sense) without specifying that in their function declarations. They use `unsafe` inside their `slice` function, but return a value that is unsafe to use, hence `sl
21.
▲
by
pflanze
2y ago
After a cursory inspection of the memleak program source and Brendan Gregg's blog post it's still not clear to me what it is tracking to be able to decide that there's a leak here. It would seem to me that palloc causes a mma
22.
▲
by
pflanze
3y ago
I'm using VNC for coworking/mentoring sessions and it works very well for us (it's lower latency, higher frame rate, sharper picture than typical screen sharing, and allows both/all sides to interact with the session and
23.
▲
by
pflanze
3y ago
The sorting is according to the "sort" column, not the "name" column (they are not explicit about this but it's clearly what they mean, and it solves your problem). I think the benefit could mostly be for the implem
24.
▲
by
pflanze
3y ago
Yakety Moog, https://youtu.be/qp_b-TkkR4I Maybe I'm hearing more into it than there is, and I'm not a musician. Still it's the piece closest to the Thing on a Spring tune that I've heard and I would be s
25.
▲
by
pflanze
3y ago
Interesting, this Gil Trythall piece is the tune in the Commodore C-64 game "Thing on a Spring", isn't it. I didn't know that was a pre-existing piece. https://www.youtube.com/watch?v=AeRP8rQ-07I https:
26.
▲
by
pflanze
3y ago
> that the programmer job somewhat evolved from data entry and clerical roles that employed plenty of women already This reminds me of a presentation[1] that showed pictures on how early computers were advertised and what roles programme
27.
▲
by
pflanze
3y ago
> the C64 could display a total of 16 colors at a standard resolution of 120 x 200 pixels, though it also has a graphics mode with the higher resolution of 320 x 200 with more limited colors I'm not sure where your 120 pixels are co
28.
▲
by
pflanze
3y ago
To give context for those who don't know: relatime is a relatively (I'm a dinosaur) newer introduction into the Linux kernel; mounting partitions noatime used to be the only alternative to the default which was updating the atime
29.
▲
by
pflanze
3y ago
I wonder what she did after the war given she was talented with logic and programming? She couldn't have used her work as a reference, but she still had experience for a good use.
30.
▲
by
pflanze
3y ago
I've been using genawaiter[1] for writing generators in Rust. Are there things you can't build on top of async-await? Or is it just that it's simpler without that indirection? [1]: https://crates.io/crates
More ›