This podcast covers news on Phoenix and Elixir's groundbreaking feature, José Valim's proposal on local accumulators, Supabase's innovative libcluster_postgres library for Elixir node discovery, translating NumPy code to Elixir, and the Elixir community's approach to Advent of Code challenges.
Phoenix and Live View offer a native pub/sub solution, eliminating the need for external services like Pusher and Redis.
The proposal for local accumulators in Elixir simplifies handling of immutable variables and scoping, enhancing code readability.
Deep dives
Phoenix and Live View's Solution for Pub/Sub Services
Phoenix and Live View have provided a solution for replacing external pub/sub services like Pusher, PubNub, and Redis. With Phoenix's built-in Pub/Sub feature and Elixir's ability to cluster multiple instances, event notifications can easily be pushed from one server to another, providing a seamless pub/sub experience for users.
Local Accumulators Proposal in Elixir
Josie Villem's Elixir core proposal suggests the addition of local accumulators to solve the issue of nested data structure traversal in Elixir. The proposal introduces a new syntax for locally scoped variables that act as accumulators within loops, simplifying the handling of immutable variables and scoping in Elixir code.
LibCluster Postgres: Elixir Library for Node Clustering
LibCluster Postgres is a newly released Elixir library that provides a strategy for clustering Elixir nodes using a PostgreSQL database. Superbase, a realtime supervisor and logflare project, has already implemented this strategy in production. Using LibCluster Postgres, Elixir servers can easily discover and connect to each other, enabling efficient clustering for distributed applications.
News teases an intriguing update from Chris McCord hinting at a groundbreaking feature in Phoenix and Elixir's capabilities. José Valim proposes local accumulators in Elixir, stirring discussions on the future of coding elegance. Supabase launches the innovative "libcluster_postgres" library, promising to enhance Elixir node discovery with Postgres. And for those seeking to crunch numbers differently, a must-read blog post lays out a roadmap for translating code in NumPy to Nx. Plus, Elixir enthusiasts are buzzing about this year's Advent of Code challenges—find out how the community tackles these puzzles with bespoke tooling and shared Livebooks strategies, and more!
https://notes.club – A platform that hosts a frontend of Livebooks on GitHub, organized by author, likes, and tags, useful for exploring how people are solving Advent of Code problems in Elixir.
https://github.com/ljgago/kino_aoc – A GitHub repository for a Livebook Smart Cell which aids in solving Advent of Code directly from Livebook.
https://github.com/nettinho/smaoc – Another Livebook Smart Cell repository on GitHub for Advent of Code that facilitates problem interaction within Livebook.