1701337922157596901, 1687202767021215744, 1685875678087147521
This commit is contained in:
1 parent
5664b87a28
commit
b1d675b089
24 files changed
+967
-7
No files matched your search
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@mike_acton Aras approximator: can we delete that code already? :)"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/aras_p/status/989007374387204096"
|
||||
author: "Aras Pranckevičius"
|
||||
handle: aras_p
|
||||
post_id: "989007374387204096"
|
||||
date: 2018-04-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton Aras approximator: can we delete that code already? :)"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "989001065893801984"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/aras_p/status/989007374387204096
|
||||
- Author: Aras Pranckevičius (@aras_p)
|
||||
- Posted: 2018-04-25 05:05:07
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@aras_p** ^989007374387204096
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Aras approximator: can we delete that code already? :)
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator]]
|
||||
@@ -37,10 +37,4 @@ Mike Acton approximator:
|
||||
6. Can we constrain the problem further?
|
||||
RECURSE https://x.com/niinegames/status/988718667188854784
|
||||
|
||||
Branches: [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator/2018-04-25-bonzajplc-i-like-the-aproximate-results-line]], [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator/2018-04-25-Oberje-can-we-get-it-for-cheaper-as-addition-byproduct]], [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator/2018-04-25-PaperBirdMaster-1-2-3-4-5-6-6-6-the-number-of-the-beast]], [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator/2018-04-25-t_cheng_1-use-a-small-fifo-what-does-this-mean]], [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator/2018-04-25-JBrooksBSI-more-speed-up-q-a-is-algorithm-on-hw-fastpath-asm]]
|
||||
|
||||
**2/** **@aras_p** ^989007374387204096
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Aras approximator: can we delete that code already? :)
|
||||
Branches: [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator/2018-04-25-aras_p-aras-approximator-can-we-delete-that-code-already]], [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator/2018-04-25-bonzajplc-i-like-the-aproximate-results-line]], [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator/2018-04-25-Oberje-can-we-get-it-for-cheaper-as-addition-byproduct]], [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator/2018-04-25-PaperBirdMaster-1-2-3-4-5-6-6-6-the-number-of-the-beast]], [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator/2018-04-25-t_cheng_1-use-a-small-fifo-what-does-this-mean]], [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator/2018-04-25-JBrooksBSI-more-speed-up-q-a-is-algorithm-on-hw-fastpath-asm]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@mike_acton // what the fuck?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/damianGray/status/1686059861753184259"
|
||||
author: "Damian Gray"
|
||||
handle: damianGray
|
||||
post_id: "1686059861753184259"
|
||||
date: 2023-07-31
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton // what the fuck?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1685896474025177088"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/damianGray/status/1686059861753184259
|
||||
- Author: Damian Gray (@damianGray)
|
||||
- Posted: 2023-07-31 17:02:51
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@damianGray** ^1686059861753184259
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
// what the fuck?
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-07-31-by-encouragement-i-think-he-means-10-years-of]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@mike_acton Wild."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/jbaert/status/1685959354493669376"
|
||||
author: "Jeroen Baert"
|
||||
handle: jbaert
|
||||
post_id: "1685959354493669376"
|
||||
date: 2023-07-31
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton Wild."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1685896474025177088"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/jbaert/status/1685959354493669376
|
||||
- Author: Jeroen Baert (@jbaert)
|
||||
- Posted: 2023-07-31 10:23:28
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@jbaert** ^1685959354493669376
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Wild.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-07-31-by-encouragement-i-think-he-means-10-years-of]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@mike_acton That's a nice precision but shouldn't we just use rsqrtss ? It's less precise but surely faster in recent microarchitectures."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/nullspector/status/1686043047677591552"
|
||||
author: "Michael Spector"
|
||||
handle: nullspector
|
||||
post_id: "1686043047677591552"
|
||||
date: 2023-07-31
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton That's a nice precision but shouldn't we just use rsqrtss ? It's less precise but surely faster in recent microarchitectures."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1685896474025177088"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/nullspector/status/1686043047677591552
|
||||
- Author: Michael Spector (@nullspector)
|
||||
- Posted: 2023-07-31 15:56:02
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@nullspector** ^1686043047677591552
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
That's a nice precision but shouldn't we just use rsqrtss ? It's less precise but surely faster in recent microarchitectures. Or am I missing something?
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-07-31-by-encouragement-i-think-he-means-10-years-of]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@mike_acton degree-2 one is also fun, 86 fold improvement."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/olafurw/status/1685976874483142656"
|
||||
author: "Ólafur Waage"
|
||||
handle: olafurw
|
||||
post_id: "1685976874483142656"
|
||||
date: 2023-07-31
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton degree-2 one is also fun, 86 fold improvement."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1685896474025177088"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/olafurw/status/1685976874483142656
|
||||
- Author: Ólafur Waage (@olafurw)
|
||||
- Posted: 2023-07-31 11:33:05
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@olafurw** ^1685976874483142656
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
degree-2 one is also fun, 86 fold improvement.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-07-31-by-encouragement-i-think-he-means-10-years-of]]
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
---
|
||||
title: "@mike_acton 0.0000002000108 accurracy with one iteration:"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/anilcanglk12/status/1687596589450231809"
|
||||
author: "Anılcan Gülkaya"
|
||||
handle: anilcanglk12
|
||||
post_id: "1687596589450231809"
|
||||
date: 2023-08-04
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton 0.0000002000108 accurracy with one iteration:"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1685896474025177088"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/anilcanglk12/status/1687596589450231809
|
||||
- Author: Anılcan Gülkaya (@anilcanglk12)
|
||||
- Posted: 2023-08-04 22:49:15
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@anilcanglk12** ^1687596589450231809
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
0.0000002000108 accurracy with one iteration:
|
||||
https://shorturl.at/ilpJM
|
||||
float RSqrt(float x)
|
||||
{
|
||||
float f = x;
|
||||
uint32_t i = *(uint32_t*)&f;
|
||||
i = (uint32_t)(0x5F1FFFF9ul - (i >> 1));
|
||||
f = (float*)&i;
|
||||
return 0.703952253f * f * (2.38924456f - x * f * f);
|
||||
}
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-07-31-by-encouragement-i-think-he-means-10-years-of]]
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
---
|
||||
title: "By “encouragement” I think he means “10 years of constant badgering”."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/mike_acton/status/1685875678087147521"
|
||||
author: "Mike Acton"
|
||||
handle: mike_acton
|
||||
post_id: "1685875678087147521"
|
||||
date: 2023-07-31
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "By “encouragement” I think he means “10 years of constant badgering”."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/mike_acton/status/1685875678087147521
|
||||
- Author: Mike Acton (@mike_acton)
|
||||
- Posted: 2023-07-31 04:50:58
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@mike_acton** ^1685875678087147521
|
||||
|
||||
By “encouragement” I think he means “10 years of constant badgering”.
|
||||
|
||||
If you want the definitive paper on fast reciprocal square root approximation, read Mike Day’s paper: https://arxiv.org/pdf/2307.15600.pdf
|
||||
|
||||

|
||||
|
||||
**2/** **@mike_acton** ^1685896474025177088
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Branches: [[archive/threads/mike_acton/2023-07-31-by-encouragement-i-think-he-means-10-years-of/2023-07-31-jbaert-wild]], [[archive/threads/mike_acton/2023-07-31-by-encouragement-i-think-he-means-10-years-of/2023-07-31-olafurw-degree-2-one-is-also-fun-86-fold-improvement]], [[archive/threads/mike_acton/2023-07-31-by-encouragement-i-think-he-means-10-years-of/2023-07-31-nullspector-thats-a-nice-precision-but-shouldnt-we-just-use]], [[archive/threads/mike_acton/2023-07-31-by-encouragement-i-think-he-means-10-years-of/2023-07-31-damianGray-what-the-fuck]], [[archive/threads/mike_acton/2023-07-31-by-encouragement-i-think-he-means-10-years-of/2023-08-04-anilcanglk12-0-0000002000108-accurracy-with-one-iteration]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@mike_acton Interesting, but since float log2 and exp2 are newton raphsonable, in recent ip they tend to be machine instructions unto themselves"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/bmcnett/status/1687592722339872768"
|
||||
author: "bmcnett"
|
||||
handle: bmcnett
|
||||
post_id: "1687592722339872768"
|
||||
date: 2023-08-04
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton Interesting, but since float log2 and exp2 are newton raphsonable, in recent ip they tend to be machine instructions unto themselves"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1687202767021215744"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/bmcnett/status/1687592722339872768
|
||||
- Author: bmcnett (@bmcnett)
|
||||
- Posted: 2023-08-04 22:33:53
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@bmcnett** ^1687592722339872768
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Interesting, but since float log2 and exp2 are newton raphsonable, in recent ip they tend to be machine instructions unto themselves
|
||||
|
||||
**2/** **@mike_acton** ^1687593624576704512
|
||||
|
||||
**@bmcnett**
|
||||
|
||||
Though was a handy way to remap to 0-1, which is what I was looking for.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-08-03-mike-days-paper-got-me-thinking-about-abusing]]
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
---
|
||||
title: "Mike Day’s paper got me thinking about abusing floating point more so I had a use and made this little gem today… (compare to inv_lerp)"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/mike_acton/status/1687202767021215744"
|
||||
author: "Mike Acton"
|
||||
handle: mike_acton
|
||||
post_id: "1687202767021215744"
|
||||
date: 2023-08-03
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "Mike Day’s paper got me thinking about abusing floating point more so I had a use and made this little gem today… (compare to inv_lerp)"
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/mike_acton/status/1687202767021215744
|
||||
- Author: Mike Acton (@mike_acton)
|
||||
- Posted: 2023-08-03 20:44:21
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@mike_acton** ^1687202767021215744
|
||||
|
||||
Mike Day’s paper got me thinking about abusing floating point more so I had a use and made this little gem today… (compare to inv_lerp)
|
||||
|
||||

|
||||

|
||||
|
||||
Branches: [[archive/threads/mike_acton/2023-08-03-mike-days-paper-got-me-thinking-about-abusing/2023-08-04-bmcnett-interesting-but-since-float-log2-and-exp2-are]]
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
---
|
||||
title: "@mike_acton Possibly helpful for anyone reading the article to play around with:"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/alektron1/status/1701339313378611368"
|
||||
author: "Alex"
|
||||
handle: alektron1
|
||||
post_id: "1701339313378611368"
|
||||
date: 2023-09-11
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton Possibly helpful for anyone reading the article to play around with:"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701337922157596901"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/alektron1/status/1701339313378611368
|
||||
- Author: Alex (@alektron1)
|
||||
- Posted: 2023-09-11 20:57:56
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@alektron1** ^1701339313378611368
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Possibly helpful for anyone reading the article to play around with:
|
||||
|
||||
https://float.exposed/
|
||||
|
||||
**2/** **@mike_acton** ^1701340212910346726
|
||||
|
||||
**@alektron1**
|
||||
|
||||
Yeah, that's cool. I'll add a link to that too.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
---
|
||||
title: "@mike_acton Is that a slide ruler in the picture?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/cpioli64/status/1701343538548764994"
|
||||
author: "Chris Pioli 🇺🇦"
|
||||
handle: cpioli64
|
||||
post_id: "1701343538548764994"
|
||||
date: 2023-09-11
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton Is that a slide ruler in the picture?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701337922157596901"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/cpioli64/status/1701343538548764994
|
||||
- Author: Chris Pioli 🇺🇦 (@cpioli64)
|
||||
- Posted: 2023-09-11 21:14:43
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@cpioli64** ^1701343538548764994
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Is that a slide ruler in the picture?
|
||||
|
||||
**2/** **@mike_acton** ^1701345256443445612
|
||||
|
||||
**@cpioli64**
|
||||
|
||||
Yeah.
|
||||
|
||||
**3/** **@cpioli64** ^1701345517593325725
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
I've heard my teachees profess their love of these, and yet until now I have not seen one. Lol!
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
---
|
||||
title: "@mike_acton Hey Mike looks like there's a small typo in the offset-binary table, last row last column should be 255-128 I think 🙂"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/nicbarkeragain/status/1701379407481610533"
|
||||
author: "Nic Barker"
|
||||
handle: nicbarkeragain
|
||||
post_id: "1701379407481610533"
|
||||
date: 2023-09-11
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton Hey Mike looks like there's a small typo in the offset-binary table, last row last column should be 255-128 I think 🙂"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701337922157596901"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/nicbarkeragain/status/1701379407481610533
|
||||
- Author: Nic Barker (@nicbarkeragain)
|
||||
- Posted: 2023-09-11 23:37:15
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@nicbarkeragain** ^1701379407481610533
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Hey Mike looks like there's a small typo in the offset-binary table, last row last column should be 255-128 I think 🙂
|
||||
|
||||

|
||||
|
||||
**2/** **@mike_acton** ^1701401070227144746
|
||||
|
||||
**@nicbarkeragain**
|
||||
|
||||
Yes, fixed. Thanks!
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@mike_acton Alt dev blog reborn? :')"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/_plop_/status/1701461709179822448"
|
||||
author: "Jeremy Laumon"
|
||||
handle: _plop_
|
||||
post_id: "1701461709179822448"
|
||||
date: 2023-09-12
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton Alt dev blog reborn? :')"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701337922157596901"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/_plop_/status/1701461709179822448
|
||||
- Author: Jeremy Laumon (@_plop_)
|
||||
- Posted: 2023-09-12 05:04:17
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@_plop_** ^1701461709179822448
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Alt dev blog reborn? :')
|
||||
|
||||
**2/** **@mike_acton** ^1701478737550987775
|
||||
|
||||
**@_plop_**
|
||||
|
||||
There's a bit of shared dna in there somewhere, for sure. But it'll probably evolve in a totally different direction.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
---
|
||||
title: "@mike_acton @romainguy This one made it click for me a while ago"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/grishka11/status/1701743268575285252"
|
||||
author: "@grishka@mastodon.social"
|
||||
handle: grishka11
|
||||
post_id: "1701743268575285252"
|
||||
date: 2023-09-12
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton @romainguy This one made it click for me a while ago"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701337922157596901"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/grishka11/status/1701743268575285252
|
||||
- Author: @grishka@mastodon.social (@grishka11)
|
||||
- Posted: 2023-09-12 23:43:06
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@grishka11** ^1701743268575285252
|
||||
|
||||
**@mike_acton** **@romainguy**
|
||||
|
||||
This one made it click for me a while ago
|
||||
https://fabiensanglard.net/floating_point_visually_explained/index.html
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
---
|
||||
title: "@mike_acton What I'm missing, but maybe too niche, is how to convert a binary FP number to a decimal (text) representation, and back."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/kilianhekhuis/status/1701495438296203379"
|
||||
author: "Kilian Hekhuis 💉💉💉🦠💉🦠"
|
||||
handle: kilianhekhuis
|
||||
post_id: "1701495438296203379"
|
||||
date: 2023-09-12
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton What I'm missing, but maybe too niche, is how to convert a binary FP number to a decimal (text) representation, and back."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701337922157596901"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/kilianhekhuis/status/1701495438296203379
|
||||
- Author: Kilian Hekhuis 💉💉💉🦠💉🦠 (@kilianhekhuis)
|
||||
- Posted: 2023-09-12 07:18:19
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@kilianhekhuis** ^1701495438296203379
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
What I'm missing, but maybe too niche, is how to convert a binary FP number to a decimal (text) representation, and back. I struggled with that implementing my BASIC interpreter. Otherwise send like swell series.
|
||||
|
||||
**2/** **@mike_acton** ^1701715226004258980
|
||||
|
||||
**@kilianhekhuis**
|
||||
|
||||
No, that’s a good topic. Helps to explain what the compiler does when you use a constant real number value, so definitely on topic for this series. Maybe I’ll add that if I see that people are reading what’s there now.
|
||||
|
||||
**3/** **@kilianhekhuis** ^1701715663868309931
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Would be really appreciated!
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
---
|
||||
title: "@mike_acton I thought I am dumb and don't understand the notation."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/macsmol/status/1701668339972464955"
|
||||
author: "Maciej Smolczewski"
|
||||
handle: macsmol
|
||||
post_id: "1701668339972464955"
|
||||
date: 2023-09-12
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton I thought I am dumb and don't understand the notation."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701337922157596901"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/macsmol/status/1701668339972464955
|
||||
- Author: Maciej Smolczewski (@macsmol)
|
||||
- Posted: 2023-09-12 18:45:22
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@macsmol** ^1701668339972464955
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
I thought I am dumb and don't understand the notation. But it's just some html bug with displaying formulas..
|
||||
|
||||

|
||||
|
||||
**2/** **@mike_acton** ^1701715372137644401
|
||||
|
||||
**@macsmol**
|
||||
|
||||
Ok that’s weird.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
---
|
||||
title: "@mike_acton I'm pretty sure you wanted bitwise AND in the second line of this listing."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/macsmol/status/1701672907234058596"
|
||||
author: "Maciej Smolczewski"
|
||||
handle: macsmol
|
||||
post_id: "1701672907234058596"
|
||||
date: 2023-09-12
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton I'm pretty sure you wanted bitwise AND in the second line of this listing."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701337922157596901"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/macsmol/status/1701672907234058596
|
||||
- Author: Maciej Smolczewski (@macsmol)
|
||||
- Posted: 2023-09-12 19:03:31
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@macsmol** ^1701672907234058596
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
I'm pretty sure you wanted bitwise AND in the second line of this listing.
|
||||
|
||||

|
||||
|
||||
**2/** **@mike_acton** ^1701781394987569480
|
||||
|
||||
**@macsmol**
|
||||
|
||||
Doh! Thanks.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
---
|
||||
title: "@mike_acton > without any difference perceivable by anyone other than the original artist."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/tom_forsyth/status/1701489724429643956"
|
||||
author: "Tom Forsyth (TODO: fix my heart or die)"
|
||||
handle: tom_forsyth
|
||||
post_id: "1701489724429643956"
|
||||
date: 2023-09-12
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton > without any difference perceivable by anyone other than the original artist."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701479281925509395"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/tom_forsyth/status/1701489724429643956
|
||||
- Author: Tom Forsyth (TODO: fix my heart or die) (@tom_forsyth)
|
||||
- Posted: 2023-09-12 06:55:37
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@tom_forsyth** ^1701489724429643956
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
> without any difference perceivable by anyone other than the original artist.
|
||||
|
||||
Police! I'd like to report a murder.
|
||||
|
||||
**2/** **@mike_acton** ^1701492185240322236
|
||||
|
||||
**@tom_forsyth**
|
||||
|
||||
I originally wrote “…without any perceptible difference” then thought better of it. :)
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
---
|
||||
title: "@mike_acton Thank you for the series."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/alxersov/status/1702411411740061997"
|
||||
author: "Alexei Ersov"
|
||||
handle: alxersov
|
||||
post_id: "1702411411740061997"
|
||||
date: 2023-09-14
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton Thank you for the series."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701337922157596901"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/alxersov/status/1702411411740061997
|
||||
- Author: Alexei Ersov (@alxersov)
|
||||
- Posted: 2023-09-14 19:58:04
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@alxersov** ^1702411411740061997
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Thank you for the series. Part 4 has two sections with the same header: “Lossless compression”. The first sentence in Take-away seems to have a typo: “a form a compression” probably should be “a form of compression”.
|
||||
|
||||
**2/** **@mike_acton** ^1702412517019197919
|
||||
|
||||
**@alxersov**
|
||||
|
||||
Thanks! fixed.
|
||||
|
||||
**3/** **@alxersov** ^1702783283396751781
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
The compression routine in Part 5 produces strange results. If I compress 0.00015259 by running compress(0x5), I get 0:00010:0000000001, I expect to get 0:00010:0100000000. At the same time if I compress 2.00781250 and run compress(0x10100), I get 0:10000:0000000100 as expected.
|
||||
|
||||
**4/** **@mike_acton** ^1702805908940820618
|
||||
|
||||
**@alxersov**
|
||||
|
||||
Ok. I fixed up the pattern and added a note that hopefully clarifies.
|
||||
|
||||
**5/** **@alxersov** ^1702849157654868304
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
I am sorry Mike, I am still confused 🙂 After compressing 0.00015259 I get 0:00010:0000000001 (0x0801). It is one of the samples, but it has value 0.000122 in the table. By IEEE 754 0x0801 decodes as 0.000122
|
||||
|
||||
https://float.exposed/0x0801
|
||||
|
||||
**6/** **@mike_acton** ^1702898141983555823
|
||||
|
||||
**@alxersov**
|
||||
|
||||
I think you're saying the approx. values aren't matching what's in the table there when printing as decimal. Ok, I changed that table now to match. The larger table below that already matched.
|
||||
|
||||
Appreciate you pointing out any confusing things or errors. Happy to fix.
|
||||
|
||||
**7/** **@alxersov** ^1702981784768503967
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Because 'compress' aligns bits to the right and IEEE 754 - to the left, there is a discrepancy in the binary outcomes for smaller values. It appears that the 'compress' results are being interpreted as IEEE 754, resulting in a slight inaccuracy in smaller numbers.
|
||||
|
||||

|
||||
|
||||
**8/** **@mike_acton** ^1703164787792945535
|
||||
|
||||
**@alxersov**
|
||||
|
||||
Not so much inaccurate as differently compressed, but that might be a confusing distinction for the article. It’s tough to display an approximate real without having introduced the details on how to convert to decimal format yet. Maybe I should add that here to reduce confusion?
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@mike_acton Just printed all these out!! Have the original SCCS Interface issue with the Woz article on FP on 6502."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/njrabit/status/1702825097982271667"
|
||||
author: "Bun E. Brewster :: http://mastodon.social/@njrabit"
|
||||
handle: njrabit
|
||||
post_id: "1702825097982271667"
|
||||
date: 2023-09-15
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton Just printed all these out!! Have the original SCCS Interface issue with the Woz article on FP on 6502."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701337922157596901"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/njrabit/status/1702825097982271667
|
||||
- Author: Bun E. Brewster :: http://mastodon.social/@njrabit (@njrabit)
|
||||
- Posted: 2023-09-15 23:21:54
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@njrabit** ^1702825097982271667
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Just printed all these out!! Have the original SCCS Interface issue with the Woz article on FP on 6502.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
---
|
||||
title: "@mike_acton Think there's a typo in https://www.altdevarts.com/p/fixed-point-as-compression:"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/GamedevKevin/status/1738278287602864632"
|
||||
author: "Kevin"
|
||||
handle: GamedevKevin
|
||||
post_id: "1738278287602864632"
|
||||
date: 2023-12-22
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "@mike_acton Think there's a typo in https://www.altdevarts.com/p/fixed-point-as-compression:"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1701337922157596901"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/GamedevKevin/status/1738278287602864632
|
||||
- Author: Kevin (@GamedevKevin)
|
||||
- Posted: 2023-12-22 19:20:14
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@GamedevKevin** ^1738278287602864632
|
||||
|
||||
**@mike_acton**
|
||||
|
||||
Think there's a typo in https://www.altdevarts.com/p/fixed-point-as-compression:
|
||||
---
|
||||
Remove the bits we don’t care about.
|
||||
|
||||
S:xxxxxxxxxxxAAAA A:BBCCDDEEFFGGxxx -> s:AAAA:BBCCDDEEFFGG
|
||||
---
|
||||
Missing an "A" on RHS?
|
||||
Great series, thanks!
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
---
|
||||
title: "There are thousands of articles introducing the details of floating-point numbers, this one is mine."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/mike_acton/status/1701337922157596901"
|
||||
author: "Mike Acton"
|
||||
handle: mike_acton
|
||||
post_id: "1701337922157596901"
|
||||
date: 2023-09-11
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- mike_acton
|
||||
description: "There are thousands of articles introducing the details of floating-point numbers, this one is mine."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/mike_acton/status/1701337922157596901
|
||||
- Author: Mike Acton (@mike_acton)
|
||||
- Posted: 2023-09-11 20:52:24
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@mike_acton** ^1701337922157596901
|
||||
|
||||
There are thousands of articles introducing the details of floating-point numbers, this one is mine.
|
||||
|
||||
If you have a gap in your understanding of floating-point (and fixed-point) formats, hopefully this will be the series that finally clicks for you. :)
|
||||
|
||||
https://www.altdevarts.com/p/onboarding-floating-point?r=yknp0&utm_campaign=post&utm_medium=web
|
||||
|
||||
Branches: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-09-11-alektron1-possibly-helpful-for-anyone-reading-the-article]], [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-09-11-cpioli64-is-that-a-slide-ruler-in-the-picture]], [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-09-11-nicbarkeragain-hey-mike-looks-like-theres-a-small-typo-in-the]], [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-09-12-_plop_-alt-dev-blog-reborn]], [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-09-12-kilianhekhuis-what-im-missing-but-maybe-too-niche-is-how-to]], [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-09-12-macsmol-i-thought-i-am-dumb-and-dont-understand-the]], [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-09-12-macsmol-im-pretty-sure-you-wanted-bitwise-and-in-the]], [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-09-12-grishka11-this-one-made-it-click-for-me-a-while-ago-https]], [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-09-14-alxersov-thank-you-for-the-series-part-4-has-two-sections]], [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-09-15-njrabit-just-printed-all-these-out-have-the-original-sccs]], [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-12-22-GamedevKevin-think-theres-a-typo-in-https-www-altdevarts-com-p]]
|
||||
|
||||
**2/** **@mike_acton** ^1701479281925509395
|
||||
|
||||
I'd definitely appreciate any feedback from anyone that takes the time to read it all. I tried to take a different approach to teaching how they work that I'm hoping is more approachable for some folks.
|
||||
|
||||
Branches: [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the/2023-09-12-tom_forsyth-without-any-difference-perceivable-by-anyone]]
|
||||
@@ -10,4 +10,7 @@ tags:
|
||||
---
|
||||
|
||||
- [[archive/threads/mike_acton/2018-04-25-mike-acton-approximator]]
|
||||
- [[archive/threads/mike_acton/2023-07-31-by-encouragement-i-think-he-means-10-years-of]]
|
||||
- [[archive/threads/mike_acton/2023-08-03-mike-days-paper-got-me-thinking-about-abusing]]
|
||||
- [[archive/threads/mike_acton/2023-09-11-there-are-thousands-of-articles-introducing-the]]
|
||||
- [[archive/threads/mike_acton/2024-06-21-the-biggest-flaw-in-most-systems-designs-is-the]]
|
||||
Reference in new issue
Block a user