HackerTrans
TopNewTrendsCommentsPastAskShowJobs

zduny

no profile record

Submissions

I made “zzrpc” – RPC library for Rust

github.com
2 points·by zduny·4 anni fa·0 comments

Ask HN: What is this aversion to Rust on online forums about?

6 points·by zduny·4 anni fa·9 comments

I made a guitar tuner app using Flutter and Rust

justune.eu
208 points·by zduny·4 anni fa·146 comments

comments

zduny
·4 anni fa·discuss
Thanks for mentioning the problem. I haven't noticed it using a laptop and trackpad.
zduny
·4 anni fa·discuss
I'm considering adding that feature in future versions depending on interest.
zduny
·4 anni fa·discuss
Look at this crate: https://crates.io/crates/pitch-detection

It has documentation attached mentioning pitch detection algorithms it implements.
zduny
·4 anni fa·discuss
It's not great. Especially on the web.
zduny
·4 anni fa·discuss
It's amazing for UI (and portable).

Rust - not so much (or more like not at all) at the moment.
zduny
·4 anni fa·discuss
Heh, I always get those two crates names confused, even now, rereading comments I again thought it was "clap" and not "cpal" (because "clap" like in "clapping").
zduny
·4 anni fa·discuss
But I feel like there's some deeper story about Rust that I've missed and am out of the loop now.

Well, to me Rust is just a tool that I've discovered, it meet my expectations so I started using it.

Only then I've started noticing comments on reddit or whatever like "bleh, not Rust again" and really don't get why a programming language can be so triggering to people.
zduny
·4 anni fa·discuss
I meant https://github.com/RustAudio/cpal (should've checked).
zduny
·4 anni fa·discuss
What 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...
zduny
·4 anni fa·discuss
20 promo codes for the Android app:

[all codes have been redeemed]
zduny
·4 anni fa·discuss
Performance 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).
zduny
·4 anni fa·discuss
Well, all the Rust crates I've mentioned in other comment have comprehensive examples attached, so it's just a matter of connecting their functionality together :)
zduny
·4 anni fa·discuss
Ok.
zduny
·4 anni fa·discuss
I don't know if it is allowed here:

Please reply if you would be interested in free promo codes for the Android app, I will post some.
zduny
·4 anni fa·discuss
Android or Web?

If web - well, it sadly requires modern browser on relatively modern hardware - it has some performance problems currently in browsers, I'm not happy about that fact, I am considering improving it if the app catches enough interest.

If Android - please consider returning the app and getting your money back as long as you still can - I'm afraid I won't be able to solve it in quick fashion.
zduny
·4 anni fa·discuss
Not at the moment. Sorry.

I'm planning to create a simpler free version of the app for the sake of cross-promotion, I may open source that one (but I can't make any promises currently, both regarding creating the actual app and open sourcing it).
zduny
·4 anni fa·discuss
Maybe in future version :)
zduny
·4 anni fa·discuss
Yes, I did the app mostly for myself as I was getting disappointed with them adding too many unnecessary (IMO) features to it.
zduny
·4 anni fa·discuss
Flutter for the UI. Rust for the listening, and pitch detecting backend. Connected the former with the latter using flutter_rust_bridge.

More details on Rust backend:

For listening (getting audio signal from microphone) I used:

- Android: https://crates.io/crates/oboe

- native desktop/iOS (not currently released): https://crates.io/crates/clap

- Web: https://crates.io/crates/web-sys (so basically JS Web Audio API called from Rust compiled to WASM).

For pitch detection:

- https://crates.io/crates/pitch-detection
zduny
·4 anni fa·discuss
It's available free (and no ads) for desktop browsers and as a $1 Android app (on mobile needs to be an app for performance reasons and I believe it's a fair price).