Pharo-dev
By thread
pharo-dev@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
January 2016
- 75 participants
- 1435 messages
Re: [Pharo-dev] spotter: top search for senders and references
by Yuriy Tymchuk
> On 19 Jan 2016, at 22:40, Tudor Girba <tudor(a)tudorgirba.com> wrote:
>
> Most people I know use Shift to type an upper case, and we observed that when people search, they often tend to still use uppercase. Not all, but many. That is why we put this functionality on Shift. This does not mean that it is enough, but we just wanted to increase the chance of people stumbling across this without any documentation. It only partially succeeded.
Hi.
My 2 cents on showing the functionality. In some games that I play there firs time you open a new interface they highlight all the main parts and you can learn what each one does. Also they have a small â?â button in the corner of the window that again highlights all important parts when you click it.
We already have the highlighting. Maybe putting a small â?â button in the corner will not kill the cool design. This button can be used to turn on the highlight rather then relying on the random shift press. Also you can turn on the highlight for the first time a person opens a sportier window in his/her machine.
Cheers.
Uko
Jan. 20, 2016
Re: [Pharo-dev] Spotter suggestions
by Yuriy Tymchuk
> On 20 Jan 2016, at 10:51, Thierry Goubier <thierry.goubier(a)gmail.com> wrote:
>
> Le 20/01/2016 10:48, David Allouche a écrit :
>>
>>> On 20 Jan 2016, at 10:39, David Allouche <david(a)allouche.net
>>> <mailto:david@allouche.net>> wrote:
>>>
>>> And some suggestion for all lists:
>>
>> Another one: Esc should close Spotter.
>
> That one is nice to have, yes.
But it is already there, no?
Uko
>
> Thierry
>
>> I see Cmd-W does that, but Spotter is not a "normal" window, it is an
>> incremental search popup.
>>
>> Thanks.
>
>
Jan. 20, 2016
Re: [Pharo-dev] Spotter suggestions
by Thierry Goubier
Le 20/01/2016 10:48, David Allouche a écrit :
>
>> On 20 Jan 2016, at 10:39, David Allouche <david(a)allouche.net
>> <mailto:david@allouche.net>> wrote:
>>
>> And some suggestion for all lists:
>
> Another one: Esc should close Spotter.
That one is nice to have, yes.
Thierry
> I see Cmd-W does that, but Spotter is not a "normal" window, it is an
> incremental search popup.
>
> Thanks.
Jan. 20, 2016
Re: [Pharo-dev] Spotter suggestions
by David Allouche
> On 20 Jan 2016, at 10:39, David Allouche <david(a)allouche.net> wrote:
>
> And some suggestion for all lists:
Another one: Esc should close Spotter.
I see Cmd-W does that, but Spotter is not a "normal" window, it is an incremental search popup.
Thanks.
Jan. 20, 2016
Re: [Pharo-dev] Spotter suggestions
by David Allouche
Since you asked to keep challengingâ¦
Preamble: Sorry, I did one of those long messages again. I hope I am not annoying people with that.
> On 19 Jan 2016, at 22:40, Tudor Girba <tudor(a)tudorgirba.com> wrote:
>
> Hi,
>
>> On Jan 19, 2016, at 9:18 PM, stepharo <stepharo(a)free.fr> wrote:
>>
>>
>>
>> Le 19/1/16 20:25, David Allouche a écrit :
>>> BTW, thanks for the explanations for Spotter.
>
> You are welcome. Please keep challenging. This is how good design happens.
>
>
>>>> On 19 Jan 2016, at 18:37, Tudor Girba <tudor(a)tudorgirba.com> wrote:
>>>>
>>>> And then, in Spotter we have another discovery mechanism: Shift. When you press it, all clickable things get highlighted (including the arrow). We chose Shift because it is something that you type often as part of a text, so it will be very likely that you will press it when working with Spotter as well. And this will get you to see that something happens.
>>> I am lazy and fearful of RSI. If I can avoid using the shift key at all, I am quite happy. So I did not notice that the arrows where clickable.
>>
>> :)
>> Same here.
>
> What is RSI?
>
> Most people I know use Shift to type an upper case, and we observed that when people search, they often tend to still use uppercase. Not all, but many. That is why we put this functionality on Shift. This does not mean that it is enough, but we just wanted to increase the chance of people stumbling across this without any documentation. It only partially succeeded.
You already stated your reasoning, and I understand it. I was just making noise for people like Stef and me, who never use Shift unless they HAVE TO.
> Anyway, we should externalize the key bindings. Another thing on the to do list :)
Sure, great!
>>> Here are a few suggestions that would fit my workflow.
>>>
>>> I also think that "Selectors" should appear after classes and before packages, and be called "Messages". Typically I want to open a specific class, or a specific message in a specific class.
>
> #Messages is not a bad name, but then again I also thought that #Selectors was explicit enough :). What do others think?
Any interest in putting "Messages" after "Classes" and before "Packages"?
Another advantage of "Messages" is that "#m" is unambiguous. Currently, "#se" is ambiguous (#senders and #selectors), that is a serious annoyance.
>>> The short list of implementors at the top level is usually noise and might have confused Stef. It becomes relevant once the message is fully specified.
>>>
>>> Diving in should be done with right arrow when at the end of the command line.
>>> Diving out with left arrow at the start of the command line.
>> I was wondering what is the benefit to have cmd - shit arrow vs arrow
>
> Left/Right is used to move inside the text area (there is only one text field in the whole UI), and that is why you cannot consistently use it for navigating through results.
>
> Navigating when the cursor is at the end is a tempting idea, but it implies a mode that is not contextual (you need to things to look at). That is why I would not want to have it in this interface.
Not overloading unmodified right/left arrows sounds like an obvious good idea.
But as you already mentioned, Spotter is a special context, so one needs to take a step back to evaluate the interaction possibilities.
Typically, in the Spotter command line, I never use left-right arrows, and I think this is common. If people mistype something, and have immediate feedback, they tend to use backspace to fix it, instead of in-line editing.
Spotter is also very similar to a class browser like Nautilus, where left-right arrows are the primary way to dive in and out of packages, classes, protocols, methods. That makes right and left arrows intuitive to dive in and out in Spotter.
If right and left arrows dive in and out, it's very easy to cancel a mistake, just immediately press the opposite arrow. That also means that dive-out should remember what was the search line, so immediately diving back in does not lose the previous input, as is the current behaviour. Can you fix that?
Cmd-arrows and Cmd-shift-arrows is uncommon, and it takes a conscious effort to remember, it's not intuitive in any way.
Cmd-arrows and Cmd-shift-arrows are slow and hard to reach combinations. They require me to move my left arm from the shoulder so left hand goes to the modifier keys corner. Reaching arrows already requires me to move my right arm so my right hand gets over the arrow pad. So every time I want to dive in or out, I need to move both arms and completely lose kinaesthetic connection with the home row. Then to continue filtering I need to find the home row again. Repetitive switching between home row and cmd-shift-arrows is frustrating at a deep, motor level. That kind of frustration leads to angry people and the Dark Side.
One could consider using Tab and Shift-Tab instead, but that would be a bad choice. Tab should mean "autocomplete this", and in the context of Spotter you cannot overload this with navigation. (I could expand on that)
I am not sure what you mean by "not contextual": I type some words, use up/down arrows to choose the line I want, which is often not the first one, then use right arrow to dive in. That is contextual: I am looking at the list, I already have my hand on the arrow pad, I did a vertical motion action and now I want to do an horizontal motion action.
If you insist right-left arrow should not be overloaded in the search line, then you could use the first down arrow to move out of "command context" and into "matches context". Other actions like Enter and Backspace need not depend on the context. But I am convinced it is not necessary to make a distinction between command context and matches context.
At the very least, I would like some reassurance that the Spotter UI machinery would make it easy for people like me to hack in the interaction behaviour they expect from arrow keys.
>>>
>>> When a list of paginated (only first N items), then the category line should be accessible with arrows, so we can dive into a category just with arrows.
>
> We explicitly chose not to do that because we did not want to mingle different kinds of elements in the same list. So, like this, when you press Cmd+Right, you will always dive in one single element, and not in many by mistake.
I understand that. But I think it is the wrong trade-off.
Diving into the wrong element with right arrow is cheap, just press left arrow to dive out. That's easy to do and totally intuitive.
To prevent a cheap, easily corrected mistake, you make one of the most common actions significantly harder. That is bad UI design, sorry to be harsh.
> Actually, our original goal was to have a way to expand the list in place (not only to dive in category). For this we wanted a ⦠line and clicking on that would expand the list in place. We did not get to do it yet, but I think this would solve quite some of the reported problems.
Expanding in place is a bad idea. Please do not do that.
Categories often have dozens, sometimes hundreds of items. Once you have expanded such a category, the rest of the list is essentially lost, you need an easy way to cancel that, and that easy way is diving out. Also when you are scrolling a long expanded list, you do NOT want to scroll past the end and into another category, that would be annoying, and not useful.
What you do need is to make it easier NOT to have browse the full categories at all. For that:
Prefix matches should be sorted in lexicographic order of the thing being matched first, and its container second.
"items" in the top search, should show implementors only for "#items", there are a lot of them, and not things like DialogGroupManagerUI>>#itemSelected.
When a category is fully specified by #word ("items #i"), it should display the full list. There should still be the ability to dive into the category (retaining "items" in the command line), But there is NO benefit in adding a layer of indirection.
Non-prefix matches, or matches for a line containing multiple words need fuzzy search relevance sorting with history sensitivity. For exemple:
"if else" should find ifNil:else:, ifTrue:else: etc.
"m m" should find MenuMorph as one of the first results. Only other classes whose two first two words start with M should come before.
"menu morph items" should find "#Implementors: MenuMorph>>#items"
Here's another few, unrelated, suggestion. For the top-level list:
When the line is empty:
Display a short graphic cheat sheet. Not a wall of plain text, something pretty with boxes and small bits of text that the eye wants to read.
That should explain # words and important action keys.
That should provide a way to immediately dive into categories.
Provide an easy way to disable the cheat sheet: a button "Do not show me this"
Do not use separate lists per category, but one list with all matches, sorted by search proximity and with history sensitivity
History sensitivity here is very beneficial, it effectively lets one define custom shortcuts, by always using the same letters to reach to frequently used items. For example in Alfred on my Mac, "sl" finds "Sleep" first and "Slack" second.
Categories can be displayed again by typing a single #.
Keep the categories separated in the list after diving in, it is essential for things like senders/implementors.
And some suggestion for all lists:
Please, please, GET RID OF VERTICAL WRAP AROUND, thanks. When I hit the bottom of the list, I want to know I got there.
When a non matching #word is typed ("#x"), the available #words should be displayed, not the empty list.
When moving into category with arrow up/down, please scroll more. If the category list is long compared to the scroller viewport, at 50-75% of the viewport should display the category I just moved in.
Scrolling should probably be a bit optimistic. Unless we are at the end of the list, the current line should never be the first or last displayed, unless the viewport is very small.
When the current category name is out of the viewport, it should stick at the top, maybe with some transparency gradient over the first item, I need to know what category I am in. It is especially important when scrolling up, after overshooting.
I hope you are familiar with Alfred (Mac only) and Sublime Text. They both provide very useful fuzzy search with history sensitivity.
> But, please do keep challenging. And give it a try with writing your own processors. It would help us a lot.
Right now, I keep bouncing in all sorts of bugs in other packages. So I am rather happy to just provide feedback for enhancements, so I can spend more time fixing the actual bugs. :-)
Regards.
Jan. 20, 2016
[pharo-project/pharo-core] 42addc: 50536
by GitHub
Branch: refs/heads/5.0
Home: https://github.com/pharo-project/pharo-core
Commit: 42addc0bdb04623c4fc7545e67624e7de2ddacfe
https://github.com/pharo-project/pharo-core/commit/42addc0bdb04623c4fc7545e…
Author: Jenkins Build Server <board(a)pharo-project.org>
Date: 2016-01-20 (Wed, 20 Jan 2016)
Changed paths:
R BaselineOfFFINB.package/BaselineOfFFINB.class/README.md
R BaselineOfFFINB.package/BaselineOfFFINB.class/definition.st
R BaselineOfFFINB.package/BaselineOfFFINB.class/instance/accessing/alien_.st
R BaselineOfFFINB.package/BaselineOfFFINB.class/instance/accessing/baseline_.st
R BaselineOfFFINB.package/BaselineOfFFINB.class/instance/accessing/ffi_.st
R Graphics-Files.package/extension/Form/class/unload.st
R ScriptLoader50.package/ScriptLoader.class/instance/pharo - scripts/script50535.st
A ScriptLoader50.package/ScriptLoader.class/instance/pharo - scripts/script50536.st
R ScriptLoader50.package/ScriptLoader.class/instance/pharo - updates/update50535.st
A ScriptLoader50.package/ScriptLoader.class/instance/pharo - updates/update50536.st
M ScriptLoader50.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
Log Message:
-----------
50536
17425 unload BaselineOfFFINB
https://pharo.fogbugz.com/f/cases/17425
17427 deprecated Form class>>#unload
https://pharo.fogbugz.com/f/cases/17427
http://files.pharo.org/image/50/50536.zip
Jan. 20, 2016
[pharo-project/pharo-core]
by GitHub
Branch: refs/tags/50536
Home: https://github.com/pharo-project/pharo-core
Jan. 20, 2016
Re: [Pharo-dev] [ANN] Pharo bootstrap
by Christophe Demarey
Hi Pavel,
Le 19 janv. 2016 à 19:53, Pavel Krivanek a écrit :
> Hi,
>
> amazing! Do you have any idea how to speed up it? The bootstrap process is now running on my machine about one and half hour and it is still far from finish.
The process is indeed far too long (takes around 10 hours) on the CI server.
Reasons are:
- we use a stack interpreter VM
- we modified it and is a bit slower than a classical stack VM
- we use AST interpretation to build the bootstrap and it is very slow. Guille already did some speed improvements by avoiding to interpret loops by example.
I did not yet spend time on this point because I first wanted to have something working.
Definitely, this problem will be tackled when we will put in production the bootstrap.
Cheers,
Christophe
> Cheers,
> -- Pavel
>
> 2016-01-19 15:29 GMT+01:00 Christophe Demarey <christophe.demarey(a)inria.fr>:
> Hi all,
>
> In case you do not know, we work on bootstrapping Pharo, i.e. create a Pharo image from sources, not based on a previous image (well, we use a pharo image to produce it but no code / state from it).
>
> This process will allow to define a minimal Pharo kernel (currently 52 packages but we could have it far smaller) and to modularize the whole image (currently packages have too much dependencies on packages already loaded into the image).
> The bootstrap process also allows to write down the recipe to initialize a new image from scratch (some code is missing in the image or is wrong). In addition, I think we will clean a lot of historical objects that are not used anymore.
>
> With the amazing work done by Guillermo Polito during his Phd (around Espell, Oz): https://guillep.github.io/files/publications/Poli15Thesis.pdf, we succeeded to get a first prototype of a bootstraped Pharo 5 image (from 5.392).
> This prototype is able to run an eval command line handler and to log output / errors. Not all classes are yet initialized and you cannot yet save / restart this image but it is a big step forward.
> It is a 4 mb image (could be half the size without unicode data). You can download it at: http://chercheurs.lille.inria.fr/~demarey/pmwiki/pub/pharo-bootstrap/pharo-….
>
> Next steps are to have a bootstrapped image fully working, then to load packages on top of it (like network, sunit) to produce a minimal image.
> Then, we need to implement an Oz VM on top of Spur.
> After that, we need to work on a reliable way to build the bootstrap (not too sensitive to changes in the image).
>
> Christophe.
>
> -------
> demarey@193-51-236-143:~/dev/rmod/bootstrap/bootstrap-2016-01-19$ ../pharo bootstrap.image --no-default-preferences eval "1 + 1"
> 2
> demarey@193-51-236-143:~/dev/rmod/bootstrap/bootstrap-2016-01-19$ ../pharo bootstrap.image --no-default-preferences eval "'a' , 'b'"
> 'ab'
> demarey@193-51-236-143:~/dev/rmod/bootstrap/bootstrap-2016-01-19$ ../pharo bootstrap.image --no-default-preferences eval "1 / 0"
> ZeroDivide
> SmallInteger>>/
> UndefinedObject>>DoIt
> OpalCompiler>>evaluate
> OpalCompiler(AbstractCompiler)>>evaluate:
> SmalltalkImage>>evaluate:
>
> EvaluateCommandLineHandler>>no (source is Undeclared)
> no source in EvaluateCommandLineHandler>>evaluate: in Block: no source
> BlockClosure>>on:do:
> EvaluateCommandLineHandler>>evaluate:
> EvaluateCommandLineHandler>>evaluateArguments
> EvaluateCommandLineHandler>>activate
> EvaluateCommandLineHandler class(CommandLineHandler class)>>activateWith:
>
> BasicCommandLineHandler>>no (source is Undeclared)
> no source in PharoCommandLineHandler(BasicCommandLineHandler)>>activateSubCommand: in Block: no source
> BlockClosure>>on:do:
> PharoCommandLineHandler(BasicCommandLineHandler)>>activateSubCommand:
> PharoCommandLineHandler(BasicCommandLineHandler)>>handleSubcommand
> PharoCommandLineHandler(BasicCommandLineHandler)>>handleArgument:
>
> BasicCommandLineHandler>>no (source is Undeclared)
> no source in PharoCommandLineHandler(BasicCommandLineHandler)>>activate in Block: no source
> BlockClosure>>on:do:
> PharoCommandLineHandler(BasicCommandLineHandler)>>activate
> PharoCommandLineHandler>>activate
> PharoCommandLineHandler class(CommandLineHandler class)>>activateWith:
>
> PharoCommandLineHandler class>>no (source is Undeclared)
> no source in PharoCommandLineHandler class>>activateWith: in Block: no source
> NonInteractiveUIManager(UIManager)>>defer:
> PharoCommandLineHandler class>>activateWith:
> no source in BasicCommandLineHandler>>activateSubCommand: in Block: no source
> BlockClosure>>on:do:
> BasicCommandLineHandler>>activateSubCommand:
> BasicCommandLineHandler>>handleSubcommand
> BasicCommandLineHandler>>handleArgument:
> no source in BasicCommandLineHandler>>activate in Block: no source
>
> SmallInteger>>no (source is Undeclared)
>
> UndefinedObject>>no (source is Undeclared)
>
> AbstractCompiler>>no (source is Undeclared)
>
> SmalltalkImage>>no (source is Undeclared)
>
> BlockClosure>>no (source is Undeclared)
>
> EvaluateCommandLineHandler>>no (source is Undeclared)
>
> EvaluateCommandLineHandler>>no (source is Undeclared)
>
> CommandLineHandler class>>no (source is Undeclared)
>
> BasicCommandLineHandler>>no (source is Undeclared)
>
> BasicCommandLineHandler>>no (source is Undeclared)
>
> PharoCommandLineHandler>>no (source is Undeclared)
>
> UIManager>>no (source is Undeclared)
>
> UndefinedObject>>no (source is Undeclared)
>
> CommandLineUIManager>>no (source is Undeclared)
>
> SmalltalkImage>>no (source is Undeclared)
>
> DelayMicrosecondScheduler>>no (source is Undeclared)
>
> BlockClosure>>no (source is Undeclared)
>
> SmalltalkImage>>no (source is Undeclared)
>
> WeakArray class>>no (source is Undeclared)
>
>
> ps: source cannot be displayed because there is no formatter available in the bootstrap
>
>
Jan. 20, 2016
Re: [Pharo-dev] [ANN] Pharo bootstrap
by Christophe Demarey
Hi Eliot,
Le 19 janv. 2016 à 19:29, Eliot Miranda a écrit :
> Hi All,
>
> great news! Where can I read a specification of the Oz VM facilities?
I do not know all the details of the Oz VM but basically, it is a standard stack interpreter vm specialized to be able to run 2 images at the same time on top of it.
Guillermo made it possible by using one available bit in the object header of objects to mark the ownership of an object (e.g. is my object from image1 or image2?). Then, he mainly had to specialize VM primitives dealing with objects retrieval from memory. By example, he had to modify the garbage collector to set the right nil instance (yes, we have 2 images so 2 nil instances. we need to take the one of the active image) when an object is garbage collected; the primitive someObject has to return an object from the active image, etc.
There is also a way to switch execution from an image to the other just by switching the special objects array reference.
You can find some information in: https://guillep.github.io/files/publications/Poli15Thesis.pdf.
The Oz code is in http://smalltalkhub.com/#!/~Guille/ObjectSpace and in https://github.com/guillep/OzVM
The current implementation uses Cog 6.6.1and OzVM-GuillermoPolito.22.
I do not know if Guille has a more formal specification of the Oz VM.
If you have advices on what is the best way to handle two distinct object (memory) spaces in Spur, they will be welcomed :)
Cheers,
Christophe
> _,,,^..^,,,_ (phone)
>
> On Jan 19, 2016, at 6:29 AM, Christophe Demarey <christophe.demarey(a)inria.fr> wrote:
>
>> Hi all,
>>
>> In case you do not know, we work on bootstrapping Pharo, i.e. create a Pharo image from sources, not based on a previous image (well, we use a pharo image to produce it but no code / state from it).
>>
>> This process will allow to define a minimal Pharo kernel (currently 52 packages but we could have it far smaller) and to modularize the whole image (currently packages have too much dependencies on packages already loaded into the image).
>> The bootstrap process also allows to write down the recipe to initialize a new image from scratch (some code is missing in the image or is wrong). In addition, I think we will clean a lot of historical objects that are not used anymore.
>>
>> With the amazing work done by Guillermo Polito during his Phd (around Espell, Oz): https://guillep.github.io/files/publications/Poli15Thesis.pdf, we succeeded to get a first prototype of a bootstraped Pharo 5 image (from 5.392).
>> This prototype is able to run an eval command line handler and to log output / errors. Not all classes are yet initialized and you cannot yet save / restart this image but it is a big step forward.
>> It is a 4 mb image (could be half the size without unicode data). You can download it at: http://chercheurs.lille.inria.fr/~demarey/pmwiki/pub/pharo-bootstrap/pharo-….
>>
>> Next steps are to have a bootstrapped image fully working, then to load packages on top of it (like network, sunit) to produce a minimal image.
>> Then, we need to implement an Oz VM on top of Spur.
>> After that, we need to work on a reliable way to build the bootstrap (not too sensitive to changes in the image).
>>
>> Christophe.
>>
>> -------
>> demarey@193-51-236-143:~/dev/rmod/bootstrap/bootstrap-2016-01-19$ ../pharo bootstrap.image --no-default-preferences eval "1 + 1"
>> 2
>> demarey@193-51-236-143:~/dev/rmod/bootstrap/bootstrap-2016-01-19$ ../pharo bootstrap.image --no-default-preferences eval "'a' , 'b'"
>> 'ab'
>> demarey@193-51-236-143:~/dev/rmod/bootstrap/bootstrap-2016-01-19$ ../pharo bootstrap.image --no-default-preferences eval "1 / 0"
>> ZeroDivide
>> SmallInteger>>/
>> UndefinedObject>>DoIt
>> OpalCompiler>>evaluate
>> OpalCompiler(AbstractCompiler)>>evaluate:
>> SmalltalkImage>>evaluate:
>>
>> EvaluateCommandLineHandler>>no (source is Undeclared)
>> no source in EvaluateCommandLineHandler>>evaluate: in Block: no source
>> BlockClosure>>on:do:
>> EvaluateCommandLineHandler>>evaluate:
>> EvaluateCommandLineHandler>>evaluateArguments
>> EvaluateCommandLineHandler>>activate
>> EvaluateCommandLineHandler class(CommandLineHandler class)>>activateWith:
>>
>> BasicCommandLineHandler>>no (source is Undeclared)
>> no source in PharoCommandLineHandler(BasicCommandLineHandler)>>activateSubCommand: in Block: no source
>> BlockClosure>>on:do:
>> PharoCommandLineHandler(BasicCommandLineHandler)>>activateSubCommand:
>> PharoCommandLineHandler(BasicCommandLineHandler)>>handleSubcommand
>> PharoCommandLineHandler(BasicCommandLineHandler)>>handleArgument:
>>
>> BasicCommandLineHandler>>no (source is Undeclared)
>> no source in PharoCommandLineHandler(BasicCommandLineHandler)>>activate in Block: no source
>> BlockClosure>>on:do:
>> PharoCommandLineHandler(BasicCommandLineHandler)>>activate
>> PharoCommandLineHandler>>activate
>> PharoCommandLineHandler class(CommandLineHandler class)>>activateWith:
>>
>> PharoCommandLineHandler class>>no (source is Undeclared)
>> no source in PharoCommandLineHandler class>>activateWith: in Block: no source
>> NonInteractiveUIManager(UIManager)>>defer:
>> PharoCommandLineHandler class>>activateWith:
>> no source in BasicCommandLineHandler>>activateSubCommand: in Block: no source
>> BlockClosure>>on:do:
>> BasicCommandLineHandler>>activateSubCommand:
>> BasicCommandLineHandler>>handleSubcommand
>> BasicCommandLineHandler>>handleArgument:
>> no source in BasicCommandLineHandler>>activate in Block: no source
>>
>> SmallInteger>>no (source is Undeclared)
>>
>> UndefinedObject>>no (source is Undeclared)
>>
>> AbstractCompiler>>no (source is Undeclared)
>>
>> SmalltalkImage>>no (source is Undeclared)
>>
>> BlockClosure>>no (source is Undeclared)
>>
>> EvaluateCommandLineHandler>>no (source is Undeclared)
>>
>> EvaluateCommandLineHandler>>no (source is Undeclared)
>>
>> CommandLineHandler class>>no (source is Undeclared)
>>
>> BasicCommandLineHandler>>no (source is Undeclared)
>>
>> BasicCommandLineHandler>>no (source is Undeclared)
>>
>> PharoCommandLineHandler>>no (source is Undeclared)
>>
>> UIManager>>no (source is Undeclared)
>>
>> UndefinedObject>>no (source is Undeclared)
>>
>> CommandLineUIManager>>no (source is Undeclared)
>>
>> SmalltalkImage>>no (source is Undeclared)
>>
>> DelayMicrosecondScheduler>>no (source is Undeclared)
>>
>> BlockClosure>>no (source is Undeclared)
>>
>> SmalltalkImage>>no (source is Undeclared)
>>
>> WeakArray class>>no (source is Undeclared)
>>
>>
>> ps: source cannot be displayed because there is no formatter available in the bootstrap
>>
Jan. 20, 2016
Re: [Pharo-dev] [ANN] Pharo bootstrap
by Christophe Demarey
Thanks all for your kind words and encouragements!
Doru, you're right it has been made possible only because a lot of people took care to clean Pharo time after time*. By example, bootstraping Pharo 2.0 would have been a lot more pain!
We can also thanks Pavel for the work he did / does on the minimal image that goes into the same direction.
Cheers,
Christophe
* boy scouts rule: Leave the campground cleaner than you found it.
Le 19 janv. 2016 à 18:10, Tudor Girba a écrit :
> This is amazing news!
>
> For those that might be less involved in this, the minimal image is a long term goal that is essentially in the works since the beginning of Pharo. It accumulated a ton of effort from multiple people (I did not participate, but I have an idea of the amount of effort and it really is huge and tedious), and now we see the first palpable result. This is one of those things that have almost no visible output, but will turn out to have a tremendous impact.
>
> I would like to thank everyone involved! Please do keep this up. Even if it might look less rewarding, you should know that this work is greatly appreciated.
>
> Cheers,
> Doru
>
>
>> On Jan 19, 2016, at 3:29 PM, Christophe Demarey <christophe.demarey(a)inria.fr> wrote:
>>
>> Hi all,
>>
>> In case you do not know, we work on bootstrapping Pharo, i.e. create a Pharo image from sources, not based on a previous image (well, we use a pharo image to produce it but no code / state from it).
>>
>> This process will allow to define a minimal Pharo kernel (currently 52 packages but we could have it far smaller) and to modularize the whole image (currently packages have too much dependencies on packages already loaded into the image).
>> The bootstrap process also allows to write down the recipe to initialize a new image from scratch (some code is missing in the image or is wrong). In addition, I think we will clean a lot of historical objects that are not used anymore.
>>
>> With the amazing work done by Guillermo Polito during his Phd (around Espell, Oz): https://guillep.github.io/files/publications/Poli15Thesis.pdf, we succeeded to get a first prototype of a bootstraped Pharo 5 image (from 5.392).
>> This prototype is able to run an eval command line handler and to log output / errors. Not all classes are yet initialized and you cannot yet save / restart this image but it is a big step forward.
>> It is a 4 mb image (could be half the size without unicode data). You can download it at: http://chercheurs.lille.inria.fr/~demarey/pmwiki/pub/pharo-bootstrap/pharo-….
>>
>> Next steps are to have a bootstrapped image fully working, then to load packages on top of it (like network, sunit) to produce a minimal image.
>> Then, we need to implement an Oz VM on top of Spur.
>> After that, we need to work on a reliable way to build the bootstrap (not too sensitive to changes in the image).
>>
>> Christophe.
>>
>> -------
>> demarey@193-51-236-143:~/dev/rmod/bootstrap/bootstrap-2016-01-19$ ../pharo bootstrap.image --no-default-preferences eval "1 + 1"
>> 2
>> demarey@193-51-236-143:~/dev/rmod/bootstrap/bootstrap-2016-01-19$ ../pharo bootstrap.image --no-default-preferences eval "'a' , 'b'"
>> 'ab'
>> demarey@193-51-236-143:~/dev/rmod/bootstrap/bootstrap-2016-01-19$ ../pharo bootstrap.image --no-default-preferences eval "1 / 0"
>> ZeroDivide
>> SmallInteger>>/
>> UndefinedObject>>DoIt
>> OpalCompiler>>evaluate
>> OpalCompiler(AbstractCompiler)>>evaluate:
>> SmalltalkImage>>evaluate:
>>
>> EvaluateCommandLineHandler>>no (source is Undeclared)
>> no source in EvaluateCommandLineHandler>>evaluate: in Block: no source
>> BlockClosure>>on:do:
>> EvaluateCommandLineHandler>>evaluate:
>> EvaluateCommandLineHandler>>evaluateArguments
>> EvaluateCommandLineHandler>>activate
>> EvaluateCommandLineHandler class(CommandLineHandler class)>>activateWith:
>>
>> BasicCommandLineHandler>>no (source is Undeclared)
>> no source in PharoCommandLineHandler(BasicCommandLineHandler)>>activateSubCommand: in Block: no source
>> BlockClosure>>on:do:
>> PharoCommandLineHandler(BasicCommandLineHandler)>>activateSubCommand:
>> PharoCommandLineHandler(BasicCommandLineHandler)>>handleSubcommand
>> PharoCommandLineHandler(BasicCommandLineHandler)>>handleArgument:
>>
>> BasicCommandLineHandler>>no (source is Undeclared)
>> no source in PharoCommandLineHandler(BasicCommandLineHandler)>>activate in Block: no source
>> BlockClosure>>on:do:
>> PharoCommandLineHandler(BasicCommandLineHandler)>>activate
>> PharoCommandLineHandler>>activate
>> PharoCommandLineHandler class(CommandLineHandler class)>>activateWith:
>>
>> PharoCommandLineHandler class>>no (source is Undeclared)
>> no source in PharoCommandLineHandler class>>activateWith: in Block: no source
>> NonInteractiveUIManager(UIManager)>>defer:
>> PharoCommandLineHandler class>>activateWith:
>> no source in BasicCommandLineHandler>>activateSubCommand: in Block: no source
>> BlockClosure>>on:do:
>> BasicCommandLineHandler>>activateSubCommand:
>> BasicCommandLineHandler>>handleSubcommand
>> BasicCommandLineHandler>>handleArgument:
>> no source in BasicCommandLineHandler>>activate in Block: no source
>>
>> SmallInteger>>no (source is Undeclared)
>>
>> UndefinedObject>>no (source is Undeclared)
>>
>> AbstractCompiler>>no (source is Undeclared)
>>
>> SmalltalkImage>>no (source is Undeclared)
>>
>> BlockClosure>>no (source is Undeclared)
>>
>> EvaluateCommandLineHandler>>no (source is Undeclared)
>>
>> EvaluateCommandLineHandler>>no (source is Undeclared)
>>
>> CommandLineHandler class>>no (source is Undeclared)
>>
>> BasicCommandLineHandler>>no (source is Undeclared)
>>
>> BasicCommandLineHandler>>no (source is Undeclared)
>>
>> PharoCommandLineHandler>>no (source is Undeclared)
>>
>> UIManager>>no (source is Undeclared)
>>
>> UndefinedObject>>no (source is Undeclared)
>>
>> CommandLineUIManager>>no (source is Undeclared)
>>
>> SmalltalkImage>>no (source is Undeclared)
>>
>> DelayMicrosecondScheduler>>no (source is Undeclared)
>>
>> BlockClosure>>no (source is Undeclared)
>>
>> SmalltalkImage>>no (source is Undeclared)
>>
>> WeakArray class>>no (source is Undeclared)
>>
>>
>> ps: source cannot be displayed because there is no formatter available in the bootstrap
>>
>
> --
> www.tudorgirba.com
> www.feenk.com
>
> "It's not what we do that matters most, it's how we do it."
>
>
Jan. 20, 2016