Monthly Archives: September 2017

Pull request for “bootstrap”

Hi,

in relation to the issue https://pharo.fogbugz.com/f/cases/20447 Torsten asked me to describe how to prepare pull requests related to the bootstrap process. It is a little bit different from the standard pull requests because the code directory is different and the image needs to have some prerequisites loaded.
1) you need the current bootstrap image. This image contains the VMMaker, Espell, Beacon etc. You can find the latest path to it in the Jenkinsfile, now it is:
You can prepare the image by yourself using the baseline in the repository https://github.com/guillep/PharoBootstrap. Currently we use Pharo 6 as the base system for it
2) place this image directly into your Pharo repository local clone folder
3) run the script bootstrap/scripts/prepare_image.st
4) open it and in Iceberg register your local clone as the local repository. In the path to the sources use “bootstrap/src”
5) continue as with a standard issue pull request, so create issue on FogBugz, create a branch, do your changes, commit them, pull them to your fork and create the pull request. For more information see:
Cheers,
— Pavel
Advertisements

News from the trenches

Hello!

This is my weekly ChangeLog, from 11 September 2017 to 17 September 2017.
You can see it in a better format by going here: http://log.smallworks.eu/web/search?from=11/9/2017&to=17/9/2017

ChangeLog
=========

14 September 2017:
——————

*    Since Ronie came to spend two weeks with us, I made a “stop the world” call to work with him in a couple
of projects I want to integrate in Pharo.

So, I’ve been working on that last two days: Ronie has a working implementation of a “real headless”
VM that can chose to start a world using SDL2.

Why we want this? Because of many reasons… one of them is because is lame to open a hidden window when
we want to use just a command line, but also because the desition of opening a window (the World or
whatever) should be responsibility of the image (the user), not the VM.

Anyway, the problem is that Ronie made his VM using CMake and we use plain Makefiles (a very complex
structure of makefiles), so we needed to convert that.

Also, since this is experimental, a lot ot small details are missing and we are running to supply them.

But well… I’m happy to say that we have a Pharo 7.0 running 100% on headless mode with an SDL2 window
serving the world, on macOS 32bits.

Tomorrow we will look to fix some remaining details and to expand the source to linux and windows (32bits),
then we will jump to 64bits.

11 September 2017:
——————

*    I just released [iceberg v0.5.8](https://github.com/pharo-vcs/iceberg/releases/tag/v0.5.8).

This version is a maintenance version, and contains this fixes:

* speed up of commits by not traversing the full tree to detect staged files (just compare later)
* fix refresh option in PR tool
* do not use hardcoded colours in diffs
* add guessing of source dirs to easy adding of local repositories
* recategorise methods

It will be integrated on Pharo 7.0 in on [case: 20406](https://pharo.fogbugz.com/f/cases/20406).

*    Last week I was at ESUG 🙂

Anyway, I’m working on [tonel](http://github.com/pharo-vcs/tonel), the new fileformat made to replace
[filetree](http://github.com/pharo-vcs/filetree) (because of many reasons, being the non-scalable nature of
file-per-method strategy the most important).

[Ann] Launcher new version available

Hi,
I published an update of the Launcher yesterday fixing some issues to run Pharo images from Linux. You can find latest-versions (0.2.13) here: http://files.pharo.org/platform/launcher/
It already propose to download Pharo 70 images. The VM is now downloaded automatically if the adequate one is not available.
Let us know if everything is fine.
Regards,
Christophe

New success story: Contestia

Hi

We are happy to announce a new success story….

More http://pharo.org/success/Contestia

Pharo consortium

Pharo 70 enhancements waiting for an automated reporter :)

Remove SmalllintManifestCheckerTest(class)>>DoIt

https://pharo.fogbugz.com/f/cases/20398

Uncategorized methods in SystemVersionTest, SystemProgressMorph, SugsWatchpointSuggestion, SugsSuggestionSwapMethodTest, SugsNau

https://pharo.fogbugz.com/f/cases/20385

add Gt and Github support to minimal image

https://pharo.fogbugz.com/f/cases/20389

Uncategorized methods in TextKern, TextSelectionColor, TextURL

https://pharo.fogbugz.com/f/cases/20386

Enforce Proper method categorization – Part 1 – SUnit

https://pharo.fogbugz.com/f/cases/20390

Use Pharo.org instead of disney

https://pharo.fogbugz.com/f/cases/20392

Uncategorized methods in WorldMenuHelp,WeakValueAssociation, WeakOrderedCollectionTest, WeakOrderedCollection, WeakMessageSendTe

https://pharo.fogbugz.com/f/cases/20380

Pharo 7 Help should already use Pharo 7 instead of 6 and show some first highlights

https://pharo.fogbugz.com/f/cases/20364

Categorize methods in UserOfFooSharedPool, UnusedVariable, UnlimitedInstanceVariableSlotTest, UnknownSelector, UndefinedVariable

https://pharo.fogbugz.com/f/cases/20382

Categorize methods in TabLabelMorph, TaskbarTask, TermInfoCharacter, TestAutoFractionComputation, TextClassLink, TextComposer, T

https://pharo.fogbugz.com/f/cases/20383

Uncategorized methods in VSUnloadUnit and VMWindowDriver

https://pharo.fogbugz.com/f/cases/20381

Uncategorized methods in ZipStringMember, ZipStore, ZipFileMember, ZipDirectoryMember

https://pharo.fogbugz.com/f/cases/20379

MailMessage API Improvement

https://pharo.fogbugz.com/f/cases/19697

Add Retry of tests in CI

https://pharo.fogbugz.com/f/cases/20371

Categorize methods in RubNotificationStrategy

https://pharo.fogbugz.com/f/cases/20378/

free and beNull missing methods in referenced structures

https://pharo.fogbugz.com/f/cases/20361

New warning text color is not readable on white theme

https://pharo.fogbugz.com/f/cases/20357

deprecated call in QANautilusPluginMorph>>#displayCritique:

https://pharo.fogbugz.com/f/cases/20359

RecursionStopper methods not categorized

https://pharo.fogbugz.com/f/cases/20376

Categorize method in PharoShortcuts

https://pharo.fogbugz.com/f/cases/20377

Uncategorized methods in CP1253TextConverter, CairoPNGPaint, CairoScaledFont, CheckboxButtonMorph, CheckboxMorph, CheckboxMorph,

https://pharo.fogbugz.com/f/cases/20394

Uncategorized methods in DummyUIManager, DropListMorph class, DropListMorph, DoesNotUnderstandDebugAction, DockingBarMenuMorph

https://pharo.fogbugz.com/f/cases/20395

Move SymbolicBytecode>># and hash from package “GT-BytecodeDebugger” into “Kernel”

https://pharo.fogbugz.com/f/cases/20393

[ Pharo 70] Senders-of-String—isLegalInstVarName-isLegalClassName-

https://github.com/pharo-project/pharo/pull/226

[ Pharo 70]  Categorize methods in AnnouncementLogger #240

https://github.com/pharo-project/pharo/pull/240

[ Pharo 70 ] Build 83 PR 236 introduce-at-at-in-dictionary

https://github.com/pharo-project/pharo/pull/236

https://pharo.fogbugz.com/f/cases/20203/

 

[ Pharo 70 ] Build XX PR 236 free-and-beNull-missing-methods-in-referenced-structures

https://github.com/pharo-project/pharo/pull/236

https://pharo.fogbugz.com/f/cases/20361

 

[ Pharo 70 ] Build XX PR 233 cleanup #isMorphicModel

https://pharo.fogbugz.com/f/cases/resolve/20175

https://github.com/pharo-project/pharo/pull/233

 

… lots not recorded, build is at 79.

 

[ Pharo 70 ] Build 69 PR 225 20350-include 32-bit sources in the 64-bit Pharo archive

https://github.com/pharo-project/pharo/pull/225

https://pharo.fogbugz.com/f/cases/20350

 

[ Pharo 70 ] Build 66 PR 223  20348-testWideStringClassName-needs-to-be-unmarked-as-expected-failure

https://github.com/pharo-project/pharo/pull/223

https://pharo.fogbugz.com/f/cases/20348

[Ann] Git Thermite

Hello,
I am releasing an initial version of Git Thermite, the GitHub pull request visualization that I presented at IWST.
SmalltalkHub page:

http://smalltalkhub.com/#!/~ronsaldo/GitHubAPI

Script for loading Git Thermite:
Gofer it
smalltalkhubUser: ‘ronsaldo’ project: ‘GitHubAPI’;
configurationOf: ‘GitStats’;
loadBleedingEdge
For visualizing a GitHub pull request, you can use the dialog on the World menu -> Git Thermite -> Visualize pull request.
The GitHub access credential can be entered through the System Settings. I  recommend to generate a GitHub API secret token instead of using your GH password for the access token. https://github.com/blog/1509-personal-api-tokens
Because this project is for my Master Thesis, and I need to gather experimental data to validate the visualization, I will ask to the people at Lille to not experiment   with this tool until I test it with you during the next two weeks at Lillle.
The current implementation is quite hackish because I am building this in an exploratory way. Later I will make a full rewrite to clean the tool and make it easy to extend and experiment with more visualizations with it.
Best regards,
Ronie

[Consortium] Zweidenker GmbH upgraded to Gold

The Pharo Consortium is very happy to announce that Zweidenker GmbH
has upgraded to Gold Member status.

About
– Zweidenker GmbH: http://zweidenker.de
– Pharo Consortium: http://consortium.pharo.org

The goal of the Pharo Consortium is to allow companies and institutions to
support the ongoing development and future of Pharo.

Individuals can support Pharo via the Pharo Association:

http://association.pharo.org

Report from AWS: Pharo Lambda

Hi – I neglected to mentioned “the catch” with Lambda, next to my results. So on a tiny EC2 instance you get those kinds of results (this is where I measured the numbers of 50ms) – however on Lambda you aren’t entirely clear what hardware its running on – and there are 2 aspects to consider – a cold start (where you are allocated a new Lambda instance, and so it has to bring in your deployed package) and then there appears to be a cached start – where it seems that one of your old Lambda environments  can be reused. On top of both of these states – there is an extra cost of spawning out to Pharo as its not supported natively.

I mention this in the Readme on the gitlab page (it’s possibly a bit subtle) – but I was pointed to the Sparta GoLang project (who aren’t supported natively either) where they have measured that that cost of spawning out to GoLang (and it looks fairly similar for Pharo) is 700ms. Essentially this spawning is the cost of loading up a NodeJS environment (presumably some Docker like image they have already prepared – although they don’t reveal how this is done), “requiring” the ‘child-process’ node module to get an exec method, and then your code to shell out. (In my repo – this is the PharoLambda.js file).

Empirically I am seeing results from 500ms to 1200ms which are in line with Sparta (possibly better? I haven’t loaded up a Go environment to understand what they need to package up to deploy an app that can be exec’d and how that compares to our 10mb’ish footprint).

If I look at a basic NodeJS hello world app – I see .5ms to 290ms responses – (the min billing unit is 100ms). I got the impression for a recent serverless meet-up that sub 500 is what people aim for. Which means we are at least in the running.

I don’t know how sensitive the ‘overhead’ load time is due to the package size you deploy (I saw a big increase when I got my package below 10mb) or whether it truly is the NodeJS tax. I would love to get hold of the AWS team and suggest they provide another fixed solution that efficiently exec’s in C, a named executable with configurable parameters and the “event” parameter serialised in JSON (on the surface it seems overkill to use NodeJS for just that simple operation).

All this said the free tier gives you “1M free requests per month and 400,000 GB-seconds of compute time per month” – so assuming we can do interesting things in under a second (which I’ve shown), then you can process 400,000 of them a month for free (which isn’t bad really).

Tim

PS:

Hi – the script I’m using is in https://gitlab.com/macta/PharoLambda – it’s nothing fancy, look at the Gitlab .yml file.
This is all Linux running in an ubuntu docker image on Gitlab CI.
Tim

 

[ann] moldable editor – transcript with adornments

Hi,

We are happy to announce that the moldable editor helped us create a richer transcript: GT Transcript.
The transcript is traditionally a stream of plain text. As we now have an elaborate editor, we can take advantage of it to help us display richer representations.
The API is backward compatible with the existing transcript. To enable the new features, we introduced a builder. For example:
transcript nextPutAll: ‘something’
becomes
transcript next putAll: ‘something’
and after #next we can add multiple attributes that we want to affect the following insertion of a text.
Below you can find an example detailing most of the API. The most notable additions is the support for expandable adornments. For example, #showException: provides an in-place expansion of the stack of the exception context.
unnamed.png
To get an idea of how this tool can be useful, take a look at the following video showing the visual logging of a Bloc animation:
unnamed-1.png
The code can be found in the new incarnation of GToolkit:
Iceberg enableMetacelloIntegration: true.
Metacello new
baseline: ‘GToolkit’;
repository: ‘github://feenkcom/gtoolkit/src‘;
load.
Cheers,
The feenk team