Billion-query-per-second lookup tables in C++
C++ lookup tables can process up to a billion queries per second. Their performance depends on careful design and optimization. (lemire.me)
Slughorn is a modern C++20 library for GPU-accelerated vector graphics, built around the Slug technique. It can ingest artwork from SVG, FreeType, Blend2D, Cairo, and Skia, or let developers create shapes directly through its native Canvas API. The site presents it as a tool for graphics and simulation projects ranging from embedded HUDs to complex 3D scenes, with support for uploading its output to OpenGL, Vulkan, WebGPU, DirectX, and other graphics backends. Python bindings are also available, alongside the C++ API.
The examples show how to combine fills, strokes, gradients, and layered composite shapes, including using opposite winding to cut a hole through a shape. Shapes are compiled into an atlas of curve and band textures; the costly preparation happens when the atlas is built, so the runtime GPU pipeline avoids tessellation. The Canvas API is designed to feel familiar to browser-canvas users while producing data ready for GPU upload. Documentation includes API and architecture references, backend integration guidance, and Python documentation, while the repository provides build instructions and contribution information. The project is MIT-licensed, and its site also links to examples, a development roadmap, sponsorship options, and osgSlug, an OpenSceneGraph companion.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.
C++ lookup tables can process up to a billion queries per second. Their performance depends on careful design and optimization. (lemire.me)
Emacs debuted at MIT in 1976, bringing programmers a full-screen text editor that remains widely used today. Its roots in TECO and a culture of sharing helped shape the free software movement and GNU/Linux. (technologyreview.com)
C++ lookup tables can be optimized for extremely high query throughput, with the title claiming a billion queries per second. The topic is techniques for building fast lookup tables. (lemire.me)
Moxnox 1.0 is an NT-like, POSIX-compatible operating system that runs atop Btrfs. Its source code is available on GitHub. (github.com)
china-policy-data provides a free daily JSON feed of Shanghai government grant and subsidy notices. The feed is designed for researchers and AI agents. (github.com)
Linux 7.4 adds opt-in DMA-BUF read and write support through io_uring, enabling hardware memory buffers to move through the I/O path without CPU copies. The initial implementation supports NVMe block devices, with buffers up to 4 GB. (phoronix.com)
Today's best Hacker News stories, summarized and screenshotted, one email a day.