frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

A WIP arbitrary precision arithmetic library (alternative to GMP)

2•Tommyrexx•1h ago
I am actively developing an arbitrary-precision arithmetic library in C with the aim to offer a nearly-as-fast alternative to GNU's LibGMP, but under the MIT License. The solo effort has been a bit tedious as a full-time college student, but there's slow and steady progress.

GitHub Link: https://github.com/EpsilonNought117/libapac

I have inspired my API and naming scheme from GMP's public API, but the internals are (to the best of my knowledge) completely my own. The library uses a runtime dispatch to micro-arch specific versions of assembly functions on x86-64 CPUs currently for Unix-like and Windows OS, with future support planned on ARM64 on both as well. I have handwritten all the assembly routines (probably obvious by the writing style) using MASM and GAS assemblers, with a few SIMD based routines written with compiler intrinsic functions.

The performance (so far) seems to be on par with GMP for small to medium-sized Big Integers (performance graphs in README). I have implemented a few algorithms such as the Karatsuba Algorithm and Divide-&-Conquer division (Balanced and Unbalanced) with more algorithms on the way as needed. The books "Modern Computer Arithmetic" by Brent and Zimmerman and "Hacker's Delight" by Henry Warren Jr have really helped a lot.

Still largely WIP.

Interested in any feedback and/or criticisms. Happy to answer any questions.

Comments

Tommyrexx•1h ago
A related Blog post: https://open.substack.com/pub/theblessedmachine/p/big-intege...

Full System Cost of a Resilient and Carbon Neutral Electricity System [pdf]

https://unece.org/sites/default/files/2025-09/GECES-21_2025_INF.2%20-%20Understanding%20the%20Ful...
2•BenoitP•1m ago•0 comments

Show HN: Clawcast – A peer-to-peer podcast network for agents

https://www.clawcast.dev/
2•PiersonMarks•6m ago•2 comments

John Maynard Keynes: Newton, the Man

https://mathshistory.st-andrews.ac.uk/Extras/Keynes_Newton/
1•ericmay•6m ago•0 comments

Show HN: I built a database for AI agents

https://github.com/DinobaseHQ/dinobase
5•Kappa90•7m ago•3 comments

DNA robots could deliver drugs and hunt viruses inside your body

https://openyourmindabretumente.blogspot.com/2026/04/dna-robots-could-deliver-drugs-and-hunt_0138...
2•ericzapata•8m ago•0 comments

OpenSSH 10.3/10.3p1 Release Notes

https://www.openssh.org/txt/release-10.3
1•throw0101c•9m ago•1 comments

Studying Human Attitudes Towards Robots Through Experience

https://openyourmindabretumente.blogspot.com/2026/04/studying-human-attitudes-towards-robots_0169...
1•ericzapata•10m ago•0 comments

Stablecoins are quietly reinforcing US dollar dominance

https://verda.ventures/how-america-can-maintain-the-dollar-hegemony/
3•sevenfoldnancy•11m ago•0 comments

Show HN: C64 Ultimate Toolbox for macOS

https://github.com/amiantos/c64-ultimate-toolbox
1•amiantos•12m ago•0 comments

Ask HN: How do you promote apps which are vibe coded but has real life usecase?

2•faiyaz26•12m ago•0 comments

The Blueprint of a North Korean Attack on Open-Source

https://casco.com/blog/the-blueprint-of-a-north-korean-attack-on-open-source
4•brene•13m ago•1 comments

Seekdb M0: Persistent Cloud Memory and Shared Experience for OpenClaw Agents

https://en.oceanbase.com/blog/26635690496
2•calweng•13m ago•0 comments

Is Telehealth Safe?

https://www.kaspersky.com/blog/telehealth-issues-2026/55560/
1•salkahfi•13m ago•0 comments

Supabase vs. Convex

https://www.devtoolsacademy.com/blog/supabase-vs-convex/
2•alokDT•13m ago•0 comments

Show HN: I had no idea I twirled my hair 25 times an hour until my Mac told me

https://www.ticticboom.app/
2•haberdasher•13m ago•0 comments

Show HN: Interactive object storage cost calculator

https://storage.mixpeek.com
1•Beefin•14m ago•0 comments

Live Rocket Telemetry and Logging in Two Weeks

https://wilsonharper.net/projects/avio/
1•WilsonHarper•15m ago•0 comments

Seekdb M0: Persistent Cloud Memory and Shared Experience for OpenClaw Agents

https://oceanbase.medium.com/how-seekdb-m0-gives-openclaw-persistent-memory-and-shared-experience...
1•calweng•15m ago•0 comments

Rescuing old printers with an in-browser Linux VM bridged to WebUSB over USB/IP

https://printervention.app/details
2•gmac•17m ago•0 comments

Are We Legacy Computing Yet?

https://arewelegacycomputingyet.com/
1•tyoverby•17m ago•0 comments

A clothes hanger invented by a mechanical engineer

https://www.kangaroohanger.com
1•samdung•17m ago•0 comments

We no longer write any of the prompts in our codebase

https://gist.github.com/milstan/3b12f938f344f4ae1f511dd19e56adce
1•milstan•18m ago•1 comments

GLM-5.1: The Next Level of Open Source

https://twitter.com/Zai_org/status/2041550153354519022
1•zixuanlimit•19m ago•3 comments

A star scientist showed that better genetics lessons could reduce racism

https://www.statnews.com/2026/04/07/brian-donovan-fighting-racism-with-genetics-education/
2•mooreds•20m ago•0 comments

The proliferation of AI-enabled military technology in the Middle East

https://www.iiss.org/online-analysis/charting-middle-east/2026/04/the-proliferation-of-ai-enabled...
1•CrypticShift•24m ago•0 comments

Lessons from Fitness Wearable Company WHOOP's FDA Warning Letter

https://pmc.ncbi.nlm.nih.gov/articles/PMC12822547/
1•randycupertino•25m ago•0 comments

WildDet3D: Open model that look at a single photo and understand objects in 3D

https://allenai.org/blog/wilddet3d
1•maxloh•25m ago•0 comments

Axios NPM supply chain incident

https://blog.talosintelligence.com/axois-npm-supply-chain-incident/
1•tcbrah•25m ago•0 comments

April Cools Club

https://www.aprilcools.club/
1•wxw•25m ago•0 comments

An Architectural Critique of OpenAI's Industrial Policy (RFC)

https://github.com/ariadne-coil/OpenAI-Industrial-Policy-RFC/blob/main/README.md
1•AriadneCyber•28m ago•0 comments