News for hackers. Stuff that matters.
Re:Static search trees: 40x faster than binary search by quotemstr on Tuesday December 31, 2024 @08:25PM (#42563217)
Rust is now common enough in the industry that everyone should be expected to at least read it, just like every programmer should be able to fizzbuzz in Python and JavaScript just as a matter of general technical literacy. There's no advanced Rust here and no concepts specific to the language.

It's a good article.

If Heinlein were in our industry, he might write this:

A programmer should be able to write a shell, parse binary data, design a protocol (and reverse engineer one too), authenticate a password, not fumble multi-code-point graphemes, wrangle semaphores, plug memory leaks, compress data, migrate databases, automate builds, git rebase a tree, profile tail latency, write a simple design doc for a complex system, draw a triangle, multiply tensors, and do fizzbuzz in every popular language on GitHub. Specialization is for insects.

Re:Static search trees: 40x faster than binary search by ryao on Tuesday December 31, 2024 @08:34PM (#42563260)
Here is a list of languages people can be generally expected to be able to read:

  * C
  * C++
  * Java
  * JavaScript
  * Python
It is the top 6 of the TIOBE index, minus C#:

https://www.tiobe.com/tiobe-index/

Rust is not very high on the TIOBE index. It has rank 14 with a 1.29% rating. That is not much higher than COBOL.

Re:Static search trees: 40x faster than binary search by bschwindHN on Tuesday December 31, 2024 @08:50PM (#42563345)
You forgot the part where no one cares about TIOBE though.
Re:Static search trees: 40x faster than binary search by ryao on Tuesday December 31, 2024 @09:52PM (#42563587)
As the TIOBE index says “The ratings are based on the number of skilled engineers world-wide, courses and third party vendors”. Very many people do care about that. Is there any reason I should think your remark is from some legitimate issue rather than you not liking the index results?
Re:Static search trees: 40x faster than binary search by bschwindHN on Tuesday December 31, 2024 @10:33PM (#42563766)
I would argue most people working software jobs either haven't heard of TIOBE or don't care about it. I only occasionally hear about it from strange internet comments that are far too focused on language particulars.
Re:Static search trees: 40x faster than binary search by ryao on Tuesday December 31, 2024 @11:27PM (#42563950)
That is surprising. I heard about the TIOBE index often about 15 years ago, but now that I think about it, I have not heard about it lately. I wonder if the rise of Python and ML has caused people to stop asking “what language should I learn”. That is the question the TIOBE index often was cited to answer.
Re:Static search trees: 40x faster than binary search by zahlman on Tuesday December 31, 2024 @10:12PM (#42563666)
As an aside: why is Java winning out over C# these days? When I first experienced C# I didn't want to go back.
Re:Static search trees: 40x faster than binary search by quotemstr on Tuesday December 31, 2024 @08:42PM (#42563294)
Rust is where the action is though. It's not just about cumulative SLOC weight, but about mindshare among the "movers and shakers" of the industry. Think of it as a prestige language, an acrolect, you should at least vaguely know so that you can participate in the most challenging conversations in the field.
Re:Static search trees: 40x faster than binary search by ryao on Tuesday December 31, 2024 @09:24PM (#42563492)
That is an interesting perspective. Here is my perspective. There are no popular projects that use Rust as a primary language. The current fashionable area of computers is machine learning. As far as high level languages go, you will see a mix of Python, C++ and perhaps a tiny bit of C there. Rust is nowhere to be seen.

Your description would be better applied to C, C++ and Python. That is what the majority of popular software uses and people having challenging conversations are often using one of those languages.

Re:Static search trees: 40x faster than binary search by dwattttt on Wednesday January 01, 2025 @12:10AM (#42564107)
> There are no popular projects that use Rust as a primary language

You may be surprised to learn, Python's `cryptography` project is written (EDIT: maybe not primarily, it's hard to compare given dependencies) in Rust, and saw around 8.1 million downloads from PyPI yesterday. That puts it close to the top 20 (the 20th project comes in at 8.5m).

Re:Static search trees: 40x faster than binary search by tyre on Tuesday December 31, 2024 @10:03PM (#42563627)
> There are no popular projects that use Rust as a primary language.

Servo is pretty notable and visible. ripgrep, influxdb, wasmer, deno. uv and ruff in the python ecosystem are written in rust.

AWS, Cloudflare, Discord (iirc), and Microsoft have all adopted Rust extensively.

As of late 2023 there are committed drivers in the Linux kernel written in rust. (Linux is pretty popular.) prior to those, only C and assembly were allowed.

Re:Static search trees: 40x faster than binary search by ryao on Tuesday December 31, 2024 @11:18PM (#42563919)
None of this contradicts what I said.
Re:Static search trees: 40x faster than binary search by quotemstr on Wednesday January 01, 2025 @01:43AM (#42564382)
Don't forget Pydantic
Re:Static search trees: 40x faster than binary search by nostradumbasp on Wednesday January 01, 2025 @02:41PM (#42568651)
I would like to also point out that rust is boring as hell. Lots of otherwise ordinary people write super simple non-fancy programs using it too :)
Re:Static search trees: 40x faster than binary search by forrestthewoods on Wednesday January 01, 2025 @01:52AM (#42564413)
If you know C/C++ you could have learned to read Rust in the time you spent commenting in this thread. The number of new syntaxes you need to learn is quite minimal.
Re:Static search trees: 40x faster than binary search by devvvvvvv on Wednesday January 01, 2025 @08:31PM (#42570825)
>Rust is now common enough in the industry

Source?