No-Panic Rust: Can Rust Replace C for Low-Level Systems Programming?

2025-02-03

This article explores the feasibility of using Rust to replace C for low-level systems programming, specifically focusing on a Protocol Buffers library called upb. The author initially doubted Rust's ability to match C in performance and code size but discovered a technique called "No-Panic Rust." This involves avoiding the use of `panic!()`. The article delves into the principles, advantages, and challenges of No-Panic Rust, including code size, unrecoverable exits, and runtime overhead. It demonstrates how to write No-Panic Rust code using techniques such as leveraging the libc library, optimization options, and `std::hint::assert_unchecked`, emphasizing the retention of overflow checks in debug mode for extra consistency checks. While this technique demands meticulous work and may necessitate avoiding most of the standard library, it promises to deliver the performance and code size of a C library while retaining Rust's safety guarantees.

Read more
Development Systems Programming

Hobby Lobby, the Lost City of Irisagrig, and a Multi-Billion Dollar Evangelical Empire

2025-03-24
Hobby Lobby, the Lost City of Irisagrig, and a Multi-Billion Dollar Evangelical Empire

This article details how the Green family, owners of Hobby Lobby, amassed a vast collection of ancient artifacts, including tens of thousands of cuneiform tablets from the lost city of Irisagrig. Driven by their faith, the Greens channeled their profits into evangelical missions, viewing artifact acquisition as a means to this end. The article explores their acquisition methods and the ensuing controversy surrounding the artifacts' provenance and legality, prompting reflection on the complex interplay between commercial interests, religious beliefs, and the preservation of cultural heritage.

Read more
Misc artifacts

Bacteria Build Living Gels in Polymers: A New Twist on Biofilms

2025-01-26
Bacteria Build Living Gels in Polymers: A New Twist on Biofilms

Caltech and Princeton University scientists have discovered that bacteria growing in polymer solutions, like mucus, form long, intertwined cables—a kind of ‘living Jell-O.’ This is significant for understanding diseases like cystic fibrosis, where thickened lung mucus fosters dangerous bacterial infections. The discovery also has implications for studying biofilms (the slimy coatings on surfaces) and their industrial impacts. The researchers found that external pressure from the polymers forces the bacterial cells together. A theoretical model accurately predicts when these cable structures will form. The reason for cable formation remains a mystery: it may be a bacterial defense mechanism or conversely, a way for the body to expel the infection more easily. This unexpected finding opens up new avenues of research into bacterial growth and biofilm control.

Read more

Qualcomm Extends Android Software Updates to Eight Years

2025-02-25
Qualcomm Extends Android Software Updates to Eight Years

Qualcomm announced a partnership with Google to provide up to eight years of Android software and security updates for devices powered by the Snapdragon 8 Elite and the next five generations of Snapdragon 8 and 7-series chips. This will enable OEMs to more easily provide longer-term updates for their devices, reducing costs and improving user experience. While ultimate update decisions rest with manufacturers, this initiative promotes longer device lifespans, starting with Snapdragon 8 Elite phones launching with Android 15.

Read more

Cosmos Keyboard: Design Your Perfect Ergonomic Keyboard

2025-01-14

Cosmos is a revolutionary keyboard design software that lets you create a personalized, ergonomic keyboard by scanning your hand. It supports a wide range of components, including various switches, keycaps, and add-ons like trackballs and OLED displays. Cosmos features error checking and auto-correction for smooth 3D printing, and exports in STL and STEP formats for further modification. With most of its code open-source, it aims to provide everyone with technology to alleviate and prevent typing pain.

Read more
Hardware ergonomics

Stelo CGM Teardown: Unlocking the Secrets of a Cheap CGM

2025-02-23

This article details a teardown of Dexcom's Stelo CGM, an affordable ($50) continuous glucose monitor. The author shares their experience using the device and delves into its internal workings, including the nRF52832 microcontroller, CR1216 coin cell battery, and other unidentified chips. By measuring power consumption, the author reveals that the battery life far exceeds the claimed 15 days, and explores the possibility of using energy harvesting for permanent power. The article also sparks discussion on product cost breakdown and market competition, making it a compelling read for both tech enthusiasts and those interested in medical technology.

Read more

Why Finding High-Quality Products Is So Difficult

2024-12-16

This article explores the pervasive challenge of finding high-quality products and services in the market. The author argues that markets aren't perfectly efficient, with inefficiencies in companies and products persisting for years. Consumers struggle to discern product quality, often swayed by marketing. Even expert advice proves unreliable. Businesses, prioritizing efficiency, outsource or buy off-the-shelf solutions, but these often lack quality and may have fundamental flaws. The author uses personal anecdotes and case studies to illustrate information asymmetry and trust deficits within and between companies, hindering the production and sale of high-quality goods. The conclusion highlights that building quality isn't easy, but reliable service often necessitates in-house development—a significant hurdle for smaller companies.

Read more

Ale, Coal, and the Unexpected Origins of the British Industrial Revolution

2025-02-16
Ale, Coal, and the Unexpected Origins of the British Industrial Revolution

This article unravels a little-known origin story of the British Industrial Revolution: German fuel-saving technology. In the mid-16th century, Germany, facing wood shortages, invented the 'wood-saving art,' an indirect heating process that dramatically reduced fuel consumption. This technology, through a series of patents and technological transfers, eventually reached England. Initially adopted by breweries for its cost-effectiveness, it unexpectedly spurred the large-scale use of coal. London's breweries spearheaded this adoption, leading to a surge in coal demand, which in turn propelled coal mining and related industries, ultimately transforming Britain's energy landscape and laying the groundwork for the Industrial Revolution.

Read more

Python Library for Microsoft Edge's Text-to-Speech Service (No Edge or API Key Needed)

2025-01-23
Python Library for Microsoft Edge's Text-to-Speech Service (No Edge or API Key Needed)

edge-tts is a Python library that lets you use Microsoft Edge's online text-to-speech service directly from your Python code or via command-line tools (`edge-tts` and `edge-playback`). No need for Microsoft Edge, Windows, or an API key. It supports multiple languages and voices, offering customization of speed, volume, and pitch. Install via pip and use simple command-line arguments or the Python API.

Read more
Development Microsoft Edge

DIY Type 1 Diabetes Smartwatch: A Father's Journey

2025-01-29
DIY Type 1 Diabetes Smartwatch: A Father's Journey

A software engineer father embarked on a six-month journey to build a simple smartwatch for his son with Type 1 diabetes. The watch reliably displays CGM data and provides haptic feedback for critical blood glucose levels. He overcame challenges including BLE connectivity, custom PCB design, haptic motor selection, display choice, waterproofing, and battery life. While not mass-produced, the project yielded valuable hardware R&D experience and is planned to be open-sourced for community benefit. The project highlights the possibilities and difficulties of hardware development.

Read more

AI-Powered Video Analysis: Convenience Store and Home Settings

2025-02-20

Two AI segments analyze videos from a convenience store checkout and a home setting. The first describes a customer purchasing snacks and drinks using a 'PICK 5 FOR $8.00' deal, focusing on the interaction between the customer and the employee. The second shows a hand arranging a potted plant, with a home setting background including books, bowls, a watering can, etc., conveying a relaxed home atmosphere. Both segments demonstrate the AI's ability to understand video content through detailed action descriptions.

Read more

Building a Better Future with 'Plausible Fiction'

2025-01-24

This article proposes a novel approach called 'plausible fiction' to tackle real-world problems by constructing believable narratives that bridge the gap between our present and a desired future. The author argues that collective participation in filling the gaps within these narratives can transform fiction into reality. This process resembles a form of collective prediction and creation, potentially leveraging mathematical tools like applied category theory. The article uses a hypothetical platform, FutureForge, to illustrate how gamification and incentive mechanisms can encourage broader participation, ultimately leading to a better future.

Read more

The Return of Adventure: Ditching the Tourist Trail for Unconventional Experiences

2025-01-21
The Return of Adventure: Ditching the Tourist Trail for Unconventional Experiences

From Ernest Shackleton's Antarctic expeditions to the unconventional journeys of modern travelers, this essay explores the evolution of travel. Convenient transportation and mass media have shaped a homogenized tourism model, yet a new trend of seeking unusual adventures is emerging. Examples include attempts at straight-line crossings, continent-spanning games of tag, and spontaneous explorations of city's hidden corners. These adventures aren't about geographical discovery, but about experiencing the journey in novel ways and rediscovering the unexpected joys of travel. The essay ultimately encourages readers to break free from established patterns and embrace personalized, unconventional adventures.

Read more

Migrating a Large-Scale Game Server from Scala 2.13 to Scala 3: A Year-Long Odyssey

2025-02-06
Migrating a Large-Scale Game Server from Scala 2.13 to Scala 3: A Year-Long Odyssey

This post details the author's journey migrating a four-year-old, production-ready multiplayer mobile game server from Scala 2.13 to Scala 3. An initial attempt failed due to the removal of key features in Scala 3 (macro annotations, type projections) and the massive code changes required. A year later, a successful migration was achieved through a multi-pronged approach: preemptively applying Scala 3 syntax in the Scala 2 codebase, leveraging IntelliJ's code inspection tools, custom sbt source generators to produce Monocle lenses, and creative workarounds for type projections. Challenges encountered included dependency conflicts and slow compile times, resolved by forking a library, optimizing code using Scala 3's Tuple.Map, and other techniques. Despite the hurdles, the migration highlights the power and value of Scala 3's metaprogramming capabilities.

Read more
Development

Apache Hudi: Upserts, Deletes, and Incremental Processing for Big Data

2025-01-23
Apache Hudi: Upserts, Deletes, and Incremental Processing for Big Data

Apache Hudi is an open-source data lakehouse platform built on a high-performance open table format for ingesting, indexing, storing, serving, transforming, and managing data across multiple cloud data environments. It supports various data formats and sources, offers atomic commits with rollback/restore, and boasts fast upsert/delete capabilities. A scalable indexing subsystem accelerates queries, while support for snapshot, incremental, and time-travel queries provides flexibility. Integration with metadata stores like Apache Hive Metastore is also included.

Read more

Best Practices for Writing Robust GNU Makefiles

2025-06-20

This comprehensive guide outlines best practices for crafting efficient, maintainable, and portable GNU Makefiles. It covers Makefile structure, variable usage, rule and target definitions, and strategies for handling large projects and parallel builds. The guide emphasizes using automatic variables, avoiding common pitfalls, and provides techniques for handling various scenarios such as cleanup tasks, dependency management, and multi-file processing. The ultimate goal is to empower developers to write clean, understandable, and easily maintainable Makefiles, thereby boosting development efficiency.

Read more
Development

Coccinelle: A Powerful Tool for Linux Kernel Development

2024-12-26

Coccinelle is a powerful tool for Linux kernel development, used for pattern matching and text transformation. It enables the application of complex, tree-wide patches and detects problematic coding patterns. This document details Coccinelle's installation, usage, various modes (patch, report, context, org), and advanced features such as parallelization, using a single semantic patch, controlling processed files, debugging, and .cocciconfig support. Coccinelle leverages Semantic Patch Language (SmPL) and offers multiple modes for generating patches, reports, context information, and Org-mode reports, catering to diverse needs.

Read more
Development

Baltic States Sever Ties with Russia's Power Grid, Embrace European Energy Independence

2025-02-07
Baltic States Sever Ties with Russia's Power Grid, Embrace European Energy Independence

This weekend, Estonia, Latvia, and Lithuania will complete their disconnection from the Russian electricity network and connect to the Continental European Synchronous Area. This move aims to strengthen grid stability and ensure energy independence and security. The €1.6 billion project involved years of work, building 1,400 km of high-voltage lines and numerous substations, and establishing strong European partnerships to mitigate risks. While potential risks exist, tests are complete, and the average consumer shouldn't notice any disruption. This marks a significant step towards energy security for the Baltic states and offers a model for other nations reliant on Russian energy.

Read more

arXiv: How Preprints Revolutionized Research Sharing

2024-12-26
arXiv: How Preprints Revolutionized Research Sharing

From papyrus to preprints, the dissemination of scientific research has undergone a dramatic transformation. This article traces the history of peer review and highlights the emergence of arXiv and its impact on the scientific community. arXiv, as a preprint server, broke down the barriers of traditional journals, enabling rapid and open sharing of research findings. However, it also faces challenges related to quality control and information overload. The author explores the conflict and convergence between preprint culture and traditional academic publishing models, and the profound impact it has on the future direction of scientific research.

Read more

Activision Confirms AI-Generated Content in Call of Duty

2025-02-25
Activision Confirms AI-Generated Content in Call of Duty

Activision has finally admitted to using AI-generated content in its games, specifically the Call of Duty franchise. This revelation comes as no surprise to players who had previously suspected the AI origins of certain in-game assets. Steam now requires disclosure of AI-generated content, and Activision has obliged on the Black Ops 6 Steam page. While Activision states that its team uses AI tools to assist in developing some game assets, the extent of AI's involvement remains unclear. Players have already pointed out several suspect assets, including a six-fingered Santa Claus and a potentially AI-generated Zombies map logo. This confirmation has sparked considerable discussion among players and highlights the use and controversies surrounding AI in game development.

Read more
Game Activision

JFK Assassination: Thousands of Declassified Documents Released

2025-03-20
JFK Assassination: Thousands of Declassified Documents Released

The National Archives released tens of thousands of declassified documents related to the assassination of President John F. Kennedy in 1963. Key revelations include a previously heavily redacted 1961 memo detailing CIA activities and tensions with President Kennedy, detailed records of CIA wiretapping of Soviet and Cuban diplomatic facilities in Mexico City, and surveillance related to Lee Harvey Oswald. The release fuels further investigation into the assassination and sparks debate about the CIA's role and government transparency.

Read more

OpenAI Accuses DeepSeek of Using Its Data to Train Rival AI Models

2025-01-29
OpenAI Accuses DeepSeek of Using Its Data to Train Rival AI Models

OpenAI has found evidence suggesting that Chinese AI company DeepSeek used OpenAI's model data to train its own low-cost AI models, potentially violating its terms of service. DeepSeek allegedly employed a 'distillation' technique to extract data from OpenAI's models, enabling it to train its own models at a fraction of the cost—far less than the $100 million OpenAI spent on GPT-4. OpenAI and Microsoft are investigating the matter, sparking a debate about AI intellectual property and data security, and highlighting the intensifying competition among tech giants.

Read more

MTR: A Powerful Network Diagnostic Tool

2025-02-05

MTR combines the functionality of 'traceroute' and 'ping' into a single, powerful network diagnostic tool. It traces the path of a network connection and tests the quality of the link to each hop. Simply specify a destination host, and MTR displays the address and connection quality statistics for each hop, aiding in quick network problem identification. MTR is open-source, cross-platform compatible, though some older binary distributions and online services are defunct. Source code is available on GitHub for compilation, or it can be directly used via distributions like Debian.

Read more
Development network diagnostics

Rackmounting the Unrackmountable: A HiFi DIY Adventure

2025-03-03
Rackmounting the Unrackmountable: A HiFi DIY Adventure

This article chronicles the author's journey to build a custom 2U rack unit for their HiFi system, integrating a DAC, input selector, and streaming device. Using OpenSCAD for design and CNC turret punching for fabrication, they encountered challenges with curve precision in the DXF output, solved by using FreeCAD. Initial attempts with a HiFiBerry hat proved unreliable, leading to a switch to a Wiim Pro. The project highlights the joys and challenges of DIY, resulting in a functional and aesthetically pleasing unit. Code is available on Github.

Read more
Hardware Rack Mounting

Code Review Hack: Ask Engineers "How Do You Like What You've Built?"

2025-01-06

During a code review of complex UI changes, instead of immediately reviewing, the author asked the engineer, "How do you like the new behavior?" The engineer's response led to the discovery and fixing of several bugs and even dropping a problematic requirement. This simple question prompted the engineer to think more deeply about their work and make improvements, ultimately enhancing code quality. The author believes that regularly asking engineers about their feelings towards their creations is a useful technique worth trying.

Read more
Development code review

Louis Armstrong's Ghana Trip: A Jazz Fusion

2025-02-19
Louis Armstrong's Ghana Trip: A Jazz Fusion

In 1956, Louis Armstrong's visit to Ghana, then on the brink of independence, ignited a cultural explosion. His performance fused with Ghana's indigenous highlife music, propelling highlife to international recognition and solidifying its role in Ghana's independence movement. Armstrong's trip not only boosted Ghana's music globally but also allowed him to trace his musical roots and deepen his understanding of African culture. Today, Ghana's jazz and highlife scenes are experiencing a resurgence, linked to the nation's renewed focus on its history and the 'Year of Return' initiative.

Read more

DoorDash to Pay $16.75M to Drivers Over Tip Misuse

2025-02-25
DoorDash to Pay $16.75M to Drivers Over Tip Misuse

DoorDash will pay $16.75 million to over 60,000 drivers in New York after a lawsuit alleging the company misused tips. Between 2017 and 2019, DoorDash allegedly used tips to subsidize its guaranteed minimum wage, keeping the difference. While the company claimed drivers received 100% of tips, the lawsuit argued this was misleading as tips were factored into the base pay. This deceptive practice is finally being addressed, with eligible drivers set to receive compensation.

Read more

Leaked: Massive Directory of The Sims Design Documents

2025-02-16

A massive directory of what appears to be internal The Sims design documents has surfaced online. Hundreds of files detail nearly every aspect of the game's development, from character modeling and animation to game mechanics and software architecture. The sheer volume and size of the files offer a rare glimpse into the complexity and scale of a large-scale game development project. This leak provides fascinating insight into the design and development processes of The Sims, sparking interest in game development workflows and documentation management.

Read more

Sentient: Grappling with Infinity in Constraint Solvers

2025-04-12
Sentient: Grappling with Infinity in Constraint Solvers

This article delves into the challenges of handling infinity within the Sentient constraint solver. Sentient, a programming language, tackles constraint satisfaction problems by translating them into Boolean equations. Because integers in computers are represented with a finite number of bits, Sentient can't directly handle mathematically infinite integers. The author proposes an approximation-based solution, incrementally increasing the bit size of integers to approximate the infinite space. The article discusses leveraging the incremental SAT solver IPASIR for efficiency, avoiding redundant searches. It also explores extending this approach to more complex scenarios, such as handling arrays and optimization problems, ultimately touching on the possibility of Sentient achieving Turing completeness in the future.

Read more
Development constraint solving

A Decade of Grief: Unbearable Loss

2025-02-14
A Decade of Grief: Unbearable Loss

Sixteen years ago today, the author's second daughter was born; ten years ago today, she died on her sixth birthday. The piece describes the author's reflections on this day, the day his daughter would have turned sixteen, a decade after her death. The author visits her grave and attends a final memorial service at Anshe Chesed Fairmount Temple, a place that held special meaning for her, before its closure adds another layer of sadness. The author confesses that a decade later, the pain of losing his daughter persists, and the guilt of feeling he 'failed his child in the most fundamental way' remains.

Read more
Misc loss
1 2 558 559 560 562 564 565 566 596 597