News Nug |
---|
Way too many ways to wait on a child process with a timeout Published: 2024-11-10 | Origin: /r/programming The article discusses the need for launching programs in a terminal using a retry loop due to potential failures, particularly in distributed systems that may rely on unreliable remote services. It highlights the common practice of retrying operations and introduces a tool being developed called "ueb" (micro exponential backoff). This tool will attempt to execute a command up to 10 times, with an initial wait of 128 milliseconds that doubles with each attempt, allowing the subprocess more time to succeed. The article notes that for monitoring retries |
IMG_0416 Published: 2024-11-10 | Origin: Hacker News Between 2009 and 2012, Apple iPhones and iPod Touches featured a "Send to YouTube" function that enabled users to upload videos directly to YouTube from the Photos app. This capability led to a 1700% increase in video uploads on YouTube in early 2009, attributed to Apple's integration with the platform. However, Apple removed its app in 2012, ending this partnership. A notable legacy of this feature is how Apple assigns filenames to videos using |
I built a list of Open Source Boilerplates :) Published: 2024-11-10 | Origin: /r/programming The content emphasizes the importance of user feedback and encourages contributions to a curated list of open source boilerplates and starter templates designed to facilitate the start of new projects. It invites users to check the documentation for available qualifiers and to read the contribution guidelines before participating. |
MdBook – a command line tool to create books with Markdown Published: 2024-11-10 | Origin: Hacker News mdBook is a command line tool designed for creating books using Markdown, making it suitable for product documentation, tutorials, and course materials with an attractive and navigable layout. It is utilized by the Rust programming language project, exemplified by The Rust Programming Language book. As a free and open-source tool, mdBook's source code is available on GitHub, where users can also report issues and suggest features. Contributions from the community are welcomed, and potential contributors are encouraged to refer to the CONTRIBUTING |
Pi Chess Board Published: 2024-11-10 | Origin: Hacker News Of course! Please provide the content you'd like me to summarize. |
Chute: Scalable, Lock-Free MPMC Broadcast Queue with a Custom Algorithm. Published: 2024-11-10 | Origin: /r/programming The content discusses a lock-free broadcast queue designed for multi-producer and multi-consumer (mpmc/spmc) scenarios. It emphasizes the performance advantages, such as fast read operations by allowing consumers to read data slices atomically. The library ensures that all messages from a single producer are ordered, although messages from different threads may interleave. Unlike traditional techniques that use mutexes, this implementation is lockless, facilitating more efficient concurrent access. The queue's behavior allows for indefinite growth if any consumer reads |
Stop redundant engineering debates with Architectural Decision Records Published: 2024-11-10 | Origin: /r/programming Engineering teams often find it exhausting to repeatedly revisit past decisions, which can hinder progress. While challenging established choices is important when supported by data, constant arguments over prior decisions can stall development, especially close to launch. Architectural Decision Records (ADRs) provide a solution by documenting decisions in a structured manner, thereby reducing redundant discussions and maintaining focus on new challenges. An ADR captures key architectural decisions, detailing the options considered, decision-makers, context, pros and cons, and the final choice. This documentation preserves |
Web Locks API Published: 2024-11-10 | Origin: Hacker News The content serves as a comprehensive reference for web developers, covering various aspects of web technology. It discusses the structure of web content, styles through CSS, and the use of JavaScript as a general-purpose scripting language. It also highlights key protocols for resource transmission and interfaces for web application development, emphasizing the creation of browser extensions. Additionally, the content promotes learning web development, including HTML structuring, CSS styling, scripting, and ensuring web accessibility. It outlines features of MDN (Mozilla Developer Network), |
OpenID Connect specifications published as ISO standards Published: 2024-11-10 | Origin: Hacker News The OpenID Connect specifications have been officially published as ISO/IEC standards, as announced by Mike Jones on October 1, 2024. The submission for publication was made in December 2023 by the OpenID Foundation, and the publication is expected to enhance broader adoption of OpenID Connect globally, particularly in regions with legal standards requirements. Prior to submission, the OpenID Connect working group addressed all known errata to ensure the specifications were accurate. Following this successful publication, the OpenID Foundation |
Engineering With Java: Digest #40 Published: 2024-11-10 | Origin: /r/programming The content highlights various topics relevant to Java development, including modern concurrency with virtual threads, testing strategies using REST-assured, and libraries like Thymeleaf and Jakarta WebSocket for web application development. It encourages readers to enhance their skills and subscribe to a newsletter for weekly updates on Java and Spring Boot articles. Additionally, it mentions the promotion of JEP 491 to Proposed to Target status for JDK 24, aiming to improve Java's synchronized methods for virtual threads, which were introduced in J |
Hackers now use ZIP file concatenation to evade detection Published: 2024-11-10 | Origin: Hacker News In November 2024, Microsoft addressed critical security vulnerabilities by fixing four zero-day exploits and 89 other flaws, including issues causing blue screens and installation problems in Windows Server 2025. A new decryptor for ShrinkLocker ransomware has been released, recovering BitLocker passwords. Google introduced a feature on Pixel devices that analyzes phone conversations for potential scams. The NSO Group is reported to have exploited a WhatsApp zero-day following legal action. A botnet is using a GeoVision zero-day to |
GitQL 0.30.0 now support Composite types inspired by PostgreSQL Published: 2024-11-10 | Origin: /r/programming The content emphasizes the importance of user feedback and outlines the features of Git Query Language (GitQL), which is a SQL-like language designed for querying .git files. GitQL supports various SQL features, including grouping, ordering, and aggregation functions. GitQL is a tool developed using the GitQL SDK, which is an in-memory query engine that offers high customization options for types, schema, data providers, operators, and functions. Furthermore, it mentions that all keywords in GitQL are case-insensitive |
RISC-V Vector Extension overview Published: 2024-11-10 | Origin: /r/programming The text provides an overview of the RISC-V Vector extension (RVV) and compares it to common SIMD vector instruction sets like SSE, AVX, AVX-512, ARM Neon, and SVE. The RISC-V architecture supports multiple modes (32-bit, 64-bit, 128-bit) and extensions, such as the F extension for floating-point numbers. The RVV includes 302 instructions and four configurable load/store operations, with instructions grouped into three categories. RVV |
The Impossibility of Making an Elite Engineer Published: 2024-11-09 | Origin: /r/programming The author reflects on their six years of coaching engineers at Facebook, exploring why not everyone reaches elite status despite potential. They identify factors like bias and privilege affecting career advancement. Elite engineers navigate "Gates of Paradox" characterized by: 1. **Longevity/Diversity**: Successful engineers commit to projects long enough to understand the impact of their decisions while also engaging in diverse projects to gain broader insights. 2. **Success/Failure**: They find a balance between achieving success to build confidence |
Show HN: Visprex – Open-source, in-browser data visualisation tool for CSV files Published: 2024-11-09 | Origin: Hacker News Visprex is a lightweight data visualization tool designed to enhance statistical modeling and analytics workflows. It is ideal for students beginning their training in statistical modeling, as it eliminates the need to set up a computing environment or write complex visualization scripts. Additionally, it benefits data analysts by allowing for quick inspection of tabular data without concerns over data privacy, since no information is stored outside the browser. Users can easily visualize their data with just a few clicks after loading their dataset. |
NYC Subway Station Layouts Published: 2024-11-09 | Origin: Hacker News The message encourages readers to support a project by tipping the author through the Contact/Tip page, and notes that the project is powered by Squarespace. |
A New Chapter for RubyGems: How Ruby Central is Building a Sustainable Future Published: 2024-11-09 | Origin: /r/ruby RubyGems and Bundler are essential package management systems for Ruby applications, widely used by developers to simplify the sharing and installation of gem libraries. Established nearly two decades ago, these tools have significantly enhanced the Ruby ecosystem and are crucial for software engineers, especially in Rails development, during the initialization and deployment of applications. The article discusses the historical development of RubyGems, launched in 2004, addressing the need for standardized gem management, which quickly became vital as applications grew in complexity. Bund |
XMLStreamer: Python library designed for efficient, memory-friendly streaming and parsing of large XML feeds. Published: 2024-11-09 | Origin: /r/programming xmlstreamer is a Python library that efficiently streams and parses large XML data feeds from various sources, including HTTP, HTTPS, and FTP, without consuming significant memory. It handles decompression, encoding detection, tag-based itemization, and allows for optional filtering of items, making it suitable for real-time data processing and large datasets. To install xmlstreamer, use pip. Users can define custom filters, encoding mappings, and buffer sizes for performance optimization. By subclassing xmlstreamer.StreamInterpreter, |
Show HN: Jaws – a JavaScript to WASM ahead-of-time compiler Published: 2024-11-09 | Origin: Hacker News The content discusses Jaws, an experimental JavaScript to WebAssembly (WASM) compiler written in Rust. It aims to produce standalone WASM binaries executable without an interpreter, similar to the porffor compiler, but with a different approach. Currently, Jaws is not ready for production due to incomplete language features and built-in types, but the goal is to eventually support 100% of JavaScript. The author initiated this project during the development of a stress testing tool called Crows, which |
OpenCoder: Open Cookbook for Top-Tier Code Large Language Models Published: 2024-11-09 | Origin: Hacker News OpenCoder is a family of open and reproducible code large language models (LLMs) that achieve performance comparable to top-tier code models. It includes 1.5B and 8B base and chat models, supporting both English and Chinese. Trained from scratch on 2.5 trillion tokens—90% raw code and 10% code-related web data—OpenCoder provides more than just model weights and inference code. It offers reproducible training data, a complete data processing pipeline, |