Ibraheem Ahmed

367 posts

Ibraheem Ahmed banner
Ibraheem Ahmed

Ibraheem Ahmed

@ibraheemdev

Software developer interested in building fast, concurrent, and robust systems. @ibraheem.ca on 🦋

Toronto, Canada Katılım Ekim 2021
86 Takip Edilen1.2K Takipçiler
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
That terrible feeling when you have a great blog post idea but know you'll never have time to write it
English
0
0
3
461
Ibraheem Ahmed retweetledi
Protty
Protty@kingprotty·
Writing fast code under optimizing compilers feels similar to *prompting: 1) Developing an intuitive understanding of how the model combines your patterns to outputs 2) Knowing what a "good" output is, in regards to correction. * any deterministic ML inference with text input
English
0
5
37
3.1K
Ibraheem Ahmed retweetledi
Charlie Marsh
Charlie Marsh@charliermarsh·
Today, we’re announcing the preview release of ty, an extremely fast type checker and language server for Python, written in Rust. In early testing, it's 10x, 50x, even 100x faster than existing type checkers. (We've seen >600x speed-ups over Mypy in some real-world projects.)
Charlie Marsh tweet media
English
123
496
4.9K
646.2K
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
I was recently made aware that every single additional *cycle* in the hash function used by rustc increases its runtime by a whopping 0.25%
English
0
2
26
2.5K
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
@charliermarsh Not sure if there's anything written up other than that PR and the rustc perf runs.
English
0
0
1
113
Charlie Marsh
Charlie Marsh@charliermarsh·
The latest version of rustc-hash includes the newly designed hash function from orlp!
Charlie Marsh tweet media
English
3
1
53
5.5K
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
@charliermarsh The new rustc-hash algorithm is actually different than foldhash. rustc-hash is optimized specifically for the compiler's usage, while foldhash is more general purpose.
English
1
0
2
210
Charlie Marsh
Charlie Marsh@charliermarsh·
Here are the benchmarks, where `foldhash-f` represents the new hash function, and fxhash represents the previous hash function.
Charlie Marsh tweet media
English
2
0
8
2.6K
Armin Ronacher ⇌
Armin Ronacher ⇌@mitsuhiko·
So I looked through some more reasons for why zerocopy now shows up in my dependency tree and from what I can tell it's all coming from the zerocopy developers themselves making PRs against other crates introducing the dependency. Not sure what to think of that.
English
10
7
114
21.8K
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
@mitsuhiko Would it feel different if zerocopy was an official rust-lang repository backed by a working group? I think that's essentially the idea here.
English
1
0
2
463
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
@mitsuhiko Not exposed, you say 🙃 RandomState::new().build_hasher().finish()
English
0
0
4
265
Armin Ronacher ⇌
Armin Ronacher ⇌@mitsuhiko·
Fun fact: rust needs to generate random numbers in the standard library for hash maps and sets. But that's not exposed. This is how many dependencies adding the latest version of the popular rand crate pulls in that everybody uses:
Armin Ronacher ⇌ tweet media
English
26
14
306
56K
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
Very high quality code here too
Ibraheem Ahmed tweet media
English
0
0
5
1.1K
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
No I don't want AI generated PRs on my repository thank you very much
Ibraheem Ahmed tweet media
English
3
0
10
1.8K
Charlie Marsh
Charlie Marsh@charliermarsh·
This is good actually
Charlie Marsh tweet media
English
3
0
13
3.9K
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
Unfortunately all of my short blog post ideas evolve into books
English
1
0
2
695
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
Going to try and publish more than one blog post this year...
English
2
0
3
829
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
@GustavSterbrant @olson_dan If this level of safety is not important to you then Rust might not be for you, but once you appreciate it the experience becomes a lot more enjoyable. And to be honest there's only a handful of patterns you have to come to understand before feeling relatively comfortable.
English
0
0
1
83
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
@GustavSterbrant @olson_dan That's fair, but Rust's goal is to force you to think more about what exactly you're doing. Another language would let you trivially create globally mutable state, which you can also do in Rust, it just makes it less accessible because that's probably not what you actually want.
English
1
0
0
86
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
@gwenzek Rust is really good at this too, I just happen to be working with a lot of raw pointers and atomics.
English
0
0
2
26
Ibraheem Ahmed
Ibraheem Ahmed@ibraheemdev·
Eliminating LLVM optimization remarks is my passion.
English
1
0
3
822