5 ms·
This might have an obvious answer for the more experienced here, but (potentially stupid question) why didn't you use dart for this? Nothing against rust, just
by account-5 4y ago
This might have an obvious answer for the more experienced here, but (potentially stupid question) why didn't you use dart for this?
Nothing against rust, just interested is all considering the dart/flutter relationship.
- zduny 4y agoPerformance reasons, also wanted it to work on the web (Flutter web support is fairly recent, and dart/flutter libraries don't automatically work on the web, they have to support the platform).
- account-5 4y agoThanks. Is dart performance that bad? I thought it compiled to machine code if needed. With the web support I was hoping the since dart can be transpiled to JS Flutter might do something similar. I'll have to look into this, I'm learning Dart due to its ability to run on most platforms.
- skybrian 4y agoIt's hard to say with performance (you need to measure), but I'll point out that for the web, Dart is compiled to JavaScript. Performance is pretty good, but as with JavaScript performance, there are performance cliffs depending on how well V8, SpiderMonkey, or JavaScriptCore is able to optimize the code. An audio worklet is pretty standalone and compute intensive, so it seems like a good place to use WebAssembly.
- zduny 4y agoIt's not great. Especially on the web.
- n4bz0r 4y ago
- timeon 4y ago[flagged]
- zduny 4y agoWhat is that anger about Rust on internet forums about? I started learning Rust because it's a language with interesting characteristics and welcoming documentation. Only then I've discovered it's apparently "controversial" for some reason...
- zdragnar 4y agoMembers of the rust community were often accused of being overly-enthusiastic in recommending that things be rewritten in rust, so much to the point it more or less became a meme unto itself. Now, visceral anti-rust gut reactions are more commonplace than inappropriate suggestions to use rust are. Even that is petering out, though.
- n4bz0r 4y agoDammit. Was writing a similar yet a bit more extensive elaboration on my phone, but accidentally refreshed the page a-a-and... it's gone :') Truly a RRRRREEEEEEEEEEEEEEE moment. Basically, 'this ^', but wanted to add that the post was a lighthearted jab and a comical insinuation. Which, by the way, according to the little rollercoaster of upvotes and downvotes, seem to have raised a micro controversy of it's own. Which adds another layer of comedy to the entire situation. A-A-ANYWAY. Since I was a bit upsetting, adding a (hopefully) evening out, on-topic suggestion. For tuning my guitars, I often use gStrings app [0]. For some reason it's much better at 'catching' freqencies than the alternatives. Can't recall all the names, but I've tried most of the popular ones (such as Guitar Tuna, the Fender's one, etc). Might wanna check it out and see if there are some tricks to borrow :) [0]: https://play.google.com/store/apps/details?id=org.cohortor.gstrings https://play.google.com/store/apps/details?id=org.cohortor.g...
- nu11ptr 4y agoSpeaking only for myself, I'm considering Flutter + Rust because I want to write everything in Rust, but there aren't great GUI options for Rust atm. I've heard good things about the rust<->dart bridge so it seems like a reasonable compromise, esp. given the Dart code to write Flutter UIs seems fairly declarative. Hoping to keep most of the logic in Rust and just the view in Flutter/Dart.
- UltimateEdge 4y agoDo you mean this https://github.com/fzyzcjy/flutter_rust_bridge https://github.com/fzyzcjy/flutter_rust_bridge ?
- nu11ptr 4y agoyes