HNHacker News
TopNewBestAskShowJobs

ggambetta

6,991 karma · joined August 12, 2013

Member of Technical Staff at prometheus.ai. Ex-Google, ex-Synthesia, ex-Improbable. Author of "Computer Graphics from Scratch" (http://gabrielgambetta.com/computer-graphics-from-scratch). Used to run a game development studio and teach Computer Graphics in university. Tech website: http://gabrielgambetta.com

Actor / filmmaker: http://gabrielgambetta.biz

submissionscomments
ggambetta··on Matrix Multiplications on GPUs Run Faster When Given “Predictable” Data (2024)
I'd have guessed multiply-by-0 and multiply-by-1 can be special-cased to run much faster and simpler code paths, like you'd do when writing MUL for a processor that doesn't have it (I <3 z80)
ggambetta··on All the bugs they found
Not gonna fix 'em!
ggambetta··on Porting my 3D points renderer on a ZX Spectrum 48K
I love this! Happy to see I'm not the only crazy out there trying to port modern renderers to the Spectrum :D I've been meaning to experiment with assembly, but haven't gotten to that yet. This has some good ideas I'd love to play with.
ggambetta··on A physics engine with incremental rollback for multiplayer games
No need to resend inputs with seq IDs <= the last one acknowledged by the server, right? 1-2 seconds sounds like overkill. Unless the server updates themselves are lower than 0.5-1 Hz, but what kind of game is that? A very sparse world where chances of misprediction are very low?
ggambetta··on Cursor Camp
This is so well made! In the car racing track there's an overpass, and the cursor correctly Z-orders depending on whether you're coming from the upper or lower part of the track. Respect.
ggambetta··on Why do we tell ourselves scary stories about AI?
We tell ourselves scary stories about everything new. Advances in electricity + medicine == FRANKENSTEIN!
ggambetta··on Ask HN: Any interesting niche hobbies?
I learned primarily by trial and error, haven't found any good articles or videos :(
ggambetta··on Ask HN: Any interesting niche hobbies?
Hahaha, good observation :) I ran out of my childhood books (in Spanish) to fix, then I ran out of my GFs childhood books (in Latvian), so at that point I offered my services to anyone in the Google Zürich office. I got books in all kinds of languages I couldn't read, and a few chocolates and bottles of wine for my troubles :)

Some of the most interesting books were especially challenging. One in old German that was missing a couple of pages. It was a popular fairytale so I found the missing content online and a closely matching font, and reconstructed the pages. Another was in an Asian script I not only couldn't read, I didn't know how to sort or even properly rotate some loose pages, so I had to ask the owner. In a few cases when bits of the cover were missing, I found photos online, and printed a patch. Fun times!

ggambetta··on Ask HN: Any interesting niche hobbies?
I'm into book restoration, here's a gallery: https://photos.app.goo.gl/1oNxCfKJp4k6yjoZ9

Much less niche, but I'm also really into acting: https://m.youtube.com/watch?v=do5PicgU0Jw

ggambetta··on There is no spoon – A software engineers primer for demystified ML
Can we also ban anything where the second line is "let that sink in"? And anything claiming that "X is a masterclass in Y" (especially for (tweet, empathy))?
ggambetta··on Shipment of KitKat bars stolen en route from Italy to Poland
Can't help but think of George Clooney orchestrating the heist from his villa in Lago di Como (with a perfect alibi somehow). Maybe Brad Pitt was hungry.
ggambetta··on My Astrophotography in the Movie Project Hail Mary
That's just, like, your opinion, man. I loved the book and I loved the movie.
ggambetta··on Exposure Simulator
Nice, but I'm going to need some ND filters :)
ggambetta··on Understanding Neural Network, Visually
"Brute force" would be trying random weights and keeping the best performing model. Backpropagation is compute-intensive but I wouldn't call it "brute force".
ggambetta··on Implementing a tiny CPU rasterizer (2024)
May I add Computer Graphics From Scratch, which covers both rasterization and raytracing? https://gabrielgambetta.com/computer-graphics-from-scratch/i...

I have to admit I'm quite surprised by how eerily similar this website feels to my book. The chapter structure, the sequencing of the concepts, the examples and diagrams, even the "why" section (mine https://gabrielgambetta.com/computer-graphics-from-scratch/0... - theirs https://lisyarus.github.io/blog/posts/implementing-a-tiny-cp...)

I don't know what to make of this. Maybe there's nothing to it. But I feel uneasy :(

ggambetta··on Dithering – Part 2: The Ordered Dithering
I used ordered dithering in my ZX Spectrum raytracer (https://gabrielgambetta.com/zx-raytracer.html#fourth-iterati...). In this case it's applied to a color image, but since every 8x8-pixel block can only have one of two colors (one of these fun limitations of the Spectrum), it's effectively monochrome dithering.
ggambetta··on Ask HN: Share your personal website
https://gabrielgambetta.com - home of Computer Graphics from Scratch, the Client-Side Prediction & Server Reconciliation series, and some more misc things.
ggambetta··on Incremental Backups of Gmail Takeouts
Pretty sure they're gone, that's why gphotos-sync and the like have stopped working (https://github.com/gilesknap/gphotos-sync-discussion/discuss...)
ggambetta··on Incremental Backups of Gmail Takeouts
I switched to Gmail in 2007 or so. I used to have a gzipped mbox of my previous emails, dating back to maybe 1996 or 1997 when I got my first email account. This file was lost at some point, and I'm really sad about it. In some ways, it's like losing years and years of a journal, conversations I had with people, how I thought about the world at that age, etc. It's a huge loss to me.

About OP's tool, I also back up my Google account to an external disk periodically. Gmail is ~8 GB so it's manageable. But Google Photos is a pain. They recently removed most of the useful APIs, so AFAIK the only way to backup is via Takeout. It's terrible. Pictures in multiple albums are included as copies every time, so I had to make a script to find duplicates and replace them with symlinks. Just downloading the whole thing is a PITA (multiple 50 GB zip files). I get that Google has little incentive to make this better, in fact they might have an incentive to make it as inconvenient as possible, but I really wish they made it easier.

ggambetta··on Learn computer graphics from scratch and for free
OP's link is a good one, but if you want a different perspective (heh), there's https://gabrielgambetta.com/computer-graphics-from-scratch/i..., also from scratch, also for free. The name clash is unfortunate, I don't really know who started using it earlier :(
ggambetta··on Mt. Gox CEO Karpelès Reveals Details of 2014 Collapse and Japanese Detention
I want my 5 Bitcoin back :_(
ggambetta··on Load ZX Spectrum – first Museum dedicated to our first personal computer
RANDOMIZE USR 0
ggambetta··on Americans no longer see four-year college degrees as worth the cost
My degree was 5 years back in the day. Was it worth it? Maybe, probably. But these days people seem to get a bachelor's and a master's in 5 years, and it kind of pisses me off to have that CV disadvantage when my degree could have effectively been that (the last two years were full of electives to choose a narrower specialization, and was much more research-y).
ggambetta··on Why 90s Movies Feel More Alive Than Anything on Netflix
That spoiler should be a crime.
ggambetta··on How Quake.exe got its TCP/IP stack
That's pretty hardcore, respect :)
ggambetta··on How Quake.exe got its TCP/IP stack
I learned to solder as a pre-teen so I could make a nullmodem :) Then I learned that resistors were a thing when I made a parallel port sound card (this thing https://en.wikipedia.org/wiki/Covox_Speech_Thing). Fun times!
ggambetta··on Dithering – Part 1
Great presentation, loved the format! Looking forward to the other two parts.

I did a bit of ordered dithering on the ZX Spectrum Raytracer (https://gabrielgambetta.com/zx-raytracer.html#fourth-iterati...), it was surprisingly easy to implement and the results were great.

I wonder why it wasn't done more in the 80s (other than manual pixel art), probably just performance. I do remember seeing ordered dithering patterns in the 90s, in Windows 3.1 and in The Secret of Monkey Island VGA (I guess the backgrounds were hand-painted and scanned?).

ggambetta··on Movie posters from Ghana in the 1980s and 90s
I had Star Wars in VHS, with the most ridiculously awful Spanish subtitles you can imagine. I wish I still had it, or had some pictures at least :_)
ggambetta··on Dead soldiers' teeth reveal diseases that doomed Napoleon's army
And someone would have replied "I could care less" (incorrectly implying they do care, even if it's a little bit) :(
ggambetta··on The Sagrada Família takes its final shape
St Peter's Basilica is probably the most mind-blowing for me, even just because of the scale. The intricate facade of the Duomo in Milano, the green and while marble exteriors of the Duomo in Firenze, the (neoclassical?) architecture of St Paul's, the unusualness of St Francis of Assisi, Notre Dame (haven't gone back after the fire yet), the bright golden interiors of pretty much any Orthodox church,... Hagia Sophia if I may stretch the definitions a bit :)
← PreviousPage 2 of 34Next →