161 points · by fork-bomber · 3y ago · 66 comments
1. https://github.com/sourcegraph/sourcegraph/blob/main/doc/dev...
HN discussion from yesterday: https://news.ycombinator.com/item?id=35863175
They are trying to make a point about indexes, but it is overshadowed by the unit mismatch (distributed system QPS vs what sounds like single-machine ripgrep pace)
[1] https://github.blog/2023-02-06-the-technology-behind-githubs...
This is also why I think it's unbelievably lucky we had luminaries like RMS in the beginning. To think of software freedom, what a concept! Legend!
Meanwhile everyone else is constantly trying to turn everything into a transactional interaction. "what are you going to give me for my code? How are you going to pay your debts?"
[1] I worked there
I was just posting to say Microsoft have (had?) a perfectly nice search engine many years ago. Either GitHub folks didn't want to use it, it's not good (I think it was good, but maybe it's not suitable, or maybe it isn't maintained anymore shrug) or Microsoft butchered it too much over the years.
Is this related?
"about twice as fast", yeah twice as fast but twice less effective.. what's the point
Feb 23, 2020 (https://grep.app) Show HN: Search code in GitHub repos using regular expressions https://news.ycombinator.com/item?id=22396824
Dec 8, 2021 Improving GitHub Code Search https://news.ycombinator.com/item?id=29487237
Q: How do you know if something is written in Rust?
A: The author/headline will tell you.
Or even worse, if the app needs to use unsafe, you'd be surprised how many Rust engineers think unsafe somehow "encapsulates" memory bugs inside the block itself. Which is not true. Using unsafe can cause memory issues that bubble up the call stack.
I don't feel any guarantees when a product is made in Rust. There are buggy Rust projects
I believe this real-life, 4-year, 1.5 million-line-of-code experiment disagrees with you directly [1]
> In general, use of unsafe in Android’s Rust appears to be working as intended. It’s used rarely, and when it is used, it’s encapsulating behavior that’s easier to reason about and review for safety.
[1] https://security.googleblog.com/2022/12/memory-safe-language...
No it isn't. It's not like we've been writing too much applications C-code recently and it's not like Rust offers that much fundamental security over e.g. Golang
It absolutely does, while also being more expressive. I suggest reading more of the type system literature before making unfounded claims like this.
If it’s written in Rust, the tooling (Cargo; the Rust language server; etc) make it much easier than most other languages to jump in and fix something or add a new feature. I’ve contributed to projects written in Ruby, Python, Java, C#, C++, Haskell and many others, and every Rust project I’ve ever touched has been much easier/quicker to go from `git clone` to PR submitted.
That may not be appealing to people who never fix or extend the software they use; for me, as someone who finds bugs and deficiencies in almost everything I lay eyes on, knowing that a piece of software is written in a language that is the least likely to frustrate me and suck up my time when I inevitably have to dive in and tweak something is a huge competitive selling point over similar software written in other languages.
That said, I'm also annoyed by various navigability issues, including that one.