Discover the latest with Plug's dark mode support for debugging, enhancing developer comfort. Learn about co-located hooks to streamline code organization in Phoenix applications. Explore a new RAG library that optimizes AI interactions and document management. Check out Pinchflat, an Elixir-based YouTube downloader, and Autumn, a syntax highlighter that integrates with Markdown. Dive into hardware integration with Phoenix and the new Vite Plus JavaScript toolchain designed to unify development efforts.
The latest Plug v1.17.0 update enhances the developer experience with dark mode support and improved error documentation links.
BitCrowd's new RAG library for LLMs aims to enrich AI responses by integrating external document knowledge effectively.
Deep dives
Updates to Plug Library
The latest release of the Plug library, version 1.17, introduces significant updates that enhance the developer experience. Notably, the plug.debugger now supports dark mode, catering to developers who prefer coding in low-light environments. Additionally, links to involved functions in the exception screen have been added, simplifying the process of accessing relevant documentation upon encountering errors. The update also includes the deprecation of certain fields in favor of function-based access, as well as improved SSL certificate validation, underscoring a commitment to better security practices in web applications.
Co-locating JavaScript Hooks with Components
A noteworthy draft pull request in Phoenix proposes co-locating JavaScript hooks with their respective components, streamlining the development workflow. This approach aims to allow developers to define the required DOM control within the same file as the component code, reducing the need for separate files. The proposed change seeks to enhance the developer experience by bringing together HTML and JavaScript into a cohesive structure much like how Vue.js operates. While still under development, the potential for improved organization and efficiency in component-based architectures is promising.
Introduction of Fine Library
The Fine library, designed for C++ NIF integration with Elixir, has introduced an example project to its GitHub repository, demonstrating its functionality for Elixir developers. This example emphasizes simple arithmetic operations, showcasing how Elixir can seamlessly call C++ functions to perform computations. This integration is particularly beneficial for teams familiar with C or C++ that wish to leverage existing code libraries within Elixir applications. The added example project provides a practical guide for users looking to incorporate Fine into their own projects, enhancing accessibility for developers transitioning between languages.
New RAG Library from BitCrowd
BitCrowd has announced a new library focused on retrieval-augmented generation (RAG), which enhances the capabilities of AI models by incorporating external knowledge sources. This library assists in the ingestion of various document types and facilitates effective querying by converting user inputs into vector tokens for database searching. The aim is to combine these chunks with LLM prompts to provide more accurate and contextually rich responses while minimizing instances of hallucinations. This tool not only streamlines the interaction between large language models and external data but also aims to remain current by continually updating its knowledge base.
News includes the release of Plug v1.17.0 with dark mode support for Plug.Debugger, an exciting Phoenix PR for co-located hooks that would place hook logic directly next to component code, a new RAG (Retrieval Augmented Generation) library from Bitcrowd for enhancing LLM interactions with document management, a syntax highlighter called Autumn powered by Tree-sitter, an Elixir-built YouTube downloader project called Pinchflat, and more!
https://gigalixir.com/thinking – Gigalixir is sponsoring the show, offering 20% off standard tier prices for a year with promo code "Thinking".
https://github.com/elixir-plug/plug/pull/1261 – Plug v1.17.0 introduces dark mode to Plug.Debugger, providing a more comfortable experience for developers working in dark environments.
https://github.com/bitcrowd/rag – New RAG (Retrieval Augmented Generation) library for Elixir from Bitcrowd to help with LLM context and document management.
https://github.com/leandrocp/autumn – Autumn is a new Elixir/tree-sitter syntax highlighter that supports terminal and HTML outputs, powered by Tree-sitter and Neovim themes.
https://github.com/leandrocp/mdex – MDEx library updated to support CommonMark, GitHub Flavored Markdown, Wiki Links, Discord Markdown tags, emoji, and syntax highlighting via Autumn.