News Nug |
---|
Uv format: Code Formatting Comes to uv (experimentally) Published: 2025-08-21 | Origin: Hacker News The recent release of uv version 0.8.13 introduced a new experimental command called `uv format`, which simplifies Python code formatting by integrating it directly into the uv toolkit. This feature eliminates the need for multiple tools, as it utilizes Ruff's formatter to ensure consistent code styling. To use this command, make sure you are updated to uv 0.8.13 or later, and then format your project easily by running `uv format`, similar to the `ruff format` command. You |
Crimes with Python's Pattern Matching (2022) Published: 2025-08-21 | Origin: Hacker News Hillel Wayne discusses the Python feature `__subclasshook__`, which allows Abstract Base Classes (ABCs) to determine what counts as a subclass, even if the subclass does not specifically acknowledge the ABC. He shares a previous use case of this feature to create non-monotonic types, such as classifying objects that lack an `__iter__` method as `NotIterable`. With the introduction of pattern matching in Python 3.10, Wayne explores the potential for ABCs |
DeepSeek-v3.1 Published: 2025-08-21 | Origin: Hacker News DeepSeek-V3.1 is introducing a new era of AI capabilities with its hybrid inference model, which operates in two modes: Think and Non-Think. The Think mode allows for quicker responses, outperforming its predecessor, DeepSeek-R1-0528. The model also features enhanced agent skills that improve tool usage and multi-step tasks post-training. Users can toggle between modes using the "DeepThink" button on the DeepSeek platform. Key features include: - A context window of 128 |
The Death of the Page Cache? From mmap() to NVMe-ZNS and User-Space File Systems Published: 2025-08-21 | Origin: /r/programming Of course! Please provide the content you'd like summarized, and I'll be happy to help. |
Technical Sales & Presales 101: The very basics Published: 2025-08-21 | Origin: /r/programming This article targets developers interested in transitioning to technical sales, focusing on the fundamentals of leads and their classifications. A lead refers to a potential customer, which can include individuals who signed up for demos or free trials. Leads come in various types: 1. **Marketing Qualified Lead (MQL)**: A lead that meets specific marketing criteria, such as job title or industry, indicating they fit the ideal customer profile. 2. **Sales Accepted Lead (SAL)**: A lead that both marketing and sales deem |
How to Get People Excited about Functional Programming • Russ Olsen & James Lewis Published: 2025-08-21 | Origin: /r/programming Sure! Please provide the content you'd like me to summarize. |
When AI optimizations miss the mark: A case study in array shape calculation Published: 2025-08-21 | Origin: /r/programming As a core database engineer at QuestDB, I frequently work with performance-sensitive code that handles large datasets. Recently, I faced a situation where an AI-suggested optimization for the `calculate_array_shape` function, which is essential for reading Apache Parquet files and determining array dimensions, actually worsened performance. This experience underscored the significance of benchmarking real-world performance rather than depending on theoretical enhancements. The initial version of `calculate_array_shape` was simple but inefficient in terms of CPU usage |
To Infinity… But Not Beyond! Published: 2025-08-21 | Origin: /r/programming In a recent post on meyerweb, the author delves into the use of the infinity keyword in CSS for manipulating various text properties, building on previous discussions about font sizes and line heights. The exploration extends to properties such as text indents, letter spacing, and word spacing, which can lead to interesting results, particularly regarding horizontal overflow and visible text behavior. While the visual output remains consistent across different CSS adjustments, differences emerge when examining computed values in browsers. Safari and Firefox show internal consistency |
Hokusai Native - Embedded Ruby GUIs for Mac and Linux Published: 2025-08-21 | Origin: /r/ruby The content discusses the Hokusai Native project, which is currently in beta and serves as a proof of concept for building applications. The program downloads dependencies and generates a package (`package.tar.gz`), but requires specific setup, including the `HOKUSAI_RUBY_HOME` environment variable pointing to the Truffle Ruby installation. While Hokusai is cross-platform, Hokusai Native is limited to the platforms supported by GraalVM and TruffleRuby. It notes that due to changes |
What if every city had a London Overground? Published: 2025-08-21 | Origin: Hacker News The content discusses the significance and experience of underground and Overground train networks in London. The Tube, or London Underground, is the world’s oldest rapid transit system, handling up to five million journeys daily and recognized by its iconic red and blue logo. However, many Londoners are now favoring the Overground train network, characterized by its spacious, airy, and quieter environment compared to the cramped and often uncomfortable Tube. While the Tube's older infrastructure leads to issues like poor air quality and overheating |
The two versions of Parquet Published: 2025-08-21 | Origin: Hacker News Jerolba's blog discusses a recent article by the creators of DuckDB, highlighting issues with Query Engines that process Parquet files, stating that these engines hinder the format's evolution by not fully supporting the latest specifications. The author shares personal experiences related to the incompatibility of tools within the ecosystem, specifically mentioning their work on Carpet and the challenges faced when trying to utilize version 2 of the Parquet format. They found that not all tools, like Pandas in Python, are updated to handle |
Netflix Revamps Tudum’s CQRS Architecture with RAW Hollow In-Memory Object Store Published: 2025-08-21 | Origin: /r/programming The content provides a monthly overview specifically tailored for architects and aspiring architects, focusing on knowledge and innovation in professional software development. Featured discussions include: 1. **Senyo Simpson** on Rust programming, highlighting its core values that promote "fearless programming," while addressing its complexities and optimal use cases for long-term projects. 2. **Sam Newman** shares insights into distributed computing, emphasizing the importance of managing timeouts, retries, and idempotency, and offers practical strategies like implementing request IDs and server |
Token Ruby - Issue 3 Published: 2025-08-21 | Origin: /r/ruby The third issue of Token Ruby has reached over 100 subscribers. The author is experimenting with a new AI stack, transitioning to Zed and Claude Code from Cursor and using Gemini instead of ChatGPT for daily tasks, noting an improvement in Gemini Pro. They invite readers to share their AI coding setups by replying to the email. The author has also recognized excessive time spent on X and YouTube and decided to use a timed lockbox to reduce screen time, recommending it for others. A humorous note is |
'Reading crisis' prompts Denmark to end 25% tax on books Published: 2025-08-21 | Origin: Hacker News Denmark's government plans to eliminate the 25% sales tax on books in response to a "reading crisis." This tax is the highest in Europe and contrasts with countries like Britain, which have no sales tax on books. Culture Minister Jakob Engel-Schmidt highlighted the urgency of addressing declining reading skills, noting that 24% of Danish 15-year-olds can't understand a simple text, a rise over the past decade. The tax cut, which will cost the government approximately 330 million kroner ($51 |
Contrasting Data and Objects (2018) Published: 2025-08-21 | Origin: Hacker News The author expresses skepticism about the efficacy of current programming languages, suggesting they fundamentally fail in important ways. They emphasize a distinction between data and objects, highlighting the complexities involved in representing values versus entities with identity. The text discusses issues such as mutability, the necessity of getters and setters, serialization, and deserialization, which can alter object identity. Additionally, the author points to design choices that languages make regarding the representation of objects, such as fixed behaviors (interfaces) versus fixed variants (algebraic |
how to decide on the sequence of computable numbers Published: 2025-08-21 | Origin: /r/programming Academia.edu has ceased support for Internet Explorer, advising users to upgrade their browsers for better performance and security. The paper discussed refutes points from Alan Turing's work on computable numbers, particularly the application of the diagonal process. It presents an alternative method for computing direct diagonals that avoids infinite recursion and decision paradoxes. By utilizing techniques for resolving halting paradoxes, the paper aims to correct Turing's decision machine (𝓓) to compute a direct diagonal, while also |
I've never had a real adversary Published: 2025-08-21 | Origin: Hacker News The text discusses the misconceptions around adversarial situations in everyday life, single-player video games, and online gaming. The author argues that interactions in daily life, such as negotiating prices for donuts, are not truly adversarial since both parties generally want a mutually beneficial outcome. Similarly, in single-player games, challenges presented by antagonists (like an evil emperor) are not real adversaries, as they are designed by developers to provide players with a challenge that the player actually desires. While online games like chess |
A statistical analysis of Rotten Tomatoes Published: 2025-08-21 | Origin: Hacker News The author reflects on their recent experience with hotel cable television, where they observed numerous commercials promoting upcoming movies, all boasting "Certified Fresh" ratings from Rotten Tomatoes. This led the author to question the validity of these ratings, considering two possibilities: either cinema has reached a peak of excellence, or Rotten Tomatoes itself has been compromised, potentially due to corporate influence. The author suggests that the situation may lean towards the latter, indicating that the site's reputation as an objective judge of film quality may have been undermined |
Code review can be better Published: 2025-08-20 | Origin: Hacker News The author discusses their dissatisfaction with GitHub’s code review process, highlighting specific shortcomings, particularly its poor support for stacked pull requests and interdiff reviews. They propose an alternative approach using a tool called git-review, noting that their main reason for exploring this tool is not interdiff but rather their preference for reviewing code in a local environment, akin to how they write code. The author prefers to pull the source branch locally where they can manipulate the code seamlessly using their sophisticated editor, which allows for thorough |
A Brief Look at the Mathematics of Structure Packing Published: 2025-08-20 | Origin: /r/programming The content discusses the necessity of JavaScript for rendering math equations using MathJax, highlighting that viewing raw LaTeX is not visually appealing. The author considered server-side rendering as an alternative but prioritized supporting accessibility features for MathJax instead. In a separate discussion, it addresses the memory layout of structures in C and how it can vary based on the order of member declarations. The author notes that while typically, organizing members from largest to smallest alignment can minimize size, this is not a universal |