Programming

Programming

1474 bookmarks
Custom sorting
Parsing IP addresses crazily fast
Parsing IP addresses crazily fast
Most of us are familiar with IP addresses: they are strings of the form “ddd.ddd.ddd.ddd” where ddd is a decimal number of up to three digits in the range 0 to 255. For example, 127.0.0.1 or 192.168.0.2. Each of the four number is a byte value, and the address is n IPv4 network address that … Continue reading Parsing IP addresses crazily fast
·lemire.me·
Parsing IP addresses crazily fast
Yggdrasil: Easy Pub-Sub in Elixir
Yggdrasil: Easy Pub-Sub in Elixir
When I started coding in Elixir (around 2016), I was working for a financial company. Our product aut...
·dev.to·
Yggdrasil: Easy Pub-Sub in Elixir
Publish-Subscribe in Elixir
Publish-Subscribe in Elixir
Publish-Subscribe is a messaging pattern that works as follows: a group of consumers subscribe to events of a given topic and are notified whenever an event of that topic arrives. When an event is published into a topic channel, the channel delivers a copy of the message to each of the output channels. The advantage of this is we can decouple the consumers from the producers. Neither party need knowledge of each other to communicate. In other words, pub-sub is a pattern used to communicate messages between different system components without the components knowing anything about each other’s identity. Let’s look at an implementation of Publish-Subscribe in Elixir. The full source code is provided below.
·yos.io·
Publish-Subscribe in Elixir
UPLOADING IMAGES IN PHOENIX LIVE VIEW
UPLOADING IMAGES IN PHOENIX LIVE VIEW
Imagine a web experience that’s both captivating and effortless. That’s the power of Phoenix Live View, a game-changer in web development…
·medium.com·
UPLOADING IMAGES IN PHOENIX LIVE VIEW
What is SQL? An Comprehensive Guide - HackerRank Blog
What is SQL? An Comprehensive Guide - HackerRank Blog
What is SQL? In this article, we explore the history of SQL, its key features and benefits, and real-world examples of its applications.
·hackerrank.com·
What is SQL? An Comprehensive Guide - HackerRank Blog
Migrating to Verified Routes
Migrating to Verified Routes
How to migrate from legacy Phoenix routes to the newer Verified Routes in Phoenix 1.7.
·fly.io·
Migrating to Verified Routes
Today I Learned
Today I Learned
TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day.
·til.hashrocket.com·
Today I Learned
Open-Source Elixir Alternatives to ChatGPT
Open-Source Elixir Alternatives to ChatGPT
Open-source Elixir alternatives to popular AI tools like ChatGPT offer benefits like better control, reduced costs, and more.
·dockyard.com·
Open-Source Elixir Alternatives to ChatGPT
Pogo - distributed supervisor for Elixir
Pogo - distributed supervisor for Elixir
Pogo is a distributed supervisor built on top of Erlang process groups. It abstracts away the complexity process scheduling and supervision in distributed environment.
·szajbus.dev·
Pogo - distributed supervisor for Elixir
Don't use structs, use records instead!
Don't use structs, use records instead!
Structs are omnipresent in Elixir projects. And for good reasons, they're great, they have numerous...
·dev.to·
Don't use structs, use records instead!
Recursively List Files in Elixir
Recursively List Files in Elixir
Quick Elixir ditty to recursively list the files at a given path (relative or absolute):
·ryandaigle.com·
Recursively List Files in Elixir
Expected performance of a Bloom filter
Expected performance of a Bloom filter
A hash function is a function that maps a value (such as a string) to an integer value. Typically, we want random-looking values. A Bloom filter is a standard data structure in computer science to approximate a set. Basically, you start with a large array of bits, all initialized at zero. Each time you want … Continue reading Expected performance of a Bloom filter
·lemire.me·
Expected performance of a Bloom filter