News Nug
stdio(3) change: FILE is now opaque

Published: 2025-07-21 | Origin: /r/programming

The OpenBSD Journal reports that in the -current development branch, the struct underlying the stdio(3) FILE type has become opaque, resulting in major library version updates across the system. This change affects multiple components, including libcrypto, libtls, libssl, and the profiling subsystem. Users who typically build from source are advised to perform a snapshot upgrade to manage these updates effectively.

Why Lexing and Parsing Should Be Separate

Published: 2025-07-21 | Origin: /r/programming

The content emphasizes the importance of feedback and input, directing users to documentation for available qualifiers. It discusses the distinction between lexing and parsing, suggesting that simpler tasks should use faster algorithms while more complex tasks may require slower ones. The author shares a personal experience of moving away from a Parsing Expression Grammar (PEG) due to poor error messages that hindered debugging. There are arguments related to language implementation phases, especially for larger languages, advocating for consistent handling of location information in lexers. The discussion includes

GitHub is "Pausing Command Palette Deprecation"

Published: 2025-07-21 | Origin: /r/programming

The content discusses user feedback regarding GitHub's Command Palette feature, which allows keyboard-driven navigation and enhances productivity and accessibility. Users expressed concern over GitHub's plans to remove the Command Palette due to low adoption rates, arguing that its concealment behind a "feature preview" flag hindered its visibility and use. They highlighted its importance, especially for users with motor impairments, as it simplifies navigation. In response to the feedback, GitHub has paused the planned deprecation of the Command Palette, acknowledging

What went wrong inside recalled Anker PowerCore 10000 power banks?

Published: 2025-07-21 | Origin: Hacker News

The text begins with a generic passage often used as a placeholder, followed by a focus on lithium-ion batteries that are widely used in devices like smartphones and electric vehicles. It notes that the average American owns nine such devices, highlighting potential risks associated with these batteries, particularly when quality issues arise, as they can lead to overheating and fires. A recent recall by Anker of over one million PowerCore 10000 power banks due to battery overheating is mentioned, although specific reasons for the recall have not been

eslint-config-prettier Compromised: How npm Package with 30 Million Downloads Spread Malware

Published: 2025-07-21 | Origin: /r/programming

A significant supply chain attack targeting popular npm packages, including eslint-config-prettier, was uncovered due to a compromise of maintainer JounQin's npm account via phishing. The attackers published six malware-laced versions of eslint-config-prettier and three additional packages, which collectively have approximately 78 million weekly downloads. The account had access to packages with around 180 million weekly downloads. Following the disclosure of suspicious versions in a GitHub issue, it was confirmed that a malicious install script had

Don't bother parsing: Just use images for RAG

Published: 2025-07-21 | Origin: Hacker News

Morphik focuses on developing Retrieval-Augmented Generation (RAG) tools that enhance search capabilities over complex documents. This article discusses their approach of working with “images” of pages rather than relying on traditional Optical Character Recognition (OCR) and parsing methods. The challenges of extracting information from complex documents, such as PDFs containing charts, tables, and diagrams, are highlighted. Traditional parsing often fails to accurately retain critical information, akin to watching a movie by reading its script—much of the visual storytelling is lost

AccountingBench: Evaluating LLMs on real long-horizon business tasks

Published: 2025-07-21 | Origin: Hacker News

Sure! Please provide the content you'd like me to summarize.

TrackWeight: Turn your MacBook's trackpad into a digital weighing scale

Published: 2025-07-21 | Origin: Hacker News

TrackWeight is a macOS application that turns a MacBook's trackpad into a digital weighing scale by using the Force Touch pressure sensors. It leverages the Open Multi-Touch Support library developed by Takuto Nakamura to access mouse and trackpad events, enabling the application to obtain precise pressure readings. The trackpad measures weight based on the capacitance detected when a finger or conductive object touches the surface, with readings calibrated to grams. While the application is built for experimental and educational purposes and aims

Issues you will face binding to C from Java.

Published: 2025-07-21 | Origin: /r/programming

The author discusses their interest in creating a Yu-Gi-Oh game that emulates the design of early 2000s titles, particularly "Power of Chaos: Yugi the Destiny" and "Power of Chaos: Joey the Passion," which they enjoyed playing with their father. The games feature a unique narrative style, including a lighthearted adaptation of darker themes, such as characters being sent to the "shadow realm" instead of facing dire consequences. The author expresses admiration for the visual and audio design

Filter PII from free text in Ruby

Published: 2025-07-21 | Origin: /r/ruby

The content emphasizes the importance of user feedback and outlines a proof of concept for a tool that filters personally identifiable information (PII) from free text before it is sent to external services or APIs, like chatbots. The primary filtering mechanism utilizes regular expressions, while filtering names requires additional support from the MITIE Ruby library, which relies on a pre-trained model. The project includes a file named 'pii_filter.rb,' but this is not mandatory for its operation. Additionally, there are prompts for potential

Positron – A next-generation data science IDE

Published: 2025-07-21 | Origin: Hacker News

To start using Positron, you can download an installer and explore user guides on various topics, including interpreter selection and Data Explorer. Common questions are addressed in the FAQs. Positron is based on Code OSS, and you can refer to the VS Code documentation for basic features like commands and source control. Join GitHub Discussions for inquiries and feedback. Positron is licensed under the Elastic License 2.0, and more information about this license and feedback/reporting bugs is available. Pos

Work-Life Balance Slows Careers (E9 Engineer, ex-Meta)

Published: 2025-07-21 | Origin: /r/programming

In the latest edition of "Path to Staff," the newsletter celebrates reaching 3,000 readers with a special guest, Philip, known for his generous act of buying coffee for everyone at Facebook. Philip shares his perspective on the myth of work-life balance, arguing that achieving significant career growth often requires trade-offs. He attributes rapid promotions during his first eight years at Microsoft to three key factors: luck, talent, and grit. While luck and talent are largely out of our control, he emphasizes that grit

The Forced Use of AI is getting out of Hand

Published: 2025-07-21 | Origin: /r/programming

The C-suite is strongly encouraging the use of AI across all functions within companies, with Microsoft leading this trend by having managers evaluate employees based on their AI usage. Other companies, like Duolingo, Shopify, and Thomson Reuters, are also incorporating AI metrics into performance reviews and emphasizing the necessity of AI skills for career advancement. There is a surge in demand to integrate AI assistants into enterprise software, resulting in numerous applications being developed—some useful, others questionable. Companies are rapidly adopting AI technologies, often

I am Tired of Talking About AI

Published: 2025-07-21 | Origin: /r/programming

The author expresses deep fatigue and frustration over the ongoing discussions about generative AI, particularly in the coding community. They note that respected individuals who were once critical of generative AI have changed their opinions, and this shift has led the author to re-evaluate their own stance. Despite considering the new perspectives of these individuals, the author finds no compelling reason to alter their own judgment against using generative AI, feeling that simply valuing others' opinions is insufficient for making personal decisions. Ultimately, the author

What's New in Ruby 3.5 Preview

Published: 2025-07-21 | Origin: /r/ruby

Ruby 3.5.0 preview1 was released on April 18, 2025, offering a preview of upcoming features for the final release. Key changes include elevating Set from a standard library class to a core class, improving performance and reducing memory usage by about 33% for large sets due to a new C implementation with a custom hash table. Ruby 3.5 introduces Ractor::Port to enhance synchronization between Ractors, leading to the removal of methods such as Ractor

Why programmers suck at showing their work (and what to do instead)

Published: 2025-07-21 | Origin: /r/programming

Of course! Please provide the content you would like me to summarize.

I wasted weeks hand optimizing assembly because I benchmarked on random data

Published: 2025-07-21 | Origin: Hacker News

The blog post reflects on the author's experience working in Java optimizations for a large-scale distributed data processing platform, where even minor performance improvements could have significant financial implications. The author describes the highly optimized nature of the Java codebase, where most simple optimizations had already been implemented, leading to the need for more complex "heroic optimizations." Through extensive profiling, the author identified data serialization, particularly VarInt encoding (specifically ULEB128), as a promising area for optimization. Var

Neo Geo Rom Hacking: SMA Encrypted P ROMs

Published: 2025-07-21 | Origin: /r/programming

The author is exploring a ROM hack for The King of Fighters 99, a more complex Neo Geo game compared to their previous hacks of earlier titles. Their focus is currently on understanding the game's encryption and how it poses challenges for hacking. Neo Geo games consist of various ROM types, and both the P ROMs (program data) and C ROMs (sprite data) for KOF99 are encrypted, though the author will concentrate on P ROM encryption for now. The encryption methods used by SNK

Scaling Distributed Counters: Designing a View Count System for 100K+ RPS

Published: 2025-07-21 | Origin: /r/programming

The article discusses the immense popularity of the YouTube video "Baby Shark Dance," which has over 16 billion views, making it one of the most-watched videos globally. It prompts readers to consider how YouTube accurately tracks and displays such view counts, pointing out that it's not merely a straightforward addition process. Instead, the system faces complexities in managing billions of views daily and handling traffic spikes while ensuring accuracy. The article aims to build a view-counting system from the ground up, examining various approaches

ESP32-Faikin: ESP32 based module to control Daikin aircon units

Published: 2025-07-21 | Origin: Hacker News

The content discusses an open-source project involving an ESP32-based module designed to control Daikin air conditioning units. It highlights the limitations of Daikin's current cloud-based WiFi control, particularly its reliance on internet connectivity and slow performance. The new module allows for local control through a web interface, MQTT, and integration with HomeAssistant, providing a more efficient alternative without cloud dependence. The project includes available PCB designs for purchase and contributions are welcomed under the same GPL license. However, restrictions are in place