Shoothe
Joined 9 years ago
Joined 9 years ago
It is possible to work around the "color" by using generators [0], that way one algorithm can be used in synchronous and asynchronous way. Async await tightly bind to underlying Promises.
[0]: https://curiosity-driven.org/promises-and-generators#decoupl...
It's funny looking at the page with various packs, just like a normal service: "express delivery", "high quality"!
Ha, I had the same feeling when I needed to create a simple REST service that'd just process a request using command line tools. Seems easy but Rust's tooling is full of rough edges. Code completion sometimes works sometimes doesn't, cargo cannot install dependencies only (without building source) so it's not good for Dockerfile layers, etc. etc. Borrow checker is not bad at all for people that worked with languages with explicit memory management (where you do ownership tracking in your head anyway).
Long story short I spent 2 days working on the service and had 80% done but figured out the rest would take twice as much if I want this to be production quality. I scraped the project and rewritten it in node, using one or two dependencies in 2 hours.
I'll be trying Rust again surely and I'm glad that articles like this one exist!
[0]: https://movim.eu/
XMPP? Check out https://conversations.im/ and https://dino.im/
Encrypted, federated and modern.
There is also CONIKS and Google's Key Transparency.
This comes to my mind: https://medium.com/@bbc4468/centralized-vs-decentralized-vs-...
Twtxt is minimalist but functional: https://github.com/buckket/twtxt
The opinions expressed in my posts are my own and not necessarily those of my employer.