Hi Pharo People,
I have continued work on Redline Smalltalk and I'm wanting to discuss what the absolute minimum set of Classes and method should be included in the Redline Runtime. Would anyone here like to participate in that discussion? - James. Redline Smalltalk |
I think what most people would want is to use Java libraries from inside Pharo. You seem to want to bring Pharo classes to Redline Runtime . On Fri, Dec 30, 2016 at 2:08 AM James Ladd <[hidden email]> wrote: Hi Pharo People, |
In reply to this post by James Ladd
> Sent: Thursday, December 29, 2016 at 6:51 PM
> From: "James Ladd" <[hidden email]> > To: [hidden email] > Subject: [Pharo-dev] Redline: Talking Runtime basics ... > > Hi Pharo People, > > I have continued work on Redline Smalltalk and I'm wanting to discuss what Nice to hear Redline is still under development. > the absolute minimum > set of Classes and method should be included in the Redline Runtime. Have you looked at Cuis? > Would anyone here like to participate in that discussion? > > - James. > Redline Smalltalk <http://redline.st> > > > > -- > View this message in context: http://forum.world.st/Redline-Talking-Runtime-basics-tp4928375.html > Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com. > > |
In reply to this post by kilon.alios
Actually I think James is on to something and we should try and support him. Having recently played with AWS Lambda and written a few Alexa services in JS, I was intrigued how you would approach such end points in Smalltalk and whether it would be a productive language and environment to run them in. (Btw - the lambda environment is very interesting - scalable infrastructure that is peanuts to run). To try this, the basic building blocks provided by these services are either JS or Java - so for Smalltalkers that sounds like Smalltalk running on Amber or Redline. I find Amber and all the JS infrastructure very daunting - gulp, amd etc. And for Lambda you also get caught into this world of package management and loading up JS dependencies. I'm intrigued how a jvm Smalltalk might approach this problem (as well as many others I'm sure). We seem to achieve a lot with quite a small image of building blocks. As pharo is a research community, can we help James explore this a bit more? Certainly there is a drive to a minimal Smalltalk image - so that work can immediately feed into this. To add to the research'y side context - these service infrastructures seem to feel a lot like callable blocks of code. We are used to thinking in this way in our image - we use blocks everywhere. How might they run in a scaleable environment vs straight function call languages? Tim Sent from my iPhone
|
The problem for an open source community as this one is time and money As Stef says "give me a million dollars and I will give you a Pharo million times better" This applies for all languages, I think the reasoning is that each language is not just a tool but an entire culture and people pick them for specific reasons, Again I am using Python as an example, different languages same or similar scenario. On Fri, Dec 30, 2016 at 1:59 PM Tim Mackinnon <[hidden email]> wrote:
|
I think we've gone off topic - James would simply like advice on what a minimal image could/should be composed of. That doesn't sound like a lot of work to help with that. I know there is a minimal image project in Pharo, but I'm not sure how minimal it got. I recall Marcus once telling me that the trick might be to get things to a place where you could bootstrap metacello and load in whatever you needed. I'm not sure if that is still the goal? But that would strike me as the core library he's interested in? Equally there was some work around having a scripting language using a command line Pharo for build type things. I don't recall its name - but again I'm sure it relies on a core set of classes that are used to bootstrap stuff as well. If someone can point to either of those two things that might help James enough. I know his actual project is hosted in GitHub and doesn't really distract anything going on here. It's on my todo list to check it out. Tim Sent from my iPhone
|
In reply to this post by James Ladd
On Fri, Dec 30, 2016 at 7:51 AM, James Ladd <[hidden email]> wrote:
> Hi Pharo People, > > I have continued work on Redline Smalltalk and I'm wanting to discuss what > the absolute minimum > set of Classes and method should be included in the Redline Runtime. > > Would anyone here like to participate in that discussion? > > - James. > Redline Smalltalk <http://redline.st> I'm not very knowledgable on this, but I'll show you how to pull some data from the work on producing a minimal image. 1. From PharoLauncher > Templates > Pharo 6.0(beta) download/create an image of build "60334-minimal". 2. Right-click on the image and choose [Copy pathname] 3. In a shell, change to that directory, and execute the following $ ../../VMs/spur/pharo 60334-minimal.image eval "Object allSubclasses size" ==> 2801 $ ../../VMs/spur/pharo 60334-minimal.image eval "Object class allSubclasses size" ==> 1399. $ ../../VMs/spur/pharo 60334-minimal.image eval "Object class printHierarchy" > /tmp/60334-minimal-class-hierarchy.txt I've attached the output of that last one. 4. For comparison, in a standard 60334 image, Object allSubclasses size "==>11923". Object class allSubclasses size "==>5959". Now in Pharo 6, the minimal image starts with a standard image and strips these things out... https://ci.inria.fr/pharo/job/Pharo-6.0-Update-Step-3.2-Minimal/ws/output.txt In Pharo 7, there will be a new build system that it will start with a minimal image and build it up to a normal image. So this may provide a better way to understand the order that things need to be implemented. cheers -ben 60334-minimal-class-hierarchy.txt (69K) Download Attachment |
Amber took a bunch of classes and this could be a nice starting point for fundamentals. Phil Le 30 déc. 2016 18:14, "Ben Coman" <[hidden email]> a écrit : On Fri, Dec 30, 2016 at 7:51 AM, James Ladd <[hidden email]> wrote: |
In reply to this post by Ben Coman
It is better to use smaller bootstrapped image without Monticello but it is still quite big. -- Pavel 2016-12-30 18:13 GMT+01:00 Ben Coman <[hidden email]>: On Fri, Dec 30, 2016 at 7:51 AM, James Ladd <[hidden email]> wrote: |
In reply to this post by monty-3
Monty I'll have a look at Cuis thanks
Sent from my Commodore 64 On 30 Dec 2016, at 9:16 pm, monty <[hidden email]> wrote: >> Sent: Thursday, December 29, 2016 at 6:51 PM >> From: "James Ladd" <[hidden email]> >> To: [hidden email] >> Subject: [Pharo-dev] Redline: Talking Runtime basics ... >> >> Hi Pharo People, >> >> I have continued work on Redline Smalltalk and I'm wanting to discuss what > > Nice to hear Redline is still under development. > >> the absolute minimum >> set of Classes and method should be included in the Redline Runtime. > > Have you looked at Cuis? > >> Would anyone here like to participate in that discussion? >> >> - James. >> Redline Smalltalk <http://redline.st> >> >> >> >> -- >> View this message in context: http://forum.world.st/Redline-Talking-Runtime-basics-tp4928375.html >> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com. >> >> > |
In reply to this post by Tim Mackinnon
Hi Tim, Thank you for the support. With Redline you will be able to deploy Smalltalk to AWS Lambda Smalltalk source can be packaged into a STar (Smalltalk archive) which is actually a Java jar and deployed. See jaws-maven-plugin for an approach to getting Java code deployed easily as a Lambda Sent from my Commodore 64
|
In reply to this post by kilon.alios
Dimitris, To contribute you do not need to code Java at all, never, period. Sent from my Commodore 64
|
In reply to this post by Tim Mackinnon
Thanks Tim. I even tried to find the old Potatoe Smalltalk which was a port of an old Smalltalk-80 image as it had a working ide and yet the smallest count of classes. Sent from my Commodore 64
|
In reply to this post by Ben Coman
This is very helpful thank you.
Maybe I can rephrase things to help capture what I'm trying to do. In the Smalltalk-80 blue book there is a set of Kernel-Object/Kernel-Classes defined and I'm trying to find a full running implementation of these classes in a Smalltalk environment OR recreate Sent from my Commodore 64 > On 31 Dec 2016, at 4:13 am, Ben Coman <[hidden email]> wrote: > >> On Fri, Dec 30, 2016 at 7:51 AM, James Ladd <[hidden email]> wrote: >> Hi Pharo People, >> >> I have continued work on Redline Smalltalk and I'm wanting to discuss what >> the absolute minimum >> set of Classes and method should be included in the Redline Runtime. >> >> Would anyone here like to participate in that discussion? >> >> - James. >> Redline Smalltalk <http://redline.st> > > Nice to hear you are continuing. > I'm not very knowledgable on this, but I'll show you how to pull some > data from the work on producing a minimal image. > > 1. From PharoLauncher > Templates > Pharo 6.0(beta) > download/create an image of build "60334-minimal". > 2. Right-click on the image and choose [Copy pathname] > 3. In a shell, change to that directory, and execute the following > $ ../../VMs/spur/pharo 60334-minimal.image eval "Object allSubclasses size" > ==> 2801 > $ ../../VMs/spur/pharo 60334-minimal.image eval "Object class > allSubclasses size" > ==> 1399. > $ ../../VMs/spur/pharo 60334-minimal.image eval "Object class > printHierarchy" > /tmp/60334-minimal-class-hierarchy.txt > > I've attached the output of that last one. > > 4. For comparison, in a standard 60334 image, > Object allSubclasses size "==>11923". > Object class allSubclasses size "==>5959". > > Now in Pharo 6, the minimal image starts with a standard image and > strips these things out... > https://ci.inria.fr/pharo/job/Pharo-6.0-Update-Step-3.2-Minimal/ws/output.txt > > In Pharo 7, there will be a new build system that it will start with a > minimal image and build it up to a normal image. So this may provide > a better way to understand the order that things need to be > implemented. > > cheers -ben > <60334-minimal-class-hierarchy.txt> |
In reply to this post by philippe.back@highoctane.be
I have been looking at Amber :) Sent from my Commodore 64
|
In reply to this post by Pavel Krivanek-3
So for curiosity...
$ $PHARO bootstrap.image eval "Object allSubclasses size" 1677 $ $PHARO bootstrap.image eval "Object allSubclasses size" 837 $ $PHARO bootstrap.image eval "Object class printHierarchy" > /tmp/60334-bootstrap-hierarchy.txt (see attached) cheers -ben On Sat, Dec 31, 2016 at 4:42 AM, Pavel Krivanek <[hidden email]> wrote: > It is better to use smaller bootstrapped image without Monticello but it is > still quite big. > > https://ci.inria.fr/pharo/view/6.0-SysConf/job/Pharo-6.0-Step-01-00-Bootstrap/lastSuccessfulBuild/artifact/bootstrap.zip > > -- Pavel > > 2016-12-30 18:13 GMT+01:00 Ben Coman <[hidden email]>: >> >> On Fri, Dec 30, 2016 at 7:51 AM, James Ladd <[hidden email]> wrote: >> > Hi Pharo People, >> > >> > I have continued work on Redline Smalltalk and I'm wanting to discuss >> > what >> > the absolute minimum >> > set of Classes and method should be included in the Redline Runtime. >> > >> > Would anyone here like to participate in that discussion? >> > >> > - James. >> > Redline Smalltalk <http://redline.st> >> >> Nice to hear you are continuing. >> I'm not very knowledgable on this, but I'll show you how to pull some >> data from the work on producing a minimal image. >> >> 1. From PharoLauncher > Templates > Pharo 6.0(beta) >> download/create an image of build "60334-minimal". >> 2. Right-click on the image and choose [Copy pathname] >> 3. In a shell, change to that directory, and execute the following >> $ ../../VMs/spur/pharo 60334-minimal.image eval "Object allSubclasses >> size" >> ==> 2801 >> $ ../../VMs/spur/pharo 60334-minimal.image eval "Object class >> allSubclasses size" >> ==> 1399. >> $ ../../VMs/spur/pharo 60334-minimal.image eval "Object class >> printHierarchy" > /tmp/60334-minimal-class-hierarchy.txt >> >> I've attached the output of that last one. >> >> 4. For comparison, in a standard 60334 image, >> Object allSubclasses size "==>11923". >> Object class allSubclasses size "==>5959". >> >> Now in Pharo 6, the minimal image starts with a standard image and >> strips these things out... >> >> https://ci.inria.fr/pharo/job/Pharo-6.0-Update-Step-3.2-Minimal/ws/output.txt >> >> In Pharo 7, there will be a new build system that it will start with a >> minimal image and build it up to a normal image. So this may provide >> a better way to understand the order that things need to be >> implemented. >> >> cheers -ben > > 60334-bootstrap-hierarchy.txt (40K) Download Attachment |
Isn't there a typo in the first exptession? Also the list contains a lot of RB things. What purpose do they have in a bootstrap image? Same for RelationSlot and X11 something. Is there a scope and purpose statement for the bootstrap somewhere? Phil Le 31 déc. 2016 05:47, "Ben Coman" <[hidden email]> a écrit : So for curiosity... |
In reply to this post by James Ladd
Hi James:
> On 30 Dec 2016, at 22:50, James Ladd <[hidden email]> wrote: > > I even tried to find the old Potatoe Smalltalk which was a port of an old Smalltalk-80 image as it had a working ide and yet the smallest count of classes. Did you find it? https://news.squeak.org/2008/07/07/potato-version-of-jsqueak-from-hpi/ Best regards Stefan -- Stefan Marr Johannes Kepler Universität Linz http://stefan-marr.de/research/ |
I'll check it out.
The version I remember was black n white. Sent from my Commodore 64 > On 31 Dec 2016, at 9:04 pm, Stefan Marr <[hidden email]> wrote: > > Hi James: > >> On 30 Dec 2016, at 22:50, James Ladd <[hidden email]> wrote: >> >> I even tried to find the old Potatoe Smalltalk which was a port of an old Smalltalk-80 image as it had a working ide and yet the smallest count of classes. > > Did you find it? > https://news.squeak.org/2008/07/07/potato-version-of-jsqueak-from-hpi/ > > Best regards > Stefan > > > -- > Stefan Marr > Johannes Kepler Universität Linz > http://stefan-marr.de/research/ > > > > |
James, Nice to hear that you are still pushing. I would love to be able to developed in Pharo and deployed on red. Noury is working on the same scenario for PharoJS. May be we should organise a skype with Guille because we can use his infrastructure (hespel) to create out of Pharo automatically a kernel for Red. Guille has an infrastructure Hespel (check his phd) to - bootstrap different kernels such as Candlelight, microsqueak.. - tailor application (you give a seed expression and it collects all the mandatory methods and classes) probably like spoon He bootstrapped different small kernels during his phd. In tornado the tailoring version of Hespel we can create imae that are as small as 12k :) We put a list of the class in a techreport. https://hal.inria.fr/hal-00996908 In Pharo 70 we will use in production a bootstrap kernel: basically Pharo core with some better handled mechanisms (such as the startup) We should remove the traits from class/metaclasses to gain some space. Now our goal for this version is not to have the smallest core but a full process based on a bootstrap image. We shuffled/repackaged many classes around and we will continue to cut spurious dependencies. Stef On Sat, Dec 31, 2016 at 12:50 PM, James Ladd <[hidden email]> wrote: I'll check it out. |
Free forum by Nabble | Edit this page |