Simonas
12.1K posts


@mycoliza @ManishEarth @lunasorcery Eh, seems more like an issue with how rustfmt formats stuff.
To be fair, I do agree that keeping track of "is this still a function call?" can be difficult if you encounter them after a longer closure (or two!), and it’d remain an issue regardless of formatting.
English

@ManishEarth @lunasorcery .do_stuff(foo, bar, |x| {
blah(x);
wiggle(x)
})
looks better than
.do_stuff(
|x| {
blah(x);
wiggle(x)
},
foo,
bar,
)
(at least, IMO)
English

@lunasorcery not sure but I assume because rust was partly designed by rubyists and ruby loves closure-at-the-end bc it has special syntax for it
English

@nick_r_cameron For the latter question, not so much. The `Rust` ABI isn't particularly awesome, but with `Rust` ABI being unstable there’s still hope that using it over any other ABI might produce more efficient code in the future.
English

@nick_r_cameron `no_mangle` causes symbol collisions when crates get duplicated. If there's an option to avoid using `no_mangle` it is always beneficial to do so. Passing callbacks, calling functions from inline assembly, and similar uses don’t need it for example.
English
Simonas retweetledi

The 2022 State of Rust Survey is here! surveyhero.com/c/sfhmgxgd
English

I’m sure this is all just y'all at Google becoming better at C and C++ now that you all that extra time during the lockdowns to get good!
Jeff Vander Stoep@jeffvanderstoep
For more than a decade, memory safety vulnerabilities have consistently represented more than 65% of vulnerabilities across products, and across the industry. On Android, we’re now seeing something different: security.googleblog.com/2022/12/memory…
English

@whitequark Not to mention that a hob really rarely stay at peak rated power for extended time. The battery would really start mattering a lot when there are 2+ pans at high heat. And unless there's a cooking technique that involves making charcoal, pans rarely stay on high for long.
English

I would hold off on stating how quickly that thing requires repair or becomes e-waste; you do have enough space there for Li batteries storing enough energy for twenty minutes at reasonable power, so if they cycle them very gently, it could last a while
twitter.com/polyparadigm/s…
English

can someone who's from the US clarify how this product makes sense. like, if you want an electric stove and you go through the trouble of getting a countertop integrated one, why don't you have or get 208 V there? why do you need batteries in your stove?
twitter.com/sdamico/status…
Sam D'Amico@sdamico
Our first product is something that’s been in the climate zeitgeist for a while, and the sole reason many homes keep gas lines at all — the stove. We figured out a huge trick to make the best one.
English

