Protty

1.4K posts

Protty banner
Protty

Protty

@kingprotty

System optimizer + concurrency geek.

Katılım Ağustos 2019
74 Takip Edilen3.1K Takipçiler
Protty
Protty@kingprotty·
🙏
Protty tweet media
QME
0
0
6
234
Protty
Protty@kingprotty·
@MrJayLC @nicbarkeragain Going through an fd/syscall to do it has, but ring buffers themselves are just shared memory operations - what any communication effectively boils down to
English
1
0
1
15
Protty
Protty@kingprotty·
@jajamken @iavins they only make sense when you're pinning threads to cores & nothing else is running on the system. Otherwise, it's an anti-pattern
English
0
0
1
22
jajamken
jajamken@jajamken·
@iavins userspace spinlocks would be super slow for production use cases no? are there really any popular use cases for it?
English
1
0
1
191
v
v@iavins·
I had a beautiful opportunity to use a (userspace) spinlock. The critical section was very small (like one line) but high contention. I thought a spinlock would be perfect, but it turns out it isn't! Spinlocks come with their own T&Cs, suitable for only specific and few workloads. I benched with parking_lot, which spins first and only then tries to acquire the lock. This turned out to be the best compared to a spinlock and std mutex. I also found matklad's excellent blog post supporting this. There goes my dream of using a spinlock in a production database. 🪦
v tweet media
English
7
3
62
19K
Protty
Protty@kingprotty·
@yarnf40580 @DNAutics @ahmedjedda213 @jorandirkgreef @_mm_pause I assume what they meant is that Zig makes doing those these very easy. To be clear, i'm no Zig shill either. What I really want is C + good generics & consteval + good build-sys + easy cross-comp + defer + modern stuff (optionals, sum types, errors, etc). Zig just happens to fit
English
1
0
2
40
ae ae ae
ae ae ae@yarnf40580·
@kingprotty @DNAutics @ahmedjedda213 @jorandirkgreef @_mm_pause I'm just curious what "zero copy intrusive memory" (or etc.) can be done in Zig *specifically* that makes it the choice for you guys, despite being unstable and young. Again caveating that i am NOT a c++ shill! Infact zig is probably my favorite out of rust/c/c++/odin/zig/etc
English
1
0
0
31
_mm_pause()
_mm_pause()@_mm_pause·
I dislike language wars. language is only 1% of what matters. in systems programming, it's the team & engineering that count. look at tigerbeetle & bun great engineers drive huge impact. those projects could’ve easily been built in c, c++, or rust
'(Robert Smith)@stylewarning

I'm overhearing a FAANG tech meeting about how this 10?-year product written in C is being transitioned ("modernized") to C++. Started by changing to a C++ compiler, and slowly rewriting to use classes/exceptions, &c. It's been 3 months, and the C++ service keeps failing in prod.

English
1
0
9
5K
Protty
Protty@kingprotty·
@yarnf40580 @DNAutics @ahmedjedda213 @jorandirkgreef @_mm_pause Zig comptime can be used for DSLs: #L1045" target="_blank" rel="nofollow noopener">github.com/tigerbeetle/ti… (only restrictions in comptime are 1. no ffi/asm 2. no ptr<->int transmutes) I get how one could do DSLs with cpp consteval as well, but still unsure if it can do the other 3 things listed.
English
1
0
3
55
ae ae ae
ae ae ae@yarnf40580·
@kingprotty @DNAutics @ahmedjedda213 @jorandirkgreef @_mm_pause and re: "an do over zig comptime?", c++ TMP is turing complete, theres c++ SQL libs that implement full SQL parsers using TMP (again I'm not here to advocate for this one way or another). I don't think you can do that sort of thing in comptime? At least from what I remember.
English
2
0
0
26
Protty
Protty@kingprotty·
@yarnf40580 @DNAutics @ahmedjedda213 @jorandirkgreef @_mm_pause What's some of the things C++ templates/const-eval can do over zig comptime? Unaware of its capabilities, but for the inverse direction, can cpp do stuff like create structs with a dynamic set of fields, check for padding within a type, or dynamically alloc & use at runtime?
English
2
0
1
54
ae ae ae
ae ae ae@yarnf40580·
@DNAutics @ahmedjedda213 @jorandirkgreef @_mm_pause Were asking whats meant by that though. I can write my own containers that take an allocator as an argument in C++. Templates & consteval are way way more powerful than zig comptime. I'm pointing this out only to elucidate - im not pro c++
English
1
0
1
48
Protty
Protty@kingprotty·
@MrJayLC @nicbarkeragain assuming the devices are programmed with standard C-like memory models, SPSC ring buffers (with caching of the other position on both sides) is probably the fastest.
English
1
0
0
16
John
John@MrJayLC·
@nicbarkeragain The moment you introduce a concurrent design, your surface tension must be considered. I'm still thinking on what is the best way to communicate between 2 concurrent devices, without lots of constructs. Just memory.
English
1
0
0
254
Protty
Protty@kingprotty·
@ohmypy @BrianOrwe Not them, but I do the same strat: If it's not prototype code, write data structures better suited for the task + std for syntactic sugar on the trivial stuff.
English
0
0
1
115
Anton Zhiyanov
Anton Zhiyanov@ohmypy·
I wonder if all Zig supporters write Zig code regularly or if they are just generally "pro-Zig". The number of breaking changes with each release is huge (and that’s after 10 years of development). Isn't it a bit tiring to constantly rewrite your code to support new versions?
English
52
5
293
47.9K
cart cart cart sahur
cart cart cart sahur@RealRainWaiv·
@bubbleboi what's weird is that i know 90% of these words individually but combined it's indecipherable. rsa encryption might be at the end of its lifespan we use blackpill encryption now
English
1
4
487
21.8K
bubble boi
bubble boi@bubbleboi·
Here is a breakdown of what these sentences mean for those not in the know. Sentence 1 Analysis: > "Clavicular was mid jestergooning when a group of Foids came and spiked his Cortisol levels 😭" *Clavicular: Nickname for streamer Braden Peters, is a reference to "clavicle lengthening/widening" (a niche obsession in body dysmorphia communities regarding shoulder width). *Jestergooning: A portmanteau of two terms: * Jestermaxxing: Acting like a clown or fool to get attention or cope with social rejection. * Gooning: Originally referred to a trance-like state induced by porn addiction, but in this context, it generally means staring blankly or engaging in obsessive, low-IQ behavior. *Foids: A derogatory "incel" (involuntary celibate) term for women, short for "Femoids" (Female Humanoids). *Spiked his Cortisol levels: "Cortisol" is the stress hormone. This means the women made him extremely stressed, anxious, or panicked. Translation: "This guy (Clavicular) was in the middle of acting like an idiot/zoning out when a group of women arrived and made him panic." Sentence 2 Analysis > "Is Ignoring the Foids while munting and mogging Moids more useful then SMV chadfishing in the club?" *Munting: While originally a grotesque term from shock sites, in "looksmaxxing" slang, it is sometimes used (often ironically) to describe an extreme or ugly form of "Mewing" (tongue posture exercises to improve jawline). It implies focusing intensely on one's face/aesthetics. *Mogging: Derives from "AMOG" (Alpha Male Of the Group). It means physically dominating someone else or looking much better than them. *Moids: A derogatory term for men (Male Humanoid), often used as a counterpart to "Foid." *SMV: Acronym for Sexual Market Value. A pseudo-sociological metric used in these communities to rank how "valuable" a person is to the opposite sex. *Chadfishing: A combination of "Chad" (the archetypal attractive male) and "Catfishing." It means creating a fake dating profile using photos of a male model to see how women react or to waste their time. Translation: "Is it better to ignore women and focus on making other men look inferior (through looks or status), or is it better to go to a club and try to trick people into thinking you have high sexual value?" Summary: The text asks a philosophical question within this specific internet subculture: Is self-improvement and dominance over other men (homosocial competition) more fulfilling than seeking validation from women through deception?
🧛🏾‍♀️@chromeheart600

Clavicular was mid jestergooning when a group of Foids came and spiked his Cortisol levels 😭 Is Ignoring the Foids while munting and mogging Moids more useful then SMV chadfishing in the club?

English
538
3.4K
50.9K
4M
fox
fox@soft_fox_lad·
This is sincere and yet also bait
English
2
0
10
296
fox
fox@soft_fox_lad·
I wish the STL had concurrent data structure support as good as Java's.
English
3
0
22
2.6K
Protty
Protty@kingprotty·
@rsms @adityaag At least IME, software in 2010 was doing less / able to do less. There were also less options for everything. There were still buggy messes, just not noticed (wasnt everywhere yet) or complained about (smaller info networks) as much
English
1
0
2
746
Rasmus Andersson
Rasmus Andersson@rsms·
This isn’t the first time a shift like this happens and it won’t be the last. I feel like what’s happening right now is what happened to photography — when everyone has an amazing camera and a publishing outlet to the entire world, we just get more of everything. Diversity and new ideas, class differences erased. But also a huge noise increase. The people who would wade through the mud of challenges to master photography pre iPhones were on a path of commitment to being the best they could be. Nowadays the vast ocean of noise has weirdly dampened photography as an art. I for sure thought the opposite would happen, that people without the means to pursue photography in the pre-iPhone times would now have a stage, but they too drowned in the noise. The same thing happened to sign making and many other fields of craft. It’s happening to software now. Average actual quality will go down and consumer expectations on quality will fall. Maybe the next 10-15 years is simply the cost of progress and we’ll build Star Trek-grade computers in a few generations from now. Perhaps this is “good”, perhaps not. Regardless, it feels like desperate times of gold rush, not like a renaissance of software. In some ways, software around 2010 felt like peak avg of quality. What did we culturally do back then that we changed or stopped doing, I wonder…
English
16
16
416
57.9K
Aditya Agarwal
Aditya Agarwal@adityaag·
It's a weird time. I am filled with wonder and also a profound sadness. I spent a lot of time over the weekend writing code with Claude. And it was very clear that we will never ever write code by hand again. It doesn't make any sense to do so. Something I was very good at is now free and abundant. I am happy...but disoriented. At the same time, something I spent my early career building (social networks) was being created by lobster-agents. It's all a bit silly...but if you zoom out, it's kind of indistinguishable from humans on the larger internet. So both the form and function of my early career are now produced by AI. I am happy but also sad and confused. If anything, this whole period is showing me what it is like to be human again.
English
467
1.8K
15.8K
3.3M
Joran Dirk Greef
Joran Dirk Greef@jorandirkgreef·
DistSys Interview Challenge Many factors may limit a system’s ability to scale. But which limit dominates a system’s ability to scale?
English
38
5
88
33.9K
Protty
Protty@kingprotty·
@madokami99 @MatriceJacobine @Leaflit I mean, even thinking about this intuitively: Cant really speak/read multiple languages fluenty, recite famous poems/quote, spit out song lyrics, do complex arithmetic, and recognize sarcasm simply from a stream of reactive degen text of >70% emote spam.
English
0
0
1
29
Madokami's follower
Madokami's follower@madokami99·
@MatriceJacobine @Leaflit It is possible if you watch her stream she's learning how to communicate with people 2022 neuro is soo different than today after three years of training from twitch chat and people who collab with neuro and evil
English
2
0
0
56
Greg Brockman
Greg Brockman@gdb·
rust is a perfect language for agents, given that if it compiles it's ~correct
English
492
364
6K
1.8M
Protty
Protty@kingprotty·
@MainMeowMix @__morse @gdb There's pinned releases that don't change. Breaking changes only happen if you use master (Rust nightly equivalent) or if you upgrade (most projects only upgrade if they see a good need for them specifically)
English
1
0
0
44
Orion Callaghan
Orion Callaghan@MainMeowMix·
@__morse @gdb Zig can (and will) introduce breaking changes at any moment. I think it's going to be an incredible language, but I'm waiting for the first stable release.
English
1
0
1
197
Protty
Protty@kingprotty·
@eatonphil a db authority out there. nice & gl mans
English
0
0
2
206
Phil Eaton
Phil Eaton@eatonphil·
Last month at a database vendor! I had a lovely time and recommend working there (they're hiring). I'm going to be spending more time researching and writing independently about key OSS libraries and projects, early stage software infrastructure products, and of course databases.
Phil Eaton tweet media
English
38
7
401
32.2K
Protty retweetledi
Joy Machs
Joy Machs@joymachs·
2025 was the Year of the @TigerBeetleDB, with 50+ project folders and 100+ artworks!!🤯🥳 I missed spending time on personal projects, but I had some great moments that are directly and indirectly connected to these beetles, and I’m more than ready for 2026! BTHF! #artvsartist
Joy Machs tweet media
English
0
3
15
1.5K
Protty
Protty@kingprotty·
4 more
English
0
0
1
510