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 · 766 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

E-means: 10x faster k-means at equal loss

e-means.github.io · 9 Nov

Artificial Intelligence · Algorithms · Machine Learning · Performance · Computer Science

Meta FAIR’s open-source e-means replaces Lloyd’s k-means with mini-batch exponential moving averages, scaling-law-derived batch and step sizes, improved initialization, cosine scheduling, dead-cluster revival, finalization, and specialized kernels.

Across 24 datasets and configurations, it reaches the test loss of Lloyd after 25 epochs in 1.2–3 epochs, delivering 10–45× lower GPU wall-clock time and 8–15× lower CPU time while often achieving lower loss. It also escapes pathological local minima more reliably and reduces dead clusters.

Laws of Software Engineering

lawsofsoftwareengineering.com · 21 Apr

Productivity · Software Architecture · Computer Science

This collection outlines essential principles, laws, and heuristics in software engineering and professional life.

It covers system architecture, team dynamics, development practices, and cognitive biases, providing a comprehensive framework for understanding the complexities of project management, technical design, and human behavior in professional environments.

Rob Pike's 5 Rules of Programming

cs.unc.edu · 18 Mar

Performance · Programming Languages · Computer Science

Rob Pike's five rules of programming emphasize simplicity, data-driven design, and avoiding premature optimization.

By prioritizing clear, straightforward algorithms and robust data structures, developers achieve better performance and maintainability. These principles advocate for measuring actual bottlenecks before optimizing and choosing simplicity over complexity to minimize bugs and overhead, aligning with the KISS philosophy.

You could have invented transformers from memory

alexwang.ai · 15 Oct

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

Transformers can be understood as associative memory stores: a linear outer-product layer has capacity about d_k, an optimal least-squares linear store about 2d_k, nonlinear MLPs suppress low-similarity interference and reach roughly d_k^p, while self-attention’s exponential weighting gives capacity that grows exponentially with key sharpness and can store a potentially unbounded number of context memories.

For d_k = 64, the examples rise from 64 to about 2,700 (squared-ReLU MLP) to about 1.2 million (self-attention).

GPT-6 Astra Edits Qwen Weights: MATH-500 7.9% to 48.1%

explainx.ai · 2 Nov

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

GPT-6 Astra reportedly edited Qwen3.5-0.8B’s weights without gradient descent or training, raising MATH-500 from 7.9% to 48.1% after changing 131,072 weights (0.016%).

The edit mainly suppressed thinking loops: answers hitting the token limit fell from 93% to 33%, rather than adding mathematical ability. Astra also fixed or wrote small networks, but failed to improve non-looping Gemma 3 270M. The results come from a non-peer-reviewed blog post, with public logs and no independent replication.

Princeton researchers train a 4B LLM to reach 2700 Elo in chess (with no signs of a plateau when they stopped training) and can explain its moves accurately. They say the training technique can also be applied to other games, robotics, and computer use

fixupx.com · 5 Oct

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

Princeton researchers trained QUEEN, a roughly 4B-parameter model, to about 2700 Elo on Lichess blitz while accurately explaining its moves, with no plateau observed when training stopped.

Instead of teaching an LM to play directly, they connected SmolLM3-3B as a language “mouth” to the Leela chess network, initialized bridge parameters with templatic position questions, and iteratively distilled search-tree explanations into SFT data. Across seven iterations, QUEEN advanced from beginner/intermediate to roughly GM strength and surpassed frontier LMs in chess performance.

A collision has been found for 38-step (a reduced round variant of) SHA-256

eprint.iacr.org · 26 Nov

Algorithms · Cybersecurity · Computer Science

A first collision for 38-step SHA-256 from the standard initial value has been found.

Omer Goldzweig’s two-block differential attack reuses message-difference positions from the 38-step semi-free-start collision of Mendel, Nad, and Schläffer. It requires an expected 2^54.8 compression-function calls and 2^57.5 table accesses, with 7.4 GB tables; fixed-state preparation used 52,300 vCPU-hours, and GPUs found the collision after 53 hours at roughly 10% expected work.

Cryptopocalypse

argmin.net · 1 Dec

Cybersecurity · Encryption · Computer Science · Anthropic

Anthropic’s rumored cryptography “bombshell” was not a breakthrough against 2048-bit RSA but a theoretical, galactic-scale quasipolynomial-time quantum algorithm targeting one proposed post-quantum encryption scheme.

The result requires more bits than atoms in the universe and a quantum computer, while no useful quantum computer exists; even Shor’s practical-in-theory RSA attack has changed nothing after 32 years. The author blames Anthropic and associated cryptographers for allowing exaggerated rumors and unnecessary panic.

ΠFS

github.com · 10 Jun

Linux · Mathematics · Computer Science

inferencefs, or πfs, is a conceptual file system that leverages the mathematical properties of π.

By treating π as a disjunctive sequence, the project proposes finding file data within its digits, effectively creating infinite storage. Metadata manages file locations, representing a clever, humorous approach to data compression and the concept of universal information storage.

Supercharging transformer residual connections

research.google · 23 Nov

Artificial Intelligence · Deep Learning · Machine Learning · Computer Science

DeepCrossAttention (DCA), presented at ICML 2025, replaces fixed residual addition with learnable, token-dependent routing and depth-wise cross-attention across preceding layers.

This lets transformers selectively retrieve high-resolution features, reducing information dilution with less than 0.2% additional parameters. On C4 and LM1B, DCA matched standard-transformer performance in up to five times fewer training steps; on LM1B, it reached lower perplexity with 30 rather than 42 layers, a 29% reduction in depth and parameters. It can also retrofit pretrained transformers.

I got paid minimum wage to solve an impossible problem (and accidentally learned why most algorithms make life worse)

open.substack.com · 7 Jan

Algorithms · Ethics · Computer Science

A Computer Science student recounts an experiment where they applied simulated annealing and the 2-opt heuristic to optimize sweeping routes at a grocery store.

Initially, the C++ optimizer prioritized the shortest path, leading to a technically efficient but practically unusable route filled with erratic turns. By introducing a turn penalty into the cost function, the student achieved a walkable, realistic path, illustrating that optimizing purely for data-driven metrics often fails human needs. The narrative connects this to real-world issues like social media engagement algorithms and LLMs, arguing that many modern problems arise from optimizing for the wrong cost functions, such as clicks over happiness or confidence over accuracy. Ultimately, the piece highlights that technical correctness is futile if the underlying goal disregards human reality.

Turns are Better than Radians

computerenhance.com · 19 Aug

Performance · Mathematics · Computer Science

The article argues that code often needlessly converts normalized [0, 1] angles to radians before calling trigonometric functions, only for libraries to convert them back internally.

Using mathematical turns—or half-turns, as in CUDA’s sincospi—eliminates pi and tau, saves multiplications, improves exact representation, and simplifies APIs and codebases.

I've built a virtual museum with nearly every operating system you can think of

virtualosmuseum.org · 19 May

History · Operating Systems · Computer Science

The Virtual OS Museum is a comprehensive, curated collection of pre-configured operating systems running in emulated environments.

This project simplifies the historical study of computer science by providing a ready-to-use platform for running everything from 1948 mainframes to modern Linux distributions, removing the technical barriers usually associated with software preservation and emulator configuration.

MiniMax-AI/MiniMax-M4

github.com · 3 Dec

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

MiniMax-M4 is an upcoming open-weight, natively multimodal Mixture-of-Experts model designed to scale intelligence efficiently across diverse hardware.

It has 2.74T total parameters, 66B active per token, and a 1M-token context window. Hardware-aware co-design, MiniMax Sparse Attention 2 (MSA2), and MFlashKV enable SSD-based KV-cache offloading under HBM constraints. A scale-out-then-scale-in RL strategy uses multi-teacher on-policy distillation (MOPD). M4 targets long-horizon coding and agentic tasks with efficient inference.

I built an LLM where Gemini 4 wrote the initial weights as code (97% of bytes)

weights-as-code.pages.dev · 30 Nov

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

Gemini 4 Neon wrote a compiler that converts 31.8B corpus tokens into 7.96 GiB of frozen sparse tables, comprising over 97% of a language model’s stored bytes, without gradient descent.

A 103M-parameter Transformer trained on 10B tokens reads them and reaches word-level perplexity 46.4 versus 52.1 for a matched baseline. An external edit layer adds facts without training: across 10,000 edits, it achieves 99.9% exact-match accuracy and 97.4% paraphrase accuracy while preserving 98.2% unrelated answers.

Music theory for programmers

runjs.app · 17 Aug

JavaScript · Mathematics · Computer Science

An article derives music theory from physics, arithmetic, and code: sound becomes time-varying numbers, envelopes shape notes, harmonics explain timbre and consonance, and octave ratios lead to twelve-tone equal temperament.

JavaScript arrays then model MIDI pitches, scales, modes, chords, progressions, and notation, showing how musical tension and resolution emerge from constraints rather than memorized conventions.

Defeating a 40-year-old copy protection dongle

dmitrybrant.com · 1 Feb

Low-Level Programming · History · Computer Science

In a unique case of software archaeology, a researcher successfully bypassed hardware-based copy protection for a legacy RPG (Report Program Generator) II compiler used by an accounting firm.

The firm was incredibly still running Windows 98 in 2026 to execute 40-year-old software requiring a physical dongle on a parallel port. By using the Reko disassembler to analyze 16-bit x86 executables, the researcher identified a specific 0x90-byte code segment responsible for dongle communication. Analysis revealed that the routine returned a constant value in the BX register regardless of input. Through brute-force testing within DosBox, the constant was identified as 7606h. Applying a four-byte assembly patch (MOV BX, 7606; RETF) successfully emulated the dongle presence, allowing the software—and its compiler—to run on modern emulators without the original hardware.

Next-Concept Modeling: Fast, Parallel Coarse-to-Fine Text Generation: This will completely change everything!

arxiv.org · 8 Nov

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

Next-Concept Modeling (NCM) is a two-stage, coarse-to-fine text-generation framework designed to make parallel sampling faster and more efficient.

A multiscale residual VQ-VAE encodes text into hierarchical discrete codes, while a transformer predicts all codes at each level in parallel. At comparable parameter scales, NCM is 21× faster than the strongest DLM on LM1B, 10× faster on OpenWebText, and 31× faster on XSum while matching ROUGE-L; it also outperforms autoregressive and diffusion baselines on Sudoku.

GPTZero finds 100 new hallucinations in NeurIPS 2025 accepted papers

gptzero.me · 21 Jan

Artificial Intelligence · Large Language Models · Computer Science

A technical analysis of published AI papers reveals persistent issues with 'hallucinated' citations, where large language models generate plausible but non-existent bibliographic references.

The study identifies specific examples from various papers where titles, authors, arXiv IDs, or DOIs are either fabricated or misattributed, highlighting the risks of relying on AI for automated scientific discovery or data annotation.

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