306 karma · joined Jan 26, 2016 (10y ago) · 111 submissions
comment 2y ago · link · parent
I think a "syntax for lifetimes on places" (2) is really neat and would make lifetimes much easier to reason about, by removing the indirection and being explicit about where the borrow is from in the declaration makes the intention much clearer.
But my personal favorite is the point about "internal references" as I struggled with this a couple of times. I think this would be an excellent improvement. In the end I used ouroborous [1] to achieve this but having it built in to the language would be excellent.
comment 2y ago · link · parent
I have been working on solving password management as a local-first, cross-platform, open-source application[1]. It's a bit rough around the edges still (no browser extension yet!) but is worth trying as an alternative. Any feedback would be much appreciated!
The app is designed for zero vendor lock-in (after all this is our most sensitive data) and a self-hosted server is part of the design. We aim to make money offering a cloud platform for syncing and social recovery (digital inheritance) and eventually would like to also function as a Dropbox/Keybase alternative.
We will be releasing the open-source SDK[2] soon.
All comments or suggestions welcome.
[1]: https://saveoursecrets.com [2]: https://docs.rs/sos-sdk/latest/sos_sdk/
comment 2y ago · link · parent
Mandate that all government spending use a block chain so that all citizens can see government spending. All public finances visible to all citizens.
I think we have got it backwards trying to use the technology as untraceable peer to peer currency, instead focus on visibility into government finances to combat corruption and nepotism.
comment 3y ago · link · parent
Just be aware that not all the implementations have all the functionality, for example, i learnt the rust implementation does not yet support the date/time formatting.
I recommend taking it for a spin.
comment 3y ago · link · parent
https://github.com/mkdoc/mkcli
I think docopt is a better choice as it has more traction but this experiment showed me a pure markdown implementation is feasible.
comment 4y ago · link · parent
It also seems to be more actively maintained than `chrono`; i would recommend preferring `time` for new projects.
I wish this existed when i was starting out with Rust ;)
comment 4y ago · link · parent
I still haven't released it as there are some bugs (localization!) that i need to fix but if you want to have a play the staging site is here[1].
comment 4y ago · link · parent
This is of course a problem with the Webview implementation on Windows but it is so awful it makes me want to use something else instead.
Note this is not a reflection on Tauri which I think is awesome but Microsoft really should fix it.
comment 4y ago · link · parent
Worked well for my use case but still needs more progress to be fully featured across all supported programming languages, for example, i found some more advanced features missing in the Rust implementation. Really worth checking out.
comment 4y ago · link · parent
Whilst i can imagine this is useful in a variety of situations, it is particularly useful when trying to merge async and synchronous code which can sometimes be quite messy. Sometimes it is necessary to have a top-level runtime executing and spawn an async task from some synchronous code, the only way I know of to do this is spawn a thread and execute it in a separate runtime, without the 'static lifetime requirement that scoped threads allow makes it much easier to manage this kind of code.
Nested runtimes are a pattern to avoid if possible but sometimes it's necessary for complex programs.
Very excited to see this land, thanks to the Rust team!
comment 4y ago · link · parent
comment 4y ago · link · parent
I think the larger standard library of a language like Go is appealing but Rust is a community effort and doesn't have Google scale resources to maintain a large standard library.
I particularly abhor Go style uppercase for public visibility and much prefer Rust's explicit syntax. In addition, i find Rust's module system very enjoyable and prefer it to any other language i have used once i got familiar with it.
comment 4y ago · link · parent
comment 5y ago · link · parent
Uses the object capability model provided by SES [2].
[1] https://github.com/LavaMoat/LavaMoat [2] https://github.com/endojs/endo