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

A New Way to Think About Borrow Checking (In Reverse)

verdagon.dev · 18 Oct

Algorithms · Low-Level Programming · Programming Languages · Computer Science

Valen introduces an experimental borrow checker whose safety-checking phase walks functions backward, unlike Rust’s forward conflict checks.

After static typing and static grouping identify each reference’s variable or path, the reverse pass tracks pending future uses: MUTATE must not invalidate them, and DECLARE satisfies them. Loop handling records mutations and revived references. The approach simplifies last-use tracking, handles loops naturally, and may be faster, though benchmarking and support for control-flow interruptions, closures, and other features remain incomplete.

I joined the IndieWeb, here's what I learned

en.andros.dev · 19 Jul

Culture · Open Source · Computer Science

The IndieWeb is a people-focused movement advocating for personal website ownership and independence from centralized platforms or silos.

By using open standards like Webmention, microformats2, and IndieAuth, creators can reclaim control over their data and identity, ensuring digital longevity while staying connected to the broader web through decentralized protocols.

Apple Neural Engine: Architecture, Programming, and Performance

arxiv.org · 27 Jun

Artificial Intelligence · Hardware · Computer Science

This paper provides a reverse-engineered architectural analysis of the Apple Neural Engine, covering chip generations from A11 to A18 and M1 to M5.

It details the hardware datapath, compiler, weight-compression, driver, and firmware, offering valuable insights into its performance characteristics and proprietary software stack for developers and researchers.

Navier-Stokes fluid simulation explained with Godot game engine

myzopotamia.dev · 26 May

Artificial Intelligence · Algorithms · Computer Science

This guide provides a comprehensive tutorial for implementing real-time Navier-Stokes fluid simulations in the Godot Engine.

Using a CPU-based approach and simplifying approximations like Gauss-Seidel relaxation, the article covers building a grid, visualizing density and velocity, and handling advection, diffusion, and boundary conditions to create an interactive fluid environment.

Blue light filters don't work – controlling total luminance is a better bet

neuroai.science · 20 Feb

Science · Health · Computer Science

Visual neuroscientist analysis reveals blue light filters are largely ineffective because they only halve cyan light, a negligible change in our logarithmic visual perception.

Instead of focusing on color, users should prioritize total luminance by using dark mode, significantly dimming screens, increasing daytime light exposure, and considering low-dose melatonin to effectively regulate circadian rhythms.

Show HN: Eigendrum - Draw any shape and hear what it sounds like as a drum

baselashraf81.github.io · 10 Aug

Physics · Mathematics · Computer Science

Eigendrum is an interactive web app that computes drum eigenmodes and frequencies with finite element meshes, then synthesizes sound based on strike location, mallet width, damping, and pitch.

It supports traced and formula-defined shapes, validates results against circles and rectangles, demonstrates isospectral Kac drums, and runs entirely in the browser without installation or a backend.

Mathematicians still don't know the fastest way to multiply numbers

scientificamerican.com · 13 Jul

Algorithms · Performance · Computer Science

For centuries, grade-school multiplication was considered the fastest method.

In 1960, Anatoly Karatsuba disproved this by introducing a recursive algorithm, reducing complexity from O(n2) to O(n1.585). Recently, the Harvey-van der Hoeven algorithm reached O(n log n) efficiency. These breakthroughs optimize critical digital operations, significantly impacting performance in fields like cryptography and artificial intelligence.

How the heck does GPS work?

perthirtysix.com · 22 Apr

Science · History · Computer Science

GPS determines location by treating time as distance.

Satellites transmit signals, and devices measure the travel time at light speed to calculate distances. Using trilateration with at least four satellites, devices resolve coordinates while correcting for receiver clock errors and Einstein's theories of relativity to ensure sub-meter accuracy in a global, multi-constellation system.

Predicting LoRA size for any dataset

engram.com · 24 Nov

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

Engram presents an information-theoretic method to predict the LoRA rank needed to fit any SFT dataset.

Dataset size is measured as bits under the base model, while adapter capacity is modeled from rank and validated with synthetic data generated by arithmetic coding. Capacity grows sublinearly with rank for individual matrices but super-additively across transformer layers, reaching 3.3 bits per parameter across 24 MLP layers. On real datasets, predicted ranks matched the smallest practical ranks within about 5%.

Proving and improving the Platonic Representation Hypothesis with JEPAs

arxiv.org · 1 Nov

Artificial Intelligence · Deep Learning · Machine Learning · Computer Science

Researchers prove a Platonic Representation Theorem showing that separately trained Joint-Embedding Predictive Architectures (JEPAs) across modalities learn representations identical up to rotation when positive pairs are “good views” of one scene and other misalignment is bounded.

They show next-token prediction uses “bad views,” explaining its scale-dependent alignment with vision. Experiments find good views need 42× fewer samples; a 109M text JEPA outperforms language models up to 72B in alignment and achieves 64% top-5 ImageNet-100 accuracy zero-shot.

Introduction to Formal Verification with Lean Part 1

hashcloak.com · 19 Jul

Artificial Intelligence · Mathematics · Computer Science

This tutorial introduces formal verification using the Lean theorem prover.

It demonstrates how to translate mathematical cryptography concepts—specifically the One-Time Pad—into code. By defining bitstrings, XOR, and Shannon Ciphers within Lean, the guide details how to build machine-checked proofs of correctness, providing a practical entry point for cryptographic engineers.

Zig by Example

github.com · 8 Jun

Programming Languages · Testing · Computer Science

Zig by Example provides a comprehensive, hands-on introduction to the Zig programming language.

Through annotated examples, it covers core concepts like syntax, memory management, and C interop, highlighting Zig's focus on robustness, optimality, and simplicity for systems programming. This resource serves as a practical guide for developers working with Zig 0.14.

Using AI to Expand the Cryptanalytic Frontiers of AEGIS-128L

engineering.fb.com · 2 Dec

Artificial Intelligence · Cybersecurity · Encryption · Computer Science

AI-assisted cryptanalysis found stronger distinguishers for deliberately weakened AEGIS-128L by varying nonce-byte positions, not just their number.

It reached four of 10 rounds in observable keystream with 2¹⁶ queries, versus two rounds with 2¹²⁸ previously, and matched the six-round internal-state result using 2⁹⁶ less data. The full 10-round cipher remained secure. Independent falsification and clean-room reviews validated the key proof, rejected false claims, and exposed a libaegis state-erasure flaw.

The cryptography behind electronic voting (and why paper ballots are still essential)

blog.trailofbits.com · 3 Nov

Cybersecurity · Encryption · Politics · Computer Science

Paper ballots remain essential for secure U.S. general elections because electronic voting cannot yet guarantee secrecy, integrity, and verifiability against compromised clients, servers, or coercion.

Cryptographic systems such as Helios and ElectionGuard use threshold encryption, homomorphic tallying, zero-knowledge proofs, commitments, and public records to protect privacy and enable end-to-end verification. Helios targets lower-risk elections, while ElectionGuard augments paper-based infrastructure; cryptography strengthens audits and trust but does not replace independent physical records and controls.

PCjs Machines

pcjs.org · 21 Jul

JavaScript · Open Source · Computer Science

PCjs is an open-source project that uses JavaScript to emulate classic hardware, including IBM PC models, minicomputers, and arcade games, directly in web browsers.

It provides an interactive way to experience 1970s and 1980s computing history, offering access to legacy software and hardware documentation.

A perfectable programming language

alok.github.io · 12 Apr

Artificial Intelligence · Programming Languages · Computer Science

Lean is a unique programming language described as "perfectable" due to its integration of dependent types, built-in theorem proving, and seamless metaprogramming.

Unlike its competitors, Lean leverages formal methods to allow developers to prove properties about their code. Its growing community and ability to optimize via semantic equality make it a powerful tool for complex software projects.

Are arrays functions?

futhark-lang.org · 16 Jan

Programming Languages · Software Architecture · Computer Science

This article explores the conceptual and structural relationship between arrays and functions, specifically within the context of functional programming languages like Haskell, Dex, and Futhark.

Historically described as functions mapping contiguous integer domains, arrays share operations analogous to function currying (unflattening), partial application (fixing dimensions), and composition (permutation). The text analyzes how languages like K unify them syntactically, while Dex uses suggestive notation to bridge the gap without unifying their types. For Futhark, total unification remains impractical due to defunctionalization constraints and runtime size requirements. Ultimately, while full type-level unification poses performance and metadata challenges, the author suggests a future for languages that utilize shared abstractions like functors to treat both constructs as array-like entities.

Only 17% of all 64-bit Integers are products of two 32-bit integers

lemire.me · 28 May

Algorithms · Programming Languages · Computer Science

Daniel Lemire explores what fraction of 64-bit integers result from the product of two 32-bit integers.

While Erdös proved that this fraction approaches zero as n increases, exact computations reveal that only about 17% of 64-bit integers are products of two 32-bit factors. The study emphasizes the limitations of simple multiplication-based hash functions.

Where it came fromHacker NewsLobstersEngineering at MetaTrail of BitsCreate a Snapbyte.dev digest and choose Computer Science as one of your topics.Build your digest