Better HN
topnewbestaskshowjobs
Log inSign up

tcfhgj

1,635 karma · joined Dec 31, 2021 (4y ago) · 1,533 submissions

socialist eco terrorist
Submissions

comment 22h ago · link · parent

> Probably, particularly in terms of writing correct code.

package management, build system, compiler errors, language simplicity (yes, it adds life times, but removes so many other things), Rust macros, language ergonomics (e.g. match, macros, enums, async, if let, etc.), not having to think about certain things going wrong (including not debugging why things went wrong)

> Rust makes [multithreaded code] painful.

Andreas Kling is switching away from C++ to Rust in Ladybird, because of exactly the reversed experience.

I have been using asynchronous multithreading via tokio - something I never dared to in C++. Alone from the compiler errors I have got doing that, I would assume that I would have been dealing with an unbearable amount of debugging of subtle memory issues.

comment 23h ago · link · parent

> Here's the thing. I'd say that C++ is a great language for getting things done.

my productivity sky rocketed when I switched to Rust.

comment 1d ago · link · parent

While I am even doing that in a project if mine, I'd rather not load Lua and instead just run `serde_json::from_str()` or similar.

comment 3d ago · link · parent

You don't need to spawn tasks for concurrency.

https://docs.rs/tokio/latest/tokio/macro.join.html

comment 4d ago · link · parent

AI will help us battle climate change, they said.

comment 1w ago · link · parent

> I do not even understand how I can "verify" a temporary browser session which gets destroyed after a log out.

why shouldnt you be able to do that? Even WhatsApp does it

comment 1w ago · link · parent

Seems like Synapse does:

https://matrix-org.github.io/synapse/latest/setup/installati...

comment 1w ago · link · parent

> Is the person hosting the Matrix instance not the single particular entity you are now at the mercy of?

to some degree, but you could migrate to a different or your own instance without needing to convince your contacts to do the same.

comment 1w ago · link · parent

Both variants are just different syntax for the same thing.

comment 1w ago · link · parent

> proc-macro to autogenerate it.

https://docs.rs/strum/latest/strum/derive.EnumDiscriminants....

comment 1w ago · link · parent

yeah, but fortunately strum exists.

I have found it quite useful to be able to generate a dedicated SomeEnumDiscriminants enum for SomeEnum, using the following derive:

https://docs.rs/strum/latest/strum/derive.EnumDiscriminants....

comment 1w ago · link · parent

interesting, these days I couldn't imagine using computers without internet

comment 1w ago · link · parent

Matrix doesn't forbid you either.

You can implement it locally, store it in the matrix account data and/or create a MSC for a standardization of your approach.

comment 1w ago · link · parent

The security comes from E2EE - which happens in the clients not the server

comment 1w ago · link · parent

No, i really don't want to have electron level bloat as a terminal

comment 1w ago · link · parent

If there was just something like E-Mail or Matrix free from Microsoft dependency

comment 1w ago · link · parent

consumer outlook aka send your pw to M$ cloud outlook

comment 2w ago · link · parent

And how many used a computer?

comment 2w ago · link · parent

Jevons Paradox

comment 2w ago · link · parent

I have 32 GB - 4 GB = 28 GB of RAM in my notebook, I close electron apps every day to free memory.

comment 2w ago · link · parent

sry wrong link: https://news.ycombinator.com/item?id=50365335

comment 2w ago · link · parent

You cannot separate performance from memory usage. Usually less memory usage for apps comes at the cost of performance and vice versa.

And more memory usage can slow down the whole system, because the system may need to swap and compress memory.

comment 2w ago · link · parent

Yes never

comment 2w ago · link · parent

The topic was ram usage during runtime.

comment 2w ago · link · parent

The number of packages doesn't have anything to do with this

comment 2w ago · link · parent

Even vs code is slow compared to a native app - noticable with large or many files; with search and replace in larger files (xx mb) it even crashes

comment 2w ago · link · parent

On Windows youd use windows-rs

comment 2w ago · link · parent

> All the performance and other arguments are just not true, a well build webapp is often more performant than a native app especially for long scroll lists not even to mention accessibilty, extensions and more.

A well built web app will never be more performance than a well built native app. It's just inherent due to the JavaScript abstraction.

comment 2w ago · link · parent

certainly not valid for the most used electron projects

comment 2w ago · link · parent

https://news.ycombinator.com/user?id=afdbcreid
12345
52