News for hackers. Stuff that matters.

vrtcn

Re:Rewriting Bun in Rust on Thursday July 09, 2026 @04:57AM (#48842953)
I am a bit suspicious about the choice of startup time as the metric to evaluate performance in Claude Code. With a rewrite from a language like Zig to Rust, my biggest performance concern would be allocation. Where a Zig app might use a fast linear or buddy allocator, a Rust app is more likely to use malloc. During startup, both versions are likely to make tons of allocations. In fact, the Zig version is likely to make larger allocations during startup to reserve memory for its custom allocators. So I would expect both versions to be roughly on par, or Zig slightly worse there. However, during normal execution, I would expect the Zig version to be potentially faster, because it has paid the cost of malloc at startup and now an allocation might be as fast as incrementing an integer. This is speculation, but I would like to see performance numbers for the rest of the app lifecycle.
Re:Show HN: Async tasks in 350 lines of C on Tuesday March 12, 2024 @06:31AM (#39677950)
The tasks themselves come from a pool and are reused automatically, so no call to `free` is needed there. As for the executor, destroying it is a bit involved, because you need to wait for the currently executed task to finish before joining the threads and releasing the resources. It is a feature I do want to work on in the future though.

Predicting an enormous waste of time building UI frameworks with WASM and WebGPU

I am willing to bet (inflation-adjusted) 1000$ that in the next decade, multiple teams will see the advent of Wasm and WebGPU as a perfect reason to have yet another go at a cross-plattform UI framework. These projects will claim to have "native" UI elements, but it will be obvious that the are really just rebuilding everything to look like the native counterparts (similar to Flutter)....

( Read More... | 17 comments | on HN )
Re:Consciousness is not computation on Monday June 20, 2022 @01:56AM (#31806768)
I refuse to believe that these takes are not clickbait at this point
Re:Ask HN: What Happened to Mighty App? on Thursday June 16, 2022 @05:54PM (#31771466)
IMO, this is a product for five years ago, when sites like figma were beyond the capabilities of most machines. Looking five years ahead, most of their potential users (higher income or working at companies able to afford the subscription fee) will have moved on to M-series machines from Apple. Intel and AMD will probably also have catched up far enough to be able to efficiently handle most use cases, for companies that cant or dont want to switch to macOS.

Honestly, as much as I admire the energy of their founder, I think this product should have never gone far past the idea phase with Apple experts like Rene Ritchie having predicted the integration and performance benefits of Apple Silicon since the first rumors came up many years ago.

Highly dubious... asking for access to control the computer, asking for email, communicating with their servers. I don't care how much time this would save me, it absolutely isn't worth the risk.
Re:Swift Actors: A practical example, part 1 on Tuesday May 11, 2021 @05:51AM (#27116133)
As far as I know, the new concurrency features can be adopted gradually which would make it very simple for developers to transition from the current completionHandler-based model to the new async/await-based model. Every Obj-C UIKit method with such a completionHandler parameter would from now on be available in two ways from Swift: 1. as usual, with completionHandler 2. new, without completionHandler, marked as ‚async‘ and returning the input types of the completionHandler