News Nug
Vim in Zed: Improving the experience (The 2025 Roadmap)

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

Conrad Irwin discusses the improvements made to Zed’s Vim mode as of January 22, 2025, highlighting the introduction of the ! operator and enhancements to the command palette with g// and v// commands. There is also progress in integrating popular Vim plugins like vim-surround and tree-sitter text objects. Irwin emphasizes that for regular Vim users, Zed now replicates many of the familiar functionalities of Vim. Looking ahead to 2025, he identifies three main focus

How I open-sourced my secret access tokens from GitHub, Slack and NPM and who of them cares about it | Vue & Node admin panel framework

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

The content describes a CI pipeline using Woodpecker CI that runs builds, publishes packages to NPM, creates GitHub releases, and sends Slack notifications about releases. Initially, secrets were stored in the CI's internal Vault, but the author decided to switch to Infisical for better centralized secrets management while moving plugins to separate repositories. After exporting secrets to a .vault.env file and successfully running the first build, issues arose when a plugin failed due to an invalid NPM token, which had unexpectedly

Every System is a Log: Avoiding coordination in distributed applications

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

The article by Stephan Ewen, Jack Kleeman, and Giselle van Dongen discusses the complexities of building resilient distributed applications. It emphasizes the need for developers to constantly anticipate potential failures, such as service crashes, unavailable APIs, race conditions, and process issues, which leads to a focus on failover strategies, retries, and coordination between various components. Unfortunately, many applications struggle to handle these failures correctly. To alleviate these challenges, the authors propose a radical simplification that involves avoiding distributed coordination.

Two features Typescript will never include

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

The article discusses two features that TypeScript does not support: negated types and nominal (or branded) types. Despite being a powerful tool, TypeScript has limitations due to its alignment with Set Theory, which includes operations like Union and Intersection, but lacks support for type subtraction (negated types). For instance, you cannot specify a type like "string - 'click'," although there are workarounds, particularly when using generic function arguments. TypeScript's structural type system focuses on the data's

Two different URLs in one QR code

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

Of course! Please provide the content you would like me to summarize, and I will help you with that.

How we scaled Slack to support 1000s of developers

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

Railway develops software infrastructure aimed at simplifying deployment and scaling for teams by utilizing Docker images or GitHub repositories. Since its inception, the company has grown to serve over 4,000 teams, including notable clients like Automattic and Alchemy. Railway has implemented a system where customers reaching specific growth milestones automatically receive a Slack channel and enhanced support. This integration allows for faster response times and engagement compared to traditional email, with customers often rapidly progressing to significant deployments with minimal involvement from the Railway Success team

Almost got phished from a @google.com email. Google Workspace domain verification likely broken.

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

The content describes a sophisticated phishing attack targeting Google account users. The author recounts a call from someone named "Chloe," who claimed to be a Google Workspace engineer. She warned them that their account had been compromised and asked if they had logged in from Frankfurt, Germany. The caller provided what seemed to be legitimate confirmation via an email from an official Google URL (g.co), which initially confused the author due to the email's unusual address format. Despite sounding credible, the author became suspicious and realized

UI is hell: four-function calculators

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

The author has a fascination with the history of calculators, which were some of the earliest portable electronics and the first digital devices in many households. They recount building their own backward-compatible button-operated calculator and highlight the complexities involved beyond initial assumptions. A basic calculator includes ten digit keys, a decimal point, four arithmetic operators, an equals button, and a reset key. The proposed implementation utilizes three variables: an input register, an accumulator, and an operator selector. User inputs sequentially affect the calculations,

Weierstrass's Monster

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

The excerpt discusses the historical evolution of calculus from its informal roots to a more rigorous foundation. Initially, calculus, developed in the 17th century, relied on intuitive concepts. French mathematicians focused on applying calculus in physics, while German mathematicians, in the 19th century, critiqued and sought to refine it by finding counterexamples. The article highlights Karl Weierstrass, who, despite initial struggles and outside pressures, contributed to establishing a more stable mathematical framework for calculus. The

Supercharge vector search with ColBERT rerank in PostgreSQL

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

Traditional vector search methods typically use sentence embeddings, which can lose fine-grained token-level details. ColBERT addresses this limitation by utilizing token-level multi-vectors, maintaining more nuanced information and improving search accuracy through contextual late interaction at the token level. While this method requires more computational resources and storage, making it challenging for large datasets, a potential solution is to combine sentence-level vector search with token-level late interaction reranking for efficiency and quality. The multi-vector approach can also be applied beyond text retrieval

rvz-convert: A wrapper to convert Dolphin RVZ game backups to WBFS images

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

The content emphasizes the importance of user feedback and outlines the process for converting RVZ files to formats like WBFS and ISO. It suggests using a Makefile to build the project, highlighting the need to include multithreading parameters due to the complexity of the Dolphin project. Instructions for installation after setup are provided, along with a note about ongoing efforts to reduce dependencies, particularly with Qt6.

A QR code that sends you to a different destination – lenticular and adversarial

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

Of course! Please provide the content you'd like summarized, and I'll be happy to help.

‘Spawn Me a PR’ Isn't Ready for Large Codebases: The Context Barrier to AI Code Generation

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

The challenge of practical code generation using AI, particularly through Large Language Models (LLMs), remains significant. While LLMs can generate clean code samples, they cannot reliably create intricate features for comprehensive codebases due to the complex context of real-world development that includes domain logic, legacy architectures, and specific business constraints. Although AI-driven products like Cursor, Bolt.new, and Vercel V0 have gained attention for their functionalities and funding, they struggle with the context issue, making them more suitable for

Shifting Cyber Norms: Microsoft security POST-ing to you - Bert Hubert's writings

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

Bert Hubert discusses the challenges posed by email security scanners, particularly from Microsoft, which now execute JavaScript in email links and allow POST requests, creating potential security risks. This shift complicates single-use sign-on and email confirmation systems. Hubert reflects on changing cyber norms since his early internet days, noting how what was once considered secure has evolved. His recent experience while building a site for monitoring the Dutch parliament highlights the frustrations with these security changes, as users faced issues with password-less sign-on due to

The Mythical IO-Bound Rails App

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

The author intends to write a post about Pitchfork, discussing its origins, characteristics, and future. Before diving into that, they address common perceptions about Rails performance and its reliance on databases. While it is often said that database bottlenecks hinder Rails applications because they are typically I/O bound, the author clarifies that scaling Rails applications is primarily about expanding server capacity since Rails is stateless and can scale horizontally. However, relational databases pose more significant challenges for scaling. Although vertical scaling (upgrading

Building a Medieval Castle from Scratch

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

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

Llama.vim – Local LLM-assisted text completion

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

The content discusses a Vim plugin called "llama.vim" designed for local LLM-assisted code and text completion. Users can install the plugin by adding it to their `.vimrc` and ensuring that a Llama.cpp server instance is running. The documentation provides information on configuration based on the user's VRAM. The plugin works with FIM-compatible models and offers performance statistics for suggestions, such as token usage and generation time. It is designed to maintain global context across files while being lightweight and efficient

Operator research preview

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

Failed to fetch content - HTTP Status - 403

Thank HN: My bootstrapped startup got acquired today

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

Paras Chopra, the founder of VWO (a successful A/B testing platform launched in 2009 as a Show HN), recently sold the company for $200 million to a private equity firm. He reflected on his journey in an acknowledgment to the Hacker News (HN) community, expressing gratitude for the inspiration and support he received, particularly from influential figures like @patio11. Chopra credited HN for helping him reach product-market fit and noted that he continuously seeks advice from the platform. He

Opengrep - the open source code scanner forked from Semgrep

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

The new Opengrep repository is available for access. Recently, Semgrep changed its licensing model, which has sparked disappointment. Despite having always appreciated Semgrep's scanning capabilities and the work of its community advocates and researchers, the licensing change is viewed negatively as it may hinder competition in the market. The author believes that effective competition should come from providing better paid offerings rather than limiting access to open-source licenses. They express excitement for OpenGrep, an open-source alternative supported by multiple security vendors, and