3 ms·
This is awesome. Ignoring the fact that it is written in Go, the iOS calculator only goes up to 100,000,000 and it is super annoying. Free ones have obnoxious a
by ejcx 11y ago
This is awesome. Ignoring the fact that it is written in Go, the iOS calculator only goes up to 100,000,000 and it is super annoying. Free ones have obnoxious advertisements.
Now, I want to learn to write iOS apps in Go as well.. Super neat and a great app to start with
- markelliot 11y agoFun trick: turn your phone to landscape mode while in Calculator and you get 26 digits instead of 9.
- bottled_poe 11y ago26? I get 15 digits before it switches to exponent representation. This is on iPhone 5s running iOS 8.4.
- eridius 11y ago15 decimal digits around is the approximate limit for a 64-bit IEEE floating-point number, which is what the built-in Calculator uses (most non-integral math done on computers uses either 32-bit of 64-bit IEEE floating-point numbers). The exponential notation is because floating-point numbers can represent absurdly large values, it just is limited on precision. So you can represent 10^31, you just can't represent 10^31 + 1.
- sneak 11y agoWhy should the user of a calculator care how the numbers are represented internally? More importantly, why should they be forced to? It's a bug.
- 0xdeadbeefbabe 11y agoWell, what if these users you speak of are trying to accomplish more than just homework?
- cbhl 11y agoSome users do expect arbitrary precision for basic operations (addition, subtraction, multiplication, division) since the Calculator app that comes with Windows does it[0]. [0] http://blog.codinghorror.com/if-you-dont-change-the-ui-nobody-notices/ http://blog.codinghorror.com/if-you-dont-change-the-ui-nobod...
- markelliot 11y agoYep, typo, 16 not 26.
- ChristianGeek 11y agoI could possibly see the point of this if Swift didn't exist (ObjC is my second least-favorite language, right behind C ), but otherwise it seems like little more than an interesting POC.
- iends 11y agoThe point is to demonstrate that Go runs on iOS, regardless of what other languages also run on iOS.
- incepted 11y agoThat's not news, Apple allows a lot of languages to run on their OS now. What matters is: how extensive is the support for this language on iOS? As far as this app shows, the support for Go looks very primitive and not really applicable to anything but toy apps.
- rhodysurf 11y agoYou can write business logic for both iOS and Android using Go and only have to write the UI specific stuff in Swift/objc or Java.