Bernhard blogs about IT

Styled Text Editor for Cuis 4.0 Smalltalk

leave a comment »

I am very happy to announce that the Styled Text Editor for the brand new Cuis 4.0 is now available on GitHub [1]. The Styled Text Editor was first presented by me at last year’s ESUG in Edinburgh [2]. Thanks to ESUG the presentation was recorded [3].

The Styled Text Editor is a framework for rich text editing using styles as known from popular word processors like Apple Pages or Microsoft Word. It features paragraph and character styles, allowing easy text formatting using styles only. It is intended for applications where users need to work with good looking rich text in a simple and fast way.

Rich text commonly refers to text with formatting information like different fonts, sizes, alignments, and emphasis. To make editing as simple as possible instead of individual formatting information end users apply styles to parts of the text. Editing is made fast by keyboard shortcuts for text navigation, selection, and styles selection. Where possible the feel of widely used rich text editors is supported.

It includes many features like
– numbered and bulleted list paragraph styles
– support for images
– multiple level undo and redo
– text completion using various glossaries including a dictionary of English with about 166.000 words
– RTF clipboard (on OS X VMs with the ClipboardExtendedPlugin)

The Styled Text Editor is developed in Cuis with the plan to eventually port it to Squeak and Pharo. The development of the Styled Text Editor inspired many changes to Cuis itself, and It is the first package to use the brand new DVCS based development process for external packages for Cuis 4.0.

The idea and funding was provided by me, Bernhard Pieber and my company Software Generation. The implementation was done by Juan Vuletich, the mastermind behind Cuis. Thanks Juan for the close cooperation. It was and still is great fun to work with you.

We are looking forward to feedback from you. Fork it on GitHub [1], create issues and send us pull requests.😉

Bernhard Pieber


Written by Bernhard Pieber

21. April 2012 at 23:31

Lines Of Code of Squeak and Pharo

leave a comment »

I have written a small class named DesignInfo ( to gather information about the lines of code of all Monticello packages in a Smalltalk image. It can distinguish between test and production code and create a morph that shows the information as a bar chart.

Here is the information of a current Squeak trunk image – 330332 lines of code in 60 packages:

And here is the information of the current stable Pharo-1.1.1-dev10.09.1.image – 413413 lines of code in 185 packages:

The test code is shown in light blue.

I find it quite interesting and it was fun to program. It’s Smalltalk after all.😉

Written by Bernhard Pieber

7. November 2010 at 21:53

Posted in Smalltalk

Bad news: Smalltalk falls off top 50 of TIOBE Index

with 6 comments

Whether one likes the TIOBE Index or not, this is bad news for us Smalltalk enthusiasts:

TIOBE Programming Community Index for August 2010

August Headline: Dinosaur Smalltalk falls off top 50

Smalltalk, the first pure object-oriented programming language ever, lost its position in the TIOBE top 50 this month. The same happened to the other well-known pure object-oriented language Eiffel a couple of months ago. This is probably part of the trend that languages are becoming more and more multiparadigm: both object-oriented and procedural with a functional flavor.

I took action and created this blog. Hope it helps somewhat.😉

Written by Bernhard Pieber

27. August 2010 at 13:31

Posted in Smalltalk

Google should base Android on Newspeak

with one comment

How should Google respond to the lawsuit filed by Oracle about Java?

In my opinion Google should take the chance and replace the surface language of Android by something more modern and dynamic. They already replaced the Java VM. They can easily do it with the language as well.

They have the know-how to do that. Lars Bak, one of the leading engineers behind the Google V8 JavaScript VM, is a great language designer. He implemented Beta, Smalltalk, Strongtalk, Self, Java, OOVM, and JavaScript.

If I were them, I would bring in Gilad Bracha, who worked with Lars Bak at Animorphic and Sun, and use his Newspeak language as the basis for Android. That would make a great language for the Android platform.

Written by Bernhard Pieber

27. August 2010 at 10:23

Posted in Smalltalk

%d bloggers like this: