TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Is my vision that bad? No, it's just a bug in Apple's Calculator

631 点作者 wojtczyk9 个月前

48 条评论

DavidPiper9 个月前
Comically, I didn&#x27;t even notice those wobbly numbers in the first screenshot, I was too busy noticing:<p>- &quot;Unicode&quot; button label way off center<p>- The 8&#x2F;10&#x2F;16 selector being off center in its own position<p>- The indicators for bits 31 and 63 are not aligned with each other<p>- x and + not being horizontally aligned (I believe this is an icon-font issue, seen on HN before so knew to look for it)
评论 #41410322 未加载
评论 #41408374 未加载
评论 #41408138 未加载
评论 #41410147 未加载
评论 #41418597 未加载
评论 #41407613 未加载
rgovostes9 个月前
A friend doing homework for a university assignment, circa Leopard or Snow Leopard, noticed that Calculator produced negative values when raising a negative number to an even power.<p>The bug turned out to be in CFNumber, in Core Foundation. CFNumber does a lot of fiddly stuff at the bit level for performance, and one of their optimizations for exponentiation was incorrect. Somehow it was never found by tests or due to buggy behaviors it created in other apps, but by someone clicking buttons and thinking critically about the output.
评论 #41411316 未加载
评论 #41410865 未加载
评论 #41411004 未加载
评论 #41412437 未加载
评论 #41411294 未加载
yayitswei9 个月前
Reminded me of this article about how centering things is the hardest problem in computer science (with plenty of examples).<p><a href="https:&#x2F;&#x2F;tonsky.me&#x2F;blog&#x2F;centering&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tonsky.me&#x2F;blog&#x2F;centering&#x2F;</a>
评论 #41410571 未加载
评论 #41409290 未加载
dylan-m9 个月前
One of my favourite unreported MacOS issues comes from how, at some point, they changed the appearance of the window close button to be a particular shade of red with a tiny little X in the center. And if you happen to be using a particular kind of screen and possibly wearing glasses, that little X kind of wanders around in the button, appearing just slightly off center in a maddening way. Made only more maddening by the glasses component: <a href="https:&#x2F;&#x2F;www.robbert.org&#x2F;2014&#x2F;10&#x2F;the-off-center-close-button&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.robbert.org&#x2F;2014&#x2F;10&#x2F;the-off-center-close-button&#x2F;</a>.<p>That post points out it’s probably just subpixel stuff causing the issue, but I think my thick, cheap glasses at the time were adding a layer of chromatic aberration to something that was already visually confusing.<p>I assume it’s kind of gone away at this point with all the high DPI screens these days. But I remember thinking at the time, if there was a public bug tracker, that issue would be a fun one.
评论 #41406994 未加载
评论 #41407250 未加载
评论 #41406849 未加载
评论 #41407351 未加载
评论 #41409242 未加载
评论 #41408018 未加载
评论 #41408369 未加载
评论 #41408545 未加载
jb19919 个月前
On mobile devices, Apple’s Calculator app has always been one of the most frustrating apps I’ve ever used, and I’m surprised it’s a stock app by the company itself. If you press buttons quickly, like you would a normal calculator, many of the key presses simply don’t register at all. I’m not sure if they’re prioritizing some pretty little visual animation over actual functionality, but it’s incredibly surprising from a company that focuses on user interaction, supposedly.
评论 #41408727 未加载
评论 #41407553 未加载
评论 #41412179 未加载
评论 #41411245 未加载
评论 #41410813 未加载
评论 #41410995 未加载
评论 #41409391 未加载
评论 #41411674 未加载
评论 #41412268 未加载
评论 #41411348 未加载
djbusby9 个月前
Maybe now is a good time to remind everyone: your vision will deteriorate. Keep this in mind when designing.<p>When I first came to HN it wasn&#x27;t an issue. Now I have to use my own app for it so the font (and some other things) are workable.<p>According to my eye doctor the screen time is causing eyesight issues earlier. We&#x27;re not designed to stare at a bright light 40cm away all day.<p>May want to look at some eye exercises - or at least something far away.
评论 #41407026 未加载
评论 #41407262 未加载
评论 #41410359 未加载
评论 #41407390 未加载
tanelpoder9 个月前
Haha, off-by-one pixel error!<p>I still see MacOS as the best choice for my desktop&#x2F;laptop uses (browser and SSH), but I also have a documents folder that I’ve accumulated over decades. I still use various .txt files in the docs folder as my low tech note taking apps.<p>I use the Spotlight or Alfred keyboard shortcuts (that also use spotlight index?) for quickly opening the files when needed - and annoyingly my most important file - notes.txt - regularly disappears from the Spotlight index and suggestions. It’s been like that for at least 5 years, probably closer to 10. I’m not even trying anymore, will just open the file from command line with vi as the fallback step.
评论 #41406982 未加载
评论 #41406900 未加载
评论 #41407024 未加载
评论 #41406778 未加载
hakanderyal9 个月前
My bet would be on some compounding error from long usage also.<p>I&#x27;m using Apple Notes and it fails in some random ways after keeping it open for 1-2 weeks: When I try to copy something I select, it copies some random stuff, dragging text won&#x27;t work, I can check&#x2F;uncheck todo boxes. Goes away when I restart it.
评论 #41406884 未加载
评论 #41406765 未加载
评论 #41406823 未加载
评论 #41409470 未加载
msephton9 个月前
My initial thoughts were that these issues were showing how things look on a non-retina display, or a display with non-default scaling. That does seem to be the case, but not entirely.<p>I took some screenshots and I do not see the misaligned numbers at retina or non-retina resolutions, but I do see the odd bevelled edges on the 8&#x2F;10&#x2F;16 &quot;tabs&quot;: <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;PqqkWai" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;PqqkWai</a><p>Apple have pretty much given up on making things look correct on non-retina displays, so many things are positioned at what turn out to be half pixel steps. Depending on whether we&#x27;re talking fonts or shapes things can jump by a pixel or become blurry. I wrote about this here: <a href="https:&#x2F;&#x2F;blog.gingerbeardman.com&#x2F;2024&#x2F;01&#x2F;25&#x2F;running-modern-macos-on-non-retina-displays&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.gingerbeardman.com&#x2F;2024&#x2F;01&#x2F;25&#x2F;running-modern-ma...</a>
ChrisMarshallNY9 个月前
<i>&gt; I would contact Apple, if there was a feedback option, but there isn’t</i><p>There is: <a href="https:&#x2F;&#x2F;feedbackassistant.apple.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;feedbackassistant.apple.com&#x2F;</a><p>That said, it isn’t very user-friendly, and I find that they don’t seem to pay much attention to it. When they do respond, it tends to be some form of “#wontfix. Please close this.”<p>That looks like a fairly ugly little bug. I suspect they know about it now, thanks to the HN Bug Reporter. It tends to highlight these types of things.
评论 #41407427 未加载
评论 #41407653 未加载
评论 #41410007 未加载
评论 #41410735 未加载
评论 #41407418 未加载
评论 #41407435 未加载
评论 #41411324 未加载
评论 #41411513 未加载
评论 #41408617 未加载
andrewinardeer9 个月前
Windows 11 lets you conveniently &quot;pin&quot; the calculator in standard mode, keeping it accessible on top of your active window – great for multitasking with calculations.<p>However, switch to a different calculator mode (like scientific), and Windows inexplicably removes the pinning feature.<p>This baffling decision feels so actively user hostile it is deserving of an award for poor design choices.
ntrcessor9 个月前
If I recall correctly, that is a kerning issue with the font. At the edges of the font is not a solid line, but rather more like every other pixel so that the characters can be closer together. This causes the up&#x2F;down movement of one character to the next, as they fit together like poorly made puzzle pieces. And just how bad it looks depends on the size of the pixel on the monitor, and how much &quot;bleed&quot; it has with it&#x27;s neighbors. (I don&#x27;t recall the tech terms for this.)
评论 #41406784 未加载
评论 #41406837 未加载
galad879 个月前
macOS on a low dpi screen is mostly full of those kind of issues. I wouldn&#x27;t recommend using a low dpi screen.
评论 #41407134 未加载
评论 #41406878 未加载
评论 #41406845 未加载
评论 #41408788 未加载
fferen9 个月前
On the topic of calculator font bugs, Google&#x27;s calculator randomly switches between two fonts:<p><a href="https:&#x2F;&#x2F;pasteboard.co&#x2F;lmbr4iE6BJej.png" rel="nofollow">https:&#x2F;&#x2F;pasteboard.co&#x2F;lmbr4iE6BJej.png</a><p><a href="https:&#x2F;&#x2F;pasteboard.co&#x2F;sU3GA5psIaT0.png" rel="nofollow">https:&#x2F;&#x2F;pasteboard.co&#x2F;sU3GA5psIaT0.png</a>
评论 #41410244 未加载
评论 #41410239 未加载
kibwen9 个月前
How would you even tell in the first place? The contrast on those digits is so low and their font weight is so light as to render them essentially invisible.<p>And as far as bad design goes, why are the bit position indicators on the right (0, 32) center-justified underneath their digits, whereas the ones on the left (31, 63) are left-justified?
wslh9 个月前
Beyond this bug, nowadays accessibility features are one of the most used in my setup, and I think as software engineers age they will become more sophisticated.<p>I remember using fonts of 8pt in an IDE to &quot;squeeze &quot; the potential of the monitor.
quink9 个月前
Starting to see this with view counts on YouTube in Firefox after some recent UI updates.
评论 #41408099 未加载
评论 #41406955 未加载
heywoods9 个月前
This post is going to lead to a new calculator and a calculator app on the iPad.
评论 #41409369 未加载
评论 #41412220 未加载
评论 #41409582 未加载
rustybolt9 个月前
&gt; I would contact Apple, if there was a feedback option, but there isn’t<p>This is infuriating and the same for all the big companies (at least Google, Microsoft, Apple); you have a serious issue and simply no way to talk to a representative. The best you can do is post something on Hacker News and hope it somehow gets picked up.<p>I worked at a company that paid Microsoft a lot to have a 1-day SLA for support. When I contacted them, I got a reply back <i>weeks</i> later saying &quot;hey sorry I missed your email&quot;. About two weeks later (which was the time it took to email back and forth), it was clear that I had to insert another ticket and mark the subject as something else (that was not directly related, but apparently the team responsible for that subject was also working on the functionality I found a bug in. There was no way for me to know this since it was something internal to Microsoft). So, I had to go through the whole procedure again.<p>Once I did that, the reply was &quot;oh yeah, we dropped that functionality but the documentation doesn&#x27;t mention it. we recommend you use &lt;technology X&gt; for this&quot;. Where, of course, technology X did not support the feature I was trying to use.
评论 #41408761 未加载
rgovostes9 个月前
I can usually appreciate Apple&#x27;s design homages. The original iOS Calculator is inspired by the Braun ET, and it makes some sense to provide a familiar design for basic use.<p>But it inherits baggage from the limitations of the handheld calculators of the 1970s. Why can&#x27;t I use the - button to write a negative sign? What does &quot;AC&quot; mean? The scientific calculator is an even worse design. There&#x27;s a ton of invisible state, like the value stored in memory, or whether you&#x27;re inside parentheses. The user has to hold the whole sequence of operations in their head, without clicking a single wrong button. Want to repeat a calculation with a different operand? Tough.<p>Graphing calculators like the TI-84 that let you see and edit your input are so much more usable. Even better are notebook-style interfaces like Mathematica. It&#x27;s a shame Apple won&#x27;t pay homage to <i>those</i> designs.
评论 #41411129 未加载
jacobp1009 个月前
If I may pitch my own app, TechniCalc has this same mode, along with a bunch of other stuff the built in app doesn’t support. It works on iOS, iPadOS, and macOS<p><a href="https:&#x2F;&#x2F;jacobdoescode.com&#x2F;technicalc" rel="nofollow">https:&#x2F;&#x2F;jacobdoescode.com&#x2F;technicalc</a>
Aerbil3139 个月前
Once I had downloaded a HN thread for later reading, on my iPhone with Safari&#x27;s built-in Download Linked File feature. When I opened it and was reading it (HN renders fine with just the HTML), I noticed a single line looking a bit off. Took my glasses off to take a closer look. I don&#x27;t remember the specifics, but I think the spacing with the line above was slightly less than usual. Took screenshots and it was clearly visible zoomed in. Happened twice that day and never before, never after. I believe I witnessed a cosmic ray induced bit flip.
klausa9 个月前
&gt;Maybe the UI coordinate system is using floats and a rounding error aggregated over many days<p>It&#x27;s using floats on 32bit (...which means only the watchOS currently, I guess?) and doubles elsewhere.<p>Are there any modern UI frameworks that _don&#x27;t_ use floats&#x2F;doubles?<p>I was gonna guess CSS, but even that has supported sub-pixel precisions on HiDPI displays for a while now.<p>[1]: <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;5709698&#x2F;html-sub-pixel-border&#x2F;40833470#40833470" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;5709698&#x2F;html-sub-pixel-b...</a>
lapcat9 个月前
Apple software quality has gone into the trash the past 10 years. I&#x27;m not talking about initial quality but rather about &quot;mature&quot; quality, i.e., the current public versions almost a full year after a major release.<p>I was just talking about this yesterday: somehow TextEdit on Mac has been wrecked. TextEdit, which is essentially a wrapper around NSTextView, was more or less &quot;perfect&quot; 15-20 years ago. Now I experience a bug where the window is blank when I open a document until I click inside a window, and scrolling performance in a long document is atrocious. For example, if I try to scroll backward, from the end of the document, it stutters and can lose my place. This doesn&#x27;t depend on the document; it happens all the time.<p>I guess that Apple rewrote everything a few years ago with TextKit 2, and it shows, but not in a good way.<p>The impression I get from Apple is that Craig Federighi has given engineers license to keep churning out new features and not worry much about bugs, or design, or the user interface. And if something becomes a massive problem, they just pause on features for a couple of weeks, which is like rearranging the deck chairs on the Titanic.
spacecadet9 个月前
Casio FX115ES Plus, its only $15. Looks great, feels great, just works.
amai9 个月前
Relevant remark in the comment section of the blog post:<p>&quot;after I took screenshots and restarted the calculator, the misplacements were gone. I am looking out for it to happen again.&quot;
OldGuyInTheClub9 个月前
I like Apple&#x27;s hardware and underlying OS enough to shell out for MacBook Pros but, man, their homebuilt applications are a PITA. The RPN calculator on my high powered new MBP doesn&#x27;t have a scientific or engineering notation option.<p>Same on my old MBP as well.<p>I guess it is a feature.<p><a href="https:&#x2F;&#x2F;discussions.apple.com&#x2F;thread&#x2F;3527779?sortBy=rank" rel="nofollow">https:&#x2F;&#x2F;discussions.apple.com&#x2F;thread&#x2F;3527779?sortBy=rank</a>
评论 #41412017 未加载
usaphp9 个月前
Reminds me of Microsoft calculator having a one pixel off between buttons: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;mildlyinfuriating&#x2F;comments&#x2F;a5r971&#x2F;the_microsoft_calculator_buttons_being_one_pixel&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;mildlyinfuriating&#x2F;comments&#x2F;a5r971&#x2F;t...</a>
评论 #41407679 未加载
评论 #41407181 未加载
评论 #41412198 未加载
superjan9 个月前
Possibly they ask the text engine to render halfway two pixel lines. It will round up or down quite randomly when fp errors accumulate.
Bondi_Blue9 个月前
You can try submitting a bug report with Feedback Assistant.app or apple.com&#x2F;feedback, but there’s no guarantee they will see it.
评论 #41407108 未加载
trissylegs9 个月前
There&#x27;s a similar bug in the Windows calculator. One of the buttons is about 1 pixel wider than the rest.
throwpoaster9 个月前
Aren&#x27;t the raised digits an indication of endianness or something? It looks like a transmission bit pattern. Or isn&#x27;t high low high low double high double low the original Apple disk format? It&#x27;s something like that.<p>Just guessing -- it doesn&#x27;t look accidental to me.
DrNosferatu9 个月前
I would say it&#x27;s a feature: it&#x27;s supposed to be like a mechanical odometer.
评论 #41407636 未加载
steve19779 个月前
Proudly presented to you by the company that took 14 years to port the calculator to the iPad, because “if we do it, it has to be the greatest calculator app“
megablast9 个月前
One that Apple seems to ignore. You click on something. And the micro second before it changes the hi, causing you to click something else.
评论 #41408568 未加载
manoweb9 个月前
I’m pretty sure there are Apple employees that read HN. It would have been cool to include a build number of the OS
评论 #41407008 未加载
tlhunter9 个月前
Here&#x27;s something that really irks me. On macOS I&#x27;ll use Spotlight (Cmd+Space) to do some quick math. For example, press Cmd+Space, type &quot;1.2+3.4&quot;, and it sort of displays 4.6. Now to copy the results you either have to click the copy option in the dropdown, using your mouse (no thanks), or press enter to get the results in Calculator.<p>Assuming you last left the calculator in &quot;Programmer&quot; mode the calculator displays the value &quot;4&quot;.<p>Ideally, pressing enter in Spotlight would simply replace the text in the input bar with the result. The equivalent Alt+Space tool in KDE (Plasma Search) performs math this way and it&#x27;s amazing. I haven&#x27;t used Quicksilver or Alfred in a decade but I&#x27;m sure they do the right thing, too.<p>Otherwise both Spotlight and Plasma Search are both pretty great. Type something like &quot;14oz to lb&quot; and they both display the result (though Plasma Search displays the exact &quot;0.875 pounds&quot; while Spotlight displays the rounded &quot;0.88 pounds&quot;).<p>Overall I&#x27;m mostly disappointed with first-party Apple software. Being one of the richest companies in the world I have higher expectations.
评论 #41410843 未加载
评论 #41410701 未加载
sigio9 个月前
This is to fit in with the windows calculator, which also has off-by-one pixel errors: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;mildlyinfuriating&#x2F;comments&#x2F;a5r971&#x2F;the_microsoft_calculator_buttons_being_one_pixel&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;mildlyinfuriating&#x2F;comments&#x2F;a5r971&#x2F;t...</a>
virtualritz9 个月前
And this on a Mac. :D<p>That would have never happened under Jobs&#x27;s watch.
Modified30199 个月前
They clearly need better telemetry in the calculator app.
userbinator9 个月前
My bet is on a random bitflip more than an actual bug in the code, based on its localised nature and rarity.<p>Antialiased text always looks blurry to me after looking at pixel fonts all the time.
评论 #41406861 未加载
评论 #41407095 未加载
shmeeed9 个月前
This would never have gone past Jobs.
mgaunard9 个月前
In that picture I&#x27;m personally more bothered by the antialiasing than by the misalignment.
评论 #41408039 未加载
imchillyb9 个月前
I’ve been using an app called PCalc on Apple’s App Store.<p>The Apple calculator is a frustrating mess to use.<p>PCalc does scientific, engineering, and A to B calculations for most things.<p>I wouldn’t go back to Apple’s calculator app even if Apple gave me a credit for the PCalc app.<p>Nope.
raws9 个月前
YouTube viewership numbers ha et a similar issue.
ABCD09 个月前
Juste my vision
theGeatZhopa9 个月前
It&#x27;s font hinting and kerning. But whyyy the heck only in the last few chars?
评论 #41407239 未加载
hollerith9 个月前
Maybe the bug is the need for everything to line up perfectly.
评论 #41406811 未加载