Open Programming Language

Last updated

Open Programming Language (OPL)
Paradigms imperative, structured, embedded
Family BASIC
Designed by Colly Myers, Richard Harrison, Martin Stamp
Developers Psion Ltd
opl-dev project
First appeared1984;39 years ago (1984)
Stable release
1.56 / 17 June 2006;17 years ago (2006-06-17)
Typing discipline Static, strong
Scope Lexical
OS EPOC, Symbian OS, Psion Organiser
License GNU Lesser Public License [1]
Website opl-dev.sourceforge.net

Open Programming Language (OPL) is a programming language for embedded systems and mobile devices that run the operating systems EPOC and Symbian. It was released by the British company Psion in 1984.

Contents

Use

Originally designed for use on their classic Psion PDAs such as the Series 3, 5/5mx, Series 7, and netBook–netPad, and the Psion produced MC218, OPL was provided as part of the standard application suite. It can also be installed on the Nokia 9200, 9300 and 9500 Communicator series mobile telephone and personal digital assistant (PDA) and the Sony Ericsson P800, P900, P910 series. OPL is also included in Psion Teklogix industrial handhelds such as the Workabout mx, and it also appeared in the lesser known Oregon 'Osaris' organiser, a broadly compatible EPOC32 device that uniquely used version 4 of the OS. OPL is an interpreted language similar to BASIC. A fully Visual Basic-compatible language OVAL has also been developed.

History

The language was originally named Organiser Programming Language, developed by Psion Ltd for the Psion Organiser. Designed by Colly Myers with the first iteration implemented by Richard Harrison and Martin Stamp. The first implementation (without graphics) was for the original Psion Organiser (now referred to as the Psion Organiser I, 1984), and it came bundled with the Science, Finance and Math data packs. It became truly accessible as built-in software in the Psion Organiser II (1986), and the language went on to be used in the Psion Series 3 and later. After Psion retired from the personal digital assistant market, a project aiming to bring OPL to Symbian came to fruition, when the fledgling Symbian Developer Program released it as open-source software. The language is now available on SourceForge in a project named opl-dev.

The language is currently unavailable for Symbian OS v8 and later. With the subsequent retirement of the Symbian OS, it seems unlikely OPL will be made available for later generations of Symbian devices. As of 2010, Nokia device developers were encouraged to use Python for S60 instead (See Python for S60).[ citation needed ]

Examples

Here is the console version of a "Hello, World!" program:

PROC main:   PRINT "Hello World!"   PAUSE 40 ENDP

(Source code taken from the PCDevPrimer in the OPL Wiki.)

And here is a GUI version for Nokia's Series 80 user interface:

CONST KKeyEnter%=13  PROC hello:   dINIT "Hello"   dTEXT "","Hello World!"   dBUTTONS "OK",KKeyEnter%   DIALOG ENDP

OPL is a structured programming language. OPL programs contain PROCedures, which are much like functions (subroutines) in other programming languages.

Testing dialog responses

An example:

PROCtest:dINIT"Your Challenge"dTEXT"","Will your answer to this question be no?"dBUTTONS"Yes",%y,"No",%nIFDIALOG=%yPRINT"No it wasn't!"ELSEPRINT"Yes it was!"ENDIFGETENDP

In this cruel interrogative program, the Yes button is assigned the shortcut of Ctrl+y, while No has Ctrl+n, represented by %y and %n respectively. The user's input from the DIALOG is tested in the IF statement, PRINTing appropriate responses to the screen. Note that the 'GET' keyword, which gets user input without using a dialog box, is here used simply to wait for a keypress before terminating the program (otherwise it would end immediately without giving time for the user to read the text). The output from DIALOG can also be stored in a variable.

Variables specific to a procedure must be declared with the LOCAL keyword; global variables are defined with the GLOBAL keyword.

Variable types

The table below uses an example variable named var.

Data type Syntax
Floating pointvar
Integervar%
Long integervar&
Stringvar$(length)

Minutiae

OPL interfaced with advanced Psion Series 3 features by means of operating system CALLs, but in the later Psion Series 5mx this was changed to a so-called OPX library, stored in the system read-only memory (ROM), termed the Z drive. 'OPX' libraries were also made available for the Nokia 9210, Nokia 9300 and Nokia 9500 Communicators, adding OPXs routines for handling Short Message Service (SMS) and managing Bluetooth communication.

Other OPL features include those starting with a letter: g for graphical functions, m for menus, and d for dialogs.

See also

Related Research Articles

Psion Organiser was the brand name of a range of pocket computers developed by the British company Psion in the 1980s. The Organiser I and Organiser II had a characteristic hard plastic sliding cover protecting a 6×6 keypad instead of a computer keyboard, with letters arranged alphabetically.

<span class="mw-page-title-main">Psion (company)</span> Software company in Canada

Psion PLC was a designer and manufacturer of mobile handheld computers for commercial and industrial uses. The company was headquartered in London, England, with major operations in Mississauga, Ontario, Canada, and other company offices in Europe, the United States, Asia, Latin America, and the Middle East. It was a public company listed on the London Stock Exchange and was once a constituent of the FTSE 100 Index.

Symbian Ltd. was a software development and licensing consortium company, known for the Symbian operating system (OS), for smartphones and some related devices. Its headquarters were in Southwark, London, England, with other offices opened in Cambridge, Sweden, Silicon Valley, Japan, India, China, South Korea, and Australia.

AppleScript is a scripting language created by Apple Inc. that facilitates automated control over scriptable Mac applications. First introduced in System 7, it is currently included in all versions of macOS as part of a package of system automation tools. The term "AppleScript" may refer to the language itself, to an individual script written in the language, or, informally, to the macOS Open Scripting Architecture that underlies the language.

<span class="mw-page-title-main">Visual Basic (.NET)</span> Object-oriented computer programming language

Visual Basic (VB), originally called Visual Basic .NET (VB.NET), is a multi-paradigm, object-oriented programming language, implemented on .NET, Mono, and the .NET Framework. Microsoft launched VB.NET in 2002 as the successor to its original Visual Basic language, the last version of which was Visual Basic 6.0. Although the ".NET" portion of the name was dropped in 2005, this article uses "Visual Basic [.NET]" to refer to all Visual Basic languages released since 2002, in order to distinguish between them and the classic Visual Basic. Along with C# and F#, it is one of the three main languages targeting the .NET ecosystem. Microsoft updated its VB language strategy on 6 February 2023, stating that VB is a stable language now and Microsoft will keep maintaining it.

<span class="mw-page-title-main">UIQ</span> Software platform

UIQ was a software platform based upon Symbian OS, created by UIQ Technology AB. It is a graphical user interface layer that provides additional components to the core operating system, to enable the development of feature-rich mobile phones that are open to expanded capabilities through third-party applications.

<span class="mw-page-title-main">Psion Series 5</span>

The Psion Series 5 was a personal digital assistant (PDA) from Psion. It came in two main variants, the Series 5 and the Series 5mx (1999), the latter having a faster processor, clearer liquid crystal display (LCD), and updated software. There was also a rare Series 5mx Pro, which differed only in having the operating system (OS) loaded into random-access memory (RAM) and hence upgradeable. Ericsson marketed a version of the Series 5mx renamed as MC218.

<span class="mw-page-title-main">ActionScript</span> Object-oriented programming language created for the Flash multimedia platform

ActionScript is an object-oriented programming language originally developed by Macromedia Inc.. It is influenced by HyperTalk, the scripting language for HyperCard. It is now an implementation of ECMAScript, though it originally arose as a sibling, both being influenced by HyperTalk. ActionScript code is usually converted to byte-code format by the compiler.

<span class="mw-page-title-main">Psion Series 3</span> Series of personal digital assistants

The Psion Series 3 range of personal digital assistants were made by Psion PLC. The four main variants are the Psion Series 3 (1991), the Psion Series 3a (1993), the Psion Series 3c (1996), and the Psion Series 3mx (1998), all sized 165 by 85 by 22 millimetres. Further, a Psion Series 3a variant with factory installed software for the Russian language was called a Psion Series 3aR, and Acorn Computers sold renamed versions of the Psion Series 3 and 3a marketed as the Acorn Pocket Book and Acorn Pocket Book II.

The Psion Series 7 is a subnotebook computer from Psion that was released in 2000. In size it is fairly original: larger than a palmtop or handheld machine, but smaller than a laptop computer. It was the first and last of the Psion series to have a full color electronic visual display. It has a leather-bound clamshell design, with a touch-sensitive, Video Graphics Array (VGA) resolution liquid-crystal display (LCD) and QWERTY computer keyboard. Internally it has a 132.71 MHz StrongARM SA-1100 processor, 16 megabyte (MB) of random-access memory (RAM) and 16 MB of internal read-only memory (ROM).

<span class="mw-page-title-main">Psion netBook</span>

The Psion netBook is a small subnotebook computer developed by Psion. Released in 1999, it was for the mobile enterprise market.

<span class="mw-page-title-main">Psion Revo</span>

The Psion Revo, launched in November 1999, is a personal digital assistant (PDA) from Psion. It is the successor to the Psion Series 3 and a light version of Psion Series 5mx. It is software-compatible with the 5mx and has the same processor but is more lightweight and substantially smaller. Relative to the Series 5 and 5mx, the Revo has a smaller screen, and lacks a flash-card slot and backlight.

<span class="mw-page-title-main">Series 90 (software platform)</span>

The Series 90 is a platform for mobile phones that use Symbian OS. It was developed by Nokia in collaboration with Psion. It was released in 2003 and was going to be the platform for the Nokia 7700 which was cancelled, but did eventually make it to market with the Nokia 7710.

Nokia Browser for Symbian was the default web browser for the S60 and Symbian mobile phone platform. The browser is based on a port of Apple Inc.'s open-source WebCore and JavaScriptCore frameworks which form the WebKit rendering engine that Apple uses in its Safari Web browser.

Dialog Control Language (DCL) is a high-level description language and interpreter within AutoCAD for creating simple graphical dialogs. AutoLISP extensions use it to interact with the user in the AutoCAD environment.

<span class="mw-page-title-main">Symbian</span> Discontinued mobile operating system

Symbian is a discontinued mobile operating system (OS) and computing platform designed for smartphones. It was originally developed as a proprietary software OS for personal digital assistants in 1998 by the Symbian Ltd. consortium. Symbian OS is a descendant of Psion's EPOC, and was released exclusively on ARM processors, although an unreleased x86 port existed. Symbian was used by many major mobile phone brands, like Samsung, Motorola, Sony Ericsson, and above all by Nokia. It was also prevalent in Japan by brands including Fujitsu, Sharp and Mitsubishi. As a pioneer that established the smartphone industry, it was the most popular smartphone OS on a worldwide average until the end of 2010, at a time when smartphones were in limited use, when it was overtaken by iOS and Android. It was notably less popular in North America.

<span class="mw-page-title-main">Nokia E6</span> Smartphone

The Nokia E6-00 is a smartphone running the Symbian^3 operating system. It supersedes the Nokia E72 as the new Symbian business mobility solution from Nokia following its announcement on 12 April 2011. It shipped with the new "Symbian Anna" version of Symbian^3, and originally retailed for 340 euros before taxes.

Galileo was an unreleased 32-bit operating system that was under development by Acorn Computers as a long-term project to produce "an ultra-modern scalable, portable, multi-tasking, multi-threading, object-oriented, microkernel operating system", reportedly significant enough to Acorn's strategy to warrant a statement to the financial markets.

EPOC is a mobile operating system developed by Psion, a British company founded in 1980. It began as a 16-bit operating system (OS) for Psion's own x86-compatible devices, and was later replaced by a 32-bit system for x86 and ARM. Psion licensed the 32-bit system to other hardware makers, such as Ericsson.

<span class="mw-page-title-main">Psion MC series</span> Series of laptop computers

The Psion MC series is a line of laptop computers made by Psion PLC and launched in 1989.

References