[ann] moldable brick editor - alpha
Hi, We are very happy to announce the alpha version of a moldable editor built in Brick (https://github.com/pharo-graphics/Brick) which is based on Bloc (https://github.com/pharo-graphics/Bloc). This is primarily the work of Alex Syrel. The project was initially financially sponsored by ESUG and it is currently supported by feenk. And of course, the project is based on the tremendous work that went into Bloc and Brick by all contributors. Take a look at this 2 min video: https://www.youtube.com/watch?v=2vy6VMJM9W4&feature=youtu.be The basic editor works and it is both flexible and scalable. For example, the last example shown in the video is an editor opened on 1M characters, which is reasonably large, and as can be seen see one can interact with it as smoothly as with the one screen text. It actually works just as fine with 100M characters. The functionality of the editor includes: rendering, line wrapping, keypress and shortcut handling, navigation, selection and text styling. Currently, the editor is 1260 lines of code including method and class comments. This is not large for a text editor and this is possible because most of the work is done by generic concepts that already exist in Bloc such as layouts and text measurements. Beside the small maintenance cost, the benefit is that we have the option to build all sorts of variations with little effort. That is why we call this a moldable text editor. Another benefit of using elements and layouts is that we can also embed other kinds of non-text elements with little effort (such as pictures), and obtain a rich and live text editor. We already have basic examples for this behavior, and we will focus more in the next period on this area. The next immediate step is to add syntax highlighting. Beside the text attributes problem, this issue will also exercise the thread-safety the implementation is. The underlying structure (https://en.wikipedia.org/wiki/Rope_(data_structure)) is theoretically thread-safe, but it still needs to be proven in practice. We think this is a significant step because the editor was the main piece missing in Brick and it will finally allow us to build value that can be directly perceived by regular users on top of Brick and this, in turn, will generate more traction. Please also note that because now Bloc is directly embeddable in Morphic it means that we can actually start using it right away. For example, the picture below shows the text element being shown through a live preview in the GTInspector. This is another puzzle piece towards the final goal of engineering the future of the Pharo user interface. There is still a long way to go to reach that goal, but considering the work that is behind us, that goal that looked so illusive when Alain and Stef initiated the Bloc project is now palpable. We will continue the work on this over the next period and we expect to announce new developments soon. If you want to play with it, you can load the code like this (works in both Pharo 6 and 7): Iceberg enableMetacelloIntegration: true. Metacello new baseline: 'Brick'; repository: 'github://pharo-graphics/Brick/src'; load: #development Please let us know what you think. Cheers, Alex and Doru -- www.tudorgirba.com www.feenk.com "What is more important: To be happy, or to make happy?"
On 05-08-17 00:19, Tudor Girba wrote:
Iceberg enableMetacelloIntegration: true.
That doesn't work. It hangs the image, keeping one CPU busy. (latest 32 bit vm, ubuntu 16.04LTS) Also the Moz2D is not correctly installed/deinstalled. After warning that the library is not correctly installed, the start/stop script needs to be cleanly removed. Stephan
Is this still an issue? Could you also try on another OS (just to make sure)? Cheers, Doru
On Aug 10, 2017, at 2:12 PM, stephan <stephan@stack.nl> wrote:
On 10-08-17 13:09, stephan wrote:
On 05-08-17 00:19, Tudor Girba wrote:
Iceberg enableMetacelloIntegration: true. That doesn't work. It hangs the image, keeping one CPU busy.
With 60510 that is non-interruptable, b.t.w.
Stephan
-- www.tudorgirba.com www.feenk.com "Problem solving efficiency grows with the abstractness level of problem understanding."
Hello Stephan,
Yep. I tried with a clean 6.1 install. The Moz2D library is downloaded, but does not seem to be installed correctly
Below is the list of dependencies for *64bit Ubuntu* and *32bit Pharo*: (on 64bit pharo it should theoretically work out of the box, except 64bit related issues)
sudo dpkg --add-architecture i386; sudo apt-get update; export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig/;
echo "Installing c++ libraries"; sudo apt install libstdc++6:i386;
echo "Installing GTK-2.0..."; sudo apt-get install libgtk2.0-0:i386; echo "Installing GTK-3.0..."; sudo apt-get install libgtk-3-0:i386;
echo "Installing libGL..."; sudo apt-get install libglu1-mesa:i386;
We have travis Build which is green: https://github.com/syrel/Sparta/blob/master/.travis.yml https://travis-ci.org/syrel/Sparta On Windows users should install Visual C++ Redistributable for Visual Studio 2015: (reduces binary size by >10mb) https://www.microsoft.com/en-US/download/details.aspx?id=48145 On OSX works out of the box Cheers, Alex On 18 August 2017 at 17:01, stephan <stephan@stack.nl> wrote:
On 12-08-17 10:47, Tudor Girba wrote:
Is this still an issue?
Yep. I tried with a clean 6.1 install. The Moz2D library is downloaded, but does not seem to be installed correctly
Could you also try on another OS (just to make sure)?
next step
Stephan
participants (3)
-
Aliaksei Syrel -
stephan -
Tudor Girba