| News Nug |
|---|
|
Kotlin's Rich Errors: Native, Typed Errors Without Exceptions Published: 2025-08-09 | Origin: /r/programming At KotlinConf 2025, the Kotlin team announced the introduction of Rich Errors with union types, enhancing error handling in Kotlin. This feature allows functions to return types such as String or Error, moving away from the conventional try-catch paradigm to a more explicit and type-safe approach. By incorporating errors directly into the type system, developers are encouraged to handle them proactively. While Kotlin currently offers Result<T> and many teams use Arrow's Either and Validated for error modeling, Rich Errors simplify error handling |
|
I Built a 64-bit VM with custom RISC architecture and compiler in Java Published: 2025-08-09 | Origin: /r/programming The content discusses the Triton-64 Virtual Machine (VM), a comprehensive 64-bit virtual machine system developed in Java with JavaFX. It features a custom CPU architecture, assembler, compiler, and development environment. The TriC programming language, specifically designed for Triton-64, simplifies writing programs compared to raw assembly code, supporting modern programming constructs while considering the VM's architecture. The TriC compiler translates TriC code into Triton-64 assembly and is built to generate efficient, readable |
|
Just built a tool that turns any app into a windows service - fully managed alternative to NSSM Published: 2025-08-09 | Origin: /r/programming The content emphasizes the importance of user feedback and outlines the features of Servy, a tool that allows users to run any application as a Windows service. Servy provides full control over aspects such as the working directory, startup type, logging, health checks, and parameters. It supports a graphical user interface (GUI) and a command-line interface (CLI) for easy management of Windows services. Unlike the built-in Windows service tool, which has limitations regarding the working directory, Servy allows users to specify |
|
The Article in the Most Languages Published: 2025-08-09 | Origin: Hacker News In late 2024, a Wikipedia article about artist David Woodard surprisingly became the most translated article, surpassing entries for countries and even Wikipedia itself, with 335 versions across different languages. This unusual occurrence attracted attention, particularly due to the involvement of a single user, “Swmmng”, who appeared to orchestrate a significant promotion campaign involving around 200 accounts and multiple proxy IPs. David Woodard, born in California in 1964, gained fame in the 1990 |
|
ohyaml.wtf | YAML Trivia to make you go wtf Published: 2025-08-09 | Origin: /r/programming Of course! Please provide the content you'd like summarized. |
|
Tesla used car prices keep plumetting, dips below average used car Published: 2025-08-09 | Origin: Hacker News Tesla used car prices are dropping significantly, now below the average used car prices in the U.S., despite Tesla being considered a premium brand. While the overall used car market has seen an increase in prices, Tesla's used car values have continued to decline—down 4.59% year-over-year. This trend began last year alongside a broader market downturn but has persisted even as the market began to recover. All Tesla models have seen price decreases, with the Model Y's performance particularly dragging down the |
|
What the windsurf sale means for the AI coding ecosystem Published: 2025-08-09 | Origin: Hacker News The founders of WindSurf experienced a remarkable journey, transforming their company into one of the fastest-growing SaaS businesses, reaching $82 million in annual recurring revenue (ARR) within eight months and attracting enterprise clients like Nvidia and Palantir. However, they sold the company to Cognition for $250 million—essentially valuing the business at $150 million excluding cash—just days after a failed $3 billion acquisition by OpenAI. Notably, on the same day OpenAI walked away, |
|
Efrit: A native elisp coding agent running in Emacs Published: 2025-08-08 | Origin: Hacker News The content discusses Efrit, a sophisticated AI coding assistant designed for Emacs that utilizes native Elisp programming. It emphasizes the importance of user feedback and offers a seamless integration through various interfaces for different tasks. Users can clone the repository, configure their API key, and test the setup within Emacs. Efrit features conversational continuity, allowing users to refine and modify previous work easily. The tool is built on the principle of Elisp-centricity, enabling direct access to Emacs' evaluation capabilities for enhanced |
|
Jim Lovell, Apollo 13 commander, has died Published: 2025-08-08 | Origin: Hacker News Acting NASA Administrator Sean Duffy issued a statement on the passing of Apollo astronaut Jim Lovell, who died at the age of 97 on August 7 in Lake Forest, Illinois. Duffy expressed condolences to Lovell's family, highlighting his inspirational life and contributions to NASA. Lovell played a significant role in pioneering Gemini missions and the Apollo program, notably as the Command Module Pilot for Apollo 8 and the commander of Apollo 13, showcasing his strength and innovation during critical missions. He |
|
I want everything local – Building my offline AI workspace Published: 2025-08-08 | Origin: Hacker News A friend expressed a desire for a fully local setup, devoid of cloud services and remote code execution. This prompted a discussion on creating a system that combines a Large Language Model (LLM) for chatting, Docker for code execution isolation, and a browser interface for usability. The goal was to execute tasks requiring privacy, like photo or video editing, entirely locally, without exposing data to platforms like OpenAI or Google. The development process, primarily conducted on Apple Silicon, aimed to create a native Mac application |
|
GitHub - isene/openai: A terminal interface for OpenAI Published: 2025-08-08 | Origin: /r/ruby The content discusses a modern terminal interface for OpenAI's API, highlighting version 2.1, which includes features such as chat window scrolling, enhanced user experience, and improved conversation management. It mentions that this version maintains compatibility with previous command-line usage while offering a new Text User Interface (TUI). Users are instructed to edit their configuration file and obtain their API key from OpenAI's platform. The project is in the public domain, allowing for modification and distribution. The interface is built using rc |
|
All known 49-year-old Apple-1 computer Published: 2025-08-08 | Origin: Hacker News The Apple-1 Registry is a non-profit website dedicated to the preservation and information sharing about the original Apple-1 computer. It provides detailed insights into the components of the Apple-1 mainboard and the extensive effort—over a thousand hours—invested in gathering information, contacting owners, and maintaining the complex website and database. The site promotes sharing and encourages visitors to link to it on social media or their websites. It emphasizes data privacy by not using cookies or ads and is hosted in the EU |
|
HTTP/1.1 must die: the desync endgame Published: 2025-08-08 | Origin: /r/programming The Burp Suite's web vulnerability scanner highlights the critical issues inherent in the HTTP/1.1 protocol, which is insecure and exposes millions of websites to risks, despite six years of attempted mitigations. A recent paper discusses new classes of HTTP desynchronization attacks that can compromise user credentials on a large scale, demonstrated through case studies affecting major platforms like Akamai, Cloudflare, and Netlify. The author presents an open-source toolkit for detecting parser discrepancies and vulnerabilities, which has helped earn over |
|
You don't really need monads Published: 2025-08-08 | Origin: /r/programming The piece discusses the overrated nature of monads in programming, particularly within functional programming contexts. It begins by acknowledging a common understanding of monads and their components through definitions and examples, specifically using the Maybe monad as an illustration. The author critiques the notion that monads do not compose, clarifying that while monads of the same type can be composed, achieving this requires specific templates to maintain coherence. This complexity often leads to the use of monad transformers. The overall message is a cautious |
|
The how and why of GitHub to Codeberg Published: 2025-08-08 | Origin: /r/programming The content outlines the process for migrating static websites from GitHub Pages to Codeberg using statichost.eu for reliable hosting. It emphasizes that Codeberg Pages is not recommended for critical uptime. Key steps include creating a personal access token for authentication if two-factor authentication (2FA) is enabled, which involves setting permissions for repository access. Once the migration is complete, the site will be live at a designated URL. For automatic updates, users need to set up a webhook that triggers updates on statich |
|
PEP 802 – Display Syntax for the Empty Set Published: 2025-08-08 | Origin: /r/programming The authors propose a new notation, {/}, for representing the empty set in Python, modeled after the mathematical symbol '∅'. This notation addresses the absence of a dedicated syntax for the empty set, which contrasts with existing notations for empty tuples, lists, and dictionaries. Currently, sets are the only built-in collection type without a specific empty collection representation, which can confuse beginners, especially those with a scientific or mathematical background. The proposal highlights the advantages of using {/}, such as avoiding name look |
|
Zero-day flaws in authentication, identity, authorization in HashiCorp Vault Published: 2025-08-08 | Origin: /r/programming Cyata will be present at Black Hat USA 2025, Booth 6316, and invites attendees to book meetings. In a recent study, Cyata's team, led by engineer Yarden Porat, assessed HashiCorp Vault—an essential tool for managing credentials and security tokens. During this investigation, they discovered nine previously unknown zero-day vulnerabilities, which were responsibly disclosed and patched in collaboration with HashiCorp. These vulnerabilities include mechanisms that bypass security lockouts, evade policy checks, enable |
|
HTTP is not simple Published: 2025-08-08 | Origin: /r/programming The author argues against the common perception that HTTP is a simple protocol, drawing on nearly three decades of experience with client-side code and involvement in the development of HTTP specifications. While HTTP/1 may seem straightforward due to its readable text format and simple use cases, the author believes the underlying mechanics are quite complex. Although tools like curl and browsers make it easy to interact with HTTP, the protocol's intricacies—such as its line-based structure and header limitations—complicate things. Additionally, the newer |
|
Keep API work local: Why offline-first beats cloud-based tools Published: 2025-08-08 | Origin: /r/programming The content discusses the challenges and risks associated with relying on cloud-based tools for API development, such as issues with server outages, outdated documentation, and data vulnerability. Key problems include dependence on internet connectivity, fragmented workflows due to switching between multiple tools, potential vendor lock-in from proprietary tools, and inefficiencies when cloud-hosted API docs don't align with live endpoints. To counter these issues, the piece advocates for an offline-first approach to API workflows, emphasizing the benefits of using local files. This method |
|
Tor: How a military project became a lifeline for privacy Published: 2025-08-08 | Origin: Hacker News The writer reflects on their experience during a train journey in the UK, where they encounter poor Wi-Fi and turn to the Tor Browser for online access. While Tor is often associated with the Dark Web, it is a legitimate tool funded partly by the U.S. government, enabling users, especially in restrictive regimes, to access the Internet anonymously. Tor works by encrypting and routing user signals through a global network of servers, making it challenging for governments to trace online activity. The article highlights the importance of |