Skip to content

Instantly share code, notes, and snippets.

@ivan
Last active July 22, 2024 00:40
Show Gist options
  • Save ivan/a36e2489623469d96c1ad79077b6dcf9 to your computer and use it in GitHub Desktop.
Save ivan/a36e2489623469d96c1ad79077b6dcf9 to your computer and use it in GitHub Desktop.
2024 reading list

Things I might read in 2024.



  • Antoine de Saint-Exupéry, Richard Howard (translator) - The Little Prince
  • Sayaka Murata, Ginny Tapley Takemori (translator) - Convenience Store Woman (via)
  • Jorge Luis Borges - Tlön, Uqbar, Orbis Tertius (in Labyrinths)/ printed (via)
  • Franz Kafka - The Metamorphosis (via)
  • William Olaf Stapledon - Star Maker/ audio, go to 12m35s to skip past the introduction spoilers




Lectures/videos


Interactive fiction


unplanned notable things read


unplanned and abandoned

  • Ichiro Kishimi, Fumitake Koga - The Courage to Be Disliked/ audio
  • Matt Dinniman - Dungeon Crawler Carl/ audio
  • Charles Eisenstein - The More Beautiful World Our Hearts Know Is Possible/ audio
  • Geoff Smart - Who: The A Method for Hiring/ audio
  • Genki Kawamura - If Cats Disappeared from the World/ audio
@ivan
Copy link
Author

ivan commented Jul 19, 2024

It doesn't even work on newer Dell laptops, you just can't see the drive. Only workaround we had was to run install media and then run it from the command line there, because of Dell drivers.

The windows recovery partition on newer devices does not see the drives because Intel, in their stupidity, decided that most of newer devices should use Intel VMD/RST by default and not AHCI and Microsoft never included that driver in both the install media and recovery partition

https://x.com/SubZeroNexii/status/1814394934616830323

@ivan
Copy link
Author

ivan commented Jul 19, 2024

Imagine living your whole life, from growing up as a baby to a toddler to a child to an adolescent to an adult, gathering all of your experiences, your career, your family and friends, for it all to vanish instantly and you cease to exist because you got mad at a traffic stop. Your entire consciousness vanishing because you got mad over something that doesn’t matter. It’s actually quite mind-blowing to put yourself in those shoes, conceptually.

https://old.reddit.com/r/AllThatIsInteresting/comments/1e7apnz/indianapolis_driver_faces_no_charges_after/ldz0fao/

@ivan
Copy link
Author

ivan commented Jul 20, 2024

C coding tip: if you ever need arithmetic operations without implicit integer promotions, make a one-element vector type: https://godbolt.org/z/9bo648bsh

image

https://mastodon.social/@amonakov@mastodon.gamedev.place/112809365535996420

@ivan
Copy link
Author

ivan commented Jul 21, 2024

The secret to achieving speedups of multiple factors, not just low percentages, is less about applying generic rules or habits like “Don’t create closures inside for-loops”. It’s a common misconception that if you follow all these “best practices” that your code will be fast, because the uncomfortable truth in most instances (read not all) is that it won’t matter much. What makes code truly fast is being aware of what it’s supposed to solve and then taking the shortest path to achieve that goal.

https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-8/

@ivan
Copy link
Author

ivan commented Jul 21, 2024

@ivan
Copy link
Author

ivan commented Jul 21, 2024

We currently have an interesting bug on the BBC website where some users have a viewport that is, for example, 599.5px wide. So:

@-media (max-width: 599px) {}
@-media (min-width: 600px) {}

These users get no styles from either media query. I'm about to work on a fix.

https://x.com/JoshTumath/status/1801244891151782150

What about

@-media not (min-width: 600px) {}
@-media (min-width: 600px) {}

See the thread. That's effectively the solution.

https://x.com/lukedeentaylor/status/1801594689310617893

@ivan
Copy link
Author

ivan commented Jul 21, 2024

Feature Comparison

This is a best-effort feaure comparison between rkyv, FlatBuffers, and Cap'n Proto. This is by no means completely comprehensive, and pull requests that improve this are welcomed.

Feature matrix

Feature rkyv Cap'n Proto FlatBuffers
Open type system yes no no
Scalars yes no yes
Tables no* yes yes
Schema evolution no* yes yes
Zero-copy yes yes yes
Random-access reads yes yes yes
Validation upfront* on-demand yes
Reflection no* yes yes
Object order bottom-up either bottom-up
Schema language derive custom custom
Usable as mutable state yes limited limited
Padding takes space on wire? yes* optional no
Unset fields take space on wire? yes yes no
Pointers take space on wire? yes yes yes
Cross-language no yes yes
Hash maps and B-trees yes no no
Shared pointers yes no no

* rkyv's open type system allows extension types that provide these capabilities

https://rkyv.org/feature-comparison.html

@ivan
Copy link
Author

ivan commented Jul 22, 2024

I WANT TO SEE THE STUFF I DIDN'T WANT TO SEE!

a comment in https://www.youtube.com/watch?v=UT2GcoCJh5k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment