News Nug
Java 25 New Features With Examples

Published: 2025-09-26 | Origin: /r/programming

Java 25, released on September 16, 2025, is a Long-Term Support (LTS) version that enhances core libraries, language specifications, security, and performance, aiming to improve developer productivity and AI capabilities. Oracle will support this version for at least eight years, facilitating gradual migrations for organizations. Key upgrades are introduced via JDK Enhancement Proposals (JEPs), each providing summaries, examples, and use cases. A notable feature includes enhanced pattern matching, which now supports primitive

The effect of H-1B quota on employment and selection of foreign-born labor (2018)

Published: 2025-09-26 | Origin: Hacker News

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

A platform-jumping prince – History of Prince of Persia's 1990s Ports

Published: 2025-09-26 | Origin: Hacker News

The author reflects on their favorite version of the original Prince of Persia game, which has been a topic of interest for 35 years. They express a strong personal connection to the original Apple II version, which they developed over three years (1986-1989). However, they recognize that the 1990 PC version, developed concurrently, is the most remembered version due to its enhanced graphics and sound, as well as faithful adherence to the original game. This version featured improvements such as re-orchestr

Ruby's faker gem as a source of random spinning wheels

Published: 2025-09-26 | Origin: /r/ruby

Stan discusses the versatile use of the Ruby gem, faker, which is primarily known for generating mock data for automated testing. While many developers associate faker solely with testing, Stan highlights its potential for creative applications, such as creating themed spinning wheels for fun. Each wheel utilizes faker’s extensive variety of random data, encompassing topics like colors, countries, and foods, making it suitable for various projects beyond testing, including education and games. Each wheel is limited to 24 items for aesthetic balance, but users can

Flock Reinstalls Cameras Without City Approval After Unlawful Govt Access

Published: 2025-09-26 | Origin: Hacker News

Evanston's community newspaper, the Evanston RoundTable, encourages locals to sign up for their free newsletters, highlighting that over 10,000 residents are already subscribers. In recent news, the private surveillance vendor Flock Safety has reinstalled its stationary license plate cameras in Evanston without city authorization, despite a cease-and-desist order issued by the city. This follows a prior order to remove 19 cameras due to legal issues surrounding Flock's collaboration with U.S. Customs and Border Protection

My Deus Ex lipsyncing fix mod

Published: 2025-09-26 | Origin: Hacker News

Joe Wintergreen is an Australian video game developer currently working as a senior technical designer at Riffraff Games. He specializes in creating tools, tutorials, and resources for game development, particularly using Unreal Engine. In 2021, he developed a mod for the original Deus Ex that fixes its lipsyncing and blinking issues, which had been problematic since the game's release. Wintergreen details his exploration into the game's lipsync mechanics, referencing an interview with coder Chris Norden that revealed the original elaborate system was

Exploit allows for takeover of fleets of Unitree robots

Published: 2025-09-26 | Origin: Hacker News

Security researchers have identified a serious vulnerability in the Bluetooth Low Energy (BLE) configuration interface of several Unitree robots, including the Go2 and B2 quadrupeds and G1 and H1 humanoids. Disclosed on September 20, 2025, this vulnerability allows attackers to gain root-level access remotely, leading to potential exploitation without user intervention—creating a "wormable" malware scenario where an infected robot can autonomously compromise other nearby Unitree robots, forming a botnet. The

Exploring Terminals, TTYs, and PTYs

Published: 2025-09-25 | Origin: /r/programming

This post discusses the concepts of terminals, TTYs (teletypewriters), and PTYs (pseudoterminals), focusing on how terminal emulators display text and styles. It highlights the use of escape codes for formatting, line discipline, and signals, along with a simple Python example using Pyte to illustrate underlying mechanisms. Historically, interaction with computers began with physical terminals that only showed text, lacking advanced features like color. In modern computing, terminal emulators replicate these behaviors.

Postgres 18: OLD and NEW Rows in the RETURNING Clause

Published: 2025-09-25 | Origin: /r/programming

On September 25, 2025, Postgres 18 was released, featuring notable enhancements such as async I/O and UUIDv7 support. Among the improvements is the ability to access both previous (OLD) and current (NEW) values in the RETURNING clause for INSERT, UPDATE, DELETE, and MERGE commands. This addition simplifies distinguishing between newly inserted and updated rows during upsert operations, which previously relied on checking xmax = 0—a method dependent on internal implementation and not guaranteed by

RedoxFS is the default filesystem of Redox OS, inspired by ZFS

Published: 2025-09-25 | Origin: Hacker News

RedoxFS is the default filesystem for Redox OS, designed with inspiration from ZFS but adapted to fit a microkernel architecture. A previous read-only ZFS driver was discarded due to compatibility issues with Redox's microkernel. RedoxFS is a replacement for TFS and is MIT licensed, allowing it to be bundled with GPL-licensed operating systems like Linux. The filesystem comes with tooling for creating, mounting, and editing .img files containing RedoxFS. To use Redox

Decision Log: Why writing down your technical choices is a game-changer

Published: 2025-09-25 | Origin: /r/programming

The content discusses the numerous decisions we make daily, ranging from trivial to significant choices. It mentions a claim about making 35,000 decisions a day, which lacks evidence, while a newer study suggests an average of 122 informed decisions daily. The author emphasizes the importance of decision quality, noting that even small improvements can have significant long-term impacts. To enhance decision-making, the author follows two key rules: document the decision-making process and reflect on past decisions. Writing helps clarify thoughts and serves

Immutable Infrastructure DevOps: Why You Should Replace, Not Patch

Published: 2025-09-25 | Origin: /r/programming

The concept of immutable infrastructure is compared to building a new house rather than renovating an existing one. In IT, this means treating servers and infrastructure as unchangeable once deployed; instead of updating systems in-place, new, pre-configured instances replace them entirely. This approach minimizes risks associated with traditional mutable deployments, where changes can lead to unexpected issues. Immutable infrastructure ensures consistency and reliability by deploying the exact same image tested, avoiding configuration drift and “it works on my machine” problems. While container-based

CHERI and the efforts to get Linux running on it

Published: 2025-09-25 | Origin: /r/programming

The content discusses the Capability Hardware Enhanced RISC Instructions (CHERI) project, which aims to improve system security by rethinking computer architecture. Carl Shaw presented at the Linux Security Summit Europe about CHERI and its efforts to run Linux using this technology. He introduced the concept of capabilities, a mechanism for access control that has historical roots dating back several decades. The project extends instruction-set architectures (ISAs) to incorporate capabilities, which are unforgeable tokens that authorize use of resources. Originally proposed in

Improved Gemini 2.5 Flash and Flash-Lite

Published: 2025-09-25 | Origin: Hacker News

Today, Google announced the release of updated versions of Gemini 2.5 Flash and 2.5 Flash-Lite on Google AI Studio and Vertex AI, aimed at enhancing quality and efficiency. The new Gemini 2.5 Flash-Lite was developed based on three main themes and is available for testing under the model string: gemini-2.5-flash-lite-preview-09-2025. Feedback highlights significant improvements, particularly in speed and performance, with early testers like Yich

ChatGPT Pulse

Published: 2025-09-25 | Origin: Hacker News

Failed to fetch content - HTTP Status - 403

Shoes, Algernon, Pangea, and sea peoples

Published: 2025-09-25 | Origin: Hacker News

The author expresses concern about the decline of traditional blog posts discussing random topics, sharing insights on marathon running instead. They highlight the incredible achievement of completing a marathon in just over 2 hours, averaging speeds of 21.1 km/h (13.1 mph). This feat is likened to running a mile in 4:35 repeatedly or sprinting 100 meters in 17.06 seconds, which is well beyond the capability of most people. The author attributes this remarkable speed partly to human

Zlib visualizer

Published: 2025-09-25 | Origin: Hacker News

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

How Do You Speak Pidgin To A Probability Distribution? (Announcing 0.2.0 release of the VSM gem)

Published: 2025-09-25 | Origin: /r/ruby

A master carpenter holds on to worn wooden jigs in his workshop, which embody decades of craft and understanding. When a talented apprentice introduces a programmable machine that can create any shape, the master challenges her by asking for a chair. Although the machine produces a technically perfect chair, it lacks a certain essence or soul. The master demonstrates the value of his jigs, which convey experiences and memories of craftsmanship rather than mere possibilities. Similarly, communication can sometimes suffer from the barriers of language. In the

PostgreSQL 18 Released!

Published: 2025-09-25 | Origin: /r/programming

The PostgreSQL Global Development Group has released PostgreSQL 18, the latest version of its advanced open source database. This version enhances performance across various workloads with a new I/O subsystem, achieving up to 3× faster storage reads and increasing index usage for queries. Major-version upgrades are now less disruptive, with accelerated upgrade times and quicker performance stabilization. New features in PostgreSQL 18 include virtual generated columns for real-time value computation and a uuidv7() function that improves UUID indexing and read performance

Components in Rails without gems

Published: 2025-09-25 | Origin: /r/ruby

The author discusses their experiences working with clients who prefer not to use third-party libraries like ViewComponent, leading them to rely on Rails partials. While partials can be helpful initially, they often lead to challenges in maintainability and clean code due to excessive logic in views. The author expresses concern about the global scope of helpers and prefers using them only when applicable across the app. To address the limitations of vanilla Rails partials, the author introduces a custom helper designed to simplify the rendering of reusable UI