Saagar Jha
27 replies
Renaud Lienhart
(replying to Saagar Jha)
@saagar how many hours did you spend making this. This is amazing.
Saagar Jha
(replying to Renaud Lienhart)
2 replies
Graham Sutherland / Polynomial
(replying to Saagar Jha)
@saagar @layoutSubviews to save yourself time on the next video: SRT is just a text file with lines containing a timestamp range followed by the subtitle text to be displayed during that time. there are a ton of free tools for creating them on a timeline, too.
Saagar Jha
(replying to Graham Sutherland / Polynomial)
Adam Demasi
(replying to Saagar Jha)
@saagar @nicolas17 @layoutSubviews all that tells me is it’s time for you to install the Qt build tools 🙃
jonpalmisc
(replying to Saagar Jha)
@saagar @kirb @nicolas17 @layoutSubviews what’s so bad about them?
StarkRG@myside-yourside.net
(replying to Saagar Jha)
@saagar Also, even if it worked well every time (which it doesn't) garbage collection is a crutch for lazy coding. Just delete stuff when you're done with them.
Steven Lawson Photography
(replying to Saagar Jha)
@saagar I don't understand much of the terminology but this is pure genius! 😂
shac ron ₪
(replying to Saagar Jha)
@saagar LLVM dev enters his apartment after a long day at work and is surprised to find the entrance to his kitchen replaced with a brick wall. He calls his landlord, asking what happened. Landlord says the lease specified a 2 bedroom apartment, no mention of a kitchen, so she optimized it out. But don’t worry, she’ll be back tomorrow for the living room.
Allison Husain
(replying to shac ron ₪)
@shac @saagar the brick wall is merely a curtesy, he's lucky she didn't just delete it and let him fallthrough to whatever was below!
benstiglitz
(replying to Saagar Jha)
@saagar we watched the original last night so I can hear Nicholson as the voice of LLVM in my head perfectly…which means Kiefer Sutherland is Clang?
Brian Kung
(replying to Saagar Jha)
@saagar I didn't actually watch this movie so I thought the captions were verbatim xD
Saagar Jha
(replying to Brian Kung)
Andrew Pontious
(replying to Saagar Jha)
@saagar @briankung I have watched the movie.
Trust me, this is *gold*.
Wolf480pl
(replying to Saagar Jha)
@saagar
> I'll delete a thousand bounds checks before I let this code be slow
Damien Sorresso
(replying to Saagar Jha)
@saagar @shac "Well can I have a compiler flag that just turns off that optimization?"
"NO THEN EVERYONE WOULD USE IT."
enterprisey
(replying to Saagar Jha)
@saagar bounds checks have a negligible performance impact in many use cases and even when they don't, they're still extremely worth it https://news.ycombinator.com/item?id=33805419
Saagar Jha
(replying to enterprisey)
Kevin Chadwick
(replying to Saagar Jha)
Ada is probably the fastest safest language on the planet. The ranged type system actually means that bounds checks can be elided in more cases than other languages. It can also ensure that a program never crashes better than any other and it isn't a difficult language to use.
Rob Ricci
(replying to Saagar Jha)
@saagar This got linked in our faculty slack, and if that isn't the definition of viral I don't know what is
Rob Ricci
(replying to Rob Ricci)
@saagar Like, all I saw in the slack notification was your name, and I immediately knew what it was
Hugo Devillers
(replying to Saagar Jha)
@saagar I love this
also I'm unironically on Kernel LLVM's side, YOU CAN'T HANDLE THE TRUTH (seriously just write your stuff in a memory-safe language if you dislike having to deal with UB)
ketchup71
(replying to Saagar Jha)
@saagar I’m getting mixed vibes here, knowing the source movie… 😁
Peter Ludemann
(replying to Saagar Jha)
@saagar
I worked on an early digital telephone switch (at a competitor to Bell Labs), using a safe language with bounds checking. We estimated that the bounds checking cost us ~5-10% performance, and that it was a worthwhile price to pay for reliability -- what good is your performance boost if it's causing system crashes?
A few decades later, I see that Go (by someone from Bell Labs) has "invented" similar slices (I wonder if its compiler is as good as ours was at safely removing unneeded bounds checks).
Saagar Jha
(replying to Peter Ludemann)
Peter Ludemann
(replying to Saagar Jha)
@saagar You forgot to include integer overflow, for also getting wrong results; and as a bonus, hinders optimisations.
https://mastodon.social/@regehr/111308726824668478
Saagar Jha
(replying to Peter Ludemann)
Richard Hendricks
(replying to Saagar Jha)
@saagar Oh god, I feel this in my soul. Trying to support multiple compilers for a product is a special level of hell.