LiveCode
{{about|the LiveCode software platform|LiveCode, Ltd.|LiveCode (company)|the use of programming in the arts|Live coding}}
{{Use dmy dates|date=June 2022}}
{{Infobox software
| name = LiveCode
| developer = LiveCode Ltd.
| released = {{Start date and age|2001|07|11}}
| latest_release_version = 9.6.4
| latest_release_date = {{Start date and age|2021|08|31}}{{cite web |title=All LiveCode Downloads |url=https://downloads.livecode.com/livecode/ |website=livecode.com |publisher=LiveCode Ltd |accessdate=31 August 2021}}
| latest preview version = 9.6.5RC2
| latest preview date = {{Start date and age|2021|10|25}}
| operating_system = macOS, Windows, Linux, Unix, Android, iOS, HTML5
| genre = Programming
| license = GPL (until version 9.6.3), Proprietary
| website = {{URL|livecode.org}} {{Official URL}}
}}
{{Infobox programming language
|name = LiveCode Script
|paradigm = Object-oriented
|family = scripting language
|influenced_by = xTalk
|released = {{Start date|1993}}
|developer = LiveCode, Ltd
|influenced by = HyperTalk
|platform = i386, AMD64, ARM
|operating system = Windows, macOS, Linux, Unix, Raspberry Pi
|license = Proprietary, GPL
|website = {{Official URL}}
}}
LiveCode (formerly Revolution and MetaCard[http://www.macnn.com/articles/10/09/27/revamp.offers.new.ios.development.environment/ MacNN: RunRev replaces Revolution with "LiveCode"]) is a cross-platform{{Cite web|url=http://www.pcworld.com/article/129167/development_tool_for_mac_os_x_and_vista.html|archive-url=https://web.archive.org/web/20111225085859/http://www.pcworld.com/article/129167/development_tool_for_mac_os_x_and_vista.html|url-status=dead|title=PCWorld: Development Tool for Mac OS X and Vista|archive-date=25 December 2011}} rapid application development runtime system inspired by HyperCard. It features the LiveCode Script (formerly MetaTalk) programming language which belongs to the family of xTalk scripting languages like HyperCard's HyperTalk.{{cite journal | first = Dan | last = Shafer | volume=20 | issue=5 | year = 2004 | journal = MacTech | title = Review: Runtime Revolution, Programming for Mere Mortals | url = http://www.mactech.com/articles/mactech/Vol.20/20.05/RuntimeRevolution/index.html | quote = Revolution ... grows out of HyperCard, a much-beloved and widely used Apple Computer product that the company abandoned a few years ago....}}{{cite web | first=Phil | last=Manchester | title=HyperCard on steroids: One code to bind them all | date= 27 December 2007 | url=https://www.theregister.co.uk/2007/02/27/revolution_runtime/ | publisher=The Register}}
The environment was introduced in 2001.{{Cite web|url=http://www.macworld.com/article/20063/2001/11/revolution.html|title=Macworld: Runtime releases Revolution 1.1 for OS X|accessdate=12 March 2024}} The "Revolution" development system was based on the MetaCard engine technology which Runtime Revolution later acquired from MetaCard Corporation in 2003.{{Cite web|url=http://www.macworld.com/article/25297/2003/07/revolution.html|title=Macworld: Runtime Revolution acquires MetaCard technology|accessdate=12 March 2024}}{{cite web |title=Runtime Revolution Acquires MetaCard Technology |url=http://www.runrev.com/metacardpr.html |date=July 8, 2003 |archiveurl=https://web.archive.org/web/20040203175628/http://www.runrev.com/metacardpr.html |archivedate=2004-02-03}} The platform won the Macworld Annual Editor's Choice Award for "Best Development Software" in 2004.{{cite journal | title=The 19th Annual Editor's Choice Awards | journal=Macworld | year=2004 | url=http://www.macworld.com/article/29040/2004/02/editorschoiceawards2004.html | quote= HyperCard, with its stacks metaphor, has a new heir in Runtime Revolution's Revolution Studio 2.1}} "Revolution" was renamed "LiveCode" in the fall of 2010. "LiveCode" is developed and sold by Runtime Revolution Ltd., based in Edinburgh, Scotland. In March 2015, the company was renamed "LiveCode Ltd.", to unify the company name with the product. In April 2013, a free/open source version 'LiveCode Community Edition 6.0' was published after a successful crowdfunding campaign at Kickstarter.{{cite web | url=https://www.kickstarter.com/projects/1755283828/open-source-edition-of-livecode | title=Next Generation LiveCode (Open Source)| date=30 July 2014}} The code base was re-licensed and made available as free and open source software with a version in April 2013.
LiveCode runs on iOS, Android, OS X, Windows 95 through Windows 10, Raspberry Pi and several variations of Unix, including Linux, Solaris, and BSD. It can be used for mobile, desktop and server/CGI applications. The iOS (iPhone and iPad) version was released in December 2010.{{Cite web|url=https://sdtimes.com/mobile-development/runtime-revolution-releases-ios-deployment-pack/|title=Runtime Revolution releases iOS deployment pack|first=Katie|last=Serignese|date=6 December 2010|accessdate=12 March 2024}}{{cite web | first=Peter | last= Ranscombe | title=RunRev sets sights on £1m sales boost with release of LiveCode | date= 7 December 2010 | url=http://business.scotsman.com/business/RunRev-sets-sights-on-1m.6651846.jp | publisher=The Scotsman}} The first version to deploy to the Web was released in 2009.{{cite web | first=Kevin | last= Miller | title= Will an easy to use language attract content experts? | date= 22 April 2009 | url=http://www2009.eprints.org/218/ | publisher=WWW2009 Conference Paper}} It is the most widely used HyperCard/HyperTalk clone,{{Citation needed|date=February 2011}} and the only one that runs on all major operating systems.
A developer release of v.8 was announced in New York on March 12, 2015. This major enhancement to the product includes a new, separate development language, known as "LiveCode Builder", which is capable of creating new object classes called "widgets". In earlier versions, the set of object classes was fixed, and could be enhanced only via the use of ordinary procedural languages such as C. The new language, which runs in its own IDE, is a departure from the transitional x-talk paradigm in that it permits typing of variables. But the two environments are fully integrated, and apart from the ability to create new objects, development in LiveCode proceeds in the normal way, within the established IDE.
A second crowdfunding campaign to Bring HTML5 to LiveCode reached funding goals of nearly US$400,000 on July 31, 2014. LiveCode developer release 8.0 DP4 (August 31, 2015) was the first to include a standalone deployment option to HTML5.
On 31 August 2021, starting with version 9.6.4, LiveCode Community edition, licensed under GPL, was discontinued.{{cite web| quote= We have therefore taken the decision at this time to discontinue support for the open source editions of LiveCode. You can of course continue to use existing open source editions, and the code remains visible on github for viewing. The project will no longer accept contributions and we will not be maintaining it or offering open source downloads on our site. |url=https://livecode.org/ |title=LiveCode {{!}} The home of LiveCode open source |access-date=31 August 2021 |archive-url=https://archive.today/20210831201822/https://livecode.org/ |archive-date=31 August 2021 |url-status=live}}
Description
The LiveCode software creates applications that run in many supported environments, using a compile-free workflow. The same computer code in LiveCode can play across multiple devices and platforms. LiveCode uses a high level, English-like programming language called Transcript that is dynamically typed. Transcript and compile-free workflow generates code that is self-documenting and easy for casual programmers to comprehend. For example, if the following script was executed when the system clock was at 9:00:00 AM:
repeat ten times
put "Hello world at" && the long time & return after field 1
wait 1 second
end repeat
Ten lines will be loaded into the first text field. (denoted as "field 1"), and seen as:
Hello world at 9:00:00 AM
Hello world at 9:00:01 AM
Hello world at 9:00:02 AM
...
Notes:
- {{code|repeat}} (and the associated {{code|end repeat}}) is a control structure, illustrated here in just one of its various forms.
- {{code|put}} is a command
- {{code|"Hello World at"}} is a literal
- {{code|the long time}} is a function that calls the system time
- {{code|return}} is a constant equal to ASCII character 10 (linefeed)
- {{code|after}} is a keyword that is involved with a system known as "chunking", a hallmark of xTalk languages.
- {{code|field 1}} is an object reference, here denoted by the layer number of a text field. Almost all standard object classes are supported, and may be referred to in several, highly-intuitive ways.
LiveCode's natural English-like syntax is easy for beginners to learn. Variables are typeless, and are typed at compile time based purely on context. This makes the language simple to read and maintain, with relatively minimal loss of speed. The language contains advanced features including associative arrays,[http://livecode.byu.edu/arrays/introToArrays.php Tutorial: Using Arrays in LiveCode] regular expressions, multimedia, support for a variety of SQL databases, and TCP/IP libraries. The LiveCode engine supports several common image formats (including BMP, PNG, GIF, and JPEG,), anti-aliased vector graphics, HTML-style text hyperlinks, chained behaviors and embedded web browsers. Accessing these higher-level functions is designed to be straightforward.
=Examples=
- To load the source code of a web page into a variable takes one line of code:
- Uploading a file to an FTP server uses similar syntax:
=Depth=
LiveCode has around 2,950 built-in language terms and keywords, which may be extended by external libraries written in C and other lower level languages.{{cite journal | last=Monroe | first=Tim | title=Children of the Revolution: Editing QuickTime Movies in Revolution | journal=MacTech | volume=19 | issue=10 | year=2003 | url=http://www.mactech.com/articles/mactech/Vol.19/19.10/ChildrenoftheRevolution/index.html | quote=Happily, Runtime Revolution provides a software development kit (SDK) for writing Revolution plug-ins, and this makes writing our plug-in a snap.}}{{cite web |url=http://runrev.com/newsletter/october/issue34/newsletter1.php |title=Writing Externals for Linux with 2.9 |author=Waddingham, Mark |date=October 4, 2007 |work=Runtime Revolution Newsletter |publisher=Runtime Revolution, Ltd }}
=Outcomes=
LiveCode project files are binary-compatible across platforms. They inherit each platform's look-and-feel and behaviors. Buttons, scroll bars, progress bars and menus behave as expected on the target platform without any intervention on the part of the one authoring a LiveCode application.
Compiling a LiveCode "standalone" produces a single, executable file (minimum size ~1.5MB) for each platform targeted. There is no separate runtime necessary.
The Wikipedia article on HyperCard contains a more detailed discussion about the basics of a similar development environment and scripting language. Modern LiveCode is a vast superset of the former HyperCard yet retains its simplicity. LiveCode includes a number of features missing from the original HyperCard program, including multiple platform deployment, communication with external devices and many fundamental language extensions. The LiveCode toolkit, as compared to HyperCard, has the ability to access internet-based text and media resources, which allows the creation of internet-enabled desktop applications.{{Cite journal
| last = Gaskin
| first = Richard
| title = Beyond the Browser, Rediscovering the Role of the Desktop in a Net-centric World
| journal = Fourth World Embassy Articles
| date = Sep 20, 2001
| url = http://www.fourthworld.com/embassy/articles/netapps.html
}} See Section 5. Tools for Creating Net Apps.
Compatibility
iOS and Android targets are available in some versions.
Note: Complete Linux requirements for 4.5.x-6.x are the following:
- 32-bit installation, or a 64-bit linux distribution that has a 32-bit compatibility layer
- 2.4.x or later kernel
- X11R5 capable Xserver running locally on a 24-bit display
- glibc 2.3.2 or later
- gtk/gdk/glib (optional – required for native theme support)
- pango/xft (optional – required for pdf printing, anti-aliased text and unicode font support)
- lcms (optional – required for color profile support in JPEGs and PNGs)
- gksu (optional – required for elevate process support)
See also
References
{{Reflist|colwidth=50em}}
Bibliography {{anchor|Books}}
{{Refbegin}}
- Lavieri, Edward. [http://www.packtpub.com/livecode-mobile-development-hotshot/book LiveCode Mobile Development HOTSHOT]
- Holgate, Colin. [https://www.amazon.com/LiveCode-Mobile-Development-Beginners-Guide/dp/1849692483 LiveCode Mobile Development Beginner's Guide]
- Schonewille, Mark. [http://www3.economy-x-talk.com/file.php?node=book%253A-programming-livecode-for-real-starters Programming LiveCode for the Real Beginner]
- [http://www.oreillynet.com/pub/au/1955 Shafer, Dan]. Revolution: Software At The Speed Of Thought, Volume 1 (Runtime Revolution Ltd, 2003)
- Wang, Wallace. [https://archive.today/20130121211145/http://eu.dummies.com/DummiesTitle/productCd-0470088702.html Beginning Programming For Dummies, 4th Edition]
{{Refend}}
External links
- {{Official website}}
{{DEFAULTSORT:Livecode}}
Category:Cross-platform software
Category:Formerly open-source or free software
Category:Integrated development environments
Category:Programming languages