bug

The `f` string interpolator does not work with Dotty (Scala 3) alvin January 15, 2019 - 6:54pm

If you happen to be using Dotty (Scala 3) and find that the f string interpolator isn’t working, it’s a known bug. (It was implemented with a macro, and the old, experimental macro system has been dropped.) I’m writing this in January, 2019; I don’t know when it will work again. You can use the Java/Scala String.format method until it’s fixed:

val pi = scala.math.Pi
println( "%1.5f".format(pi) )
Bug reports for Functional Programming, Simplified alvin January 19, 2018 - 11:15am

If you own a copy of Functional Programming, Simplified, and would like to report any bugs, I started this Github repo so you can do that. Just report your bug under the Issues tab.

The old -0 error alvin December 19, 2017 - 9:20am

Whenever I see a programming error, I try to imagine the circumstances behind it.

99 bugs in the code (t-shirt) alvin November 30, 2017 - 8:50am

Here’s a “99 bugs in the code” t-shirt.

Instructions for filing an Android bug report alvin March 10, 2017 - 11:25am

As a quick note (circa March 10, 2017 and Android 7), I filed an Android bug report recently, and when I did, one of the Android developers asked if I would file an Android bug report. To do so, they gave me these instructions:

“After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option. Note: Please upload the files to google drive and share the folder to android-bugreport@google.com, then share the link here.”

I thought that was interesting, I had never seen the “Bug report shortcut” approach before.

Apollo 11 source code bug report alvin July 8, 2016 - 10:36am

I found this Apollo 11 source code tweet at this url, and the bug report and 100+ comments are here on Gituhub.

Software bugs help doom Japanese black hole satellite alvin July 7, 2016 - 1:28pm

In another example of a high-profile software quality problem, Gizmodo reports that a Japanese satellite that was meant to observe black holes was doomed by poor software quality:

“It was only up there a month when something went wrong. A series of unfortunate events caused by both human errors and software flaws sent the satellite spinning out of control.”

fMRI software bugs upend years of research

I’ve seen several articles about major software bugs (and a lack of testing) recently, and one of them is related to MRI/fMRI image processing. From this article at theregister.co.uk:

When you see a claim that “scientists know when you're about to move an arm: these images prove it”, they're interpreting what they're told by the statistical software.

A whole pile of “this is how your brain looks like” fMRI-based science has been potentially invalidated because someone finally got around to checking the data.

How to report Mac Java bugs alvin August 3, 2011 - 3:19pm

Mac Java FAQ: How do I report Mac Java bugs?

I just saw this information on the Mac Java mailing list, how to report Mac Java bugs:

What's new: Apple iPhone 2.1 software update bug fixes alvin September 13, 2008 - 9:41am

I was really surprised by the installation process of the Apple iPhone 2.1 software update. From my experience with Apple and Mac OS X, their installation process is usually extremely vague, essentially saying "There's an update for your software, and we recommend that you do this upgrade", and few other details are offered, even if you follow a URL they provide.