8 comments

  • __alexs50 minutes ago
    &gt; Hans Boehm built a Java library for this in the 1980s and 90s<p>Hans is such a prolific programmer that he wrote a Java library before Java was even invented?
    • tomjakubowski28 minutes ago
      The article has so many of the hallmarks of LLM writing, naturally it will have some hallucinated factoids too. &quot;What that gives you: [bullet list]&quot;, &quot;What got ported: [bullet list]&quot;, &quot;foo: x, y, just z&quot;<p>Boehm&#x27;s Java library has copyright dates of 1999 and 2001-2004. <a href="https:&#x2F;&#x2F;www.hboehm.info&#x2F;new_crcalc&#x2F;CR.java" rel="nofollow">https:&#x2F;&#x2F;www.hboehm.info&#x2F;new_crcalc&#x2F;CR.java</a><p>The whitepaper was only published in 2005: <a href="https:&#x2F;&#x2F;www.sciencedirect.com&#x2F;science&#x2F;article&#x2F;pii&#x2F;S1567832604000736" rel="nofollow">https:&#x2F;&#x2F;www.sciencedirect.com&#x2F;science&#x2F;article&#x2F;pii&#x2F;S156783260...</a><p>I have a dimview now of the blog, and of this Swift port of the library, indeed.
    • nxobject4 minutes ago
      Well, you know, you go into your Smalltalk-80 workstation for a hack sesh, and an all-nighter later you end up with an implementatkon of Swing...
  • bla37 minutes ago
    &gt; I built one, by porting Boehm’s engine. &gt; It’s 2026, so I didn’t hand-write the port. I directed Opus 4.8 to translate the source line by line into Swift<p>I wish I could filter out stuff like this. Cool work by Hans Boehm, but what&#x27;s the value add in this blog post.
  • dimview3 days ago
    Author here. I could not find a constructive‑reals calculator on iPhone, so I ported the engine Android uses: Hans Boehm&#x27;s com.hp.creals plus AOSP&#x27;s UnifiedReal&#x2F;BoundedRational. Used Opus 4.8 to do the port and Fable 5 for the review.<p>Fable 5 caught a couple of real concurrency bugs the port introduced while adapting Java&#x27;s synchronized&#x2F;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.<p>It&#x27;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.
    • NetMageSCW6 minutes ago
      Maybe you should correct the errors in your post before worrying about the code.
    • nomel33 minutes ago
      The old HP calculators, and their emulators, have a computer algebra system, for symbolic maths, that supported this. The user interfaces leave much to be desired, but some also have reverse Polish notation!
  • jagraff1 hour ago
    Very interesting, thank you for posting! I&#x27;m curious - roughly how many tokens do you think you used during the initial port and subsequent bug hunting and fixes?
  • quixoticelixer-17 minutes ago
    I don&#x27;t get why this is a big deal. All the calculators I&#x27;ve used have been rectangle.
  • piinbinary1 hour ago
    It would also be fun to have a full computer algebra system (like maxima) on a phone
  • Jblx259 minutes ago
    Edit: My bad. This must have been a HN &quot;second chance&quot; winner.
    • badc0ffee18 minutes ago
      That looks like a link right back to this thread?
    • ColinWright18 minutes ago
      Er, that&#x27;s this submission.
  • htx80nerd55 minutes ago
    btw if you turn the iphone calc into landscape mode and switch you scientific calc it does Ramanujan&#x27;s constant without rounding, but stops after the twelve 9s.