BetterDev #244 - How discord stores trillions of messages and How Cloudflare run Prometheus at scale
Better Dev #244 Mar 13, 2023
Rewrite in Rust, migrate to ScylaDB from cassandra. But the most important thing to me is the request coalescing. If two user read the same row, there should only one query to the database.
They run 916 Prometheus instances with a total of around 4.9 billion time series. CloudFlare sure knows how to scale Prometheus
writing code that operates on bits can be tedious, less readable. higher level languages usually abstract them out but it’s a fundamental useful to know and understand these concept. You don’t need to know C to follow these
A very long post explain recursion, how function works, invent automatic memory, arn a bit of Polish (notation), and discover the power of stack machines. To conclude, we’ll try writing a Rust macro that parses and executes Forth code at compile time.
It hard to design a UI library because UI is async by default. You have two approach, declarative or imperative. On top of that, add event handle, where to put it to avoid blocking main threaad. Separation of logic(rendering) and behaviour. Suddently it brings every concept into it
Josh taugh React and noticed that there were a handful of things that kept catching students off guard. In this tutorial, we’re going to explore 9 of the most common gotchas
Every day Refind picks 5 links from around the web that make you smarter, tailored to your interests. Refind is a must-read newsletter loved by 100,000+ curious minds. Sign up for free today
There are many open source implementation of large language models. But we cannot experiment locally. Thanks to Georgi Gerganov and his llama.cpp project it is possible to run Meta’s LLaMA on a single computer without a dedicated GPU.
Currently used approaches for trees in databases like adjacency lists or the nested set model are too complex. Storing the full path with every row simplifies tree querying and management.
Building a design system that works is a challenge at any scale. Building a design system for 150+ product teams, used by 200+ designers and 800+ developers, and serving 4 different platforms? That’s a challenge requiring lots of special considerations.
Code to read
Given an element, it will generate the shortest CSS selector to identify that element uniquely. This is useful say you’re building a tool to design UI and it works with element/block. User click an element to focus it, this can be used to identify those elements
JavaScriptGiven random arbitrary string like “today”, “last friday 2am” it can generate a date object. Really cool to see how it’s implemented.
JavaScriptVideo
It has a lot of principle to keep thing simpler, avoid over engineering.
Tools
Continuous Profiling Platform. Debug performance issues down to a single line of code. Very nice webui and supprot many languages to ingest data. Has a nice demo you can check
Poor man’s ngrok - a multi-tenant HTTP reverse tunnel solution through SSH remote port forwarding
ngrok equivalent built base on OpenZiti which create a zero trust overlay network to join your nodes together
a straightforward open source tool that provides a spreadsheet-like interface to a PostgreSQL database.
a cutting-edge, state-of-the-art (SOTA) model that builds upon the success of previous YOLO versions and introduces new features and improvements to further boost performance and flexibility.
an Open Source Financial Switch to make payments Fast, Reliable and Affordable. It lets you connect with multiple payment processors and route traffic effortlessly, all with a single API integration.
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
Key phrases
Older messages
Monday, February 27, 2023
Better Dev #243 Feb 26, 2023 Scaling Etsy Payments with Vitess: Part 1 – The Data Model Etsy Payment system reached the point where vertical scale won't work anymore. They used biggest instance on
BetterDev #242 - Neural Networks: Zero to Hero and Bit Hacking with Go code
Monday, February 13, 2023
Better Dev #242 Feb 13, 2023 Neural Networks: Zero to Hero A course by Andrej Karpathy on building neural networks, from scratch, in code. We start with the basics of backpropagation and build up to
BetterDev #241 - How a single line of code brought down a half-billion euro rocket launch
Monday, February 6, 2023
Better Dev #241 Feb 06, 2023 How a single line of code brought down a half-billion euro rocket launch How a rocket launch fail? Re-use of code written for 32-bit system on a 64-bit data range. Novo
Tuesday, January 24, 2023
Better Dev #240 Jan 23, 2023 Start speaking a new language in just three weeks with Babbel (SPONSOR) Learning to speak a new language goes beyond just vocabulary: it's about being able to hold a
BetterDev #239 - What happens when you open a terminal and enter ‘ls’
Friday, January 20, 2023
Better Dev #239 Jan 16, 2023 What happens when you open a terminal and enter 'ls' This could be the equivalent of the in famous “what happen when you type an address into the browser”, but for
Saturday, April 1, 2023
Issue #1089 — Top 20 stories of April 02, 2023 Issue #1089 — April 02, 2023 You receive this email because you are subscribed to Hacker News Digest. You can open it in the browser if you prefer. 1
Daily Coding Problem: Problem #1062 [Easy]
Saturday, April 1, 2023
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given the head of a singly linked list, swap every two nodes and return its head
Animated Map | The Largest Cities Throughout History 🌃
Saturday, April 1, 2023
Where were the largest cities in the world throughout history? This video shows the rise (and fall) of the most populated cities from 3000 BCE. View Online | Subscribe FEATURED STORY The Largest Cities
How to Enable Dark Mode in Real Life
Saturday, April 1, 2023
Did You Know?: Graphene was first observed, via electron microscope, in 1962 and studied only while supported on metal surfaces. The material was later rediscovered, isolated, and characterized in 2004
Noonification: The Birth of an AI Martyr
Saturday, April 1, 2023
Top Tech Content sent at Noon! Invest in the company that's democratizing VC How are you, @hacker? 🪐 What's happening in tech this week: The Noonification by HackerNoon has got you covered with
Saturday, April 1, 2023
TechCrunch Newsletter TechCrunch logo Week in Review logo By Kyle Wiggers Saturday, April 01, 2023 It's the weekend, party people, and you know what that means: It's Week in Review (WiR) time.
Startups Weekly - Always be prompting
Saturday, April 1, 2023
TechCrunch Newsletter TechCrunch logo Startups Weekly logo By Natasha Mascarenhas Saturday, April 01, 2023 Welcome to Startups Weekly, a nuanced take on this week's startup news and trends by
🐍 New Python tutorials on Real Python
Saturday, April 1, 2023
Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Don't miss out on the opportunity to learn something new and sharpen your Python skills.
Saturday, April 1, 2023
The story of perhaps the most audacious rock opera of all time. Here's a version for your browser. Hunting for the end of the long tail • April 01, 2023 Hey all, Ernie here with a fresh one from
Cacti, Realtek, and IBM Aspera Faspex Vulnerabilities Under Active Exploitation
Saturday, April 1, 2023
The Hacker News Daily Updates Newsletter cover 7 Key Takeaways to Passwordless Authentication Moving Past Passwords (At Last!) Download Now Sponsored LATEST NEWS Apr 1, 2023 Microsoft Fixes New Azure