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

80386 Memory Pipeline

nand2mario.github.io · 14 Apr

Hardware · Low-Level Programming · Computer Science

The 80386 achieved performance by using a highly efficient memory pipeline that obscured the overhead of segmentation and virtual memory translation.

Techniques like descriptor caching, parallel arithmetic for limit checking, and 'Early Start' address generation allowed it to function in near physical-memory speeds, making it a foundation for modern x86 operating systems.

Optimization of 32-bit Unsigned Division by Constants on 64-bit Targets

arxiv.org · 9 Apr

Performance · Programming Languages · Computer Science

This paper introduces an optimization technique for 32-bit unsigned integer division by constants specifically for 64-bit architectures, improving upon the classic Granlund-Montgomery method.

By updating LLVM and GCC compilers to fully utilize 64-bit hardware, the research achieved significant speedups on Intel Xeon and Apple M4 processors, with the implementation already merged into the LLVM main codebase.

Tree Calculus

treecalcul.us · 3 Apr

Programming Languages · Mathematics · Computer Science

Tree Calculus, discovered by Barry Jay, is a minimal, Turing-complete, and reflective system that represents recursive functions as normal forms.

Its structure relies on binary tree operations, enabling modular programming, self-introspection, and easier program analysis. The framework offers practical benefits for cross-platform configuration generation and safe interpreter design.

Eniac, the First General-Purpose Digital Computer, Turns 80

spectrum.ieee.org · 18 Mar

History · Education · Computer Science

Celebrating its 80th anniversary, ENIAC stands as the first programmable, general-purpose electronic digital computer.

Developed at the University of Pennsylvania, it pioneered large-scale computing, laying the foundation for the digital economy. The machine's legacy includes vital contributions from its female programmers, the "ENIAC 6," and it continues to symbolize the dawn of the modern computer era.

Printf-Tac-Toe

github.com · 8 Mar

C · Programming Languages · Computer Science

A core implementation of Tic-Tac-Toe for IOCCC 2020 achieved through a single printf call.

Leveraging the Turing completeness of printf, the author uses complex format specifiers like %hhn, %s, and positional arguments to simulate binary logic, compute game states, and generate a dynamic UI directly in memory.

Emacs internals: Deconstructing Lisp_Object in C (Part 2)

thecloudlet.github.io · 5 Mar

C · Software Architecture · Computer Science

This technical deep dive explores GNU Emacs' internal architecture, focusing on the Lisp_Object in C.

It details how tagged pointers and memory alignment optimize dynamic typing within a 64-bit machine word. By deconstructing Lisp's mathematical foundations and McCarthy's axioms, the post illustrates the bridge between C implementation and Lisp runtime efficiency.

OpenTitan Shipping in Production

opensource.googleblog.com · 4 Mar

Hardware · Open Source · Computer Science

Google announced that OpenTitan, the first open-source silicon Root of Trust (RoT), is now shipping in commercial Chromebooks.

Developed with lowRISC C.I.C., it offers transparency, post-quantum cryptography support, and high-quality design verification. OpenTitan aims to set new industry standards for hardware security, with future deployments planned for Google datacenters and second-generation silicon.

Dissecting the CPU-memory relationship in garbage collection (OpenJDK 26)

norlinder.nu · 23 Feb

Java · Performance · Computer Science

Modern Java garbage collectors, like ZGC and G1, decouple pause times from CPU overhead, creating operational blind spots.

OpenJDK 26 introduces the MemoryMXBean.getTotalGcCpuTime() API and -Xlog:cpu to quantify explicit GC costs. This allows engineers to measure infrastructure efficiency and make informed decisions regarding the trade-offs between memory allocation and CPU consumption.

Reverse Engineering the Prom for the SGI O2

mattst88.com · 8 Feb

Hardware · Low-Level Programming · Computer Science

This technical article details the comprehensive reverse engineering of the Silicon Graphics O2 (IP32) PROM firmware to enable CPU upgrades that were previously blocked for decades.

The author developed the ip32prom-decompiler, a tool that translates the binary firmware into modifiable, reassemblable MIPS assembly code. The process involved identifying custom 'SHDR' section headers, deciphering checksum algorithms, and visualizing the binary structure to distinguish code from data. By mapping out the entry points and memory regions like kseg0, and handling virtual subsections copied to RAM, the author successfully produced a bit-identical source representation. This work provides the necessary foundation for modifying the PROM to support 900 MHz RM7900 CPUs, effectively bypassing the need for original SGI source code or support.

A few CPU hardware bugs

taricorp.net · 5 Feb

Hardware · Low-Level Programming · Computer Science

This article explores various hardware and firmware defects in processors, ranging from cosmetic errors to critical pipeline bugs.

The author highlights instances where Intel processors returned misspelled CPUID strings, such as 'GenuineIotel' and 'ore i5', likely due to human error or bit-flip issues. While these don't impact performance, they reflect quality control lapses. More significantly, the author discusses a critical hardware bug in the ITE Tech IT81202 RISC-V embedded controller, where instructions following a multiplication operation fail to execute correctly. This flaw necessitates a performance-degrading software workaround to ensure system stability, illustrating the inherent complexity and risks involved in chip design for specialized embedded environments.

LispE: Lisp Interpreter with Pattern Programming and Lazy Evaluation

github.com · 4 Feb

Programming Languages · Open Source · Computer Science

LispE, also known as Lisp Elémentaire, is a compact multi-platform programming language developed by NAVER Corp.

It uniquely combines the versatility of Lisp dialects with powerful array language features and functional programming paradigms. The language supports traditional Lisp operators, advanced pattern matching, object-oriented programming with classes, and safe concurrency through specialized threadspaces. Notably, LispE integrates array operators inspired by APL, allowing for concise implementations of complex logic like the Game of Life. It also includes an internal editor derived from the TAMGU project and offers capabilities to function as a Shell. Licensed under the BSD 3-Clause, LispE provides a robust framework for high-level data structures and numerical processing across Windows, macOS, and Linux platforms.

Rabbit Ear "Origami": programmable origami in the browser

rabbitear.org · 4 Feb

Algorithms · Programming Languages · Computer Science

The provided text outlines the capabilities of Rabbit Ear, an origami-based computational library that utilizes FOLD objects and graph theory to model flat-foldable origami.

Centered around the mathematical principles of folding, it explores specific theorems such as Kawasaki's theorem—which dictates that the alternating sum of sector angles around a single vertex must be 180° for flat-foldability—and Maekawa’s theorem, which requires the difference between mountain and valley creases to be exactly two. The library provides tools for 2D and 3D visualization, including a global layer-order solver designed to handle complex face-overlapping scenarios, ensuring correct SVG rendering of folded models. Additionally, the system implements the seven origami axioms to allow users to programmatically generate creases through geometric constructions rather than relying solely on coordinate-based inputs, making it a robust platform for both design and technical simulation.

Dark Alley Mathematics

blog.szczepan.org · 1 Feb

Education · Mathematics · Computer Science

This narrative explores a high-stakes encounter in which a protagonist must solve a complex geometric probability problem to survive.

The challenge involves determining the probability that a circumcircle formed by three points chosen independently and uniformly within a unit circle is entirely contained within that same unit circle. The solution follows a rigorous Cartesian-to-polar coordinate transformation, involving the calculation of a 6x6 Jacobian matrix and the subsequent simplification of a sextuple integral. By applying trigonometric identities and symmetry properties, the calculation resolves into a final probability of 2/5. The content serves as a detailed mathematical walkthrough of a classic problem usually associated with stochastic geometry.

M8SBC-486 (Homebrew 486 computer)

maniek86.xyz · 14 Jan

Hardware · Low-Level Programming · Computer Science

The M8SBC-486 is a custom-built homebrew computer motherboard developed from scratch, featuring a 486 CPU and a Xilinx Spartan II FPGA as its custom chipset.

Designed for experimental purposes, the project achieves significant compatibility with older x86 systems, enabling it to run MS-DOS 6.22, FreeDOS, and even a custom Linux kernel. While missing some standard components like secondary PIC and DMA support, it features four megabytes of SRAM and support for 16-bit ISA slots. It successfully runs classic software such as FastDOOM and Wolfenstein 3D, demonstrating high technical complexity.

All 23-Bit Still Lifes Are Glider Constructible

mvr.github.io · 27 Dec

Algorithms · C++ · Computer Science

A multi-year collaborative project has successfully confirmed that all 1,646,147 strict 23-bit still lifes in Conway's Game of Life are glider constructible.

This achievement pushes the lower bound for unsynthesizable patterns up from 22 bits, moving closer to the current record of a 154-population unsynthesizable patch found in 2022. The project utilized advanced computational tools, including Stomp, a C++ multithreaded tree-search script designed to transfer synthesis steps between patterns, and Mr. Component, which identifies and synchronizes interacting subcomponents. These tools handled 99.97% of the targets by automating massive searches of glider collisions and catalytic reactions. While the number of still lifes grows exponentially with each bit—the 23-bit project being 2.4 times larger than the previous 22-bit endeavor—these algorithmic improvements allowed the community to solve complex patterns that would otherwise require manual synthesis talent. The longest recipe discovered for a 23-bit still life currently stands at 47 steps using 178 gliders.

What Comes After AGI?

institute.deepmind.com · 19 Nov

Artificial Intelligence · Computer Science

AGI may be followed by ASI, and preparing for that possibility requires mapping pathways and measuring progress.

The article identifies four mutually reinforcing routes: scaling models and data, technological paradigm shifts, improved coordination among agents, and recursive self-improvement. Hardware investment, hardware efficiency, and algorithmic advances could multiply effective compute roughly tenfold annually, driving cognitive industrialization through cheaper, faster, more numerous AI agents. Progress is uncertain and constrained by data, physical, economic, and coordination limits, requiring interdisciplinary forecasting and evaluation.

GeoJSON

geojson.org · 8 May

News · Computer Science

GeoJSON is a standard format for encoding geographic data structures, including various point and polygon geometries.

Managed by the IETF, the current standard is RFC 7946, published in 2016, which defines Feature and FeatureCollection objects for complex data representation.

Behavioral timescale synaptic plasticity rewires the brain after an experience

quantamagazine.org · 24 Apr

Science · Computer Science

Neuroscientists have identified Behavioral Timescale Synaptic Plasticity (BTSP), a mechanism allowing the brain to form lasting memories from a single experience.

Unlike traditional Hebbian plasticity, which requires repetition, BTSP utilizes dendritic plateau potentials to strengthen synaptic connections over several seconds, offering a new explanation for rapid learning and episodic memory formation in the hippocampus.

Sun Position Calculator

drajmarsh.bitbucket.io · 1 Jan

Science · Computer Science

This web application provides a sophisticated interactive 3D model designed to visualize the orbital relationship between the Earth and the Sun.

By utilizing WebGL and HTML5, the tool allows users to explore geocentric and heliocentric perspectives to better understand solar motion and seasonal changes. Key features include the visualization of sun-path diagrams, twilight zones, and specific geographic markers like the Arctic and Antarctic circles. Users can manipulate site data such as latitude and longitude to observe dynamic changes in solar altitude and declination. The developer highlights the use of various open-source frameworks like Bootstrap, jQuery, and lightgl.js to achieve high-performance 3D rendering and responsive data input. This project serves as both an educational resource for celestial mechanics and a demonstration of efficient low-level solar calculation optimization through visualization.

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