Readit News logoReadit News
lytedev commented on Libghostty is coming   mitchellh.com/writing/lib... · Posted by u/kingori
threecheese · 3 months ago
How can you use grep to search the scrollback/screen buffer?
lytedev · 3 months ago
I don't want to presume your use case, but Ghostty has a command for dumping the buffer to a file, which I use for processing output "too late" to use grep.

keybind = ctrl+alt+shift+o=write_scrollback_file:open

lytedev commented on Pass: Unix Password Manager   passwordstore.org/... · Posted by u/Bogdanp
andrewrn · 3 months ago
Growing tired of Bitwarden in the browser, so this is pretty intriguing. But its hard to forgo mobile compatibility.
lytedev · 3 months ago
Bitwarden has a desktop GUI app as well as an official CLI. If you're comfortable with it, there are also community ones like https://github.com/doy/rbw
lytedev commented on Projects evaluated to see if they're as free and open source as advertised   isitreallyfoss.com/... · Posted by u/exiguus
the_mitsuhiko · 5 months ago
I think this is not particularly impartial. Sentry is marked as "NOPE" even though it is basically open source (any commit older than two years is), yet projects that are open core forever are "issues exist" and "partially".
lytedev · 5 months ago
Wouldn't "partially" be fair? Since not ALL of the project is, but only source of a certain age?
lytedev commented on Bypassing Google's big anti-adblock update   0x44.xyz/blog/web-request... · Posted by u/deryilz
high_priest · 5 months ago
Its not happening
lytedev · 5 months ago
It definitely is, buy I think the silent majority just don't care all that much. Is that what you're referring to?
lytedev commented on Postgres LISTEN/NOTIFY does not scale   recall.ai/blog/postgres-l... · Posted by u/davidgu
jelder · 5 months ago
"use Postgres for everything" is certainly wrong, eventually. It's still the second-best choice for every new project, and most products will never see the traffic levels that justify using something more specialized. Obviously, recall.ai hit the level of traffic where Postgres was no longer ideal. I bet they don't regret it for the other parts of their product.
lytedev · 5 months ago
What is the first-best choice for a new project? SQLite?
lytedev commented on Frequent reauth doesn't make you more secure   tailscale.com/blog/freque... · Posted by u/ingve
sakesun · 6 months ago
Password similarity rule was not enforced ?
lytedev · 6 months ago
Doesn't enforcing this require storing the password in cleartext somewhere, which is a much more dangerous concept to begin with?
lytedev commented on Membrane: Media Framework for Elixir   membrane.stream/... · Posted by u/lawik
luckywatcher · 7 months ago
Divvy still uses Elixir extensively. I use to work there and still have many contacts there.
lytedev · 7 months ago
Currently work here and we're definitely still building and supporting Elixir applications and enjoying it!
lytedev commented on Matt Godbolt sold me on Rust by showing me C++   collabora.com/news-and-bl... · Posted by u/LorenDB
codedokode · 8 months ago
The choice doesn't make sense because you want the program to always behave correctly and not only during development.
lytedev · 8 months ago
Eh, maybe. There's a performance tradeoff here and maintainers opted for performance. I'm sure many folks would agree with you that it was the wrong choice, and I'm sure many folks would disagree with you that it was the wrong choice.

There are also specific methods for doing *erflow-checked arithmetic if you like.

lytedev commented on Matt Godbolt sold me on Rust by showing me C++   collabora.com/news-and-bl... · Posted by u/LorenDB
skippyboxedhero · 8 months ago
Using reference counts is a real issue.

The idea with Rust is that you get safety...not that you get safety at the cost of performance. The language forces you into paying a performance cost for using patterns when it is relatively easy for a human to reason about safety (imo).

You can use `unsafe` but you naturally ask yourself why I am using Rust (not rational, but true). You can use lifetimes but, personally, every time I have tried to use them I haven't been able to indicate to the compiler that my code is actually safe.

In particular, the protections for double-free and free before use are extremely limiting, and it is possible to reason about these particular bugs in other ways (i.e. defer in Go and Zig) in a way that doesn't force you to change the way you code.

Rust is good in many ways but the specific problem mentioned at the top of this chain is a big issue. Just saying: don't use this type of data structure unless you pay performance cost isn't an actual solution to the problem. The problem with Rust is that it tries to force safety but doesn't have good ways for devs to tell the compiler code is safe...that is a fundamental weakness.

I use Rust quite a bit, it isn't a terrible language and is worth learning but these are big issues. I would have reservations using the language in my own company, rather than someone else's, and if I need to manage memory then I would look elsewhere atm. Due to the size of the community, it is very hard not to use Rust too (for example, Zig is great...but no-one uses it).

lytedev · 8 months ago
The idea with rust is that you _can_ have safety with no performance cost if you need it, but depending on what you're building, of course, that may imply extra work.

The pragmatism of Rust means that you can use reference counting if it suits your use case.

Unsafe also doesn't mean throwing out the Rustiness of Rust, but others have written more extensively about that and I have no personal experience with it.

> The problem with Rust is that it tries to force safety but doesn't have good ways for devs to tell the compiler code is safe...that is a fundamental weakness.

My understanding is that this is the purpose of unsafe, but again, I can't argue against these points from a standpoint of experience, having stuck pretty strictly to safe Rust.

Definitely agree that there are issues with the language, no argument there! So do the maintainers!

> if I need to manage memory then I would look elsewhere atm

Haha I have the exact opposite feeling! I wouldn't try to manage memory any other way, and I'm guessing it's because memory management is more intuitive and well understood by you than by me. I'm lazy and very much like having the compiler do the bulk of the thinking for me. I'm also happy that Rust allows for folks like me to pay a little performance cost and do things a little bit easier while maintaining correctness. For the turbo-coders out there that want the speed and the correctness, Rust has the capability, but depending on your use case (like linked lists) it can definitely be more difficult to express correctness to the compiler.

lytedev commented on Matt Godbolt sold me on Rust by showing me C++   collabora.com/news-and-bl... · Posted by u/LorenDB
hacker_homie · 8 months ago
I have run into similar issues trying to build real applications. You end up spending more time arguing with the borrow checker than writing code.
lytedev · 8 months ago
I think this is true initially and Rust didn't "click" for me for a long time.

But once you are _maintaining_ applications, man it really does feel like absolute magic. It's amazing how worry-free it feels in many respects.

Plus, once you do embrace it, become familiar, and start forward-thinking about these things, especially in areas that aren't every-nanosecond-counts performance-wise and can simply `Arc<>` and `.clone()` where you need to, it is really quite lovely and you do dramatically less fighting.

Rust is still missing a lot of features that other more-modern languages have, no doubt, but it's been a great ride in my experience.

u/lytedev

KarmaCake day888May 7, 2014
About
https://lyte.dev

[ my public key: https://keybase.io/lytedev; my proof: https://keybase.io/lytedev/sigs/ISrX1n_ofMSA2U-6LQg-qaW_G0OewxC7_JWJVCeN6jw ]

View Original