Vivek Galatage
banner
vivekgalatage.bsky.social
Vivek Galatage
@vivekgalatage.bsky.social
buillding browsers for 20+ years • ❤️ languages, os, compilers • contributed to #chromium, #webkit • founding engineer browsercompany • views are personal
Example code to show the ASM code - both for x86-64 and ARM.

godbolt.org/z/e6q715Whf
December 2, 2024 at 5:43 PM
Why this matters❓

- Network protocols (packed structs for wire format)
- Hardware interfaces (for memory-mapped I/O)
- Performance optimization (aligned access for SIMD)
- Cross-platform compatibility (consistent memory layout)

Understanding this is crucial for systems programming! 🚀
November 28, 2024 at 9:27 AM
3. A practical example:
In a job interview, don't stop at asking about company culture. Follow up with how the team handles challenges. Then, crucially, explore how the role aligns with the company's long-term vision.
Don't forget to check the transcript for more insights!
November 12, 2024 at 11:57 AM
2. The concept of asking the third question:
When exploring a topic, push beyond surface-level inquiries. While the first question opens the door and the second adds depth, it's the third question that often reveals unexpected insights.
November 12, 2024 at 11:57 AM
Here are the key takeaways that resonated:
1. The powerful eulogy by Jony Ive, reflecting on his time with Steve Jobs, emphasizing the interplay of curiosity and discipline.
November 12, 2024 at 11:57 AM
After sharing these thoughts, a search for "curiosity and discipline" led me to a fantastic podcast.

Curiosity Is a Discipline by Greg McKeown - a short ~12-minute episode filled with a magnificent story and valuable insights!

gregmckeown.com/podcast/epis...
219. Curiosity Is a Discipline - Greg McKeown
gregmckeown.com
November 12, 2024 at 11:57 AM
Once you have thoroughly grasped the concept with the help of such tools, your learning gets only better and better with practice.
November 11, 2024 at 4:19 PM
In the above example, volatile variables are read from the register each time they are accessed, with no caching.

Once these concepts are clear, we can better appreciate their role in concurrency & synchronization. It is essential for avoiding pitfalls in multi-threaded environments.
November 11, 2024 at 4:19 PM
For the volatile keyword in C and C++, see how the generated machine code differs, how many reads are used for a volatile variable, and how the compiler optimizes everything else.

Start with the smallest usage for a given concept & gradually build on it, laying the foundation for future recalls.
November 11, 2024 at 4:19 PM
Let curiosity light the way for our dreams to take flight; let discipline carry us forward - transforming our everyday moments into extraordinary tales.
November 11, 2024 at 6:05 AM
Curiosity, the front wheel, seeks new trails, chasing horizons and revealing unseen paths. Discipline, the back wheel, is steady and strong, transforming dreams into beautiful realities.
November 11, 2024 at 6:05 AM