News Nug
How to stop Linux threads cleanly

Published: 2025-10-20 | Origin: /r/programming

The content discusses the complexities of stopping threads in a long-running multi-threaded application on Linux, specifically when using the clone syscall or thread libraries like pthread_create and std::thread. While starting threads is straightforward, safely stopping them—allowing for cleanup operations to free memory, release locks, and flush logs—is more challenging and lacks a universal solution. The article notes that the principles also apply to processes, as threads share virtual memory in Linux, and highlights common pitfalls in managing thread termination. The author

Claude Code on the web

Published: 2025-10-20 | Origin: Hacker News

Today, a new feature called Claude Code on the web has been introduced in beta as a research preview, enabling users to delegate coding tasks directly from their browser. This tool allows for the assignment of multiple coding tasks that run on Anthropic-managed cloud infrastructure, making it efficient for managing bug backlogs and facilitating routine fixes or parallel development. Users can start coding sessions without using a terminal by connecting their GitHub repositories and describing their tasks, which Claude will handle. Each session operates in an isolated environment with

Production RAG: what I learned from processing 5M+ documents

Published: 2025-10-20 | Origin: Hacker News

An individual shared insights from their 8-month experience developing a Retrieval-Augmented Generation (RAG) system for Usul AI and a legal AI enterprise, covering 9 million and 4 million pages, respectively. Initially, they utilized YouTube tutorials on Langchain and Llamaindex to build a working prototype quickly, achieving promising results with a small dataset. However, when running the system on the full production dataset, performance was disappointing, prompting a lengthy process of rewriting components to improve the system.

Show HN: I created a cross-platform GUI for the JJ VCS (Git compatible)

Published: 2025-10-20 | Origin: Hacker News

The content mentions that the subject matter is compatible with Git repositories, indicating it can function or integrate effectively within Git environments.

Some Smalltalk about Ruby Loops

Published: 2025-10-20 | Origin: /r/ruby

The author reflects on their experience transitioning from Python to Ruby, particularly regarding loops and method calls. Initially, they mistakenly viewed Ruby loops as similar to Python's, but upon deeper analysis, they realized Ruby's approach is fundamentally different. In Ruby, method calls are more like sending messages to objects, rather than invoking methods directly as in Python. They emphasize that when using Ruby's `.times` method, the message `:times` is sent to the number 10, which then processes the request.

BERT is just a single text diffusion step

Published: 2025-10-20 | Origin: Hacker News

Google DeepMind has introduced Gemini Diffusion, an innovative language model that generates text through a diffusion process, as opposed to traditional models like GPT that produce text one word at a time. Gemini Diffusion creates segments of text by refining random noise in a stepwise manner. The author reflects on insights gained from the paper "Large Language Diffusion Models," which suggests that discrete language diffusion builds on concepts from masked language modeling (MLM) that have been in use since 2018. This prompted the

It's always DNS

Published: 2025-10-20 | Origin: /r/programming

Amazon Web Services (AWS) has begun to recover from a major outage that impacted users of various applications, including Snapchat, Fortnite, Roblox, and services like Prime Video and Alexa, especially in the US-East-1 region. The outage started around 3 a.m. EST, with reports peaking around 4 a.m. EST, leading to approximately 5,000 reports of issues in the U.S. alone. AWS identified the problem as related to DNS resolution for its DynamoDB API,

Why Large Language Models Won’t Replace Engineers Anytime Soon

Published: 2025-10-20 | Origin: /r/programming

The article discusses the capabilities and limitations of Large Language Models (LLMs) like GPT and Claude, emphasizing that they are skilled at mimicking language patterns but lack true understanding or autonomous thought. LLMs predict the next word in a sequence based on training data, focusing on plausibility rather than accuracy, which differentiates them from human engineers. Engineering involves making decisions based on consequences over time, often requiring delayed feedback, which cannot be effectively modeled by LLMs. Instead, engineering is better suited

InvoicePrinter 2.5 with QR images and Ruby 3.4 support

Published: 2025-10-20 | Origin: /r/ruby

A new version of InvoicePrinter, a Ruby library for generating PDF invoices, has been released. The update includes the implementation of QR code images, which can be added simply by pointing to the image path. The QR code will be positioned at the bottom right, above any existing notes. This version also supports Ruby 3.4, maintaining compatibility with Rubies 3.1 to 3.4 while continuing to use the current Prawn version due to a circular dependency. Additionally, Simon Ne

Alibaba Cloud says it cut Nvidia AI GPU use by 82% with new pooling system

Published: 2025-10-20 | Origin: Hacker News

A paper presented at the 2025 ACM Symposium on Operating Systems (SOSP) outlines how Alibaba Cloud's Aegaeon pooling system employs token-level scheduling to optimize GPU utilization for large language models (LLMs). This innovation reduced the need for Nvidia GPUs from 1,192 to just 213 during beta testing, enhancing inference capacity significantly, particularly in constrained markets like China. Aegaeon allows multiple models to share a single GPU by virtualizing access at the token level, resulting in

Valetudo: Cloud replacement for vacuum robots enabling local-only operation

Published: 2025-10-20 | Origin: Hacker News

Valetudo is an open-source software solution designed for vacuum robots that enables local-only operation without reliance on cloud services. Developed and maintained by Sören Beye since 2018, Valetudo has become a reliable option for users seeking to avoid data telemetry and commercial interests in their robot vacuums. The software has gained popularity, with thousands of installations, and continues to evolve thanks to contributions from the community, including significant input from Dennis Giese on enhancing ownership and autonomy of robots. The

Open Graph Image Generation in Rails

Published: 2025-10-20 | Origin: /r/ruby

The article by Exequiel Rozas discusses the importance of creating Open Graph (OG) images for content published on websites, particularly in Rails applications. Open Graph is a protocol that uses metadata to control how a webpage appears when its URL is shared on social media. This includes using specific tags like og:title, og:description, and og:image to customize the appearance of the shared content. The author emphasizes that a well-designed OG image is crucial for attracting clicks and highlights the need to automate the image

Papercraft 3.0 Released

Published: 2025-10-20 | Origin: /r/ruby

The newly released Papercraft version 3.0 introduces a new API for rendering templates, enhanced XML support, and improvements to the Papercraft::Template wrapper class. The previous version, Papercraft 2.0, focused on using lambdas for HTML templates and introduced automatic template compilation for enhanced performance. However, there were concerns about the API extending the core Proc class with generic method names that could cause confusion in broader Ruby contexts. To address this, Papercraft 3.

AWS multiple services outage in us-east-1

Published: 2025-10-20 | Origin: Hacker News

Of course! Please provide the content you'd like me to summarize, and I'll be happy to help.

How to train your team to say "I was wrong" without drama

Published: 2025-10-20 | Origin: /r/programming

In the early weeks at a new company, the author faced a significant challenge when a release rollback went poorly due to a lack of understanding of the processes. Instead of downplaying the mistake or placing blame, they openly acknowledged the error in a team Slack channel and during a meeting, taking responsibility and inviting collaboration for a solution. The experience highlighted the importance of fostering a culture that normalizes mistakes, allowing teams to work without anxiety and learn quickly. While concepts like psychological safety and learning from failures are

Building a Distributed Log Query Engine with Real-Time Processing

Published: 2025-10-20 | Origin: /r/programming

The content outlines the transformation of a basic log storage system into a sophisticated distributed query engine designed for real-time log processing at scale. Key components of the system include: 1. **Distributed Log Query API**: A RESTful service featuring advanced filtering, aggregation, and real-time search capabilities. 2. **Event-Driven Processing Pipeline**: A Kafka-based system capable of processing over 10,000 logs per second with assured delivery. 3. **Intelligent Caching Layer**: Utilizes Redis

Entire Linux Network stack diagram (2024)

Published: 2025-10-20 | Origin: Hacker News

The content describes a diagram of the entire Linux Network Stack, which is featured in the book "Operativni sustavi i računalne mreže - Linux u primjeni." The diagram includes various network stack layers, along with tips for optimizations and relevant statistics. The document also mentions total views, downloads, and data volume, with additional information on how statistics are collected. The site is powered by the CERN Data Centre and InvenioRDM, and it uses cookies for user experience.

Introduction to reverse-engineering vintage synth firmware

Published: 2025-10-20 | Origin: Hacker News

This article discusses the process of reverse-engineering the firmware of the vintage Yamaha DX7 synthesizer. It targets readers with a technical background who are new to reverse-engineering, 8-bit architectures, or embedded development, though those with an electrical-engineering or embedded-software background may find the content basic. The article suggests that a basic understanding of low-level programming and binary operations is sufficient, with no prior knowledge of assembly language or specific processor architecture required. The author shares their personal journey of dis

Forth: The programming language that writes itself

Published: 2025-10-20 | Origin: Hacker News

The content is a personal account by Dave Gauer, documenting his journey to explore Forth and its significance in computing history. Adapted from his presentation slides, Gauer aims to make the information accessible on various devices and is open to suggestions for improvements. He reminisces about his experiences as a young programmer in the 1990s, particularly the vibrant discussions that took place in Usenet newsgroups like comp.lang.*, where he engaged with programming folklore and community. He highlights milestones such as Lin

QuickDrawViewer: A Mac OS X utility to visualise QuickDraw (PICT) files

Published: 2025-10-19 | Origin: Hacker News

The content discusses feedback received regarding a Mac OS X utility designed to visualize QuickDraw (PICT) files and export them to PDF format. The author developed this program to learn Swift programming by rewriting an old Java QuickDraw code they had created. Although functional, the program has some rendering issues and a rough user interface, and it was released to commemorate the 40th anniversary of the Macintosh. The utility is not a pixel-perfect QuickDraw renderer; instead, it simulates how images would appear on