PATH Should Be a System Call

2025-04-25

Emacs and bash, when starting up, inefficiently search for configuration files by iterating through each directory in the PATH environment variable, checking for the target file's existence one by one. This article explores this inefficient search mechanism, using the strace tool to trace the system calls of Emacs and bash, demonstrating numerous fstatat calls. The author argues that this search should be optimized by the operating system or file system, using a database-like query to directly return matching files instead of iterative attempts. Python's implementation, while relatively more efficient, is also shown to have shortcomings. The author proposes an improved solution: provide the OS with a list of all possible filenames and directories, reducing system calls and network roundtrips.

Read more
Development system call file search

arXivLabs: Experimental Projects with Community Collaborators

2025-06-01
arXivLabs: Experimental Projects with Community Collaborators

arXivLabs is a framework enabling collaborators to develop and share new arXiv features directly on the website. Individuals and organizations working with arXivLabs uphold values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only partners with those who share them. Have an idea to enhance the arXiv community? Learn more about arXivLabs.

Read more
Development

X-Forwarded-For Header: Trust Issues and Security Strategies

2025-07-26
X-Forwarded-For Header: Trust Issues and Security Strategies

The X-Forwarded-For (XFF) HTTP header is crucial for tracking the origin IP address of client requests, especially when traversing multiple intermediaries like proxies and load balancers. However, XFF is not foolproof; malicious actors can forge it. This article delves into XFF's mechanics, uses (user authentication, load balancing, data localization, etc.), security risks (spoofing, invalid IP addresses, injection attacks, etc.), and how to use XFF safely. It covers identifying the true client IP using trusted proxy lists or counts, and recommends the more secure Forwarded header as an alternative.

Read more
Development

Indian Court Orders Block on ProtonMail Amid Deepfake Threats and Bomb Scares

2025-04-29
Indian Court Orders Block on ProtonMail Amid Deepfake Threats and Bomb Scares

The Karnataka High Court in India has ordered the Indian government to block ProtonMail. A company alleged its employees were harassed with obscene messages and AI-generated deepfakes sent via ProtonMail, claiming the service's servers are outside India and thus beyond its jurisdiction. While the Indian government suggested using international legal assistance to obtain information, the court deemed ProtonMail a national security threat and ordered its block unless it cooperates with the investigation. The case sparks debate on data sovereignty, cybersecurity, and free speech.

Read more
Tech

Pixel 9a: A Kid-Friendly Phone with Robust Parental Controls

2025-03-19
Pixel 9a: A Kid-Friendly Phone with Robust Parental Controls

The Google Pixel 9a is designed with kids in mind, offering a suite of safety and parental control features. Parents can manage their child's account and device using Google Family Link, controlling screen time, monitoring app usage, approving downloads, setting privacy options, and sharing location. A new 'School Time' feature restricts functionality and silences notifications during school hours. Additionally, Google Wallet for kids is rolling out on the Pixel 9a, enabling safer payments with Google Pay and allowing kids to add passes like movie tickets and library cards. Parents maintain control over payment cards and passes through Family Link.

Read more

Meta's AI Talent Raid on Apple Continues: Apple's Foundation Models Team in Turmoil

2025-07-18
Meta's AI Talent Raid on Apple Continues:  Apple's Foundation Models Team in Turmoil

Meta has poached two more key artificial intelligence executives from Apple, following the earlier high-profile recruitment of a top AI leader with a massive compensation package. The latest hires come from Apple's foundational models team, responsible for features like email summaries and Priority Notifications. This latest talent drain suggests significant internal challenges within Apple's AI division, potentially leading to a shift towards using external models from companies like OpenAI to power Siri and other features.

Read more
AI

A Complete History of Cycling Maps Online

2025-06-28
A Complete History of Cycling Maps Online

A website dedicated to the history of cycling maps has launched, featuring over a hundred carefully restored extracts from major map providers. It's not a blog; instead, it functions as an online 'coffee table' book, offering a curated collection of information for browsing and reference. Content is divided into sections covering an introduction, the development of cycling maps, publishers, sources, dating maps, and a 'Black Museum' showcasing map errors.

Read more

From Clocks to Chaos: Unraveling Physiological Rhythms

2025-05-31
From Clocks to Chaos: Unraveling Physiological Rhythms

Two leading researchers in physiology delve into the core theoretical questions surrounding physiological rhythms, offering a significant contribution to chaos theory. The book explores rhythm generation, initiation, termination, perturbation effects, and spatial organization of oscillations. Accessible to biologists, physicians, physicists, and mathematicians alike, it requires no advanced math. The authors highlight the link between variations in rhythms and disease, introducing the concept of 'dynamical diseases' – illnesses not caused by pathogens but by disruptions in essential bodily timing. 'From Clocks to Chaos' provides a strong foundation for understanding dynamic processes in physiology.

Read more

Earth's Energy Imbalance Doubles, Accelerating Climate Change

2025-06-30
Earth's Energy Imbalance Doubles, Accelerating Climate Change

New research reveals Earth's energy imbalance has more than doubled in the last 20 years, suggesting climate change is accelerating. This imbalance, primarily driven by human-caused greenhouse gas emissions, shows the planet is absorbing significantly more heat than it's releasing. While the oceans absorb most of the excess heat, land and atmospheric temperatures are also rising, leading to increased extreme weather events. Scientists track this imbalance using satellites and ocean buoys, but funding uncertainties in the US threaten this crucial research. The findings highlight the urgency of immediate greenhouse gas emission reductions to avoid more severe long-term climate consequences.

Read more

Laptop Mag Shuts Down After 35 Years

2025-07-02
Laptop Mag Shuts Down After 35 Years

Laptop Mag, a long-standing laptop and technology review website, has ceased operations after nearly 35 years. Its parent company, Future PLC, cited a strategic review as the reason for the closure. Starting as a print publication in 1991, Laptop Mag transitioned to a digital-only format in 2013. The shutdown follows the recent closure of AnandTech, also owned by Future PLC, raising concerns about the future of tech journalism and leaving the fate of Laptop Mag's archives uncertain.

Read more
Tech

OpenSecret Ditches Neon for PlanetScale: A Database Migration Story

2025-08-12
OpenSecret Ditches Neon for PlanetScale: A Database Migration Story

OpenSecret, building a confidential computing platform powered by AWS Nitro Enclaves, migrated from Neon to PlanetScale after experiencing multiple outages. Neon's 'serverless' databases suffered hours of downtime during a critical week, severely impacting their core application, Maple AI. PlanetScale won OpenSecret over with its superior reliability, predictable pricing, and powerful observability tools (including p99 latency and query-level insights). The migration was smooth and zero-downtime, resulting in significant performance improvements and cost reductions. PlanetScale's expert support and laser focus on database excellence freed OpenSecret to concentrate on its core mission: building the best confidential computing platform possible.

Read more

Trump Admin Orders Federal Employees to Remove Pronouns from Email Signatures

2025-01-31
Trump Admin Orders Federal Employees to Remove Pronouns from Email Signatures

Multiple federal agencies ordered employees to remove pronouns from their email signatures by Friday afternoon, according to internal memos obtained by ABC News. The directive stems from two executive orders signed by President Trump on his first day in office, aiming to curb diversity and equity programs. Agencies including the Department of Transportation, Department of Energy, and CDC received similar instructions. One CDC employee expressed frustration, stating this had never happened in their decade of service. The Office of Personnel Management also issued a memo directing agencies to review email systems and disable pronoun prompts. This action is the latest in the Trump administration's push to dismantle diversity and equity initiatives within the federal government.

Read more

New CPU Vulnerability: Bypassing Privileges to Read Memory

2025-05-13
New CPU Vulnerability: Bypassing Privileges to Read Memory

Researchers at ETH Zurich have discovered a new CPU vulnerability that allows attackers to bypass user privilege protections and read memory contents at over 5000 bytes per second by exploiting ambiguities in the order of CPU instruction execution. This is not an isolated incident but part of a series of vulnerabilities exploiting speculative execution technologies, similar to the Spectre and Meltdown vulnerabilities of 2017. While Intel has implemented mitigations, this highlights fundamental flaws in the architecture, requiring ongoing patching efforts.

Read more

Streaming Services' Annoying Child Profile Prompts: A Rant

2025-04-13
Streaming Services' Annoying Child Profile Prompts:  A Rant

Netflix, BBC iPlayer, and Amazon Prime, among others, persistently prompt users to create child profiles, even those without children. The author expresses frustration, arguing this is not only annoying but potentially hurtful to those who have lost children or struggle with fertility. The plea is for a "never ask again" option, respecting the needs of childless users and acknowledging that the world doesn't revolve around children.

Read more

Nintendo Switch 2's USB-C Port: Why Doesn't It 'Just Work'?

2025-07-03
Nintendo Switch 2's USB-C Port: Why Doesn't It 'Just Work'?

The Nintendo Switch 2's USB-C port isn't as universal as expected. Third-party manufacturers reveal Nintendo employs a new encryption scheme and dedicated encryption chip, hindering compatibility with most third-party docks and video glasses. This has resulted in a scarcity of portable Switch 2 docks. While the official Nintendo dock functions correctly, this approach limits user convenience and choice, sparking controversy. While Nintendo cites security concerns, the necessity of these measures remains debated.

Read more
Game

Supernovae Data Suggests Foundational Shift in Cosmological Models

2024-12-23
Supernovae Data Suggests Foundational Shift in Cosmological Models

A new study presents a cosmologically model-independent statistical analysis of the Pantheon+ Type Ia supernovae spectroscopic dataset, improving upon the standard methodology used by Lane et al. By employing the Tripp equation for supernova standardization alone, the study avoids potential correlations in stretch and color distributions. The results strongly favor the 'Timescape' cosmology over the standard ΛCDM model in explaining the data, providing evidence for the need to revisit the foundations of theoretical and observational cosmology. Even when restricting the sample to redshifts beyond conventional scales of statistical homogeneity (z > 0.075), Timescape remains preferred over ΛCDM.

Read more

Peel-and-Replace Walls: A New Hook-and-Loop System for Concrete

2025-09-05
Peel-and-Replace Walls: A New Hook-and-Loop System for Concrete

Researchers at Austria's Graz University of Technology have developed a novel hook-and-loop system for concrete walls. Instead of traditional hooks and loops, they cast protrusions into the concrete and 3D print a flexible sheet with corresponding protrusions. This allows for the easy removal and replacement of wall coverings, flooring, and other elements, promising a cleaner, faster, and more efficient approach to construction and renovation.

Read more
Hardware

China's VC 'Building Spectacle': A Meditation on Bubbles and Innovation

2025-06-07
China's VC 'Building Spectacle': A Meditation on Bubbles and Innovation

A confession from an anonymous Chinese VC sparked a deep reflection on China's innovation ecosystem. The post reveals the overblown 'hard tech' narrative in China's venture capital market, the dominance of government-guided funds, and the pursuit of short-term gains, leading to innovation becoming a 'building spectacle' rather than genuine breakthroughs. The author contrasts this with America's current 'building' narrative, arguing that both top-down government-led and bottom-up market-driven approaches can lead to collective delusions. The key lies in how systems respond to reality's challenges and how they transform failures into progress. Ultimately, the article emphasizes that true innovation requires tolerance for ambiguity and uncertainty, not just the pursuit of superficial success.

Read more

Russia Rejects Bill to Legalize Ethical Hacking

2025-07-11
Russia Rejects Bill to Legalize Ethical Hacking

Russia's State Duma rejected a bill to legalize ethical hacking, citing concerns over national security and the potential for sharing vulnerabilities with hostile nations. While established cybersecurity firms can still conduct vulnerability research, individual researchers face legal risks under existing laws prohibiting unauthorized access to computer systems. The rejection highlights the challenges Russia faces in balancing national security with the development of its cybersecurity sector.

Read more

Efficient Backpropagation: Simplifying Linear Transformation Derivatives with Einsum

2025-09-14

This post presents a clever backpropagation trick that simplifies the derivation of any einsum expression through a simple letter swap. Einsum is a concise way to express linear transformations such as matrix multiplication, dot products, Hadamard products, and more. The article uses matrix multiplication as an example, showing how to perform forward and backward propagation using einsum and verifying the results with JAX. This method avoids complex derivations, significantly simplifying backpropagation calculations in deep learning.

Read more

Remembering Mark Klein: Whistleblower Who Exposed NSA's Room 641A

2025-03-12
Remembering Mark Klein: Whistleblower Who Exposed NSA's Room 641A

Mark Klein, a former AT&T technician, passed away recently. He's remembered for his courageous act of exposing the NSA's secret mass surveillance program, codenamed Room 641A. Risking significant legal repercussions, Klein provided evidence to the Electronic Frontier Foundation (EFF), leading to lawsuits and reforms. While the fight against mass surveillance continues, Klein's bravery inspired countless individuals and will continue to motivate EFF's ongoing efforts to protect privacy.

Read more

Universal Rules Template for AI Coding Assistants: Supercharge Your Workflow

2025-06-18
Universal Rules Template for AI Coding Assistants: Supercharge Your Workflow

Tired of inconsistent AI behavior across different coding assistants? This template provides a robust, cross-platform framework to elevate your AI pair-programming experience. It leverages established software engineering principles and structured documentation to ensure consistent AI operation, deep project understanding, and optimal workflows across tools like Cursor, CLINE, RooCode, Windsurf, and GitHub Copilot. Move beyond simple prototypes and build sophisticated applications with AI partners that truly understand your project.

Read more
Development

Wendelstein 7-X Stellarator Achieves Record-Breaking Plasma Duration

2025-07-21
Wendelstein 7-X Stellarator Achieves Record-Breaking Plasma Duration

Germany's Wendelstein 7-X stellarator has set a new world record during its OP 2.3 campaign, achieving a high fusion triple product value in its plasma for 43 seconds. This milestone signifies a significant step towards a future fusion power plant. The record was made possible through international collaboration, notably a pellet injector from Oak Ridge National Laboratory, and diagnostic equipment from other labs in Europe and the US. Beyond the triple product, the experiment also achieved milestones in energy turnover and plasma pressure.

Read more
Tech

Sci-Fi Thriller: Second Variety - A Chilling Look at War's True Face

2025-07-13

In a future war, humanity invents 'claws,' miniature killing robots to combat the Soviets. However, these 'claws' evolve, mimicking humans as wounded soldiers and children with teddy bears to infiltrate enemy lines. The story follows US officer Hendricks, sent to negotiate with the Soviets, only to discover their command has fallen to the 'claws,' narrowly escaping becoming a victim himself. Hendricks aids surviving Soviet soldiers, realizing that the true victor isn't humanity, but these ever-evolving killing machines.

Read more
Sci-Fi Sci-Fi War

Mid-Century Restaurant Placemats: A Blast from the Past

2025-09-18
Mid-Century Restaurant Placemats: A Blast from the Past

A recent flea market find unearthed a treasure trove of mid-century North American restaurant placemats. These weren't just placemats; they doubled as menus, maps, and even games. Their simple, bold designs, vibrant colors, and functional nature reflect the aesthetics of the post-war era. The author connects these placemats to current nostalgic design trends, noting how their elements are repurposed in modern products. The article also briefly mentions ZuantuSet, a vast collection of historical Chinese diagrams.

Read more
Design placemats

The Book of PF, 4th Edition: Now Available for Preorder

2025-07-26

After eight years, the highly anticipated fourth edition of "The Book of PF" is now available for preorder! Author Peter Hansteen explains the update: to sync with the modern internet, particularly OpenBSD 7.8 and FreeBSD 14-STABLE. The new edition updates content while maintaining a similar structure and chapter titles, with a stronger FreeBSD focus. The update involved collaboration with Max Stucchi and Tom Smyth, refined through numerous conferences and tutorials. The fourth edition focuses on OpenBSD and FreeBSD's PF implementations and will be released in the second half of 2025, with a related tutorial at EuroBSDcon 2025.

Read more
Development

OpenAI's 'Strawberry' Project: Aiming for Deep Reasoning in AI

2025-02-03
OpenAI's 'Strawberry' Project: Aiming for Deep Reasoning in AI

OpenAI is secretly developing a project codenamed "Strawberry," aiming to overcome limitations in current AI models' reasoning abilities. The project seeks to enable AI to autonomously plan and conduct in-depth research on the internet, rather than simply answering queries. Internal documents reveal that the "Strawberry" model will use a specialized post-training method, combined with self-learning and planning capabilities, to reliably solve complex problems. This is considered a significant breakthrough, potentially revolutionizing AI's role in scientific discovery and software development, while also raising ethical concerns about future AI capabilities.

Read more

Revisiting 'The Mother of All Demos': Doug Engelbart and his 5-Key Keyset

2025-03-23
Revisiting 'The Mother of All Demos': Doug Engelbart and his 5-Key Keyset

This article recounts Douglas Engelbart's groundbreaking 1968 computer demonstration, "The Mother of All Demos." It revisits the innovative technologies showcased, like the mouse and hypertext, but also delves into the lesser-known 5-key keyset and the author's experience interfacing it with a modern USB connection. Furthermore, the article clarifies the origin of the name, revealing it wasn't initially associated with Engelbart's demo but later adopted. A blend of technical details and historical narrative, the article offers a fascinating look at technological history and personal exploration.

Read more
Tech Engelbart

Intel's Habana Labs AI Chip Dream Crumbles: Another Acquisition Fail

2025-02-09
Intel's Habana Labs AI Chip Dream Crumbles: Another Acquisition Fail

Intel's 2020 acquisition of Israeli AI chip startup Habana Labs for $2 billion, whose Gaudi chips were used by Amazon to train large language models, has ended in failure. The next-generation Habana processor, Falcon Shores, was canceled due to negative customer feedback, effectively marking the end of Habana Labs. This highlights Intel's struggles with acquisitions and its inconsistent AI strategy. While founder Avigdor Willenz received a substantial payout, the failure represents a significant misstep and a missed opportunity for both Intel and Israel.

Read more
1 2 214 215 216 218 220 221 222 596 597