low-level

Tag

Cards List
#low-level

In C++, = default and {} are not the same constructor

Hacker News Top ↗ · 4h ago Cached

Daniel Lemire shows that in C++, `span() = default` and `span() {}` produce different triviality semantics, causing GCC 15/16 to generate code over 4x slower (~8 ns vs 1.7 ns per span) for the `= default` version in a benchmark, while Clang is unaffected.

0 favorites 0 likes
#low-level

cgo's pointer check is all over the place

Lobsters Hottest ↗ · yesterday

A Lobste.rs discussion on how cgo's pointer checking mechanism in Go is inconsistent and unreliable, with comments delving into the underlying implementation issues.

0 favorites 0 likes
#low-level

Paint in the memory of other programs

Lobsters Hottest ↗ · 2026-11-16 Cached

An introduction to 'core', a new esoteric debugger and 'paint program' that renders other programs' memory as images on a Z-order curve, letting users watch and even scribble on live memory of processes, games, and virtual machines.

0 favorites 0 likes
#low-level

Beating the compiler at signed 32-bit division

Lobsters Hottest ↗ · 2026-11-01 Cached

Lemire shows how to beat compilers at signed 32-bit integer division by constant using a 64-bit 33-bit multiplier trick, avoiding the correction term GCC/LLVM emit, with benchmark latencies across modern CPUs.

0 favorites 0 likes
#low-level

Copper – A minimal low-level programming language with OOP and generics

Hacker News Top ↗ · 2026-10-30 Cached

Copper is a minimal, low-level programming language designed as a simpler alternative to C, featuring OOP and generics with a focus on explicit, easy-to-understand syntax. It is released under the BSD license.

0 favorites 0 likes
#low-level

Reading and writing are less symmetric than you (probably) think

Hacker News Top ↗ · 2026-10-28 Cached

博客文章讨论计算中读写操作的不对称性,解释缓冲 I/O、块设备对齐以及错误处理如何打破 read/write 系统调用表面的对称性。

0 favorites 0 likes
#low-level

Iterating Backwards in C

Hacker News Top ↗ · 2026-10-26 Cached

The author explains the common mistakes when iterating backwards in C and presents the clean idiom `for(size_t i = count; i--; )`, which avoids signed-index and wrap-around pitfalls, especially as LLM-generated code repeats the buggy versions.

0 favorites 0 likes
#low-level

A faster way to compute signed 64-bit floor division by constants

Lobsters Hottest ↗ · 2026-10-26 Cached

A blog post introducing a new fast algorithm for signed 64-bit floor division by compile-time constants, benchmarked 10–20% faster than existing approaches on ARM and ~5–10% faster on most x86 cases, along with a copy-paste code generator and a critique of how compilers and libraries handle floor division.

0 favorites 0 likes
#low-level

examining the macOS gcc binary

Lobsters Hottest ↗ · 2026-10-22 Cached

一篇博客深入逆向分析 macOS 上的 `gcc` 二进制文件,揭示它并非简单的 clang 别名,而是通过 libxcselect 的 xcselect_invoke_xcrun() 调用 xcrun 来转发到真实的开发者工具。

0 favorites 0 likes
#low-level

Making all divisions slower to fix a bug in 0.000000000000000000542% of cases

Lobsters Hottest ↗ · 2026-10-19 Cached

Futhark 博客解释了有符号整数除法中 x/-1 溢出(最小负数无对应正值)导致的极端罕见 bug,以及为修复它在编译器中引入的性能开销与取舍。

0 favorites 0 likes
#low-level

Why do we need ud2 when int 6 is right there?

The Old New Thing (Raymond Chen) ↗ · 2026-10-19 Cached

Raymond Chen 解释了为什么 x86 需要专用的 ud2 指令而不是用 int 6 来触发未定义指令异常:int 6 是陷阱(报告下一条指令地址)而 #UD 是故障(报告出错指令地址),且操作系统会禁止用户态调用 int 6 以免混淆 #UD 处理程序。

0 favorites 0 likes
#low-level

Integer to String Conversion (2014)

Hacker News Top ↗ · 2026-10-18 Cached

A 2014 blog post by L. Pereira exploring increasingly optimized ways to convert integers to strings in C, comparing naive division-based approaches, an in-place reverse-free variant used in Lwan, and Facebook's pair-of-digits lookup table trick that roughly halves the number of divisions for a ~31% speedup.

0 favorites 0 likes
#low-level

Fixing C Strings With String Views

Lobsters Hottest ↗ · 2026-10-14 Cached

A blog post explaining the problems of NUL-terminated strings in C and introducing a small single-file C library that provides str_view and str_owned structs for safer, more efficient string handling.

0 favorites 0 likes
#low-level

Vectorized CLZ and CTZ

Lobsters Hottest ↗ · 2026-10-09 Cached

一篇技术博客,介绍如何利用浮点数指数相当于对数这一特性,用 AVX2 浮点指令实现可向量化的 clz(前导零计数)和 ctz(尾随零计数)多播(polyfill),并在 Haswell/Alder Lake 上给出优于标量版本的性能数据。

0 favorites 0 likes
#low-level

Why does the compiler sometimes use ud2 and sometimes int 3 for code that shouldn’t execute?

The Old New Thing (Raymond Chen) ↗ · 2026-10-06 Cached

Raymond Chen explains why compilers emit int3 versus ud2 for unreachable code: int3 marks padding where no code should exist (invalid function pointers), while ud2 marks paths that violate language-level undefined behavior.

0 favorites 0 likes
#low-level

Hacking the Go compiler to efficiently map IPv4 to IPv6

Lobsters Hottest ↗ · 2026-10-04 Cached

Vincent Bernat explores how to efficiently map IPv4 addresses to IPv6 in Go's netip.Addr, comparing a standard library addition, an unsafe helper, and hacking the Go compiler to optimize the netip.AddrFrom16(ip.As16()) pattern that maintainers prefer.

0 favorites 0 likes
#low-level

More like SC-Forth-thousand, am I right?

Hacker News Top ↗ · 2026-10-01 Cached

A hobbyist developer builds a self-written Forth programming environment for the Soggy-1000, a DIY Sega SG-1000 clone, as part of RetroChallenge 2026/10. The project aims to provide a low-level, copyright-free interactive development system that can live in the console's onboard ROM.

0 favorites 0 likes
#low-level

The state of SIMD in Rust in 2026

Lobsters Hottest ↗ · 2026-09-26 Cached

The article surveys the state of SIMD support in Rust in 2026, discussing advancements in SIMD libraries and implementation details.

0 favorites 0 likes
#low-level

Show HN: Conway's Game of Life in boot sector

Hacker News Top ↗ · 2026-09-21 Cached

A project called BootLife implements Conway's Game of Life in a 512-byte x86 boot sector, using VGA memory for the simulation grid.

0 favorites 0 likes
#low-level

@msimoni: I created this in one day, and it's a bit of a frankenlanguage, but it does have some interesting ideas and results: Id…

X AI KOLs Following ↗ · 2026-08-25 Cached

A developer created Idle, a statically-typed, low-level Lisp for WebAssembly GC with interesting features like O(1) method lookups and macros loaded from Wasm modules.

0 favorites 0 likes
Next →
← Back to home

Submit Feedback