New Self Mandarin Improves Versioning
Written by Kay Ewbank   
Tuesday, 06 June 2017

There's a new version of the Self programming language with new versioning systems for its key subsystems.

Self is a programming language that was originally funded by Sun, at the same time as it was also funding Java and TCL, back in the mid 1990s.  Sun then decided to concentrate on Java, and since then Self has been developed mainly by enthusiasts. Self consists of a user interface and programming environment, so you can create and modify objects entirely within the IDE, then save the objects into files for distribution purposes.

Self bases its handling of objects from the approach taken in Smalltalk, but using prototypes rather than classes. In Self you create objects directly by defining a collection of slots - methods that return values. There is no class in Self and no inheritance, but objects can delegate a method to a parent object.

The other big difference between Self and other languages is that  programs are constructed using a persistent approach. That is, a program isn't just its source code but its entire memory environment, including any objects that have been created at an earlier time. This is an approach to programming that had almost died out, but is now making a small recovery in the form of the many REPL user interfaces to languages such as Python.

 

mandarin

 

The new version of Self (called Mandarin after the duck - the previous version was Mallard), has a number of new features. The new versioning system has been applied to the release as a whole, and to the key subsystems, namely the vm, core, morphic and outliners.

There's a new about object that is accessible from the main menu, and provides system info. Still on the system side, a new preferences object can be used to access system preferences. The outliners have a new theming system, and the look has been improved.

In more practical terms, the object categories have been extensively reorganized in globals to make global objects more easily discoverable and understandable. There's a new option on the worldbuilder.self script to allow for fully automated building of Self worlds by setting subsystem options on command line.

Three new string helper methods have been added:

  • splitOn:
  • joinUsing:
  • slice:

Elsewhere, the transporter is now aware of code being in multiple independent trees. The previous version treated all code as being in a single Self tree. The support for multiple trees means you can create separate projects, and keep them in separate version control repositories.

Finally, a system-wide logger has been included to standardise logging practices within Self, and the Webserver has been moved to a separate repository on Github.

 

selficon

More Information

Self Blog

Self Site

Related Articles

Go Language Of The Year With Dart Catching Up

Dart SDK Improves JavaScript Access

Self 4.5 Released 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

 

Banner


Gender Differences In Coding Style
13/11/2024

A novel investigation into the gender gap between men and women regarding coding ability was undertaken by Dr Siân Brooke. Her conclusion? There is a difference in the Python code [ ... ]



Ursina - A Game Engine Powered by Python
08/11/2024

Ursina is a new open source game engine in which you can code any type of game in Python, be it 2-D, 3-D, an application, a visualization, you name it.


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 06 June 2017 )