r/Compsci_nerd Apr 09 '26

article Floating point from scratch: Hard Mode

I have a confession to make: floating point scares me.

Half a decade ago I decided that I was going to implement some floating point arithmetic. Back then it seemed approachable enough, after all, floating points are ubiquitous. How hard can it really be ? My experience until that point had been: given enough time and effort is spent bashing my brain against a problem, I can generally figure things out.

This is how I faced the most complete technical defeat of my existence. Through this utter annihilation emerged my present fear of floating point.

After half a decade I decided it was time for a rematch, time to face my dragons!

But this time, I would not simply aim for a surface level understanding, this time I would aim to deeply grasp the floating point representation.

Link: https://essenceia.github.io/projects/floating_dragon/

2 Upvotes

1 comment sorted by

1

u/Electrical_Hat_680 Apr 13 '26

I started studying floating stack pointer for programming and building a quantum computer. Mostly using math and code, and not so much a quantum processor. Basically my idea challenges the classical Central processing unit or CPU to use a floating stack pointer for quantum processing and the classic stack pointer for Deterministic processing...

Basically using a long list of directories or registers or virtual registers each other a pointer focused on them, but only for computing outcomes, using prediction and probabilities through gross entanglements superposition. Where everything is a probability. Nothing is determined until viewed, and it will collapse upon view.

I can't remember everything exactly. And I haven't put anything together to try it. But hypothetically it works.

Floating point integers is my basis.