
Complexity conqueror; computer programmer. Rust, Linux. @grahamking@mastodon.social
Portland, OR
Joined January 2008
- Tweets957
- Following144
- Followers243
- Likes867
I took ChatGPT on holiday and it was like having a magic translator and tour guide in my pocket.
From translating menus to explaining art and wine, it made everything easier and more interesting.
New blog post: darkcoding.net/society/trave…
#TravelWithAI #ChatGPT #TechMagic
In Rust what does this really do?
> vec![0u8, 1024]
New blog post featuring memset's optimized assembly, mmap's zero-page shortcut, and why 0's are better than 1's.
darkcoding.net/software/rust…
#rust #malloc #assembly #linux
First blog post in over a year: Permanent memory with systemd's FDStore.
darkcoding.net/software/rust…
grahamking retweeted
COVID broke out eight miles from the world’s leading laboratory for the study of novel sarbecoviruses.
That alone should thwack the burden of proof over the philosophical net.
But that’s only the start of the coincidences and anomalies. bigthink.com/health/covid-or…
grahamking retweeted
Legendary computational biologist Nick Patterson: "My readers will know that I believe that it is overwhelmngly likely that COVID-19 was a virus engineered in the Wuhan Institute of Virology (WIV), that escaped by accident."
What can you `epoll` on Linux? A comprehensive list. Please let me know if I missed any.
darkcoding.net/software/linu…
#linux #epoll #software
Ever wanted to write a Huge Pages memory allocator for Rust, and learn about the importance of TLB misses? Now you can! New lab on perf-ninja:
github.com/grahamking/perf-n…
#rust #performance
What if you spent a weekend overthinking the Two Sum interview question?
For what values of N would your AVX-512 solution beat the map one?
#rust #simd #performance #interview
darkcoding.net/software/two-…
grahamking retweeted
PSA: Before copy-pasting a GitHub source code link, especially one that links to a line or line range, hit `y` to make the URL include the current commit hash. That way the link will keep working even if the file is later changed or moved/deleted. – at Los Angeles, CA
What is the cost Rust's `sync::Once` after the initial call? Getting carried away with micro-performance analysis.
darkcoding.net/software/cost…
#rust #performance #assembly
On the Ethereum Virtual Machine if you try to execute an invalid instruction it aborts your program and takes all your money ("all remaining gas is consumed"). Hardcore.
github.com/wolflo/evm-opcode…
Writing a new series on Rust's assembly output:
- Intro: darkcoding.net/software/unde…
- First post: Does it matter what type (u8, u32, etc) I use?: darkcoding.net/software/does…
#rust #assembly
For the record, we don't WANT to name our servers `sjc2a-rs24-18b`. We would like to name them Italian wines or Lord of the Rings characters, but your insatiable compute demands leave us no choice.
#SysadminsUnited #petsvscattle #sre
This is a great course (and book) to improve your low-level performance tuning skills:
github.com/dendibakh/perf-ni…
If you want to do it in Rust (not C++), I ported all the labs for you:
github.com/grahamking/perf-n…
#performance #rust #DropboxHackWeek2022
A very small Rust binary indeed:
darkcoding.net/software/a-ve…
In which I shrink a Rust binary from 3.6MB to 400 bytes.
#rust #linux #software
Bash script to setup machine to run benchmarks.
Based on LLVM Benchmarking Tips:
gist.github.com/grahamking/9…
#performance #benchmarks #rust #bash
Short blog post about using stack address as a random number thanks to ASLR: darkcoding.net/software/a-ra…
#linux #rust #python #software





