tristanbrindle.com
38 posts
209 followers
92 following
Regular Contributor
Conversation Starter
comment in response to
post
This is ChatGPT 4-o, which has been trained on tens of millions of books and articles on every subject under the sun at eye-watering cost. Yet apparently it can't even correctly analyse a few hundred words of english text. And this is supposed to be the future?
comment in response to
post
Only after I asked it to tell me the specific line numbers on which the alleged misspellings occurred did it "apologise for the earlier error"
comment in response to
post
But the 5th of April was last month?
comment in response to
post
Hey Matt, any truth to the rumour/legend that Jez San demo’d an early version (starring Yoshi) for Nintendo during Starfox 2 development, which then inspired Miyamoto to create Mario 64?
comment in response to
post
Guessing: no empty structs in C (unlike C++) so 1 is not allowed, but 2 contains a “declaration” so is okay
comment in response to
post
As noted, mine is about 10x slower with libc++'s std::unordered_map, so your approach might be faster? This is the hash table I'm using, it's a drop-in single header if you want to try it github.com/martinus/uno...
comment in response to
post
With the fast hash map it's about 3.5ms for part 2 on my laptop
comment in response to
post
This is very nice! Clearly recursive lambdas were the way to go today
comment in response to
post
I used exactly this approach to get the stars, but my solution took a couple of seconds to run. Rewrote it as a boring DFS and it ran in 10ms. Not sure what I did wrong the first time but it made me a bit sad!
comment in response to
post
FYI the "144 pages" link in that article points to your C drive
comment in response to
post
That `tl::split<T, N>` looks super interesting, is it available somewhere to have a look at?
comment in response to
post
Thanks! If you fancy giving it a try sometime I’d love to get some feedback from ranges experts about how I can improve it.
comment in response to
post
Oh, that's really nice! 😍
comment in response to
post
One super helpful trick I discovered from AoCs past is to use a grid type whose operator[] returns an invalid character (e.g. '.') when given an out-of-bounds position -- it saves tons of messy bounds checking elsewhere.
comment in response to
post
Happy birthday!
comment in response to
post
Good to know! I use Advent of Code for testing Flux so I probably miss nice ways in which other libraries can be used :)
comment in response to
post
I didn't realise CTRE could use the pipe syntax, that's really cool!
comment in response to
post
There's also the C++ Bluesky feed by @shafik.bsky.social
bsky.app/profile/shaf...
comment in response to
post
No On Sea?