HNHacker News
TopNewBestAskShowJobs

hdhrufjdi

170 karma · joined December 28, 2022

submissionscomments
hdhrufjdi··on How Brompton Bicycle uses Raspberry Pi technology to improve production [video]
Thanks for the additional info
hdhrufjdi··on How Brompton Bicycle uses Raspberry Pi technology to improve production [video]
Yes, they are: https://geizhals.de/raspberry-pi-4-modell-b-a2301761.html

75€ until the end of 2021.

Now 86€ as soon as there are new PIs available, note the 8gb model: https://www.berrybase.de/en/raspberry-pi-4-computer-modell-b...

New supply later this year: https://www.raspberrypi.com/news/supply-chain-update-its-goo...

hdhrufjdi··on How Brompton Bicycle uses Raspberry Pi technology to improve production [video]
> And it is bloody expensive, for 160 euro (4GB, PI 4), I can get much better x86 mini computer,

Which one? Is it at least as power efficient idling and on full load?

PS: PIs are usually a lot cheaper. You get 8gb for half the price usually. But it seems like you'd have to wait until later this year for such prices

hdhrufjdi··on Can We Make Bicycles Sustainable Again?
Fwiw foldable bikes make storage and stairway usage way easier
hdhrufjdi··on “Clean” code, horrible performance
Handle(command) runs in another loop at the same time, the scheduler.
hdhrufjdi··on “Clean” code, horrible performance
I think we absolutely should care, because when the devices do something, the user still expects software to be fast. So if it is not fast enough, he buys a new device, because this is what he can do. He can't just buy the software rewritten. Usually

This is bad for sustainability

hdhrufjdi··on How Duolingo reignited user growth
Growth never lasts. It is impossible
hdhrufjdi··on Rust went from side project to world’s fastest growing language
Interesting point.

I allow for panics when the panic is expected to never execute, i.e. logic errors.

I see how it can be problematic, and thought of adding a general logic error for such cases. However, it adds work for devs and the machine.

Still, panics can happen for allocations, where I don't know a solution.

Would you consider this as a problem as well?

If not, no_panic should suffice, right? Yeah, it might make things harder, but for rockets you probably won't use that many external crates and a bit more work should be acceptable, shouldn't it?

What would you like to see the devs and the lang team to do?

hdhrufjdi··on Launch HN: Lago (YC S21) – Open-source usage-based billing
Unlimited except when it is too much is not unlimited.

Just set a limit then instead and don't market it as unlimited.

hdhrufjdi··on Rust went from side project to world’s fastest growing language
Bloat like?
hdhrufjdi··on Rust went from side project to world’s fastest growing language
Usually everyone knows what made it better to be in Rust, especially when it comes to C and C++.
hdhrufjdi··on Rust went from side project to world’s fastest growing language
Ever used Stackoverflow? They do yearly surveys. I am surprised there are people not aware of them
hdhrufjdi··on Matrix 2.0: How we’re making Matrix go voom
Joining a room from server perspective vs syncing the client to the rooms he has already joined
hdhrufjdi··on Matrix 2.0: How we’re making Matrix go voom
When was that the case? I can't remember tbh, and it would have been insane for rooms like Matrix HQ.

Maybe before 2020?

hdhrufjdi··on Matrix 2.0: How we’re making Matrix go voom
It's supported, e.g. mautrix-telegram uses it: https://github.com/mautrix/telegram/blob/master/ROADMAP.md
hdhrufjdi··on Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
No idea what is your point.

The compiler is happy to compile without sanitizers enabled. Why should it require to implement a null check when deallocating when it doesn't when dereferencing?

hdhrufjdi··on Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
Rust could avoid it through the Box abstraction that afaik assumes not having a nullptr
hdhrufjdi··on Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
A bit of research revealed that you don't have to call into libc. You may use alternatives or even use sys calls directly, like Go apparently did: https://stackoverflow.com/questions/41720090/does-go-depend-...

PS: small overhead is technically still overhead; yet, I am not saying you should worry about it

hdhrufjdi··on Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
The implications would be checking if it is null before performing the deallocation of the memory, which is a runtime overhead.

Stack overflow says "delete" would check for null before deallocation: https://stackoverflow.com/questions/4190703/is-it-safe-to-de...

Happy to be educated

hdhrufjdi··on Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
Just a thought: null pointer check before deallocation
hdhrufjdi··on Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
> Rust is easy to learn. For seasoned C++ programmers, Rust is easy to learn. When they first start out, Rust learners usually spend most of their time making sense of ownership and lifetime. Even if they don't explicitly express these concepts in code, experienced C++ engineers always keep these two concepts in mind when programming in C++.

Finally somebody understands this.

hdhrufjdi··on Rewrite it in Rust
And why would that be the case?
hdhrufjdi··on Google calls in help from Larry Page and Sergey Brin for A.I. fight
Take a look at their messaging service that they marketed for years as E2EE while it was closed source and uploaded the chat messages readable by Apple to the cloud
hdhrufjdi··on Firefox lost ~16M users since last year
The only mobile browser with proper ad blocking
hdhrufjdi··on Matrix.org homeserver: Severely degraded performance due to database issues
Think so too
← PreviousPage 2 of 2