Squeak

From Wikipedia, the free encyclopedia
  (Redirected from Squeak (programming language))
Jump to navigation Jump to search
Squeak
Squeak.svg
Original 1996 logo by Tim Rowledge[1]
Screenshot of the Squeak/Smalltalk Morphic User Interface
Screenshot of the Squeak Morphic user interface.
Paradigmobject-oriented
Designed byAlan Kay, Dan Ingalls, Adele Goldberg
DevelopersThe Squeak Community
First appeared1996; 25 years ago (1996)
Stable release
5.3 / March 4, 2020; 16 months ago (2020-03-04)[2]
Typing disciplineDynamic
PlatformCross-platform
OSCross-platform: Unix-like, macOS, iOS, Windows, more
LicenseMIT, Apache
Filename extensions.image, .changes, .sources, .st
Websitewww.squeak.org
Major implementations
Squeak, Croquet
Dialects
Croquet, Newspeak (programming language), Pharo
Influenced by
Smalltalk, Lisp, Logo; Sketchpad, Simula; Self
Influenced
Etoys, Tweak, Croquet, Scratch

Squeak is an object-oriented, class-based, and reflective programming language. It was derived from Smalltalk-80 by a group that included some of Smalltalk-80's original developers, initially at Apple Computer, then at Walt Disney Imagineering, where it was intended for use in internal Disney projects. The group would later go on to be supported by HP labs, SAP, and most recently, Y Combinator.

Squeak runs on a virtual machine (VM), allowing for a high degree of portability. The Squeak system includes code for generating a new version of the VM on which it runs, along with a VM simulator[3] written in Squeak.

Developers[edit]

Dan Ingalls, an important contributor to the Squeak project, wrote the paper[4] upon which Squeak is built, and constructed the architecture for five generations of the Smalltalk language.

Alan Kay is an important contributor to the Squeak project, and Squeak incorporates many elements of his proposed Dynabook concept.

User interface frameworks[edit]

Squeak includes four user interface frameworks:

  • An implementation of Morphic, Self's graphical direct manipulation interface framework. This is Squeak's main interface.
  • Tile-based, limited visual programming scripting in Etoys, based on Morphic.
  • A novel, experimental interface called Tweak. In 2001 it became clear that the Etoy architecture in Squeak had reached its limits in what the Morphic interface infrastructure could do. Hewlett-Packard researcher Andreas Raab proposed defining a "script process" and providing a default scheduling-mechanism that avoids several more general problems.[5] This resulted in a new user interface, proposed to replace the Squeak Morphic user interface in the future. Tweak added mechanisms of islands, asynchronous messaging, players and costumes, language extensions, projects, and tile scripting.[6] Its underlying object system is class-based, but to users, during programming (scripting), it acts like it is prototype-based. Tweak objects are created and run in Tweak project windows.
  • A model–view–controller (MVC) interface was the primary UI in Squeak versions 3.8 and earlier. It derived from the original Smalltalk-80 user interface framework which first introduced and popularized the MVC architectural pattern.[7] MVC takes its name from the three core classes of the framework. Thus, the term "MVC" in the context of Squeak refers to both one of the available user interface frameworks and the pattern the framework follows. MVC is still provided for programmers who wished to use this older type of interface.

Uses[edit]

Many Squeak contributors collaborate on Open Cobalt, a free and open source virtual world browser and construction toolkit built on Squeak.

The first version of Scratch was implemented in Squeak.

OpenQwaq, a virtual conferencing and collaboration system, is based on Squeak.[8]

Squeak is also used in the Nintendo ES operating system[9]

License[edit]

Squeak 4.0 and later may be downloaded at no cost, including source code, as a prebuilt virtual machine image licensed under the MIT License, with the exception of some of the original Apple code, which is governed by the Apache License.

Squeak was originally released by Apple under its own Squeak License. While source code was available and modification permitted, the Squeak License contained an indemnity clause that prevented it from qualifying as true free and open-source software.

In 2006, Apple relicensed Squeak twice. First, in May, Apple used its own Apple Public Source License, which satisfies the Free Software Foundation's concept of a Free Software License[10] and has attained official approval from the Open Source Initiative[11] as an Open Source License. However, The Apple Public Source License fails to conform to the Debian Free Software Guidelines. To enable inclusion of Etoys in the One Laptop Per Child project, a second relicensing was undertaken using the Apache License. At this point, an effort was also made to address the issue of code contributed by members of the Squeak community, which it was not in Apple's power to unilaterally relicense.

For each contribution made under the Squeak License since 1996, a relicensing statement was obtained authorizing distribution under the MIT license, and finally in March 2010, the end result was released as Squeak 4.0, now under combined MIT and Apache licenses.[12]

Squeak virtual machine[edit]

The Squeak virtual machine is a family of virtual machines (VMs) used in Smalltalk programming language implementations.[3] They are an essential part of any Smalltalk implementation. All are open-source software. The current VM is a high performance dynamic translation system. The relevant code is maintained in the OpenSmalltalk/opensmalltalk-vm repository on GitHub.

Other Squeak virtual machines[edit]

See also[edit]

References[edit]

  1. ^ "Tim: Squeak Smalltalk". Retrieved 2016-02-28.
  2. ^ "5.3 Release Notes".
  3. ^ a b Miranda, Eliot; Béra, Clément; Gonzalez Boix, Elisa; Ingalls, Dan (2018). "Two decades of smalltalk VM development: live VM development through simulation tools". Proceedings of the 10th ACM SIGPLAN International Workshop on Virtual Machines and Intermediate Languages (PDF). ACM Digital Library. pp. 57–66. doi:10.1145/3281287.3281295. ISBN 9781450360715. S2CID 53116661. Retrieved 2020-11-09.
  4. ^ Ingalls, Dan; Kaehler, Ted; Maloney, John; Wallace, Scott; Kay, Alan (1997). "Back to the Future: the story of Squeak, a practical Smalltalk written in itself". ACM Digital Library. Retrieved 2011-06-12.
  5. ^ "Tweak: OriginalTweakMemo". Tweakproject.org. 2001-07-06. Archived from the original on 2011-10-02. Retrieved 2011-06-12.
  6. ^ "Tweak: Whitepapers". Tweakproject.org. Archived from the original on 2011-10-02. Retrieved 2011-06-12.
  7. ^ Burbeck, Steve (1997-04-04). "How to use Model-View-Controller (MVC)". St-www.cs.uiuc.edu. Archived from the original on 2009-08-01. Retrieved 2011-06-12.
  8. ^ "Moving Immersive Collaboration Forward". 3 May 2011.
  9. ^ "Inside Nintendo's ES Open-Source Operating System". Gamasutra. 2007-12-04. Retrieved 2007-12-05.
  10. ^ "FSF's Opinion on the Apple Public Source License (APSL) 2.0". Gnu.org. 2011-05-07. Retrieved 2011-06-12.
  11. ^ "Clarification of the APSL: Press Releases OS Clarifies The Status Of The APSL". Opensource.org. 1999-03-17. Retrieved 2011-06-12.
  12. ^ "Squeak 4.0 released - now under MIT/Apache license". The H Open. 2010-03-16. Retrieved 2011-06-12.
  13. ^ Freudenberg, Bert; Ingalls, Dan; Felgentreff, Tim; Pape, Tobias; Hirschfeld, Robert (2014). "SqueakJS: a modern and practical smalltalk that runs in any browser". ACM Sigplan Notices. ACM Digital Library. 50 (2): 57–66. doi:10.1145/2775052.2661100. Retrieved 2020-11-09.
  14. ^ Friedrich Bolz, Carl; Kuhn, Adrian; Lienhard, Adrian; Matsakis, Nicholas; Nierstrasz, Oscar; Renggli, Lukas; Rigo, Armin; Verwaest, Toon (2008). "Back to the Future in One Week — Implementing a Smalltalk VM in PyPy". Self-Sustaining Systems. Lecture Notes in Computer Science. 5146. Springer, Berlin, Heidelberg. pp. 123–139. doi:10.1007/978-3-540-89275-5_7. ISBN 978-3-540-89274-8. Retrieved 2020-11-09.
  15. ^ Niephaus, Fabio; Felgentreff, Tim; Hirschfeld, Robert (2019). "GraalSqueak: toward a smalltalk-based tooling platform for polyglot programming". Proceedings of the 16th ACM SIGPLAN International Conference on Managed Programming Languages and Runtimes - MPLR 2019. ACM Digital Library. pp. 14–26. doi:10.1145/3357390.3361024. ISBN 9781450369770. S2CID 204728643. Retrieved 2020-11-09.

External links[edit]