| News Nug |
|---|
|
My favourite small hash table Published: 2025-12-09 | Origin: /r/programming The author discusses a specific hash table design known as Robin Hood open-addressing using linear probing and a power-of-two table size. The design integrates several properties for efficiency: each table slot can either be empty or hold a key/value pair stored as a 64-bit integer, where the low 32 bits represent the key and the high 32 bits represent the value. This allows for the use of the value 0 to denote an empty slot, eliminating the need for special values for tombstones. |
|
How well do you really understand C++ type deduction? Published: 2025-12-09 | Origin: /r/programming The post discusses the use of the `auto` keyword in C++ for type deduction, presenting a series of coding examples for readers to determine the deduced types. Readers are encouraged to identify cases where the code might not compile, and the examples increase in complexity. Topics covered include basic assignments, handling of references and CV-qualifiers, advanced concepts like forwarding references and lambda expressions, and the challenges of type deduction with lambda captures and structured binding. The author provides resources for further exploration, invites readers |
|
Australia begins enforcing world-first teen social media ban Published: 2025-12-09 | Origin: Hacker News Failed to fetch content - HTTP Status - 401 |
|
Solving the n+1 Problem in Postgres with psycopg and pydantic Published: 2025-12-09 | Origin: /r/programming Sure! Please provide the content you'd like me to summarize. |
|
If you're going to vibe code, why not do it in C? Published: 2025-12-09 | Origin: Hacker News Stephen Ramsay expresses his passion for programming and his disdain for "vibe coding," which he feels detracts from the joy and satisfaction of the coding process. He reflects on his two-decade teaching career, emphasizing his pride in transforming non-programmers into programmers. Ramsay likens programming to solving a complex crossword puzzle that brings joy when completed, but feels that vibe coding diminishes that experience, making him feel as though he hasn't truly accomplished anything. He acknowledges the challenges of understanding programming at a |
|
PeerTube is recognized as a digital public good by Digital Public Goods Alliance Published: 2025-12-09 | Origin: Hacker News PeerTube is an open-source platform for hosting and sharing videos and live streams, developed by Framasoft and licensed under AGPL-3.0. It is available in various languages and has support from several institutions, including the French Ministry of National Education and various universities. The platform is evaluated annually for compliance with the DPG Standard, and recent evaluations show positive results. The last update on PeerTube's status as a DPG was documented on October 7, 2025, by reviewer |
|
Using a piece tree to implement a lazy-loading text editor, and where this idea comes from originally Published: 2025-12-09 | Origin: /r/programming Fresh utilizes a piece tree, or piece table, for text storage, a concept developed in the early 1970s by J. Strother Moore and Bob Boyer in their "77-Editor." This method focuses on structure-sharing to optimize text editing without modifying original files, which was crucial for early systems with limited RAM. Charles Simonyi later adapted the idea at Xerox PARC for the Bravo editor and subsequently for Microsoft Word. In 2018, VS Code implemented piece tables to replace |
|
Badge System Evolution: Building From Simple to Scalable (Part 1) Published: 2025-12-09 | Origin: /r/programming The content discusses the importance of gamification, particularly through badge systems, in enhancing user engagement across various platforms like learning, fitness, and productivity applications. The series starts with the basics of implementing a simple badge system focused on recording accomplishments without unnecessary complexity. Initially, badges can be hardcoded into business logic, making implementation straightforward for early-stage products. However, as applications grow, this approach reveals limitations, leading to the need for progress tracking and dynamic badge management. The first major improvement involves supporting badges that |
|
Handsdown one of the coolest 3D websites Published: 2025-12-09 | Origin: Hacker News Bruno Simon, a creative developer specializing in web design, invites visitors to explore his portfolio in an interactive 3D environment. The server is currently offline, preventing score saving and the display of visitor messages, referred to as "whispers." Up to 30 messages can be left, but new ones replace old ones, and users can only submit one while adhering to a character limit and guidelines against inappropriate content. The portfolio utilizes Three.js, a library for 3D rendering, highlighting contributions from |
|
How do you modernize a legacy tech stack without a complete rewrite? Published: 2025-12-09 | Origin: /r/programming The content discusses the Strangler Fig pattern, a method for incrementally migrating a legacy system to a new application by gradually replacing specific functionalities with new services. This approach allows the old system to be gradually suppressed and ultimately decommissioned, making the transition smoother for clients who can continue using the existing interface while the migration occurs. It addresses the challenges of maintaining two versions of an application and ensures minimal disruption by routing requests through a façade (proxy) that manages interactions between the new and old systems during modernization |
|
Show HN: Gemini Pro 3 hallucinates the HN front page 10 years from now Published: 2025-12-09 | Origin: Hacker News Of course! Please provide the content you'd like summarized. |
|
Ruby and the singleton pattern don't get along Published: 2025-12-09 | Origin: /r/ruby In the article by Gregory Brown, the author discusses the challenges in implementing the Singleton design pattern in Ruby, noting that while many design patterns have elegant translations in Ruby, the Singleton pattern does not. The Singleton pattern is described as a means to create global objects that do not need explicit instantiation, typically used for single instances needed throughout an application, such as configuration data or logging systems. The author acknowledges that the Math module serves as an example of a singleton object in Ruby. Despite various methods available to |
|
Mistral releases Devstral2 and Mistral Vibe CLI Published: 2025-12-09 | Origin: Hacker News Mistral AI has released Devstral 2, a next-generation open-source coding model available in two sizes: Devstral 2 (123B parameters) and Devstral Small 2 (24B parameters). Both models are designed to enhance distributed intelligence and are available under permissive licenses, with Devstral 2 under a modified MIT license and Devstral Small 2 under Apache 2.0. Devstral 2 offers state-of-the-art performance, scoring |
|
2 years with Shape-Up, and why we switched back Published: 2025-12-09 | Origin: /r/programming After two years of using the Shape-Up software development methodology, Customaite decided to discontinue it due to its rigid structure not aligning with their evolving needs. Although they were attracted to Shape-Up's promise of longer focus periods and value-based prioritization to address ongoing project challenges, they ultimately found that projects often extended beyond planned sprints, leading to an accumulation of work-in-progress. Shape-Up, created by Basecamp, is characterized by 6-week development cycles followed by 2-week cooldown periods, |
|
UringMachine Benchmarks Published: 2025-12-09 | Origin: /r/ruby The content emphasizes that all feedback is valued and taken seriously. It also mentions that more information can be found in the documentation regarding available qualifiers. Additionally, there are alerts indicating an error in loading the page, prompting the user to reload. |
|
Why Circuit Breaker Recovery Needs Coordination Published: 2025-12-09 | Origin: /r/ruby The blog post discusses the challenges of implementing circuit breakers in systems with concurrent execution, emphasizing that while the state machine (CLOSED, OPEN, HALF-OPEN) is simple, coordinating recovery probes among multiple threads or servers is complex. The half-open state is designed to determine if a downstream service has recovered, typically assuming only one probe at a time. However, when multiple workers probe simultaneously after a failure, they may all see the same eligibility for probing and send requests at once, leading to a scenario |
|
How Google Maps allocates survival across London's restaurants Published: 2025-12-09 | Origin: Hacker News The author sought restaurant recommendations in Greater London and, frustrated with conventional methods like Google Maps, decided to scrape data and create a machine-learning model. Initially focused on finding good dining options, the project morphed into an exploration of how digital platforms influence economic survival in cities. The analysis revealed that Google's restaurant listings are shaped by an algorithmic market rather than simply reflecting consumer preferences. While Google Maps appears to index demand, it actively organizes it through a ranking system based on relevance, distance, and prominence |
|
Modern Walkmans Published: 2025-12-09 | Origin: Hacker News The Toshiba wireless cassette player, KCS-315, is designed for retro music lovers, allowing playback of cassette tapes for approximately 16 hours using 2 AA alkaline batteries or through USB power. It features Bluetooth capability for wireless listening with earphones, as well as FM/AM radio playback, and incorporates a Voice Activation System and Automatic Stop System. Weighing 230g, it has a retro silver design and delivers realistic sound with virtual surround sound, ultra-low Wow and Flutter, and high |
|
The Lost Machine Automats and Self-Service Cafeterias of NYC (2023) Published: 2025-12-09 | Origin: Hacker News The content discusses the historical significance of automats and self-service cafeterias in New York City, highlighting their role in the city's dining culture during the early to mid-20th century. Automats, pioneered by Horn & Hardart, were self-service restaurants featuring coin-operated machines for food and drink, becoming popular alongside self-service cafeterias. The lament of the former Municipal Art Society president, Kent L. Barwick, underscores the loss of these dining establishments as the last automat closed in 1991 |
|
Horses: AI progress is steady. Human equivalence is sudden Published: 2025-12-09 | Origin: Hacker News In a talk that transitions from horses to chess to AI, the speaker compares developments in technology across different eras. They note that steam engines improved steadily over 200 years without immediate impact on horses, which saw a sudden decline (90% disappearance) between 1930 and 1950. Similarly, in chess, computers improved gradually over 40 years, resulting in a surprising turn where human grandmasters lost 90% of matches against computers within a decade. When discussing AI, the speaker highlights a |