BetterDev #221 - How JavaScript engines achieve great performance
Better Dev #221 Nov 29, 2021
Hi all, It has been 3 weeks without an issue and I miss BetterDev myself. We’re planning for some new release of a new version of BetterDev to also contribute useful content on its own instead of just being a link collector :-). So stay tune. BetterDev is here to stay and defintely not giving up on helping our subsribe become a better programmer.
No this isn’t crypto currency. The Joy of Cryptography is a free undergraduate textbook that introduces students to the fundamentals of provable security.
JavaScript is an impressive technology. Not because it’s particularly well-designed (it isn’t). Not because almost every single consumer device with internet access in the world has executed a JavaScript program. Instead, JavaScript is impressive because almost every single feature of the language makes it a nightmare to optimize and yet, it is fast.
A software bug where the network stack crashes in reaction to a single received network packet, taking down the whole operating system with it.
When optimization, we optimize our code, what if the compiler optimize its own to emit more efficient assembly code, therefore make your code run faster than before. This is the case for Go, though it’s still a good read for everyone to understand more about assembly and register vs stack based function calling.
With more than 1.5M room nights booked per day, Booking.com requires a solid infrastructure that’s constantly monitored. Booking.com now has a footprint of 50,000+ physical servers running across four data centers and six additional points of presence. The sheer size of this server fleet makes it viable for Booking.com to have dedicated teams specializing into looking only at the reliability of those servers.
A bank for sure has a lot of secret key they would like to keep secure. In this post, monzo, a modern bank shares how they levrage PKI(Public Key Infrastructure) to do authentication and authorization. It’s crazy insane how deep they secure their system
Let’s make a gzipped file and see what’s in it. We’ll keep it simple: just write 8 ‘a’s to a file and see what is the final gzip file and decode it by hand, looking at byte by byte.
Introducing QOI — the Quite OK Image format. It losslessly compresses RGB and RGBA images to a similar size of PNG, while offering a 20x-50x speedup in compression and 3x-4x speedup in decompression. All single-threaded, no SIMD. It’s also stupidly simple.
We constantly hear that indexes improve read performance and it’s usually true, but we also know that it will always have an impact on writes. What we don’t hear about too often is that in some cases, it may not give any performance improvement at all. This happens more than we want and might happen more than we even notice, and foreign keys (FKs) are a great example. I’m not saying that all FK’s indexes are bad, but most of the ones I’ve seen are just unnecessary, only adding load to the system.
Code to read
A blazingly fast JSON serializing & deserializing library. Improve performance of JSON parsing by implement JIT and some Assembly optimization. Over my head I must say but interested to figure it out
GoTools
ssh mitm server for security audits supporting public key authentication, session hijacking and file manipulation
a high-performance open-source monitoring, incident and alert system written in Golang with Bazel and love.
If you ever store large binary file in git you know how painful it is. This is still a need for design system or game assets. elfshaker is a low-footprint, high-performance version control system fine-tuned for binaries. It stores snapshots of directories into highly-compressed pack files and provides fast on-demand access to the stored files.
You can view this issue in web browser.
If you have any suggestion/feedback, do tell me by replying to this email. I read them all.
No longer want to receive these emails? Unsubscribe
Older messages
BetterDev #220 - How to build an Anycast network
Tuesday, November 2, 2021
Better Dev #220 Nov 2, 2021 How to Build an Anycast Network An anycast network is two or more servers advertising the same IP address from different locations. This is useful for globally distributed
BetterDev #219 - How to win at CORS and How Microsoft reduced Windows 11 update size by 40%
Monday, October 18, 2021
Better Dev #219 Oct 18, 2021 How to win at CORS CORS is complicated because it's a standard implement on client side, by browsers. it's up to browser to do what it wants or needs to implement.
BetterDev #218 - Scaling Large Production Clusters with Partitioned Synchronization
Wednesday, October 13, 2021
Better Dev #218 Oct 12, 2021 Happy tuesday everyone. I hope you enjoy this issue, as much as I do. This issue make this newsletter feel like a database newsletter. It just happens we have so many
BetterDev #217 - Self-parking car in 500 lines of code
Tuesday, October 5, 2021
Better Dev #217 Oct 05, 2021 We skipped one issue last week due to my personal workload on my side project, email forwarding service. I also get into a few blockchain projects recently and it was a lot
BetterDev #216 - Why Authorization is Hard and The pitfalls of using ssh-agent, or how to use an agent safely
Monday, September 20, 2021
Better Dev #216 Sep 20, 2021 A very practical issue. Dealing with authorization, SSH agent, design API, optimize big JS bundle, text vs varchar in database design. I hope you like these as much as I do
You Might Also Like
The 165+ best Black Friday deals
Wednesday, November 27, 2024
Windows Super God Mode; Bluesky starter packs; Tech gifts under $100 -- ZDNET ZDNET Tech Today - US November 27, 2024 Black Friday 2024 live blog Best Black Friday deals 2024: 165+ sales live now
⚙️ Neuralink's new trial
Wednesday, November 27, 2024
Plus: Zoom is becoming an AI-first company
Matrix Botnet Exploits IoT Devices in Widespread DDoS Botnet Campaign
Wednesday, November 27, 2024
THN Daily Updates Newsletter cover The AI Value Playbook ($35.99) FREE for a Limited Time Business leaders are challenged by the speed of AI innovation and how to navigate disruption and uncertainty.
The Sequence Chat: Why are Foundation Models so Hard to Explain and What are we Doing About it?
Wednesday, November 27, 2024
Addressing some of the interpretability challenges of foundation models and the emerging fields of mechanistic interpretability and behavioral probing. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Overcoming Perfectionism: How to Break Free from the Enemy of Progress
Wednesday, November 27, 2024
Discover how perfectionism hinders progress and learn practical strategies to overcome the fear of imperfection, boost productivity, and achieve your goals without getting stuck in the pursuit of
🖤 Laravel Black Friday Deals!
Wednesday, November 27, 2024
The biggest deals of the year Laravel Black Friday Deals View in browser Laravel News Editor Note: We are sending this outside the regular Sunday newsletter schedule because some of these specials end
BetterDev #271 - Memory: The Forgotten History and Why did Windows 95 setup use three operating systems?
Wednesday, November 27, 2024
Better Dev #271 Nov 26, 2024 Hi all, Welcome to thanksgiving issue of BetterDev. Hope everyone had a safe and warm thanksgiving. It's getting so cold these days. If you are in warzone such as
Mapped | Unemployment Rate By U.S. State in 2024 💼
Tuesday, November 26, 2024
As of October 2024, DC and Nevada tied for the highest unemployment rate in the US at 5.7%. Which states saw the lowest rates? View Online | Subscribe | Download Our App FINAL CHANCE - ENDS TONIGHT!
🔊 7 DIY Tips for Soundproofing a Room — Why I Switched to Xfce for Linux Mint
Tuesday, November 26, 2024
Also: Home Theater Sound Terms Explained, and More! How-To Geek Logo November 26, 2024 Did You Know The shiny layer of a CD doesn't contain the data; the plastic polycarbonate layer does. The shiny
JSK Daily for Nov 26, 2024
Tuesday, November 26, 2024
JSK Daily for Nov 26, 2024 View this email in your browser A community curated daily e-mail of JavaScript news JavaScript Certification Black Friday Offer – Up to 54% Off! Certificates.dev, the trusted