HNHacker News
TopNewBestAskShowJobs

bfrog

2,176 karma · joined April 25, 2011

submissionscomments
bfrog··on Earth is warming faster. Scientists are closing in on why (2024)
If only the entire compute infrastructure of the planet could solve fusion power perhaps it'd come full circle.
bfrog··on Earth is warming faster. Scientists are closing in on why (2024)
[flagged]
bfrog··on Is Rust faster than C?
It's neat this is a thing I guess, but I agree it looks fairly clumsy compared to the Rust answer.
bfrog··on Ask HN: How can we solve the loneliness epidemic?
Move to a country that lives outside and isn't car dependent.
bfrog··on Microsoft keeps reinstalling Copilot, so I found a way to rip it out for good
Install Linux, never look at microspyware again.
bfrog··on Is Rust faster than C?
C++ you either use templates or classes and virtuals. In either case the caller doesn't get to decide.
bfrog··on Servo 2025 Stats
This is good to see! Ultimately a FOSS project lives or dies on contributors and contributions from them. Seeing this grow is a sign of health and for servo this is great to see!
bfrog··on Is Rust faster than C?
One example where Rust enables better and faster abstractions is traits. C you can do this with some ugly methods like macros and such but in Rust it’s not the implementers choice it’s the callers choice whether to use dynamic dispatch (function pointer table in C) or static dispatch (direct function calls!)

In c the caller isn’t choosing typically. The author of some library or api decides this for you.

This turns out to be fairly significant in something like an embedded context where function pointers kill icache and rob cycles jumping through hoops. Say you want to bit bang a bus protocol using GPIO, in C with function pointers this adds maybe non trivial overhead and your abstraction is no longer (never was) free. Traits let the caller decide to monomorphize that code and get effectively register reads and writes inlined while still having an abstract interface to GPIO. This is excellent!

bfrog··on Embassy: Modern embedded framework, using Rust and async
How would time slicing work?
bfrog··on Embassy: Modern embedded framework, using Rust and async
It has literally split the ecosystem I’m not sure why people think it hasn’t. There’s basically embassy then everything else. Embassy has been quite successful in large part because its primary author took the time to make it good.

If you look at espressif and how they support rust they have to offer both blocking and non blocking options, they also offer using rust on their freertos and C library setup. It’s quite an undertaking to do all of this.

bfrog··on Embassy: Modern embedded framework, using Rust and async
Show me how time slicing or deadline scheduling would work with multiple priorities (InterruptExecutor's) involved. Show me how a task in an InterruptExecutor would priority boost a task of a lower priority, switch to it, then switch back to free up a locked resource. I don't see how these things are feasible in Embassy.

There's a large number of things that the cooperative scheduler can't do. Maybe you don't need those things, that's fine! Embassy really is quite nice for cooperative task scheduling. But to benchmark a context swapping RTOS which can and pays the cost for doing so, against a cooperative task queue scheduler... these are not at all the same things, and won't have the same performance characteristics in simple scenarios like the one in the blog post.

bfrog··on Changes to Android Open Source Project
I think you had the wrong idea on security here, the security is for the device manufacturers benefit to obsolete the hardware and force you to buy a new one not for your benefit. All the data is already being shipped off to where the hell ever for building models of you for advertising and more.
bfrog··on Oh My Zsh adds bloat
I use fish now instead, honestly a nicer shell and shell language all around.
bfrog··on Exercise can be nearly as effective as therapy for depression
Nothing has solved sadness for me as well as lifting weights, long fast bike rides, and team sports. Nothing.
bfrog··on Diving into Qualcomm's Upcoming Adreno X2 GPU with Eric Demers
If only Qualcomm knew how to do software more than lawyer.
bfrog··on Dell admits consumers don't care about AI PCs
NPU is space that would've probably been better put into something like a low power programmable DSP core, which they more or less are depending on which one you are looking at but with some preconceived ideas on how to feed the DSP its data and get the hardware working. You don't get to simply write programs on them usually from what I've seen.
bfrog··on Embassy: Modern embedded framework, using Rust and async
I've read this, and frankly its comparing apples to oranges. These are not the same things though naively they may appear the same.
bfrog··on Embassy: Modern embedded framework, using Rust and async
It doesn't have anything to do with it. It's some nice syntax over cooperative multitasking.
bfrog··on Dell admits consumers don't care about AI PCs
It’s more like you need to program a dataflow rather than a program with instructions or vliw type processors. They still have operations but for example I don’t think ethos has any branch operations.
bfrog··on Embassy: Modern embedded framework, using Rust and async
How async works with embassy is also interesting. In effect it works like a work queue, when something is waiting on a waker (interrupt) and is woken, the Future (task) is enqueued to be polled (run) by the executor.

There’s good and bad things about this. It’s clever for sure but there can be variable latency between when the hardware event occurs and when the next step in the task starts. This is a lot like zephyr/linux work queues but with linear reading code sprinkled with async/await.

bfrog··on Embassy: Modern embedded framework, using Rust and async
It's also being used by microsoft for EC https://opendevicepartnership.org/embedded-controller
bfrog··on Embassy: Modern embedded framework, using Rust and async
It can, but adds some caveats that rtic does not have like dead locking.
bfrog··on Pebble Round 2
Garmin has been doing this for years now. The watches are built incredibly well and are well worth the cost.
bfrog··on Love your customers
It turns out that you don’t have to love your customers to make money. Abuse is the end state of most products once they’ve reached a point where there are few if any customers left to enthrall but still the world demands ever greater profit. VMware was and is there. Intel too actually.
bfrog··on Only 5 Sears stores remain in the U.S.
Intel famously pivoted from memory. Maybe it’ll still get to where Pat wanted it to go as a foundry in its most recent pivot attempt, unclear yet.
bfrog··on Claude wrote a functional NES emulator using my engine's API
How much was grifted from existing emulators?
bfrog··on Huge Binaries
Sounds like Google could really use Nix
bfrog··on As AI gobbles up chips, prices for devices may rise
Make all RAM the same density, lease out extra RAM through software. Rent all the things. Blackrock demands it.
bfrog··on As AI gobbles up chips, prices for devices may rise
AI has had a net negative on my life and created negative value for me and my family. It's raising my power rate. It's stealing my ideas and creative output. All to enrich a select few assholes who didn't need any more enrichment.

AI embodies everything wrong with our modern gilded age era of capitalism.

bfrog··on OrangePi 6 Plus Review
Devicetree continues to be a massive crutch for arm soc vendors.
← PreviousPage 3 of 34Next →