aloso

joined 2 years ago
[–] aloso@programming.dev 3 points 2 years ago (1 children)

When I searched "bitcoin", I found the bitcoin crate, but I had to scroll down a bit.

[–] aloso@programming.dev 7 points 2 years ago (1 children)

because it's really not that much better than crates.io and it has the downside of the results being biased.

I use its search, because it produces much better search results. The crates.io search is almost unusable, it rarely finds anything useful in the top search results.

[–] aloso@programming.dev 2 points 2 years ago* (last edited 2 years ago)

You confused revenue and profit. You must subtract expenses to calculate the profit. For example, if you buy something for $20 and sell it for $21, your revenue is $21, but your profit is only $1.

Facebook reported a profit of $39 billion in 2021 and $23 billion in 2022. This takes their expenses (salaries, offices, data centres, etc.) into account.

[–] aloso@programming.dev 1 points 2 years ago

Sure, but raw pointers and unsafe Rust are still covered in the official learning material, so I assume that most Rust devs know about raw pointers.

[–] aloso@programming.dev 2 points 2 years ago* (last edited 2 years ago) (1 children)

I can recommend Lua. It is easy to learn, and easy to embed in a Rust program. With LuaJIT, it should be pretty fast, too.

Of course you can also embed a JavaScript runtime, but then your executable will probably be 50 MB larger. And I'm not a fan of Python.

[–] aloso@programming.dev 2 points 2 years ago

The reddit thread has some interesting discussion, and a solution using no SIMD intrinsincs that is more than 200x faster, by using .chunks_exact(), and letting the compiler auto-vectorize it.

[–] aloso@programming.dev 7 points 2 years ago (2 children)

We have pointers in Rust, too :) see documentation

[–] aloso@programming.dev 5 points 2 years ago (1 children)

That link just compares benchmarks with and without warmup, but not without startup. The JVM's startup can take upwards of 2 seconds, depending on the program.

[–] aloso@programming.dev 6 points 2 years ago

Microsoft does collect a lot of data. But storing every keystroke is first of all impractical, because it would take a lot of disk space to store every keystroke of every user, and secondly not very useful unless they also knew when, in which application, and in what context each key was pressed.

[–] aloso@programming.dev 6 points 2 years ago

Fully agree with what you said. There are still just as many passionate people fascinated by computers in the youngest generation as there are in older generations. It's just that the sheer number of programmers has made them less visible in recent years.

Also, one thing the article misses is that programming 8 hours a day and then continuing to program in your spare time is not healthy for many people. People are different, and there are some who can do it without negative consequences, but for others it can lead to burnout, especially if they also have a family to take care of or other issues to deal with. I used to do a lot of programming in my spare time when I was in college. Now that I have a 40-hour-a-week job, I've learned that I need to be careful how much energy I spend, and I don't do as much open source work because I need a lot of my free time to rest and recharge.

[–] aloso@programming.dev 5 points 2 years ago (1 children)
view more: ‹ prev next ›