Better HN
topnewbestaskshowjobs
Log inSign up

tmpfs

306 karma · joined Jan 26, 2016 (10y ago) · 111 submissions

[ my public key: https://keybase.io/muji_tmpfs; my proof: https://keybase.io/muji_tmpfs/sigs/_sKVH2K4C9t3e4F2lnSf5ocsdtndQaKupyyXtQxM7Xw ]
Submissions

comment 2y ago · link · parent

These are some really good suggestions.

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.

[1] https://docs.rs/ouroboros/latest/ouroboros/

comment 2y ago · link · parent

It's good that Apple have decided to improve their offering for password management but a bit overdue and lacking in cross-platform support. Also, it's risky to allow large corporations control over our most sensitive information.

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

Hi @caseyohara,

You might want to try our modern, open-source, cross-platform alternative[1]

The self hosted server v1 will land in the next few weeks.

[1] https://saveoursecrets.com

comment 2y ago · link · parent

Thanks for clarifying, that makes sense. I have a hybrid dart/rust app, so not much java code in there to profile. Neat idea to record video along with the profiling trace and wish you success.

comment 2y ago · link · parent

Looks very neat and the website is polished too, good job.

I assume this would work for Flutter apps too but I would need to run using Android Studio instead of the flutter CLI - is that correct?

comment 2y ago · link · parent

Looks very neat and the website is polished too, good job.

I assume this would work for Flutter apps too but I would need to run using Android Studio instead of the flutter CLI - is that correct?

comment 2y ago · link · parent

This looks great and the pricing is obviously a big improvement, I will try it out for our Linux jobs.

Sure would be good to see competition for the MacOS and Windows runners too, these are the ones that tend to cost us the most.

comment 2y ago · link · parent

I am interested in this type of app but on mobile a lot of the website content is cut off, I respectfully suggest you check your site design on smaller devices, I found the cropped content off-putting.

comment 2y ago · link · parent

A lot of comments here but I have still never seen people talk about the absolutely perfect use case for a block chain.

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

Got to disagree here, a typical use case based on my experience is a parser holding a &str as well as an AST that does zero-copy references into the string.

comment 3y ago · link · parent

Exactly, thanks for highlighting this, it always really irked me about the gettext design that they were tightly coupled to the source translations.

comment 3y ago · link · parent

I have used this and it is a welcome advance on the older techniques such as gettext.

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

I had a go at this a while ago, uses the markdown AST to build a program descriptor:

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 3y ago · link · parent

To clarify here, this is just public key cryptography using ECDSA signing keys to verify an identity.

Whilst it is blockchain-adjacent it does not use a blockchain for identity verification, it just checks the owner has access to a particular private key.

comment 3y ago · link · parent

I took it for a spin and got a Golang panic every time i tried to deploy a container.

Not a good impression of the service. I think some of their engineers are excellent and will check back again in a few years to see if it is stable.

comment 4y ago · link · parent

This is fantastic! My only nitpick would be that the `time` crate is now fully featured and can be a drop in replacement for `chrono`.

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 did this as my project to learn Rust, to build with all the features needed for a good static site generator was a great way to learn!

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].

[1] https://stage.uwe.app/

comment 4y ago · link · parent

I used to have one of these machines, quite frankly one of the worst machines i have ever owned.

Continuous hardware problems with the keyboard and trackpad. Do NOT recommend.

comment 4y ago · link · parent

I think you are right about this with the one huge problem from my point of view being the text rendering on Windows.

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

Having worked in the localization space over a decade ago when gettext was still the industry standard I was pleased recently to use Fluent which I think is a better more modern approach:

https://projectfluent.org/

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

The Prophet by Kahil Gibran

comment 4y ago · link · parent

Whilst the trust model is not perfect and a reputation based model with signed audits would represent an improvement I welcome this as progress in preventing supply-chain attacks. A worthwhile effort in my opinion.

comment 4y ago · link · parent

Oh, this is great to hear, no longer need to rely on crossbeam for scoped threads.

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

Whilst i like the sentiment being a massive fan of minimalism i don't understand why Markdown to HTML with an ultra-simple stylesheet would not be a better solution. Trivial to strip Markdown to plain text and easy to convert to HTML, best of both worlds. Let the user choose how they want to consume the content either via RSS, markdown (or plain text) or formatted HTML.

comment 4y ago · link · parent

I disagree with all the points in the article with the exception of lifetimes which i do find cumbersome at times due to the way they have to be propagated which makes refactoring to references awkward.

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

I recently wasted time figuring out why my code was getting executed twice and found this out the hard way. I think this is a particularly good example of overreach by Javascript developers and at the very least a console.warn could have notified me of this. I just removed strict mode as i think this is an awful side effect to implement. In my case, instead of helping me find bugs it had me hunting non-existent bugs, sigh.

comment 4y ago · link · parent

This doesn't sound right to me, are you running your WASM in a worker so it doesn't block the main UI thread?

comment 4y ago · link · parent

This is the correct answer. Relative paths are incorrect without a trailing slash.

Use trailing slashes please.

comment 5y ago · link · parent

We are working on this here [1].

Uses the object capability model provided by SES [2].

[1] https://github.com/LavaMoat/LavaMoat [2] https://github.com/endojs/endo

comment 5y ago · link · parent

Arrow functions replace the need to use `bind` and you can still use `with` just not in strict mode unfortunately.
1234