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

Resident Evil 4 (GameCube) – complete byte-identical decompilation to C/C++

github.com · 20 Sept

C++ · Open Source · Computer Science

This repository delivers a complete, byte-identical decompilation of the Resident Evil 4 GameCube G4BE08 debug build, reproducing main.dol and 114 REL overlays.

It contains reconstructed C/C++ source, compiler-specific build tooling, verification utilities, documentation, and animation export tools. Building requires user-provided debug disc images and supports research and preservation without including game assets.

PC Engine CPU

jsgroth.dev · 7 May

Hardware · Low-Level Programming · Computer Science

The PC Engine (TurboGrafx-16) features the HuC6280, a custom 8-bit CPU based on the 65C02.

It runs at up to 7.16 MHz and includes a built-in MMU for bank switching. While lacking the complex 16-bit capabilities of the SNES or Genesis, its high clock speed, lack of memory latency, and efficient block-transfer instructions make it a uniquely capable machine.

Combinators

tinyapl.rubenverg.com · 31 Mar

Programming Languages · Mathematics · Computer Science

Combinators are functional programming primitives that operate on arguments without modification.

This list explores various combinators, detailing their functional logic and their implementation equivalents across APL and TinyAPL dialects. These mathematical abstractions simplify complex data transformations by representing patterns of functional composition and argument application, famously inspired by Smullyan's combinatory logic.

Celebrating Tony Hoare's mark on computer science

bertrandmeyer.com · 16 Mar

Algorithms · Programming Languages · Computer Science

This article honors the late Tony Hoare, a foundational figure in computer science.

It highlights his pivotal contributions, including the Quicksort algorithm, Hoare logic (axiomatic semantics), and Communicating Sequential Processes (CSP). Beyond his research, the text reflects on his academic leadership, mentorship, and his lasting influence on formal methods and programming methodology.

Minimal x86 Kernel Zig

github.com · 17 Feb

Low-Level Programming · Programming Languages · Computer Science

A minimal bare-metal kernel written in Zig that boots on x86 via the Multiboot 1 protocol.

It features zero assembly files, using Zig's cross-compilation capabilities to target x86-freestanding-none. The kernel manages memory-mapped I/O for VGA text-mode display and demonstrates low-level system programming without external dependencies or complex bootloader installations.

Max Payne – two decades later – Graphics Critique (2021)

darkcephas.blogspot.com · 23 Jul

Performance · Software Architecture · Computer Science

Max Payne, released in 2001, is celebrated for its groundbreaking graphical achievements despite the severe hardware constraints of its era.

This retrospective analysis explores how Remedy Entertainment utilized technical 'smoke and mirrors' to fake high-fidelity realism on systems with limited CPU and GPU resources. Key techniques discussed include prebaked lightmaps for static geometry, detail textures for micro-surface features, and the baking of 3D details directly into albedo textures. The article also highlights the game's impressive particle effects, such as vapor trails and animated chips, which were advanced for their time. While identifying limitations like clipping and inconsistent specular highlights, the study concludes that Max Payne's reliance on precalculated computations and clever visual tricks set a high standard for real-time rendering in early 2000s gaming.

Alternate clock designs and time systems

serialc.github.io · 6 Jul

Mathematics · Computer Science

This article explores alternative clock designs and time systems, questioning the standard 24-hour day.

It discusses decimal, binary, hexadecimal, and custom clock formats, highlighting the simplicity of base-10 systems for calculations versus the historical persistence of the current time standard. The author reflects on the flexibility of re-imagining how we measure our daily time.

Surprising economics of load-balanced systems

brooker.co.za · 19 Jun

Distributed Systems · Performance · Computer Science

Analyzing an M/M/c queuing system with constant per-server utilization reveals that increasing the number of servers improves efficiency.

As c increases, the probability of queuing decreases, causing the mean latency and percentiles to asymptotically approach the service time. This scalability phenomenon benefits service economics, allowing better performance or higher utilization at larger scales.

The C64 Dead Test Font

masswerk.at · 24 May

Low-Level Programming · History · Computer Science

This article explores the unique font used in the Commodore 64 'Dead Test' diagnostic cartridge.

It analyzes the font's design similarities to the MICR E-13B standard, uncovers a hidden character Easter egg, and explains the technical implementation via the C64's Ultimax mode, which allows the cartridge to function independently of the system's built-in ROMs.

RX – a new random-access JSON alternative

github.com · 18 Mar

Backend · Performance · Computer Science

REXC is a high-performance binary encoding library that acts as a drop-in replacement for JSON.

It reduces data size by 18x, offers 23,000x faster lookups via binary search, and achieves near-zero heap allocations by utilizing a Proxy-based lazy parsing architecture, making it highly efficient for memory-constrained application environments and large production datasets.

Garment Notation Language: Formal descriptive language for clothing construction

github.com · 17 Feb

Programming Languages · Open Source · Computer Science

GNL is a generative descriptive language for precise garment construction, similar to musical notation.

It uses body-anchored coordinates and topological surfaces to define build orders. Formally defined via a PEG grammar, the system includes a live viewer for rendering 3D garments and flat pieces, featuring compatibility with the NeurIPS 2021 dataset.

Data Processing Benchmark Featuring Rust, Go, Swift, Zig, Julia etc.

github.com · 31 Jan

Performance · Programming Languages · Computer Science

This benchmark project compares the performance of various programming languages including Rust, Go, Python, Julia, and others in solving a specific computational task: identifying top related posts based on shared tags.

The challenge involves processing up to 100,000 posts and 100 tags efficiently while adhering to strict rules such as runtime JSON parsing and memory limits under 8GB. The results highlight significant performance disparities, with low-level or JIT-compiled languages like Julia HO1, D, and Rust leading the rankings. Concurrent implementations across languages demonstrate substantial speedups, showcasing the effectiveness of modern parallel processing. The analysis provides deep insights into language-specific optimizations, such as using specialized hash maps in Rust or custom priority queues in Go to minimize processing overhead.

UTF-8000: Unlimited UTF-8

utf-8000.jb2170.com · 20 Sept

Algorithms · Open Source · Computer Science

UTF-8000 is a standalone proposal extending UTF-8 to arbitrarily large unsigned integers/codepoints.

It preserves ASCII compatibility, byte-level self-synchronization, self-punctuation, unique non-overlong encodings, lexicographic strcmp(3) ordering, and bitwise simplicity by distributing start bits across continuation bytes. A Python reference implementation is available, alongside experimental signed, UTF-16K, and UTF-32K variants; it is not a Unicode standard.

Not all elementary functions can be expressed with exp-minus-log

stylewarning.com · 14 Apr

Science · Mathematics · Computer Science

The paper 'All Elementary Functions from a Single Operator' suggests that 'exp-minus-log' (EML) terms can express all elementary functions.

However, this article argues that EML terms fail to capture standard elementary functions because they cannot express arbitrary polynomial roots, as proven via Khovanskii’s topological Galois theory, which demonstrates that EML monodromy groups must be solvable.

A Python Interpreter Written in Python

aosabook.org · 13 Apr

Programming Languages · Python · Computer Science

Byterun is a simplified, educational Python interpreter implemented in Python.

It mirrors CPython's stack-based architecture, utilizing bytecode, frames, and an instruction-set mechanism to execute code. This project illustrates how Python handles dynamic execution, stack management, and function calls, offering a clear, readable alternative to the complex C-based implementation of the standard Python runtime.

femtolisp: A lightweight, robust, scheme-like Lisp implementation

github.com · 23 Feb

Performance · Programming Languages · Computer Science

Femtolisp is a high-performance, lightweight Scheme dialect implemented in under 1,000 lines of C.

It features a bytecode compiler, compacting garbage collection, and a robust API. Designed for simplicity and elegance, it supports proper tail recursion, C data types, and UTF-8, ranking among the fastest non-native-compiled Scheme implementations ever developed.

Sharla Boehm, the programmer whose code underpins the Internet

scientificamerican.com · 18 May

Science · History · Computer Science

Sharla Boehm was a pioneering computer programmer at the RAND Corporation.

In the 1960s, she developed a groundbreaking simulation for Paul Baran that implemented 'hot potato routing,' a precursor to packet switching. Her work on resilient, distributed networks proved fundamental to the modern Internet, though her achievements were long overlooked in historical accounts of the technology.

Reflections on 30 Years of HPC Programming

chapel-lang.org · 13 Apr

Programming Languages · Business · Computer Science

Over the past 30 years, HPC hardware has seen massive performance gains, yet the programming languages used remain largely unchanged, relying on legacy notations like Fortran, C, and C++.

The industry struggles to adopt new, purpose-built languages despite their potential to abstract hardware complexity, improve productivity, and enhance scalability beyond current MPI-based approaches.

Too much discussion of the XOR swap trick

heather.cafe · 13 Apr

Performance · Programming Languages · Computer Science

The XOR swap trick, swapping two variables without a temporary one, is a common programming curiosity.

While often discussed, it is generally inferior to standard swapping methods. Modern compilers optimize away the XOR operations for local variables, and it is inefficient or risky when used with pointers or floating-point numbers. It remains an interesting academic exercise rather than a practical optimization.

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