- Microsoft
- Mark/Space, Inc.
- Readers Like You!
- Fetch Softworks
- Web Crossing
- VMware
- Bare Bones Software
Most Popular Articles
- Send SMS for Free via AIM on iPhone (13 Jul 2008)
- How to Protect Yourself from the New Mac OS X Trojans (25 Jun 2008)
- Firefox 3 Bounds Forward (22 Jun 2008)
- First Impressions of the iPhone 3G and iPhone 2.0 (14 Jul 2008)
Recent TidBITS Talk Discussions
- Using a GSM cell phone as a modem (1 message)
- Hands Off iPhone Talking in my Car (2 messages)
- iPhone Email Failure (8 messages)
- New Mac threats? (69 messages)
Shopping for a new digital camera? In "Take Control of Buying a Digital Camera," pro photographer Larry Chen helps you pick out the right camera and accessories for your needs and budget. This book is loaded with tips on using your camera, pointers to the best review sites, and more!
Published in TidBITS 193. Subscribe today to receive TidBITS in email every Monday.
- Administrivia
- Murdoch Buys Delphi
- DarkStar In hiding
- LaserWriter Pro Energy Star Caveat
- SimCity 2000 Bummer
- User Expectations
- MessagePad System Update
- Adjustable Keyboard Problem
- InterNews 1.0
Developing for the MessagePad
If you want to develop Newton applications, you need the Newton Toolkit (NTK), which runs on a Mac. Minimally speaking, the Mac should be 68020-based Mac running System 7.0.1 with 3 MB RAM. You tether the MessagePad to the Mac via a null modem cable, and - after using the NTK to design the interface, write the code, and build the application - you download the resulting binary image into the MessagePad, where you can test it.
The Toolkit provides tools for project management, application building, editing, object-template browsing, and View layout design. (Views are visible objects.) For Views layout, the NTK provides a set of customizable prototype templates for buttons, icons, sliders, and other user interface objects. The layout tools also let you preview results in a Mac window the same size as the MessagePad screen.
The programming language for the MessagePad is the object-oriented NewtonScript. The NTK compiles a compressed bytecode representation of the source code, similar to p-code. This bytecode image is executed by a run-time interpreter in the MessagePad ROM. This design makes the code fully portable. Currently, there are two run-time interpreter implementations: an ARM610 version for the MessagePad, and a 680x0 version for debugging in the NTK environment.
NewtonScript is a high-level language that lets you manipulate objects. Such objects could be a soup of contact numbers, or a View object that changes in response to a user action. NewtonScript's syntax is an amalgam of Pascal and C, and it supports messages and exception handling. The language is powerful enough to serve as real code, and in fact, the MessagePad's user interface was implemented with about 47,000 lines of NewtonScript.
NewtonScript requires little memory, and importantly, does automatic memory management and garbage collection. There's no memory allocation calls and all references are to objects, not to handles or pointers. This makes the programmer's nightmare of memory leaks and dangling pointers a thing of the past. Also, objects have latent typing, and NewtonScript performs type checking on operations before they are performed. This nails argument errors as they occur, and not after the trashed stack causes problems dozens of instructions later. This simplifies debugging and makes the operating system more robust.
WebCrossing Neighbors Creates Private Social NetworksCreate a complete social network with your company or group's
own look. Scalable, extensible and extremely customizable.
Take a guided tour today <http://www.webcrossing.com/tour>






