Greg Law

2.5K posts

Greg Law banner
Greg Law

Greg Law

@gregthelaw

Co-founder at Undo @undo_io

Katılım Haziran 2009
669 Takip Edilen970 Takipçiler
Greg Law
Greg Law@gregthelaw·
Time-Traveling Through Spark: Recording Distributed Failures Across Space and Time @david.griffiths_96143/time-traveling-through-spark-recording-distributed-failures-across-space-and-time-084cf9530cbe" target="_blank" rel="nofollow noopener">medium.com/@david.griffit…
English
0
0
4
172
Greg Law
Greg Law@gregthelaw·
Latest on memory safety: "The new US administration has removed everything from the White House web site and fired most of the CISA people who worked on memory safety." tbf, memory safety is pretty woke. hubs.ly/Q038Yn1h0
English
1
0
2
240
Greg Law
Greg Law@gregthelaw·
Might want to watch the video at 2x, just because we ran it on a regular laptop. Recording didn't noticeably slow it down at all.
English
0
0
0
116
Greg Law
Greg Law@gregthelaw·
We recorded Deepseek! Obviously this won't tell you how it was made, but very cool for seeing how it works. The only sad bit was that it doesn't seem to know about time travel debugging. youtube.com/watch?v=h-fJqX…
YouTube video
YouTube
English
1
0
2
250
Oogie
Oogie@oogie_fletzet·
@gregthelaw @ID_AA_Carmack Nice, but this is very browser/JS/React specific and also makes the mistake of trying to outsmart the developer We need dumb tools to do smart work, not the other way around
English
1
0
0
22
John Carmack
John Carmack@ID_AA_Carmack·
I am always bemused by programmers that don’t use debuggers. It isn’t just about breakpoints and examining variables, but also being able to break into a process that has been running for an hour and issue something like: (observation_ring*255).to(dtype=torch.uint8).view(128,16,4,3,128,128).permute(1,0,2,4,5,3).cpu().numpy().tofile('results/ring_128x128.rgb')
English
345
202
4.8K
807.3K
Oogie
Oogie@oogie_fletzet·
@ID_AA_Carmack I agree, but we also lack good tooling around observability and breakpoints. Debuggers have not evolved much since their initial introduction and are quickly becoming irrelevant
English
1
0
0
64
Eric S. Raymond
Eric S. Raymond@esrtweet·
I'm going to respectfully disagree. I used to use debuggers more than I do now - I was enough of a fan of them that I wrote the Grand Universal Debugger control mode in Emacs. In recent decades my preferences have changed. I use debuggers less and extensive debug logging more. That's an investment in the ability to troubleshoot future problems that often gains value over time. What might get me back into them is time-reversal debuggers. Those sound interesting, but I haven't actually used one yet.
English
29
8
353
53.9K
Greg Law
Greg Law@gregthelaw·
@esrtweet @ID_AA_Carmack Yes! Time travelling debuggers change everything. I've been working on Undo.io for nearly 20 years, finally the approach is getting mainstream adoption. @esrtweet DM me and I'll give you a lifetime free license to undo.io. Works well with GUD, too!
English
1
0
8
752
Greg Law
Greg Law@gregthelaw·
💡#cpp debugging top tip: Finding unexpected values in your variables? The 𝚕𝚊𝚜𝚝 command in Undo allows you to rewind directly back to the last time that value was changed, and find out exactly where that bad value came from. hubs.ly/Q02V49-80 #cplusplus
English
0
0
13
202
Greg Law
Greg Law@gregthelaw·
My friend Aditya Gurajada and I created a lightweight logging library (L3). Compared to standard printf debugging, L3 is much faster & lock-free -- 2ns per log message compared to > 50ns for a regular, buffered fprintf(). You can get it from github here: hubs.ly/Q02PZdlB0
English
0
0
3
192
Greg Law retweetledi
Sy Brand
Sy Brand@TartanLlama·
A wrote a book on how debuggers work! It guides you through writing a complete native debugger from scratch. Available Spring 2025 from @nostarch (probably not with this cover)
Sy Brand tweet media
English
87
224
1.9K
121.6K
Greg Law
Greg Law@gregthelaw·
The CrowdStrike outage was super high profile, but this problem happens all the time: unsanitized input causes code to crash. Fuzzing is a good way to find these problems before your customer does (or in this case the whole world does). Ref. odbms.org/2023/08/on-deb…
English
0
0
4
169
Greg Law retweetledi
Yarden Shafir
Yarden Shafir@yarden_shafir·
CrowdStrike effectively bricked windows, Mac and Linux today. Windows machines won’t boot, and Mac and Linux work is abandoned because all their users are on twitter making memes. Incredible work.
English
125
3.5K
35.5K
985.1K