MathDL - The MAA Mathematical Sciences Digital Library

Close Window

Commentaries

What Does the iPad Mean for Math?

by Thomas E. Leathrum (Jacksonville State Univ.)

Apple, Inc., which manufactures the new iPad®, announced that more than 1 million iPads were sold in its first month of release, exceeding the corresponding sales figures for the first model of their iPhone. The iPad and similar platforms are on a rapid path toward becoming ubiquitous appliances, which will surely have an impact in math classrooms.   The MAA Committee on Technology in Math Education (CTiME) is sponsoring a panel discussion at the 2010 Mathfest in Pittsburgh this coming August:

Teaching Mathematics with Tablet Computers
organized by Jason Aubrey and Michael Scott

(In the interest of full disclosure, the Chair of CTiME is Lang Moore, who is also Executive Director of MathDL; both Loci Associate Editor Jason Aubrey and myself are members of CTiME.) I do not want this Commentary to overlap that panel discussion to any great extent. Instead, I want to look in particular at the iPad platform and its capabilities (or lack thereof), and what consequences this particular platform may have for developing online math visualization software and otherwise authoring math content for the web. This Commentary is intended as a sort of response to recent comments by Apple CEO Steve Jobs regarding whether Flash will ever be made available for the iPad:

"Thoughts on Flash," by Steve Jobs

You will find as you read, however, that my comments do not have much to do with Flash. I want to look more broadly at how interactive web software will be written in the future, and the role the iPad will have in this development.  This discussion is rather technical, but necessarily so -- Jobs argues for one set of standards over another on technical grounds, so his argument must be addressed on technical grounds as well.  I actually agree largely with Jobs on the need for platforms to implement open web standards.  I'm afraid that my conclusions are not very positive, though, that in spite of Jobs' high talk about open web standards, the iPad and its limited implementation of those standards sets the development of interactive online math visulalizations substantially backward.

By way of disclaimer, the opinions I express in this Commentary are my own, and do not necessarily represent the opinions of anyone else affiliated with Loci, MathDL, MAA, NSDL, or NSF, nor anyone affiliated with my primary employer, Jacksonville State University.  I asked other Loci editors for comments and proofreading of this Commentary prior to publishing it, but I have not sought their endorsements.

Since Jobs' comments were specifically about Flash, I must start there. Flash is used on today's web mostly for embedded video content, which does have some applications for math visualizations.

[Jobs] "Adobe has repeatedly said that Apple mobile devices cannot access ‘the full web’ because 75% of video on the web is in Flash. What they don’t say is that almost all this video is also available in a more modern format, H.264, and viewable on iPhones, iPods and iPads."

This is certainly a fair enough point.  However, there are several other modern video formats, including Ogg Theora, which may suit portable devices at least equally as well as H.264.

[Jobs] "[W]e strongly believe that all standards pertaining to the web should be open. Rather than use Flash, Apple has adopted HTML5, CSS and JavaScript – all open standards."

I do have tremendous sympathy for this point; however Jobs has chosen a peculiar collection of standards with which to make this point.  Yes, all of HTML5, CSS, and JavaScript are open standards, but the video standard mentioned above, H.264, is at least partly proprietary. Moreover, the HTML5 draft specification does not specify a standard video format for use with the new <video> tag (section 4.8.6). The Ogg Theora video format is an open standard, and therefore arguably a better fit with the other open standards.  Another option may be the VP8 format recently announced by Google as part of the WebM open media project, but it may still have some licensing concerns.

[Jobs] "Symantec recently highlighted Flash for having one of the worst security records in 2009."

Security may not be a critical concern for classroom visualizations, but I couldn't help pointing out the apparent hypocrisy in this statement from Jobs. The first procedure for "jailbreaking" an iPad (i.e. obtaining root access to the internal filesystem) came out just hours after the initial release of the iPad. The reason it could happen so quickly is that the procedure was based on a vulnerability already known for the iPhone, and the iPad uses essentially the same system software.  If security is such a high concern for Apple, why was this known vulnerability not patched when the system software was being adapted for the iPad?

[Jobs] "To achieve long battery life when playing video, mobile devices must decode the video in hardware; decoding it in software uses too much power."

This certainly seems like a reasonable argument at first, but I feel a need to take Jobs to task on this point. Apple has designed very stylish hardware, of course, but with severe limits to important performance parameters, in particular battery life.  Rather than work to improve the hardware performance, Jobs instead blames the software developers for overtaxing the hardware.

Elsewhere, Jobs has been quoted as saying:

[Jobs] "Java's not worth building in. Nobody uses Java anymore. It's this big heavyweight ball and chain."

To me, as a Java developer, the real strength of Java is the depth of its standard library of classes. Yes, for low-performance portable hardware such as the iPad, Java can be a "big heavyweight ball and chain," but this seems more another reason to develop better, higher performance portable hardware.

[Jobs] "Flash was designed for PCs using mice, not for touch screens using fingers. For example, many Flash websites rely on “rollovers”, which pop up menus or other elements when the mouse arrow hovers over a specific spot. Apple’s revolutionary multi-touch interface doesn’t use a mouse, and there is no concept of a rollover. Most Flash websites will need to be rewritten to support touch-based devices. If developers need to rewrite their Flash websites, why not use modern technologies like HTML5, CSS and JavaScript?"

As a software developer, I find this point almost offensive. He is certainly correct that the new "multi-touch" interface redefines many important concepts of interaction with web content. However, Apple is not giving the developers of the Flash platform an opportunity to adapt its existing interface elements to the new concepts. Moreover, the new interface currently disables some capabilities which are built into the previously mentioned open web standards: for example, HTML5 supports internally scrolling elements, such as <iframe> tags and <div> elements with scrollable overflow, which cannot be fully supported in the current iPad interface -- the extent of support for this feature in the interface is creative, but places an artificial limit on the depth of embedding such elements.  Claiming that elements embedded at greater depth would lead to bad page design misses the point:  if a page designer has a valid use for the feature, the interface should not block it. If Jobs plans on giving Apple's software developers an opportunity to find ways to make the iPad interface work with all available HTML5 elements, then why is he not giving the Adobe developers an opportunity to find ways to make the Flash interface work with the iPad? This will certainly require novel ways of thinking about how Flash can use its own interface elements, but the Flash software developers deserve the chance to find creative solutions to this problem.

[Jobs] "We know from painful experience that letting a third party layer of software come between the platform and the developer ultimately results in sub-standard apps and hinders the enhancement and progress of the platform. If developers grow dependent on third party development libraries and tools, they can only take advantage of platform enhancements if and when the third party chooses to adopt the new features. We cannot be at the mercy of a third party deciding if and when they will make our enhancements available to our developers. This becomes even worse if the third party is supplying a cross platform development tool. The third party may not adopt enhancements from one platform unless they are available on all of their supported platforms. Hence developers only have access to the lowest common denominator set of features. Again, we cannot accept an outcome where developers are blocked from using our innovations and enhancements because they are not available on our competitor’s platforms."

Here, Jobs actually seems to contradict himself. As a Java, JavaScript, and PHP developer and author of documents in HTML, XML, and TeX, I have much invested in the "write once, run anywhere" (or, for TeX, "device-independent") cross-platform development model. Cross-platform development can only work when the different platforms implement open standards. Note that there may be proprietary aspects of the implementation -- this has been a criticism of Java in the past, but in fact the Java programming interface has always been open, only the implementations were proprietary (other organizations, such as Blackdown, developed their own implemenations of the same interfaces).  Thus, the open standards are, by definition, the lowest common denominator between the platforms. Jobs has already stated that the iPad is being developed based on open standards, yet here he says that Apple's "innovations and enhancements" will make cross-platform development, and thus by extension open standards, impossible.

[Jobs] "New open standards created in the mobile era, such as HTML5, will win on mobile devices (and PCs too). Perhaps Adobe should focus more on creating great HTML5 tools for the future, and less on criticizing Apple for leaving the past behind."

Again, I have much sympathy for Jobs' point regarding open standards.  Indeed, Loci's involvement in exactly these standards predates the merger that created Loci in the first place in 2008:  the article

"Scalable Vector Graphics," by David Lane

(actually published in JOMA's Developers Area prior to JOMA becoming part of Loci) describes how to use JavaScript to control interactive SVG graphics; the article

"Open Standards, Web-Based Mathlets: Making Interactive Tutorials Using the HTML5 canvas Element,"
by Shane Steinert-Threlkeld and J. Tilak Ratnanather

(published in Loci in 2009) does much the same for the HTML5 <canvas> element. Both of these articles use technologies which rely on a set of JavaScript methods known collectively as AJAX ("asynchronous JavaScript and XML"), based on the ability for JavaScript to access and modify HTML elements dynamically. Even my own recent work has used these same technologies and standards: the article

"Math on the Web Made Easier," by Thomas E. Leathrum

uses a TeX-like syntax for math expressions, parsed in a Java applet into MathML output, with AJAX calls to dynamically insert the resulting MathML into the page. Loci uses the jsMath syntax and software for math expressions within its pages (and I am planning to upgrade to MathJax soon) -- jsMath makes extensive use of AJAX calls as well. If there is a standard here for developing interactive web content, then, it is AJAX.

Apple's Safari browser (on all platforms, including the iPad) does a good job of implementing the AJAX technology, but is severely limited in other standards which are important to Loci readers: in particular, the Safari browser does not implement MathML well. As indicated with my work above, having dynamic, AJAX-based access to even MathML content within a page has important consequences for authors of online mathematics.  The HTML5 draft specification indicates that both MathML (section 4.8.14) and SVG (section 4.8.15) should be supported within HTML5 documents -- Safari currently has poor support for MathML and only moderate support for SVG, so its support of HTML5 must be considered incomplete, and these gaps have a particularly devastating impact on the development of online mathematics in HTML5.

If you want to see how the iPad, or any platform, will perform with future online math visualization software, test the platform by viewing the above Loci articles. In my experience, the portable version of the Safari browser (for the iPhone and iPad) performs rather poorly. Apple is not leaving the past behind: they are using sloppy and incomplete implementations of the open standards on hardware that can be easily out-performed by a 10-year-old notebook computer. Jobs has said that the current class of netbook computers "aren't better at anything" -- I am writing this, and I do much of my current software development, on a Dell Mini 10v netbook running the Ubuntu version 8.04 operating system and the Firefox version 3.6.3 web browser with current Java and Flash plug-ins (and built-in HTML5 parsing enabled), a platform which I find to be excellent for viewing all of the above Loci content, and very portable to boot. I find the iPad to be a discouraging development for the future of online math software. I sincerely wish that were not the case, because I do think that the iPad interface and design offer tremendous, but currently unrealizable, opportunities for development of classroom-ready math visualizations.



Close Window

The Mathematical Association of America Close Window