Sachin (@breakbadsp) header
Sachin (@breakbadsp) profile picture

Software

Simulation
Joined March 2016
Photo by Sachin (@breakbadsp)Photo by Sachin (@breakbadsp)Photo by Sachin (@breakbadsp)Photo by Sachin (@breakbadsp)Photo by Sachin (@breakbadsp)Photo by Sachin (@breakbadsp)Photo by Sachin (@breakbadsp)Photo by Sachin (@breakbadsp)Photo by Sachin (@breakbadsp)
What is time complexity of this? int main() { std::set<int> s = {1,2,3,9,8}; auto it = std::lower_bound(s.begin(), s.end(), 6); if (it != s.end()) { std::cout << "Found: " << *it; } else { std::cout << "Not found"; } }
2
2
292
Sachin retweeted
I'm working on a computer use bench to measure task success and fail rates on various OSs. Current state: MacOS at the bottom (27% pass rate). Omarchy and t3os at the top (100%). The Nix fans are NOT gonna be happy about this one...
238
22
29
2,200
139,456
💯
Amazing endorsement of X. This really is where you'll find the most optimistic, forward-looking people in tech.
13
I always thought it was a shame that modest default stack setups made alloca() a generally-frowned-upon technique in C/C++. With 64 bit architectures, give every stack a virtual address space equal to the physical memory by default! You can do a surprisingly good job of memory management with just the stack, and I contend that it has both correctness and performance advantages. Allocations are a trivial pointer adjustment, and frees are literally free. Keeping everything linearly packed is friendlier for all layers of the cache hierarchy, and it makes keeping everything in huge / gigantic pages easy. Leaving temporary intermediate blocks on the stack can seem wasteful, but unless you are dealing with algorithms that make > O(n) temporary allocations, it is usually not a big deal. Static analysis can check if you store a stack pointer into a structure deeper in the stack, which is a use-after-free, and then memory management correctness is guaranteed. The discipline of caller-allocates-return is awkward in some dynamic cases. It would take a change in low level calling conventions, but you could plausibly have functions that return with the stack extended from where it was when they were called. I’m not holding my breath for that. It isn’t obvious if having AI coding agents makes discussions of software architecture more or less important!
146
133
28
2,507
210,971
Seems like nobody is using bluetooth keyboard with @omarchy @OmarchyLinux , it does not work to enter password when we reboot the system. @dhh
12
Bug report @t3dotcodes , T3 code starting same session again if mobile app reconnect
1
96
Can you spot the native app from the virtual memory map? @theo @mitchellh
15
The hardest problem in distributed systems (and database design) is hot rows. In other words, serialization w.r.t. data accesses while preserving application correctness (e.g. ACID). But hot rows is also what separates (and accelerates) TigerBeetle from most systems…
Even if your database is infinitely fast and infinitely parallel you can’t hack your way around network round-trip time and contention, where multiple transactions force you to lock your hot rows. This is Amdahl’s law applied to transaction processing and it’s why even at just 10% contention, your throughput drops not by 10%, but 10X. @jorandirkgreef describes this fundamental flaw in the SQL transaction interface 👇 @TigerBeetleDB #OLTPforthenext30years
5
23
230
11,703
Went all in and changed python server to C++ (Yes C++ 😎) github.com/breakbadsp/triang…
I love this. Nothing will nerdsnipe a programmer like seeing a benchmark they believe could be improved. We share the joy of a good RL loop with the clankers!
1
42
I am using @OmarchyLinux vibe coded but better for me(developer) than windows or macOS! I am using @t3dotcodes app and mobile app, so far it is lot better than Codex, Claude and Cursor! Both are heavily built using AI and are better!
1
35
Replying to @anandmahindra
@anandmahindra @mahindraesuvs We need 5x more service centres! I am standing at Hadapsar Pune service center and I see every customer is frustrated! Everyone has to wait for weeks for appointment and service! There is only one service center for thousands of customers!
2
40
@anandmahindra @MahindraXUV3XO In Pune people have to wait 15days to 1 month for service! Every service center is overwhelmed! All customers regretting that they should have just bought @Maruti_Corp or Creta
13
My two year old addicted to @OmarchyLinux screensaver! Won’t let me work🤦🏽‍♂️
23
I learn so much every day on @X. Every other social media platform(including LinkedIn) is a distraction! X gives us best control over what we consume!
X is the best party on the internet. Yes, there's some shady shit going on over there in the alley, but in the main room? People having fun, sharing technology, and connecting like never before. X is an essential part of Omarchy's success. $42B was a bargain!!
20
DHH when he sees a 2011 Acer laptop with 4GB of RAM that can't run Windows anymore
3
2
95
2,548
Sachin retweeted
Our unboxed process for Cybercab assembles vehicle modules in parallel & frames the car in one step at the end. This streamlines automation & reduces the line size by half, unlocking much greater production capacity. The first real revolution in automotive manufacturing in over a century
405
1,779
476
13,394
8,116,498
I resigned from Anthropic today. I spent the last three years doing pretraining research at both OpenAI and Anthropic. Neither company is acting responsibly. They are racing straight to self-improving superintelligence and gambling with our lives. More thoughts below.
20,454
166,938
39,454
799,886
175,488,378
Replying to @alsahuquillo
The greatest engineer in human history 💯
49
69
8
1,682
82,067
Studying @TigerBeetleDB architecture! Mind blown 🤯 already when I learned there only one thread doing everything!! Don’t have to worry about mutex, data races, multithreading! Thread never does blocking call! This frees my mind! Its freedom 🫡
7
10
137
10,377
3b. Send Prepare to backups ┘ neither blocks the other │ ├─ backup: recv+parse (.prepare) ├─ backup: persist to its own WAL └─ backup: reply prepare_ok (durability ack only)
1
2
597
4. Primary collects quorum of prepare_ok (doesn't need its own) 5. Primary commits: executes debit/credit NOW, replies to client 6. (later, separately) backups learn "committed" via commit field/heartbeat 7. Backups then execute the already-persisted prepare, independently
1
2
550
Server side: 1. Recv+parse (primary, .request) 2. Pipeline entry, assign op, build Prepare 3a. Persist to primary's own WAL ┐ concurrent,
2
2
662
4. Primary collects quorum of prepare_ok (doesn't need its own) 5. Primary commits: executes debit/credit NOW, replies to client 6. (later, separately) backups learn "committed" via commit field/heartbeat 7. Backups then execute the already-persisted prepare, independently
10