HackerTrans
トップ新着トレンドコメント過去質問紹介求人

dimview

16 カルマ登録 17 年前
http://dimview.org

投稿

A calculator that doesn't round

constructive-calculator.dimview.org
29 ポイント·投稿者 dimview·29 日前·24 コメント

[untitled]

1 ポイント·投稿者 dimview·30 日前·0 コメント

コメント

dimview
·一昨日·議論
You can do it a bit faster by not quicksorting the entire array, as you don't really care about the order of the lowest and highest numbers as long as they are not close to the middle.

There is also an approximate algorithm that does not keep all the data in memory at the same time.
dimview
·25 日前·議論
For Opus 4.8, 142.3k input, 2.0m output for the entire project. No longer have access to Fable 5 to check.
dimview
·25 日前·議論
Corrected the dates, thank you! What are the other errors?
dimview
·25 日前·議論
Thank you. Of course the dates were out of order. The Java library (com.hp.creals) is 1999-2004, paper is from 2005. Unfortunate price of LLM-assisted development. Corrected.
dimview
·25 日前·議論
That should be doable, too. Maybe as a next project.
dimview
·25 日前·議論
This is different from a CAS. For example, if you ask it to do exp(100)+1-exp(100), it does not rearrange and cancel out the two exp(100)s. Instead, it does exp, addition, and subtraction, all with as many digits as you ask for.
dimview
·25 日前·議論
Correct, but if you don't know the next digit is 2, you can think it's all 9s, another representation of an integer number.
dimview
·29 日前·議論
Author here. I could not find a constructive‑reals calculator on iPhone, so I ported the engine Android uses: Hans Boehm's com.hp.creals plus AOSP's UnifiedReal/BoundedRational. Used Opus 4.8 to do the port and Fable 5 for the review.

Fable 5 caught a couple of real concurrency bugs the port introduced while adapting Java's synchronized/AsyncTask to Swift concurrency, including one that was a memory‑safety bug on shared singletons like π, not just a wrong digit. None would have shown up in the unit tests. Writeup has the details.

It's an early iPhone TestFlight beta (link in the post); happy to go deep on either the constructive‑reals side or the AI‑assisted‑dev side.
dimview
·30 日前·議論
Looks like it uses seven colors (including bodies of water). Can it be done with fewer colors? The four color theorem does not quite apply, as all bodies of water have to be the same color.