News Nug
'Hello world' in Bismuth

Published: 2025-08-01 | Origin: /r/programming

The post discusses the development of a virtual machine named Bismuth and aims to explain how a simple "Hello, World" program operates within it. It explores the entire lifecycle of the program, beginning with code written in a language called Bronze. This language is designed to convert smoothly into Bismuth's intermediate representation (IR), which can then be either transpiled to C or compiled into bytecode that the VM can execute. The first part of the program involves setting up a global variable, "

Tea App Hack: Disassembling The Ridiculous App Source Code

Published: 2025-08-01 | Origin: /r/programming

The content discusses the recent hacking incident involving the "Tea app," which resulted in the leak of 13,000 user photos and IDs. The app, created by someone with only six months of programming experience, allows women to gossip about men on dating platforms. The author of the article has disassembled the app's source code and provides insights into the amateurish mistakes that led to its security breach. The piece also includes a guide on how to disassemble any Android app's source code, highlighting the

GitHub - davidesantangelo/webinspector: Ruby gem to inspect completely a web page. It scrapes a given URL, and returns you its meta, links, images more.

Published: 2025-08-01 | Origin: /r/ruby

The content discusses a Ruby gem called WebInspector that is used to scrape a web page and retrieve information such as its title, description, meta tags, links, and images. It emphasizes the importance of user feedback and provides documentation for available qualifiers. Instructions for adding the gem to an application's Gemfile or installing it are also included. The gem is released under the MIT License and there are indications of loading errors that require reloading the page.

Please try Puma 7.0.0.pre1

Published: 2025-08-01 | Origin: /r/ruby

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

If Odin Had Macros

Published: 2025-08-01 | Origin: /r/programming

In a recent discussion, the creator of the Odin programming language addressed inquiries about the potential introduction of hygienic macros or similar constructs. The response was a firm "No," indicating that while he is not against macros or metaprogramming, he believes that the design philosophy of Odin should remain pragmatic. He often encounters requests for macros that are based on non-existent problems rather than specific needs. He has found that most challenges can be addressed with alternative language constructs that better fit the issues at hand. Despite

Consistent MySQL structure.sql Diffs for Rails

Published: 2025-08-01 | Origin: /r/ruby

The author reflects on their experience transitioning from using PostgreSQL with schema.rb files to MySQL with structure.sql for a new project. They express a newfound appreciation for PostgreSQL's migration handling, which only updates relevant parts of the structure dump. In contrast, MySQL's structure dump includes the AUTO_INCREMENT option that varies with the data present during the dump, leading to inconsistent outputs when multiple team members work on the same codebase. Additionally, differences in MySQL clients, such as mysqldump

C++26 Reflections adventures & compile time UML

Published: 2025-08-01 | Origin: /r/programming

The author, a developer, shares their approach to learning a new codebase, which typically involves creating a UML diagram of its classes—though they often abandon this manual effort. With the introduction of C++26 reflections, the author explores the potential of generating UML diagrams at compile time, suggesting that the changes in C++26 are as significant as those introduced in C++11. They discuss the `lift` (`^^`) and `splice` (`[:]`) operators introduced in P2996, which

Every satellite orbiting earth and who owns them (2023)

Published: 2025-08-01 | Origin: Hacker News

The content discusses the presence of thousands of satellites currently orbiting Earth, highlighting their various uses for government, military, and civilian purposes, including Internet access, television, and GPS. It notes that over half of the 4,550 satellites are used for communications, with this number expected to grow as tech entrepreneurs seek to expand global Internet access. The Dewesoft research team analyzed data to identify the top satellite owners as of September 1, 2021, revealing that SpaceX leads with

Writing memory efficient C structs

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

The content by Tom Scheers discusses the use of structs in C to organize data efficiently, while highlighting the importance of understanding memory layout and alignment. It presents a basic struct for a "Monster," consisting of various data fields, and examines its size. Initially estimated at 89 bytes, the actual size is revealed to be 96 bytes due to the inclusion of 6 bytes of padding. The need for this padding relates to the alignment requirements of different data types, such as integers, booleans

Profiling without Source code – how I diagnosed Trackmania stuttering

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

The frustration of programmers often stems from the lack of access to source code for the software they use. This issue can be particularly vexing when problems arise that are out of their control. A personal example involves the game Trackmania (2020) by Ubisoft Nadeo, where the author experienced severe stuttering issues, causing significant frame rate drops during gameplay. Initially thought to be shader compilation stutters, the problem persisted even after repeated play. Given the game’s fast pace, such lag made achieving

What is gVisor?

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

The author reflects on a long hiatus from writing and expresses a desire to return to the practice. They discuss the concept of a tool or service that facilitates running arbitrary code via a shell, either through SSH or a web terminal, and ponder how these tools isolate users' code from one another. Initially, this leads to the thought of Docker, as containers are often used for such isolation. However, the author raises concerns about security, noting that Docker containers share the same operating system kernel, which may

The anti-abundance critique on housing is wrong

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

The book "Abundance" has faced significant criticism from the antitrust movement, primarily from the left, which argues that major societal issues stem from monopolies and corporate corruption. In the context of housing, some commentators, including Ezra Klein and the author, attribute barriers to homebuilding to legal restrictions like zoning laws, a view supported by many economists. In contrast, antitrust advocates like Matt Stoller argue that large homebuilders manipulate the market by reducing housing supply to increase profits. Researchers have disputed this

LLM Embeddings Explained: A Visual and Intuitive Guide

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

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

Why I'm taking events on the road this fall

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

The author reflects on their job-seeking experiences since 2007, emphasizing the importance of networking in finding career opportunities. They express concern that the pandemic has disrupted the systems that foster these connections, with online interactions failing to replicate the serendipitous in-person encounters that often lead to career advancements. In response, they are organizing "XO Ruby," a series of regional gatherings designed to connect local rubyists or those interested in Ruby programming. These smaller events aim to facilitate meaningful conversations and relationships that could

Slow

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

The content discusses long-term projects undertaken by humans that require extensive time to solve complex problems, emphasizing goal-directed endeavors rather than spontaneous changes. Examples showcased include mathematical proofs like Fermat's Last Theorem, monumental architecture such as Notre Dame and the ongoing Sagrada Familia, and significant longitudinal studies such as the Framingham Heart Study and the Cape Grim Air Archive. The list highlights commonalities with shorter-term projects and reflects on how institutions can be structured to address these enduring challenges. Notably, it

Maybe the Fastest Disk Usage Program on macOS

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

In July 2025, the author announced the creation of "dumac," a du -sh clone for macOS that outperforms existing tools, being 6.4 times faster than the traditional "du" and 2.58 times faster than "diskus" when using a warmed disk cache. The performance boost is attributed to the use of Tokio tasks and macOS-specific syscalls like getattrlistbulk, which enhance efficiency compared to standard POSIX APIs used by diskus.

Gemini Embedding: Powering RAG and context engineering

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

Since the launch of the Gemini Embedding text model, developers have quickly adopted it for advanced AI applications. Its capabilities extend beyond traditional uses like classification and semantic search to include context engineering, which enhances AI agents' operational context by integrating essential information such as documents and conversation histories. Several organizations are successfully employing the Gemini Embedding model. For instance, Box is using it in its content management platform to answer questions and extract insights from complex documents, achieving an 81% accuracy rate, with improved multilingual

QUIC for the kernel

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

QUIC was developed to solve several issues associated with TCP in modern internet usage. The traditional TCP connection setup involves a three-way handshake that adds latency, slowing down data retrieval, such as loading a video. Additionally, TCP's structure does not handle multiple simultaneous data streams well and is susceptible to head-of-line blocking, where the loss of a single packet delays all subsequent packets. Furthermore, TCP transmits connection metadata in plaintext, leading to potential information leaks and making it vulnerable to filtering by middleboxes,

6 weeks of Claude Code

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

The author reflects on how their experience with Claude Code has transformed their approach to writing and managing code. Although they maintain their coding quality, they now enjoy a newfound freedom of expression that allows them to create entire scenes quickly, rather than writing line by line. They liken this shift in programming to the "introduction of photography," suggesting that traditional coding methods feel less appealing in comparison. The author acknowledges the societal changes brought about by large language models (LLMs), expressing concern over potential social damages while

Ubiquiti launches UniFi OS Server for self-hosting

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

Ubiquiti has launched UniFi OS Server in Early Access, enabling users to self-host the complete UniFi network stack on their own hardware, with initial support for UniFi Network and Innerspace. Additionally, UniFi Identity can now be run on UniFi OS Server, a capability that wasn't available with the previous self-hosted UniFi Network server. Installation requirements include various operating systems such as Windows (both arm64 and x64), macOS (Intel and ARM), and Linux (