Topic

Computer Science

Computer science discussions covering algorithms, data structures, computational theory, and CS education from developer communities.

What this topic tracks

  • Engineering practices and ecosystem debates
  • Tools, architecture, and implementation lessons
  • Relevant discussions from developer communities

Computer Science · 767 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

20 stories

Font Rendering from First Principles

mccloskeybr.com · 8 Feb

Algorithms · Programming Languages · Computer Science

The article explores font rendering from first principles, focusing on the TrueType (TTF) file format.

It details the complexity of parsing glyph data, handling quadratic Bezier curves, and the transition from raw bitmap rasterization to Signed Distance Fields (SDF) for high-quality scaling. The author documents building a custom implementation to understand lower-level text layout and rendering.

15 years of FP64 segmentation, and why the Blackwell Ultra breaks the pattern

nicolasdickenmann.com · 17 Feb

Artificial Intelligence · Hardware · Computer Science

Nvidia has historically used FP64 performance to segment consumer and enterprise GPUs.

While consumer cards like the RTX 5090 prioritize FP32, the AI boom is shifting enterprise focus toward low-precision tensor cores. New emulation techniques like the Ozaki scheme now allow high-precision math using low-precision hardware, potentially redefining the divide between gaming and datacenter silicon.

Markets are competitive if and only if P = NP

arxiv.org · 3 Jul

Artificial Intelligence · Economics · Computer Science

This paper establishes a fundamental tension between market efficiency and competition based on P vs NP.

It argues that if P = NP, collusion becomes sustainable through efficient detection, making markets less competitive. Conversely, P != NP supports competitive markets by rendering collusion unstable. AI advancement is currently shifting markets toward collusive regimes regardless of coordination.

Modern Rendering Culling Techniques

krupitskas.com · 16 Apr

Performance · Software Architecture · Computer Science

Effective game rendering relies on culling to prevent unnecessary work.

Techniques range from basic frustum and backface culling to advanced occlusion, GPU-driven cluster culling, and virtualized geometry like Unreal Engine 5's Nanite. Success comes from layering these methods, prioritizing simple geometric tests, and optimizing based on the specific bottleneck of the scene.

Pushing and Pulling: Three Reactivity Algorithms

jonathan-frere.com · 6 Mar

JavaScript · Software Architecture · Computer Science

The article explores three reactivity algorithms: push-based, pull-based, and a hybrid push-pull approach.

It evaluates them against efficiency, granularity, glitch prevention, and dynamic dependency requirements. The author highlights that the push-pull hybrid, used in many web frameworks, offers an optimal balance for complex systems like spreadsheets and GUIs.

Raspberry Pi Drag Race: Pi 1 to Pi 5 – Performance Comparison

the-diy-life.com · 22 Jan

Hardware · Performance · Computer Science

This comprehensive analysis traces the evolution of the Raspberry Pi hardware from the original 2012 model through to the Raspberry Pi 5.

The comparative study evaluates significant leaps in hardware architecture, highlighting the transition from single-core processors to high-performance quad-core systems and the introduction of critical features like WiFi, Bluetooth, USB 3.0, and PCIe ports. Performance testing reveals that the Raspberry Pi 5 is over 600 times faster in multicore tasks than the original model. Although power consumption has increased over thirteen years, efficiency—measured as performance per watt—has seen astronomical growth. The evaluation emphasizes the Raspberry Pi's journey from a basic hobbyist board to a powerful palm-sized computer capable of handling modern workloads like 1080P video playback and NVMe storage expansion.

Reinforcement Learning from Verifiable Rewards (eBook)

rlvrbook.com · 5 Dec

Artificial Intelligence · Large Language Models · Machine Learning · Education · Computer Science

Reinforcement Learning from Verifiable Rewards explains how models learn from checkable outcomes, executable feedback, formal validation, and other reliable verification signals.

The book examines what rewards can be verified, what they train, where RLVR succeeds, and where it fails. It progresses from introductory concepts to verifiers, reward shaping, reward hacking, frontier training recipes, multimodal and agentic systems, and open research problems. The author dictated or edited every chapter, while models helped with some drafts, structure, diagrams, and equations.

Looped Models are Fast Multi-Token Predictors

arxiv.org · 30 Nov

Artificial Intelligence · Deep Learning · Large Language Models · Machine Learning · Computer Science

Floodgates accelerates lossless decoding in looped language models by using shallow loops to draft multiple future tokens in parallel and deeper loops to verify them.

It appends mask-token suffixes and uses low-rank adaptation for parallel drafting, while verification conditions on a deep prefix cache. Tested across seven models, five benchmarks, varied batch sizes, and greedy or sampled decoding, it was fastest in most cases, achieving up to 7.5× speedup. The results attribute this capability to all-depth training.

Weight-Space Programming builds neural networks like a 1990s researcher

notesbylex.com · 17 Nov

Artificial Intelligence · Computer Vision · Deep Learning · Machine Learning · Computer Science

Weight-Space Programming experiments show LLMs constructing neural networks by encoding classical, hand-designed techniques into weights rather than learning conventionally.

Claude Fable 5.2 built a fixed 5,994-weight CNN for MNIST, progressively adding templates, stroke, corner, loop, and measured naive Bayes-style features, reaching 91.3% test accuracy in 50 steps. On Dogs vs. Cats it reached 61.6%. Analysis of Astra’s Go network similarly found a rule-based program compiled into 1.48 million weights, improved through manual rule tuning.

Memorilla: Latent Semantic Memory for LLMs

arxiv.org · 6 Nov

Artificial Intelligence · Large Language Models · Machine Learning · Computer Science · RAG

Memorilla is a memory system that compresses information from entire document collections into 16 query-dependent memory tokens for frozen LLMs.

It encodes documents once into reusable embeddings, then retrieves query-specific information in the LLM’s input embedding space. It outperformed baselines such as Mem0 and MemoRAG on five of eight benchmarks; on FactKG, it achieved 84.33% accuracy versus 80.43% for full-context inference while using 108 times fewer tokens. In TextWorld, success improved from 18.6% to 24.2%.

Atom is better than RSS, in ways that matter

chrismorgan.info · 1 Aug

News · History · Computer Science

Atom is technically superior to RSS, offering unambiguous content handling and flexible title encoding that RSS lacks.

While RSS persists, particularly in podcasting due to Apple's early influence, it remains a fragmented mess. Atom provides robust structures like 'text constructs,' making it the clearly better choice for modern syndication and reliable content representation.

Meet Alice. Alice is impatient

brooker.co.za · 20 Jun

Observability · Performance · Computer Science

This article explains the inspection paradox, where service providers and users perceive latency or outage times differently.

Because users experience time weighted by event duration, they focus on long-tail outliers rather than averages. Metrics like mean request time or MTTR often mask the significant, negative impact that extreme tail latency has on the actual customer experience.

The world in which IPv6 was a good design

apenwarr.ca · 19 Apr

Software Architecture · History · Computer Science

The author discusses the inherent complexity of networking, noting how the original design of the Internet evolved into a convoluted mix of layering hacks.

Despite IPv6 being envisioned as a simpler, elegant solution, legacy constraints and mobility challenges like 'mobile IP' ensure we remain tethered to outdated protocols, suggesting that future-focused protocols like QUIC may finally offer a modern path forward.

Are two heads better than one?

eieio.games · 9 Dec

Python · Mathematics · Computer Science

This article explores a fascinating statistical paradox using a coin-flipping experiment involves unreliable friends.

When a single friend (Alice) lies 20% of the time, your accuracy in guessing a coin flip is 80%. Surprisingly, adding a second friend (Bob) with the same lying probability does not improve your accuracy. Through Python simulations and mathematical proofs, the author demonstrates that while agreement between two friends increases confidence, their disagreement creates a stalemate that offsets any statistical gain. The pattern reveals that accuracy only improves when moving from an even to an odd number of independent sources (e.g., three friends increase accuracy to 90%). This phenomenon mirrors Condorcet's jury theorem in political science, which typically assumes an odd number of voters to avoid ties. The author highlights the distinction between binary voting outcomes and betting scenarios where increased confidence would otherwise provide higher expected value.

My (very) fast zero-allocation webserver using OxCaml

anil.recoil.org · 1 Feb

Performance · Programming Languages · Computer Science

The article explores the development of httpz, a high-performance HTTP/1.1 parser built using OxCaml, a set of language extensions for OCaml.

The primary goal of the project is to achieve zero heap allocation during request parsing, which significantly improves predictability and tail latency by reducing garbage collector activity. Key features discussed include the use of unboxed types for records and small integers (int16#), which allow data to remain in registers or on the stack. The author highlights local allocations, exclaves, and 'let mutable' as critical tools for systems-level functional programming. Performance benchmarks demonstrate that httpz can handle approximately 6.5 million requests per second, doubling the throughput of traditional OCaml parsers while maintaining zero allocations. The author concludes by outlining future work regarding io_uring integration and C bindings for zero-copy networking.

The Q, K, V Matrices

arpitbhayani.me · 26 Nov

Artificial Intelligence · Large Language Models · Computer Science

This technical overview Explains the Query, Key, and Value matrices that form the core of the attention mechanism in Large Language Models (LLMs).

Unlike traditional Recurrent Neural Networks (RNNs) that process sequences sequentially, transformers use these three matrices to evaluate all tokens simultaneously, capturing context and distant relationships effectively. The Query matrix acts as a search term, the Key matrix represents the database index, and the Value matrix carries the substantive information. Through matrix multiplication with learned weight matrices (Wq, Wk, Wv), the input is transformed into specialized subspaces that enable the model to compute attention scores, facilitating more efficient training and better contextual understanding in natural language processing.

Prolog Coding Horror

metalevel.at · 17 May

Algorithms · Programming Languages · Computer Science

This guide highlights common pitfalls in Prolog programming, such as using impure constructs, global state, and low-level arithmetic.

It advocates for a declarative approach by utilizing pure monotonic subsets and constraints, ensuring programs remain general, readable, and testable. By abandoning outdated practices, developers can create logic programs that effectively handle most general queries.

Yes, 17M lines of Lean is a lot

micjm.com · 23 Nov

Mathematics · Computer Science

The claimed Riemann hypothesis proof contains 17 million lines of Lean, making it exceptionally large.

Among 259 human-generated famous Mathlib theorems, proof dependencies generally range from 100,000 to 1.2 million lines, while all Mathlib has 2.4 million. Reservoir indexes 938 Lean packages; only three exceed 17 million: CFSG at 88 million, LeanBridge at 36 million (mostly generated database checks), and Anthropic’s Fermat proof at 27 million, about 450 times longer than the human FLT project.

The Art of Computer Programming by Donald E. Knuth

www-cs-faculty.stanford.edu · 7 Jul

Algorithms · Programming Languages · Computer Science

The Art of Computer Programming by Donald E.

Knuth is a foundational series in computer science. These critically acclaimed books are available in authorized PDF formats, with the author warning against inferior e-reader alternatives. Readers can track errata, report errors for rewards, and access comprehensive translations and ongoing updates for new volumes like 4C.

Where it came fromHacker NewsLobstersCreate a Snapbyte.dev digest and choose Computer Science as one of your topics.Build your digest