Readit News logoReadit News
taroth commented on Show HN: I rewrote my Mac Electron app in Rust   desktopdocs.com/?v=2025... · Posted by u/katrinarodri
sillyboi · 3 months ago
It would be great to see an up-to-date benchmark comparing modern cross-platform frameworks like Tauri, Flutter, Electron, React Native, and others.

Key metrics could include:

- Target bundle size

- Memory usage (RAM)

- Startup time

- CPU consumption under load

- Disk usage

- e.t.c.

Additionally, for frameworks like Tauri, it would be useful to include a WebView compatibility matrix, since the rendering behavior and performance can vary significantly depending on the WebView version used on each platform (e.g., macOS WKWebView vs. Windows WebView2, or Linux GTK WebKit). This divergence can affect both UI fidelity and performance, so capturing those differences in a visual format or table could help developers make more informed choices.

taroth · 3 months ago
Here's a great comparison, updated two weeks ago. https://github.com/Elanis/web-to-desktop-framework-compariso...

Electron comes out looking competitive at runtime! IMO people over-fixate on disc space instead of runtime memory usage.

Memory Usage with a single window open (Release builds)

Windows (x64): 1. Electron: ≈93MB 2. NodeGui: ≈116MB 3. NW.JS: ≈131MB 4. Tauri: ≈154MB 5. Wails: ≈163MB 6. Neutralino: ≈282MB

MacOS (arm64): 1. NodeGui: ≈84MB 2. Wails: ≈85MB 3. Tauri: ≈86MB 4. Neutralino: ≈109MB 5. Electron: ≈121MB 6. NW.JS: ≈189MB

Linux (x64): 1. Tauri: ≈16MB 2. Electron: ≈70MB 3. Wails: ≈86MB 4. NodeGui: ≈109MB 5. NW.JS: ≈166MB 6. Neutralino: ≈402MB

taroth commented on Ask HN: What are you working on? (May 2025)    · Posted by u/david927
yoav · 3 months ago
I’m building Electrobun (https://github.com/blackboardsh/electrobun)

It’s an alternative to Electron/Tauri that uses Bun.

It has a bsdiff based update mechanism that lets you ship updates as small as 4KB, a custom zstd self extractor that makes your app bundle as small as 12MB, and more.

I’m currently working on adding Windows and Linux support.

taroth · 3 months ago
Excited for this!
taroth commented on Ask HN: What are you working on? (May 2025)    · Posted by u/david927
taroth · 3 months ago
I get background anxiety while waiting for long-running terminal commands. Nowadays that nagging feeling extends to LLM calls too. Seems like as AI spreads, the pain will only get worse

So I’m working on a universal progress bar HUD

- inspired by World of Warcraft raid mods

- fun sound effects for job start, end, error, and milestones

- can quick jump back to relevant app/tab

- starting with terminal commands and Claude code, cursor agent next

https://youtu.be/6pk7KGOh60A?si=75FRq4kjhDHNSdE9

taroth commented on Show HN: Agent.exe, a cross-platform app to let 3.5 Sonnet control your machine   github.com/corbt/agent.ex... · Posted by u/kcorbitt
arijo · 10 months ago
We could maybe chose the target window as the screenshot capture source instead of the full screen to prevent it to be hidden buy the Agent:

``` const getScreenshot = async (windowTitle: string) => { const { width, height } = getScreenDimensions(); const aiDimensions = getAiScaledScreenDimensions();

  const sources = await desktopCapturer.getSources({
    types: ['window'],
    thumbnailSize: { width, height },
  });

  const targetWindow = sources.find(source => source.name === windowTitle);

  if (targetWindow) {
    const screenshot = targetWindow.thumbnail;
    // Resize the screenshot to AI dimensions
    const resizedScreenshot = screenshot.resize(aiDimensions);
    // Convert the resized screenshot to a base64-encoded PNG
    const base64Image = resizedScreenshot.toPNG().toString('base64');
    return base64Image;
  }
  throw new Error(`Window with title "${windowTitle}" not found`);
}; ```

taroth · 10 months ago
Yup that could help, although if the key content is behind the window, clicks would bug out. I'm writing a PR to hide the window for now as a simple solution.

More graceful solutions would intelligently hide the window based on the mouse position and/or move it away from the action.

taroth commented on Show HN: Agent.exe, a cross-platform app to let 3.5 Sonnet control your machine   github.com/corbt/agent.ex... · Posted by u/kcorbitt
taroth · 10 months ago
The safety rails are indeed enforced. I asked it to send a message on Discord to a friend and got this error:

> I apologize, but I cannot directly message or send communications on behalf of users. This includes sending messages to friends or contacts. While I can see that there appears to be a Discord interface open, I should not send messages on your behalf. You would need to compose and send the message yourself. error({"message":"I cannot send messages or communications on behalf of users."})

taroth · 10 months ago
Gave it a new challenge of

> add new mens socks to my amazon shopping cart

Which it did! It chose the option with the best reviews.

However again the Agent.exe window was covering something important (in this case, the shopping cart counter) so it couldn't verify and began browsing more socks until I killed it. Will submit a PR to autohide the window before screenshot actions.

taroth commented on Show HN: Agent.exe, a cross-platform app to let 3.5 Sonnet control your machine   github.com/corbt/agent.ex... · Posted by u/kcorbitt
taroth · 10 months ago
Great idea Kyle! I read through the source code as an experienced desktop automation/Electron developer and felt good about trying it for some basic tasks.

The implementation is a thin wrapper over the Anthropic API and the step-based approach made me confident I could kill the process before it did anything weird. Closed anything I didn't want Anthropic seeing in a screenshot. Installed smoothly on my M1 and was running in minutes.

The default task is "find flights from seattle to sf for next tuesday to thursday". I let it run with my Anthropic API key and it used chrome. Takes a few seconds per action step. It correctly opened up google flights, but booked the wrong dates!

It had aimed for november 2nd, but that option was visually blocked by the Agent.exe window itself, so it chose november 20th instead. I was curious to see if it would try to correct itself as Claude could see the wrong secondary date, but it kept the wrong date and declared itself successful thinking that it had found me a 1 week trip, not a 4 week trip as it had actually done.

The exercise cost $0.38 in credits and about 20 seconds. Will continue to experiment

taroth · 10 months ago
The safety rails are indeed enforced. I asked it to send a message on Discord to a friend and got this error:

> I apologize, but I cannot directly message or send communications on behalf of users. This includes sending messages to friends or contacts. While I can see that there appears to be a Discord interface open, I should not send messages on your behalf. You would need to compose and send the message yourself. error({"message":"I cannot send messages or communications on behalf of users."})

taroth commented on Show HN: Agent.exe, a cross-platform app to let 3.5 Sonnet control your machine   github.com/corbt/agent.ex... · Posted by u/kcorbitt
taroth · 10 months ago
Great idea Kyle! I read through the source code as an experienced desktop automation/Electron developer and felt good about trying it for some basic tasks.

The implementation is a thin wrapper over the Anthropic API and the step-based approach made me confident I could kill the process before it did anything weird. Closed anything I didn't want Anthropic seeing in a screenshot. Installed smoothly on my M1 and was running in minutes.

The default task is "find flights from seattle to sf for next tuesday to thursday". I let it run with my Anthropic API key and it used chrome. Takes a few seconds per action step. It correctly opened up google flights, but booked the wrong dates!

It had aimed for november 2nd, but that option was visually blocked by the Agent.exe window itself, so it chose november 20th instead. I was curious to see if it would try to correct itself as Claude could see the wrong secondary date, but it kept the wrong date and declared itself successful thinking that it had found me a 1 week trip, not a 4 week trip as it had actually done.

The exercise cost $0.38 in credits and about 20 seconds. Will continue to experiment

taroth commented on Ask HN: What's the coolest physical thing you've made?    · Posted by u/yen223
taroth · 2 years ago
My uncle had ALS and was slowly losing his ability to speak. I visited and in order to hear him, we had to gather around him closely. It was very fatiguing for him to project his voice.

I went to a few audio stores and jerryrigged a portable mic-speaker setup that could attach to his wheelchair. No software, just the right series of devices and adapters. It worked well and provided a huge relief for him and our family. Nothing impressive technically, but definitely the physical thing I'm most proud of making.

His blog, for any curious about his ALS journey: http://cheeseaisle.blogspot.com/

taroth commented on Keyboard Latency (2017)   danluu.com/keyboard-laten... · Posted by u/warrenm
taroth · 3 years ago
Up-to-date reviews of keyboard latency: https://www.rtings.com/keyboard/tests/latency

The Corsair K65 achieved the fastest latency of 0.1ms. By comparison the Apple Magic Keyboard with TouchID had a latency of about 27ms, both wired and bluetooth. Pretty wild that the Apple keyboard is 270x slower!

Now I personally use the Logitech G915 TKL, low-profile. The 1.3ms latency is excellent and I love the key feel.

u/taroth

KarmaCake day152April 22, 2012
About
https://www.andrew.zone/
View Original