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
Stripe makes more changes
Thursday, April 25, 2024
TikTok is in trouble, and net neutrality is back View this email online in your browser By Christine Hall Thursday, April 25, 2024 Welcome back to TechCrunch PM, your home for all things startups,
💎 Issue 414 - From a Lorry Driver to Ruby on Rails Developer at 38
Thursday, April 25, 2024
This week's Awesome Ruby Newsletter Read this email on the Web The Awesome Ruby Newsletter Issue » 414 Release Date Apr 25, 2024 Your weekly report of the most popular Ruby news, articles and
💻 Issue 414 - JavaScript Features That Most Developers Don’t Know
Thursday, April 25, 2024
This week's Awesome Node.js Weekly Read this email on the Web The Awesome Node.js Weekly Issue » 414 Release Date Apr 25, 2024 Your weekly report of the most popular Node.js news, articles and
💻 Issue 407 - The Performance Impact of C++'s `final` Keyword
Thursday, April 25, 2024
This week's Awesome .NET Weekly Read this email on the Web The Awesome .NET Weekly Issue » 407 Release Date Apr 25, 2024 Your weekly report of the most popular .NET news, articles and projects
💻 Issue 414 - Everyone Has JavaScript, Right?
Thursday, April 25, 2024
This week's Awesome JavaScript Weekly Read this email on the Web The Awesome JavaScript Weekly Issue » 414 Release Date Apr 25, 2024 Your weekly report of the most popular JavaScript news, articles
📱 Issue 408 - All web browsers on iOS are just Safari with different design
Thursday, April 25, 2024
This week's Awesome iOS Weekly Read this email on the Web The Awesome iOS Weekly Issue » 408 Release Date Apr 25, 2024 Your weekly report of the most popular iOS news, articles and projects Popular
💧 Don't Bother Liquid Cooling Your AMD CPU — Why You Should Keep Using Live Photos on iPhone
Thursday, April 25, 2024
Also: We review the Unistellar Odyssey iPhone Telescope, and More! How-To Geek Logo April 25, 2024 Did You Know Charles Darwin and Abraham Lincoln were both born on the same day: February 12, 1809. 💻
💻 Issue 332 - 🥇The first framework that lets you visualize your React/NodeJS app 🤯
Thursday, April 25, 2024
This week's Awesome React Weekly Read this email on the Web The Awesome React Weekly Issue » 332 Release Date Apr 25, 2024 Your weekly report of the most popular React news, articles and projects
💻 Issue 409 - Sized, DynSized, and Unsized by Niko Matsakis
Thursday, April 25, 2024
This week's Awesome Rust Weekly Read this email on the Web The Awesome Rust Weekly Issue » 409 Release Date Apr 25, 2024 Your weekly report of the most popular Rust news, articles and projects
📱 Issue 411 - AI Starts to Sift Through String Theory's Near-Endless Possibilities
Thursday, April 25, 2024
This week's Awesome Swift Weekly Read this email on the Web The Awesome Swift Weekly Issue » 411 Release Date Apr 25, 2024 Your weekly report of the most popular Swift news, articles and projects