@lzg antidotes to the woke mind virus
Notices by John Regehr (regehr@mastodon.social)
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Monday, 18-Nov-2024 12:12:01 JST John Regehr -
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Friday, 15-Nov-2024 06:23:48 JST John Regehr @lzg yes I’ll have a Moscone Calzone please
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Thursday, 14-Nov-2024 04:15:41 JST John Regehr @lzg feeling attacked
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Wednesday, 13-Nov-2024 03:10:03 JST John Regehr @pinskia @dave_andersen yeah.. you have to also make i a 32-bit type instead of a 64-bit type (but long was 32 bits at the time this code was written, so that's reasonable)
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Wednesday, 13-Nov-2024 03:10:02 JST John Regehr @pinskia @dave_andersen I find "long" to be a weird choice in the original code, I wonder why they used that instead of int?
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Wednesday, 13-Nov-2024 03:04:25 JST John Regehr @dave_andersen it's always strict aliasing
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:58 JST John Regehr it was not my intent for this to become an "optimizing Brainfuck" account. this will stop soon.
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:58 JST John Regehr I wasn't sure how much it would matter to vectorize scan loops such as [<] and [>>] in Brainfuck, but on my M1 Mac I'm seeing dbfi.b going about 10x faster due to just this one optimization
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:55 JST John Regehr @tommythorn
but so far in class we've only targeted native assembly. once we're done with this, we'll retarget everything to LLVM and pick up for free all of those amazing low-level optimizations that are too numerous for us to do by hand -
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:55 JST John Regehr @tommythorn ah, impossible to say without having worked on the other thing as well. what I can say about BF is that it's a bit a sweet spot for a compilers class because it has plenty of low-hanging optimizations, but they mostly require BF-specific knowledge, so for example LLVM alone would not be able to pick up most of these benefits.
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:54 JST John Regehr @resistor hoo boy. I want to say I'd use this in a performance comparison but LLVM 2.8 or whatev is pretty distant now
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:52 JST John Regehr @resistor one of the enterprising students in my class is attacking the problem that ~35% of LLVM unit tests trigger UB. 🤪 for real.
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Friday, 27-Sep-2024 12:55:09 JST John Regehr @dev but it would be more fun using a real pumpkin instead of a can!
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Friday, 27-Sep-2024 12:55:09 JST John Regehr @dev woah
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Friday, 27-Sep-2024 12:55:08 JST John Regehr @dev I made this last night with fresh tomatoes and the sauce really was better than with canned ones but damn it was basically like 2 hours
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Friday, 27-Sep-2024 12:55:07 JST John Regehr @dev well a pumpkin is a decoration until you decide to eat it, so that doesn't even count as taking up space!
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Wednesday, 25-Sep-2024 12:23:51 JST John Regehr "One Collatz Coincidence"
this is weird!
https://www.sligocki.com//2024/09/20/collatz-coincidence.html
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Wednesday, 18-Sep-2024 10:24:57 JST John Regehr one of my students wrote their Brainfuck interpreter in Uiua 👀
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Thursday, 12-Sep-2024 10:37:54 JST John Regehr three-deep nested parentheses in regular prose or GTFO
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Friday, 23-Aug-2024 06:20:04 JST John Regehr it's fun to see Nikita throwing some shade on LLVM's original link-time optimization scheme
https://www.npopov.com/2023/04/07/LLVM-middle-end-pipeline.html
I used to, about once a year, try to build GCC using GCC's link-time optimizer and LLVM using LLVM's link-time optimizer, and this almost always failed for one reason or another...