Launch post: Show HN: I made a Mac app to search my images and videos locally with ML https://news.ycombinator.com/item?id=40371467 May 15,2024 | 173 comments
Show HN: I rewrote my Mac Electron app in Rust
41–50 of 465 posts
Re: Show HN: I rewrote my Mac Electron app in Rust
#42How do you run CLIP in Rust? I'm still not sure what the best inference stack on Rust is --- I tried onnxruntime bindings in Rust a few years ago and it was rather finicky to work with.
> I'm still not sure what the best inference stack on Rust is I was just looking into this today! The options I've found, but yet to evaluate: - TorchScript + tch = Use `torch.jit.trace` to create a traced model, load with tch/rust-tokenizers - rust-bert + tch = Seems to provide slightly higher-level usage, also use traced model - ONNX Runtime - Convert (via transformers.onnx) .pt model to .onnx encoder and decoder,…
Candle is a great choice overall (and there are plenty of examples) but performance is slightly worse compared to tch.
Personally, if I can get it done with candle that's what I do. It's also pretty neat for serverless.
If I can't, I check if I can convert it to onnx without extra work (or if there is an onnx available).
As a last resort, I think about shipping torchlib via tch.
Re: Show HN: I rewrote my Mac Electron app in Rust
#43Have you investigated multimodal embeddings from other models? CLIP is out of date, to put it mildly.
Re: Show HN: I rewrote my Mac Electron app in Rust
#44I recently went the other way (started a project in Tauri, moved to Electron) because of frustration with rendering differences between the web views employed on different platforms. Have you run into any cross platform UI bugs since you switched? It looks like your UI needs are pretty simple while computation is complex so the extra QA tradeoff would still be worth it for you. I'm just wondering if my experience was…
Dealing with the rendering differences isn't any more difficult with Tauri than it is when making a normal web app, is it?
Re: Show HN: I rewrote my Mac Electron app in Rust
#45I recently went the other way (started a project in Tauri, moved to Electron) because of frustration with rendering differences between the web views employed on different platforms. Have you run into any cross platform UI bugs since you switched? It looks like your UI needs are pretty simple while computation is complex so the extra QA tradeoff would still be worth it for you. I'm just wondering if my experience was…
Dealing with the rendering differences isn't any more difficult with Tauri than it is when making a normal web app, is it?
Re: Show HN: I rewrote my Mac Electron app in Rust
#46I recently went the other way (started a project in Tauri, moved to Electron) because of frustration with rendering differences between the web views employed on different platforms. Have you run into any cross platform UI bugs since you switched? It looks like your UI needs are pretty simple while computation is complex so the extra QA tradeoff would still be worth it for you. I'm just wondering if my experience was…
Dealing with the rendering differences isn't any more difficult with Tauri than it is when making a normal web app, is it?
Re: Show HN: I rewrote my Mac Electron app in Rust
#47Who are they? as far as I see ProductHunt with only 11 votes.
Re: Show HN: I rewrote my Mac Electron app in Rust
#48I recently went the other way (started a project in Tauri, moved to Electron) because of frustration with rendering differences between the web views employed on different platforms. Have you run into any cross platform UI bugs since you switched? It looks like your UI needs are pretty simple while computation is complex so the extra QA tradeoff would still be worth it for you. I'm just wondering if my experience was…
We actually haven't rolled out cross platform support yet with the Tauri version, so we will see how that goes. Our UI needs are simple, luckily. What kind of rendering differences were you seeing with Tauri? Was there one platform that worked the best/worst for your app? We'd love to support Windows next. With the Electron version of the app, we had issues running our bundled binaries on Macs with Intel chip. That c…
In particular, rendering and crashing issues specific to Linux have been blockers, but Tauri 1.x also has other rendering issues on Linux that 2.0 fixed. There's little to no guidance on what's causing the stability and new rendering problems or how to fix them.
The app I worked on was a launcher that installed and managed content for an app, and the launcher invoked the app through command-line flags. Those flags arbitrarily fail to be passed in Tauri 1.x but work as expected in Tauri 2.x, but nobody we asked about it knows why.