| News Nug |
|---|
|
Elephantshark, a tool to monitor Postgres network traffic Published: 2025-09-24 | Origin: Hacker News Elephantshark is an open-source Ruby script developed by Neon that facilitates monitoring, understanding, and troubleshooting Postgres network traffic. It acts as a middleman in the Postgres-protocol exchanges, logging and parsing messages between Postgres servers, clients, drivers, and poolers. Unlike Wireshark, which can struggle with SSL/TLS-encrypted connections, Elephantshark can decrypt and re-encrypt these connections while logging the data. It also offers compatibility for Wireshark by providing SSL |
|
crates.io: Malicious crates faster_log and async_println | Rust Blog Published: 2025-09-24 | Origin: /r/programming On September 24th, the crates.io team was alerted by Kirill Boychenko from the Socket Threat Research Team about two malicious crates that were searching for Ethereum and Solana private keys, as well as arbitrary byte arrays for exfiltration. These crates executed harmful code at runtime, while imitating legitimate crates via typosquatting, copying their source code and documentation. The malicious crates were promptly disabled and deleted from crates.io, with logs retained for further investigation. They functioned similarly to |
|
JRuby and JDK 25: Startup Time with AOTCache Published: 2025-09-24 | Origin: /r/ruby The post discusses JDK 25, the latest Long-Term Support (LTS) release, and highlights its new AOTCache (ahead-of-time cache) feature, which optimizes code for future executions and could significantly enhance JRuby's performance. The author emphasizes that the primary challenge in migrating to JRuby has been its slow startup time, a problem that hasn't been fully addressed despite ongoing improvements. While JRuby has made strides in optimizing memory allocation and deferring initialization, its startup times remain significantly |
|
Redis is fast - I'll cache in Postgres Published: 2025-09-24 | Origin: /r/programming The article explores the idea of using PostgreSQL for caching instead of Redis by implementing a simple HTTP server that interacts with both databases. The author sets up an experiment on a Kubernetes cluster to compare performance, using unlogged tables in PostgreSQL and standard Redis settings. Both databases are seeded with 30 million entries. The testing involves benchmarking operations (gets and sets) for metrics like operations per second, latencies, memory, and CPU usage. The benchmarks simulate real scenarios with different probabilities for hits and misses |
|
Introduction to Programming Languages (book) Published: 2025-09-24 | Origin: /r/programming "Introduction to Programming Languages," authored by Jaemin Hong and Sukyoung Ryu, serves as a textbook for the KAIST Programming Languages course but is intended for anyone interested in learning or teaching the fundamentals of programming languages, including syntax, semantics, and type systems. Faculty are encouraged to share the book with their students and to acknowledge the authors. Feedback and corrections are welcome via email. The book draws on materials from PLT and reflects insights gained from student interactions and contributions from teaching assistants. The authors |
|
Unlocking Performance in Python's Free-Threaded Future: GC Optimizations Published: 2025-09-24 | Origin: /r/programming The upcoming Python 3.14 release, now with a release candidate available, features significant improvements, particularly in the free-threaded version that allows Python to run without the Global Interpreter Lock (GIL). Neil Schemenauer from Quansight implemented optimizations to the garbage collector (GC) for this release, enhancing performance. Unlike the default GC in the standard CPython build, which utilizes a per-interpreter linked list structure for managing garbage collection, the new free-threaded GC eliminates this |
|
Python on the Edge: Fast, sandboxed, and powered by WebAssembly Published: 2025-09-24 | Origin: Hacker News On September 24, 2025, Wasmer announced the beta launch of full Python support for Wasmer Edge, responding to the growing demand for running Python applications on WebAssembly in edge environments. Integrating Python with WebAssembly presents challenges due to the support required for native modules like numpy and pandas. While other projects like pyodide have made progress in this area, they don't meet server-side requirements adequately. The newly released Python feature in Wasmer Edge is notably faster than previous iterations, boasting |
|
Engineering a fixed-width bit-packed Integer Vector in Rust Published: 2025-09-24 | Origin: /r/programming This content discusses the challenges of managing memory usage when working with large datasets, specifically in the context of implementing an efficient vector-like data structure in Rust to store large arrays of integers. The goal is to achieve O(1) random access while minimizing memory consumption. The author highlights how using Rust's standard `Vec<T>`, which provides O(1) access based on the static size of the data type (like u64 or i32), can lead to significant memory waste if the dynamic range of |
|
Show HN: Dayflow – A git log for your day Published: 2025-09-24 | Origin: Hacker News Dayflow is a lightweight native macOS app that records your screen at 1 frame per second, analyzing it every 15 minutes with AI to generate a timeline of your daily activities. Designed with privacy in mind, users can choose their AI provider (either Gemini with their API key or local models) to ensure data control. Dayflow was created to reflect actual time spent on activities, as the developer felt traditional calendars were inadequate. The app is open-source and MIT licensed to ensure transparency. Features include |
|
My Thoughts on Euruko Published: 2025-09-24 | Origin: /r/ruby The author recently returned from the Euruko conference in Portugal, which they extended by exploring Porto. They enjoyed the city's vibrant culture, food, and music, while reflecting on the wonderful connections made at the conference. They expressed gratitude to the organizers, particularly Henrique, for their efforts in creating a welcoming environment, highlighted by thoughtful details and excellent food. The conference exceeded their expectations in size and production quality, with around 600 attendees, many of whom they were excited to meet in person. The author appreciated |
|
Consistent Hashing Explained: The Algorithm That Powers Modern Internet Published: 2025-09-24 | Origin: /r/programming ByteByteGo is currently offering a 50% discount on their lifetime plan to help with structured preparation for system design interviews. Consistent hashing is highlighted as a key technique for distributed systems, allowing seamless scaling while preserving high availability and performance. This method smartly distributes data across nodes, reducing the need for rebalancing when servers are added or removed, making it vital for large-scale systems like caches, databases, and load balancers. The article introduces consistent hashing as a necessary concept for designing distributed |
|
From Abuse to Alignment: Why We Need Sustainable Open Source Infrastructure Published: 2025-09-24 | Origin: /r/programming Sonatype offers a range of products focused on automating open source and AI governance. Key products include: 1. **Sonatype Nexus Repository** - A centralized binary repository for efficient building. 2. **Sonatype Repository Firewall** - Protects against OSS malware to reduce remediation efforts. 3. **Sonatype Lifecycle** - Automates Software Composition Analysis (SCA) and remediation to prevent rework. 4. **Sonatype SBOM Manager** - Automates compliance and reporting for software. 5 |
|
Huntington's disease treated for first time Published: 2025-09-24 | Origin: Hacker News Doctors have successfully treated Huntington's disease for the first time, reporting a 75% slowdown in its progression in patients. This hereditary condition, which affects brain cells and resembles dementia, Parkinson’s, and motor neurone disease, typically emerges in a person's 30s or 40s and can be fatal within two decades. The new treatment, a form of gene therapy, is administered during 12 to 18 hours of delicate brain surgery and has the potential to extend the quality of life for patients |
|
Python developers are embracing type hints Published: 2025-09-24 | Origin: Hacker News Python has recently become the most popular programming language on GitHub, surpassing JavaScript, as highlighted in the latest GitHub Octoverse report. Its rise is largely due to its application in AI, data science, and scientific computing, where rapid experimentation is vital. However, as the Python community expands and projects evolve from experiments to production, the language's inherent flexibility can pose challenges. To address this, the article discusses "typed Python," which enhances the reliability and quality of code. Python is |
|
Exploring defer in C with GCC magic (cleanup + nested functions) Published: 2025-09-24 | Origin: /r/programming The content appears to be a brief mention of a software or application called OSHub, specifically designed for kernel developers, with a version number of 0.8.0 and a note indicating that there are no comments yet. The copyright is stated for the year 2025. |
|
4 years ago I wrote a snake game with perceptron and genetic algorithm on pure Ruby Published: 2025-09-24 | Origin: /r/ruby The content appears to be a corrupted or nonsensical data stream, likely from a file format such as a GIF. It contains a mixture of characters, symbols, and binary-like code, and does not convey a clear or coherent message or information. Key technical terms related to file formats (like "NETSCAPE2.0") are present, indicating that it might be related to image or animation data. Overall, it lacks meaningful context or substance. |
|
The Beauty of Programming (2001) Published: 2025-09-24 | Origin: Hacker News Linus Torvalds reflects on his fascination with programming, describing it as a unique and engaging pursuit that resembles a complex game where one can create their own rules and outcomes. While to outsiders it may seem dull, the thrill for programmers lies in the ability to command a computer to perform tasks with precision and reliability. However, the challenge comes from the necessity to understand how to achieve desired results. Torvalds likens computer science to physics, emphasizing that while physics seeks to understand the world, programming |
|
🎙️ Live at Rails World 2025: Turbo Offline, Hotwire Native 1.3, Kamal, and More 🚀 Published: 2025-09-24 | Origin: /r/ruby Chris and Andrew, two Ruby enthusiasts, host a conversation from Rails World 2025 in Amsterdam, featuring guests Andy Croll and Jason Charnes. They discuss various topics related to Ruby and web development, including key updates like Turbo offline, Hotwire Native 1.3, and SQLite. The conversation also includes lighthearted moments about the conference experience, favorite talks, and plans for the final day, culminating in a museum party. The episode promises humor and engaging insights into the Ruby community. |
|
Quadratic memory reductions for Zero-knowledge Proofs Published: 2025-09-24 | Origin: Hacker News The document outlines a sublinear-space zero-knowledge proof (ZKP) system implemented in Rust, which features a streaming prover that requires only O(√T) memory for commitments using KZG (BN254). It supports both evaluation and coefficient bases and includes a command-line interface (CLI) for the prover and verifier, along with tests. The implementation deviates from traditional ZKP pipelines that require O(T) memory by avoiding the need to buffer entire polynomials, instead focusing on streaming and aggregate |
|
Baldur's Gate 3 Steam Deck – Native Version Published: 2025-09-24 | Origin: Hacker News After the release of Hotfix #34 for the Steam Deck, the device will install the Native version of Baldur's Gate 3. The Native version is more efficient, using less CPU and memory than the Proton version, which operates through a compatibility layer that requires additional processing power. Users can switch back to the Proton version if they encounter issues with the Native build by accessing the game’s settings on Steam. While the Steam Deck Native build exists, Larian does not provide support for Linux, meaning |