Go Protobuf's New Opaque API Improves Performance and Safety

2024-12-16

The Go team released a new Opaque API for Go Protobuf, coexisting with the existing Open Struct API. This new API decouples generated code from its underlying memory representation, leading to performance improvements, reduced memory allocations, and enabling optimizations like lazy decoding. By hiding struct fields and accessing them only through accessor methods, it prevents pointer-related bugs and accidental sharing. Migration involves enabling the Hybrid API, using the `open2opaque` tool, and then switching to the Opaque API. The existing Open Struct API remains supported.

Read more
(go.dev)
Development

Middle Schooler Discovers New Compound in Goose Poop

2024-12-12
Middle Schooler Discovers New Compound in Goose Poop

A middle school student, participating in a research program with a local university, discovered a novel compound, orfamide N, in a goose poop sample collected from a park. While not responsible for the initial observed antibiotic activity of the bacteria, orfamide N inhibited the growth of human melanoma and ovarian cancer cells in lab tests. This research demonstrates the success of combining educational outreach with natural product discovery, highlighting the importance of university-community partnerships. The project provided invaluable hands-on experience for the student, showcasing the potential of young scientists.

Read more

Wild: A Blazing-Fast Linker for Linux

2025-01-24
Wild: A Blazing-Fast Linker for Linux

Wild is a linker designed for speed in iterative development. While incremental linking isn't yet implemented, it's already impressively fast. For production builds, more mature linkers like GNU ld or LLD are recommended. However, for development, Wild significantly speeds up build times, especially on x86-64 Linux systems. It supports statically and dynamically linked executables and shared objects, and has been tested with many popular crates from crates.io. Currently under development are features like incremental linking, support for other architectures, and more linker flags.

Read more
Development linker

Animal Adoption: A Balancing Act of Genes and Emotion

2024-12-13
Animal Adoption: A Balancing Act of Genes and Emotion

A lioness adopting a leopard cub sparks a fascinating exploration into the world of animal adoption. This article delves into the evolutionary mechanisms behind this behavior, examining kinship selection, environmental pressures, individual differences, and maternal instincts. Research suggests that animal adoption isn't solely an evolutionary strategy, but also reflects animal emotions and individual variations, challenging traditional evolutionary explanations.

Read more

Revisiting Barricelli's Cellular Automata: Spontaneous Generation of Life

2025-01-07

This article explores the work of Nils Aall Barricelli, who pioneered cellular automata 15 years before John Conway. Barricelli's 'symbioorganisms' model, in a finite, circular 1D space, simulates the movement and interaction of different elements through simple rules of collision elimination, positional replication, and mutation. The simulations reveal that even with simple rules, stable periodic patterns spontaneously emerge, resembling the spontaneous generation of life. The author delves into the stability of these patterns and proposes combining early universe simulations with simulations of abiogenesis to find more efficient ways to explore life's origins.

Read more

WASM Program Bypasses node:wasi Filesystem Sandbox

2024-12-15
WASM Program Bypasses node:wasi Filesystem Sandbox

This project demonstrates a proof-of-concept showcasing how a WASM program can bypass the preopens directory restriction in node:wasi to access files outside the sandbox. Normally, WASM programs are limited to accessing pre-opened directories. However, by cleverly using symbolic links to replace files at a precise moment and running an external process, this limitation can be circumvented. This is not a practical security vulnerability in node:wasi, but rather a potential edge case. The project highlights that one shouldn't rely on node:wasi to completely prevent malicious code from accessing external files.

Read more
Development

Advent of Code on the Nintendo DS: A Rust Programming Challenge on an Embedded System

2024-12-16

The author tackled Advent of Code 2024 using Rust on a Nintendo DS. This detailed account chronicles the journey, from setting up a cross-compilation environment and writing Rust code for a runtime-less embedded system to overcoming challenges in memory management, interrupts, and screen output. The author successfully displays the Advent of Code solution on the DS screen. The article showcases strong programming skills and deep understanding of embedded systems, highlighting the techniques and enjoyment of programming in resource-constrained environments.

Read more
Development Nintendo DS

SBCL Compiler Optimization: Speeding Up Compilation of (lambda () nil)

2024-12-28
SBCL Compiler Optimization: Speeding Up Compilation of (lambda () nil)

The SBCL compiler received a significant optimization that dramatically improves the compilation speed of empty functions like `(lambda () nil)`. Previously, compilation generated many redundant functions. This optimization identifies and handles these special cases, directly returning a predefined empty function, thus avoiding unnecessary computation and significantly increasing compilation speed. This improvement is especially effective when dealing with large amounts of code containing empty functions, reducing compilation time and boosting developer productivity.

Read more

ErisForge: A Dead Simple LLM Ablation Tool

2025-01-27
ErisForge: A Dead Simple LLM Ablation Tool

ErisForge is a Python library for modifying Large Language Models (LLMs) by transforming their internal layers. It allows for creating ablated and augmented versions of LLMs, resulting in altered responses to specific inputs. Features include controlled manipulation of model behavior, measurement of refusal expressions, and support for custom transformation directions. Easy to use with comprehensive examples and documentation.

Read more

The Growing Trend of Living Near Friends

2024-12-27
The Growing Trend of Living Near Friends

In today's fast-paced world, maintaining close friendships can be challenging. This article explores the rising trend of people relocating to live near their closest friends. Through interviews with several individuals and families, the article highlights the benefits of proximity, including shared resources, convenient socializing, and mutual childcare support. These 'mini-neighborhoods' foster strong bonds, combat loneliness, and create rich environments for raising children, offering a compelling alternative to the isolating aspects of modern life.

Read more

Dissecting MrBeast: Algorithm-Driven Content Creation at its Finest

2025-01-14
Dissecting MrBeast: Algorithm-Driven Content Creation at its Finest

Blogger Kevin Munger reveals the secret behind YouTube megastar MrBeast's success: a maniacal obsession with YouTube's algorithm. It's not about superior production or inherent content quality, but precise manipulation of metrics like CTR, AVD, and AVP. MrBeast and his team meticulously optimize content to maximize these numbers, generating massive views and revenue. The article argues that MrBeast's 'success' isn't artistic, but a data-driven creation process, even tailoring team members' information intake ('information diet') to perfectly align with algorithmic preferences. This raises profound questions about the nature of 'creation' in the algorithm age and the redefined meaning of 'authenticity'.

Read more

Vim: A Programming Language Beyond an Editor

2024-12-15

Vim is more than just a text editor; it's a language for interacting with your computer. Its concise and efficient command structure is easy to learn and remember, and also easy for a computer to interpret. While Vim itself is powerful, its core strength lies in the fact that its mode has been integrated into almost every mainstream code editor, allowing developers to flexibly choose their preferred editor interface while retaining Vim's efficient command language. Therefore, NeoVim, as the most complete and consistent implementation of the Vim language, is valuable for providing this efficient editing language, not just the editor itself.

Read more
Development editor

China's 'Artificial Sun' Sets New Fusion Record: 1,006 Seconds of Plasma Confinement

2025-01-24
China's 'Artificial Sun' Sets New Fusion Record: 1,006 Seconds of Plasma Confinement

China's Experimental Advanced Superconducting Tokamak (EAST), nicknamed the 'artificial sun', has achieved a groundbreaking milestone in fusion energy research. It sustained high-confinement plasma operation for an unprecedented 1,066 seconds, surpassing the previous record of 403 seconds (also set by EAST). This significant achievement represents a crucial step towards harnessing fusion energy – a clean, virtually limitless power source. The success is attributed to advancements in heating system stability, control system accuracy, and diagnostic systems. This breakthrough not only showcases China's leadership in fusion research but also offers hope for a cleaner energy future.

Read more

Open Source Solaar: A Linux Manager for Logitech Devices

2024-12-18
Open Source Solaar: A Linux Manager for Logitech Devices

Solaar is an open-source Linux device manager for many Logitech keyboards, mice, and other devices connecting wirelessly via Unifying, Bolt, Lightspeed, or Nano receivers, as well as many Logitech devices connecting via USB cable or Bluetooth. It's not a device driver; it responds to special messages from devices otherwise ignored by the Linux input system. Solaar supports pairing/unpairing devices with receivers, configuring device settings, custom button configurations, and running rules in response to special messages from devices. Installation options include pre-built packages and source code compilation.

Read more
Development

Mullvad VPN App's 2024 Security Audit Report Released

2024-12-12
Mullvad VPN App's 2024 Security Audit Report Released

Mullvad VPN has released the report for its 2024 third-party security audit of its VPN app. The audit uncovered six vulnerabilities, ranging in severity from low to high, all of which have been addressed. Three high-severity vulnerabilities involved signal handlers and a virtual IP address leak and have been fixed in the latest version. The audit also noted some non-security issues that Mullvad is actively working to resolve. Overall, the Mullvad VPN app is deemed highly secure, but users are still advised to upgrade to the latest version.

Read more

St. Peter's Basilica: Immersive Digital Experience

2025-01-18
St. Peter's Basilica: Immersive Digital Experience

St. Peter's Basilica has launched a new digital experience, allowing people worldwide to explore the magnificence of this architectural marvel from the comfort of their homes. The experience includes a virtual 3D tour and a story detailing the Basilica's history, all available in multiple languages. Users can immerse themselves in the grandeur of St. Peter's, experiencing its art and architecture regardless of their location.

Read more

FOSDEM 2025: Statement on Planned Protests

2025-01-21
FOSDEM 2025: Statement on Planned Protests

FOSDEM 2025 organizers issued a statement addressing planned protests against a controversial talk. The statement clarifies that the talk's inclusion wasn't influenced by sponsorship; claims suggesting otherwise are false. FOSDEM has always welcomed peaceful protests, provided they don't disrupt proceedings. Organizers urge protest organizers to contact them beforehand to ensure safety and fire regulations are met.

Read more
Misc protest

Serverless Computing: Why Haven't We All Switched Yet?

2025-01-09

Despite the appealing value proposition of serverless computing (e.g., AWS Lambda)—pay-per-use, auto-scaling, and abstraction from infrastructure—widespread adoption remains slow. The author points to two primary reasons: the lessons learned from the challenging microservices migration, where many organizations struggled due to insufficient technical and organizational readiness; and the fact that serverless amplifies existing challenges of microservices, such as complexities in dependency injection and observability. A gradual adoption approach focusing on highly autonomous teams and suitable use cases (like AI and LLM integrations) is suggested as a more efficient strategy.

Read more
Development microservices

River Runner Global: Disruptive Hydropower Tech?

2025-01-28
River Runner Global: Disruptive Hydropower Tech?

River Runner Global claims to possess revolutionary hydropower technology that generates electricity from natural river flow without needing large dams. The technology is purportedly low-cost and environmentally friendly, potentially providing clean energy to remote areas. However, details about the technology and its real-world effectiveness remain scarce, and its viability and commercial potential are yet to be proven. Nevertheless, its innovative concept has attracted industry attention.

Read more
Tech hydropower

Medicare to Negotiate Prices for 15 Popular Drugs

2025-01-17
Medicare to Negotiate Prices for 15 Popular Drugs

The Biden administration announced that 15 commonly used drugs, including Ozempic and Wegovy, will be included in Medicare's price negotiation program. This marks the first time the U.S. government will directly negotiate drug prices with manufacturers, and is expected to save taxpayers billions of dollars. While Ozempic and Wegovy have drawn scrutiny for their high costs, Medicare currently only covers them for diabetes treatment, not weight loss. The incoming Trump administration will decide whether to implement a proposed rule to cover these medications for obesity. This brings the total number of drugs subject to Medicare price negotiations to 25, covering a third of prescription drug spending. The pharmaceutical industry has sued over the program, but groups like the AARP say they will fight to uphold the law.

Read more

A Glimpse into OS/2's Built-in Virtualization

2024-12-17

This blog post explores the surprisingly advanced built-in virtualization capabilities of OS/2 2.1 from 1993. The author demonstrates OS/2's ability to load and execute disk images, much like modern hypervisors, by creating a simple VGA mode program and running it in DOSBox, QEMU, and OS/2's own virtual environment. OS/2 can even run images that aren't true bootable DOS floppies, using VMDISK to create an image file and running it in fullscreen or windowed mode within OS/2. This functionality, remarkable for 1993, is essentially a built-in QEMU, prompting the author to consider the further potential of OS/2's virtualization features.

Read more

Negotiating with Infringers: A Better Option for Creative Professionals

2024-12-16
Negotiating with Infringers: A Better Option for Creative Professionals

When a creative professional's copyright is infringed, litigation isn't the only option. This article's author, a lawyer, suggests considering negotiation with the infringer. Negotiation is quicker and cheaper than litigation and may yield benefits beyond monetary compensation, such as promotion and collaboration opportunities. The author points out that most infringements are not malicious but due to negligence. Through negotiation, adversaries can be transformed into collaborators, leading to long-term success. Of course, if negotiations fail, litigation remains a last resort.

Read more

Implementing a Simple Pool Allocator in C

2025-01-09

This article details the implementation of a simple pool allocator in C. The author first presents a fixed-size pool implementation with O(1) time complexity for allocation and deallocation. This is then improved to allow dynamic resizing, preventing crashes due to exhaustion of the initial pool. The improved version cleverly uses linked lists to manage memory blocks, balancing performance with efficient memory usage.

Read more

Session Messaging App: A Cryptographic Security Audit

2025-01-20
Session Messaging App: A Cryptographic Security Audit

Security engineer Soatok published a blog post questioning the cryptographic design of the Session messaging app. The post highlights Session's use of 128-bit seeds for Ed25519 key generation, making it vulnerable to batch collision attacks; a proof-of-concept is provided. Furthermore, the post criticizes design flaws in Session's signature verification process and the removal of forward secrecy. Soatok concludes that Session's cryptographic design poses significant security risks and advises against its use.

Read more
Tech

Base-Rate Blindness: When Rare Events Surprise Us (and How AI Might Exploit It)

2025-01-26

This essay uses the astonishing feats of pickpocket Apollo Robbins to illustrate the concept of 'base-rate blindness'. The author argues that we underestimate the probability of rare events because we tend to ignore base rates – the prior probability of an event. Using personal anecdotes, like a surprising moose encounter in Colorado, and the academic world's underestimation of deception, the author shows how ignoring base rates can lead to dangerous consequences. The essay concludes with a provocative question: Are we base-rate blind to the potential risks of AI, distracted by the hype and pleas for regulation?

Read more

Missile Strike Confirmed as Cause of Azerbaijan E190 Crash

2024-12-28
Missile Strike Confirmed as Cause of Azerbaijan E190 Crash

An Azerbaijan Airlines Embraer E190 passenger plane crashed on Christmas Day, killing 38 people. The Azerbaijani government confirmed that a Russian Pantir-S1 surface-to-air missile caused the crash. The aircraft was attempting an emergency landing when it went down. Russian air defense forces were engaged in shooting down Ukrainian drones in the area, but civilian airspace wasn't closed. Despite pilot requests for an emergency landing, the plane was denied access to Russian airports and crashed near Aktau, Kazakhstan.

Read more

Novel Link Between Cell Nutrition and Identity Could Improve Immunotherapies

2024-12-12
Novel Link Between Cell Nutrition and Identity Could Improve Immunotherapies

Scientists at the Salk Institute have discovered a nutritional switch from acetate to citrate is key in determining T cell fate, shifting them from active effector cells to exhausted ones. Published in Science, the findings reveal that different nutrients alter a cell's gene expression, function, and identity. This groundbreaking research offers new therapeutic targets for immunotherapies, potentially keeping T cells active against chronic diseases. The discovery highlights a direct link between cellular function and nutrition, opening new avenues for treating chronic illness.

Read more

NY Governor Signs Law Criminalizing Restaurant Reservation Black Market

2024-12-21
NY Governor Signs Law Criminalizing Restaurant Reservation Black Market

New York Governor Kathy Hochul has signed the Restaurant Reservation Anti-Piracy Act, cracking down on the black market for restaurant reservations. This first-of-its-kind legislation targets individuals and groups using bots or manual methods to hoard and resell reservations at inflated prices. The law protects both consumers and businesses by ensuring a fairer reservation system, while acknowledging some legitimate reasons for reservation trading, such as handling non-refundable bookings in emergencies. However, the prevalent scalping and cancellations negatively impact restaurants and diners.

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
1 2 541 542 543 545 547 548 549 563 564