Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread p...@highoctane.be
(#Motivation asClass fromString: 'a') sayIt

is not working better :-)

Should.

Phil

On Wed, Jul 12, 2017 at 8:54 AM, Sven Van Caekenberghe  wrote:

> Yes, but these are all inside the method editor.
>
> I wanted to start with
>
> (Motivation fromString: 'foo') sayIt.
>
> in a playground/workspace.
>
> But with just a DNU it works.
>
> > On 12 Jul 2017, at 08:49, p...@highoctane.be wrote:
> >
> > What is not working? Check this:
> >
> > 
> >
> > Hit Define new class and just accept what is proposed, then proceed
> >
> > 
> >
> > Now hit Create and define the method.
> >
> > 
> >
> > etc etc for usual coding.
> >
> > Best,
> > Phil
> >
> > On Wed, Jul 12, 2017 at 8:35 AM, K K Subbu  wrote:
> > On Wednesday 12 July 2017 08:33 AM, horrido wrote:
> > But for the life of me, I can't figure out how to create new classes for
> my
> > application from within the Debugger. Must I create new classes using the
> > System Browser first before I can continue adding new methods from within
> > the Debugger? What's the recommended procedure for all this?
> >
> > Not necessarily. In Pharo, everything happens through message sends.
> > Classes are created by sending any one of subclass:* family of messages
> to the parent class. System Browser makes it convenient by adding a
> template to its bottom text panel. Magic happens in the subclass:* message
> sends.
> >
> > When you "inspect" an object in the Debugger, a text panel will open up
> along the right side where you can type in a command just like in System
> Browser and "doIt". E.g. to create a subclass from Object.
> >
> >Object subclass: ...
> >
> > HTH .. Subbu
> >
> >
> >
>
>
>
>


Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread Marcus Denker

> On 12 Jul 2017, at 08:54, Sven Van Caekenberghe  wrote:
> 
> Yes, but these are all inside the method editor.
> 
> I wanted to start with
> 
> (Motivation fromString: 'foo') sayIt.
> 
> in a playground/workspace.

in the workspace it creates a variable (with value nil)… so it treats upper-case
unknown vars the same as lower case.

I think it might make sense to have for upper case instead the menu that asks
what to do (it could there have a “add binding to workspace” entry for the 
current
way, too)

Marcus


Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread Marcus Denker

> On 12 Jul 2017, at 09:09, Marcus Denker  wrote:
> 
> 
>> On 12 Jul 2017, at 08:54, Sven Van Caekenberghe  wrote:
>> 
>> Yes, but these are all inside the method editor.
>> 
>> I wanted to start with
>> 
>> (Motivation fromString: 'foo') sayIt.
>> 
>> in a playground/workspace.
> 
> in the workspace it creates a variable (with value nil)… so it treats 
> upper-case
> unknown vars the same as lower case.
> 
> I think it might make sense to have for upper case instead the menu that asks
> what to do (it could there have a “add binding to workspace” entry for the 
> current
> way, too)
> 

for the #asClass case it is more complex.

The compiler knows two modes:
“Interactive” and not. So if there is a undeclared var, it will in interactive
mode ask the user what to do, but when compiling non-interactively it
will just add the var to Undeclared (with a nil value) and compile a binding
to that.

Now #asClass happens not at compile-time, but at runtime. The compiler can
not do anything (it’s just a message send), and at runtime we do *not* model
“interactive use” vs. not.

Now if you look at Denis enhancement of the test execution, there is now 

CurrentExecutionEnvironment value 

which allows us at runtime to check if we run a test (and which). Now
we could extend that and model “interactive use” vs. “non-interactive” in
addition.

Then code like #asClass could ask the user in interactive mode to create
a non-existing class.

But the question is if we would want that… 

(I like the idea of modelling interactive vs. not using the execution 
environment, though).

Marcus


Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread K K Subbu

On Wednesday 12 July 2017 01:36 PM, Marcus Denker wrote:

The compiler knows two modes:
“Interactive” and not. So if there is a undeclared var, it will in interactive
mode ask the user what to do, but when compiling non-interactively it
will just add the var to Undeclared (with a nil value) and compile a binding
to that.


If I run

Motivation fromString: 'loo'

from Playground or Inspector, I get a DNU window for #fromString not a 
prompt for defining this variable. Shouldn't Playground/Inspector be 
considered interactive? Why is Motivation assumed undeclared?


Curious .. Subbu



Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread Denis Kudriashov
2017-07-12 9:09 GMT+02:00 Marcus Denker :

> in the workspace it creates a variable (with value nil)… so it treats
> upper-case
> unknown vars the same as lower case.
>
> I think it might make sense to have for upper case instead the menu that
> asks
> what to do (it could there have a “add binding to workspace” entry for the
> current
> way, too)
>

I would prefer same behaviour like in method editor. I really hate when I
made mistake in class name and after evaluation I got uppercase binding
with nil value.


Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread Marcus Denker

> On 12 Jul 2017, at 10:46, Denis Kudriashov  wrote:
> 
> 
> 2017-07-12 9:09 GMT+02:00 Marcus Denker  >:
> in the workspace it creates a variable (with value nil)… so it treats 
> upper-case
> unknown vars the same as lower case.
> 
> I think it might make sense to have for upper case instead the menu that asks
> what to do (it could there have a “add binding to workspace” entry for the 
> current
> way, too)
> 
> I would prefer same behaviour like in method editor. I really hate when I 
> made mistake in class name and after evaluation I got uppercase binding with 
> nil value. 

yes, we should fix it. binding should just be created for lower case vars.

Marcus

Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread Marcus Denker

> On 12 Jul 2017, at 10:51, Marcus Denker  wrote:
> 
> 
>> On 12 Jul 2017, at 10:46, Denis Kudriashov > > wrote:
>> 
>> 
>> 2017-07-12 9:09 GMT+02:00 Marcus Denker > >:
>> in the workspace it creates a variable (with value nil)… so it treats 
>> upper-case
>> unknown vars the same as lower case.
>> 
>> I think it might make sense to have for upper case instead the menu that asks
>> what to do (it could there have a “add binding to workspace” entry for the 
>> current
>> way, too)
>> 
>> I would prefer same behaviour like in method editor. I really hate when I 
>> made mistake in class name and after evaluation I got uppercase binding with 
>> nil value. 
> 
> yes, we should fix it. binding should just be created for lower case vars.
> 

How to fix it:

OCRequestorScope is the scope of variables in tools. #lookupVar: is the method 
that is doing the lookup.

replace the code

global := self lookupGlobalVar: name.
global ifNotNil: [ ^ global ].  

with:

name first isUppercase ifTrue: [ ^ outerScope lookupVar: name].

But: right now we abuse the requesterscope to implement the feature that you 
can hand
in an additional dictionary with bindings. See 
testEvaluateWithBindingsWithUppercaseName
This change breaks this feature… but it just means we need to implement this 
better, which 
I will do .

Marcus 



[Pharo-users] Fwd: [CfP][Meta'17] Workshop on Meta-Programming Techniques and Reflection

2017-07-12 Thread Guillermo Polito
Hi all,

sorry for multiple copies,

=

  Call for Papers: Meta’17
  

   Workshop on Meta-Programming Techniques and Reflection

 Co-located with SPLASH 2017
 October 22, 2017, Vancouver, Canada

   Twitter @MetaAtSPLASH
  http://2017.splashcon.org/track/meta-2017


The heterogeneity of mobile computing, cloud applications, multicore
architectures, and other systems leads to increasing complexity of software
and
requires new approaches to programming languages and software engineering
tools. To manage the complexity, we require generic solutions that can be
adapted to specific application domains or use cases, making
metaprogramming an
important topic of research once more. However, the challenges with
metaprogramming are still manifold. They start with fundamental issues such
as
typing of reflective programs, continue with practical concerns such as
performance and tooling, and reach into the empirical field to understand
how
metaprogramming is used and how it affects software maintainability. Thus,
while industry accepted metaprogramming on a wide scale with Ruby, Scala,
JavaScript and others, academia still needs to answer a wide range of
questions
to bring it to the same level of convenience, tooling, and programming
styles
to cope with the increasing complexity of software systems.

This workshop aims to explore meta-level technologies that help tackling the
heterogeneity, scalability and openness requirements of emerging
computations
platforms.

### Topics of Interest

The workshop is a venue for all approaches that embrace metaprogramming:

- from static to dynamic techniques
- reflection, meta-level architectures, staging, open language runtimes
applications to middleware, frameworks, and DSLs
- optimization techniques to minimize runtime overhead
- contract systems, or typing of reflective programs
reflection and metaobject protocols to enable tooling
- case studies and evaluation of such techniques, e.g., to build
applications,
language extensions, or tools
- empirical evaluation of metaprogramming solutions
- security in reflective systems and capability-based designs
- meta-level architectures and reflective middleware for modern runtime
platforms (e.g. IoT, cyber-physical systems, mobile/cloud/grid computing,
etc)
- surveys, conceptualization, and taxonomization of existing approaches

In short, we invite contributions to the workshop on a wide range of topics
related to design, implementation, and application of reflective APIs and
meta-programming techniques, as well as empirical studies and typing for
such
systems and languages.

### Workshop Format and Submissions

This workshop welcomes the presentation of new ideas and emerging problems
as
well as mature work as part of a mini-conference format. Furthermore, we
plan
interactive brainstorming and demonstration sessions between the formal
presentations to enable an active exchange of ideas.

The workshop papers will be published in the ACM DL, if not requested
otherwise by the authors. Thus, they will be part of SPLASH workshop
proceedings. Therefore, papers are to be submitted using the SIGPLAN acmart
style: http://www.sigplan.org/Resources/Author/.
Please use the provided double-column templates for
Latex
 http://www.sigplan.org/sites/default/files/acmart/current/
acmart-sigplanproc-template.tex)
or Word
 http://www.acm.org/publications/proceedings-template.

- technical paper: max. 8 pages, excluding references
- position and work-in-progress paper: 1-4 pages, excluding references
- technology demos or a posters: 1-page abstract


Demos, posters, position and work-in-progress papers can be submitted on a
second, later deadline to discuss the latest results and current work.

For the submission, please use the submission system at:

https://meta17.hotcrp.com/

### Important Dates

 Abstract Submission:  07 August 2017
 Paper Submission: 14 August 2017
 Author Notification:  06 September 2017
 Position/WIP Paper Deadline:  08 September 2017
 Camera Ready Deadline:18 September 2017
 Position/WIP Notification:21 September 2017

### Program Committee

The program committee consists of the organizers and the following
reviewers:

Anya Helen Bagge, University of Bergen, Norway
Daniele Bonetta, Oracle Labs, Austria
Nicolas Cardozo, Universidad de los Andes, Colombia
Sebastian Erdweg, TU Delf, The Nederlands
Robert Hirschfeld, HPI, Germany
Roberto Ierusalimschy, PUC-Rio, Brazil
Pablo Inostroza, CWI, The Nederlands
Kim Mens, Universite Catholique de Louvain, Belgium
Cyrus Omar, Carnegie Mellon University, USA
Guillermo Polito, CNRS, France
Tiark Rompf, Purdue University, USA
Tom Van Cutsem, Nokia Bell Labs, Belgium
Takuo Watanabe, Tokyo Institute of Technology, Japan

### Workshop Organizer

Re: [Pharo-users] Problems with PunQLite

2017-07-12 Thread PBKResearch
Hello

 

Just an update on a further test. Going through old e-mails, I saw Esteban
Lorenzano's recommendation to use a different repository to install
PunQLite. I used his snippet:

Metacello new 
repository: 'github://pharo-nosql/PunQLite/repository';
baseline: 'PunQLite';
load.

to install it in a clean Moose 6.1 image. The results were the same; all
tests red, manual test gave error: 'External module not found'. I suspect it
is all a matter of getting the unqlite.dll module where it can be found, but
I don't know where this should be.

 

Thanks for any help

 

Peter Kenny

 

From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of
PBKResearch
Sent: 11 July 2017 18:27
To: pharo-users@lists.pharo.org
Subject: [Pharo-users] Problems with PunQLite

 

Hello

 

I have decided to have another try with PunQLite, having failed to get it
working before. For the record, I am using Windows 10 Home with all recent
updates applied.

 

I tried the following:

 

1.  Download latest image of Moose 6.1 (Pharo 6.0 Latest update:
#60507). 
2.  Search Catalog Browser for PunQLite, which is flagged as OK for
Pharo 6.0, and select 'Install stable version'.
3.  Check that the file unqlite.dll has been installed in the same
folder as the image.
4.  Run tests in PqDatabaseTests. 30 tests run, all red.
5.  Try to run some tests manually. Enter 'PqDatabase openOnMemory' and
'doIt'. Result: 'Error: External module not found'.

 

Looking at the Monticello Browser, I see that my image has
ConfigurationOfPunQLite(TorstenBergmann.29) and
PunQLite-Core(TorstenBergmann.28). This is the version chosen as stable by
the Catalog Browser. Have I in fact got the right version? Do I have to do
something with the .dll to make it visible to the .ffi call?

 

Any suggestions gratefully received.

 

Peter Kenny

 



Re: [Pharo-users] Problems with PunQLite

2017-07-12 Thread Esteban Lorenzano
Hi, 

while the installer should download and install the dll, I have seen that in 
some cases it does not downloads it correctly.
can you try to download the library from here: 

https://github.com/pharo-nosql/PunQLite/releases/tag/stable 


and putting it in same dir as your image? (which is where should be the 
downloaded dll, so you need to replace it).

cheers!
Esteban

> On 12 Jul 2017, at 14:10, PBKResearch  wrote:
> 
> Hello
>  
> Just an update on a further test. Going through old e-mails, I saw Esteban 
> Lorenzano’s recommendation to use a different repository to install PunQLite. 
> I used his snippet:
> Metacello new 
> repository: 'github://pharo-nosql/PunQLite/repository' 
> ;
> baseline: 'PunQLite';
> load.
> to install it in a clean Moose 6.1 image. The results were the same; all 
> tests red, manual test gave error: ‘External module not found’. I suspect it 
> is all a matter of getting the unqlite.dll module where it can be found, but 
> I don’t know where this should be.
>  
> Thanks for any help
>  
> Peter Kenny
>  
> From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of 
> PBKResearch
> Sent: 11 July 2017 18:27
> To: pharo-users@lists.pharo.org
> Subject: [Pharo-users] Problems with PunQLite
>  
> Hello
>  
> I have decided to have another try with PunQLite, having failed to get it 
> working before. For the record, I am using Windows 10 Home with all recent 
> updates applied.
>  
> I tried the following:
>  
> Download latest image of Moose 6.1 (Pharo 6.0 Latest update: #60507). 
> Search Catalog Browser for PunQLite, which is flagged as OK for Pharo 6.0, 
> and select ‘Install stable version’.
> Check that the file unqlite.dll has been installed in the same folder as the 
> image.
> Run tests in PqDatabaseTests. 30 tests run, all red.
> Try to run some tests manually. Enter ‘PqDatabase openOnMemory’ and ‘doIt’. 
> Result: ‘Error: External module not found’.
>  
> Looking at the Monticello Browser, I see that my image has 
> ConfigurationOfPunQLite(TorstenBergmann.29) and 
> PunQLite-Core(TorstenBergmann.28). This is the version chosen as stable by 
> the Catalog Browser. Have I in fact got the right version? Do I have to do 
> something with the .dll to make it visible to the .ffi call?
>  
> Any suggestions gratefully received.
>  
> Peter Kenny



Re: [Pharo-users] Using SandstoneDB for persistance. Getting error.

2017-07-12 Thread sergio ruiz
OH! 

okay.. this is making sense now..

I think i just had to look at it for a minute..

Let me try that ..

Thanks!


On July 11, 2017 at 2:53:35 PM, Ramon Leon (ramon.l...@allresnet.com) wrote:

On 07/11/2017 10:05 AM, sergio ruiz wrote:  
> Oh! i forgot to mention.. this method belongs to Order..  
>  
> so that part is working just fine..  

Doesn't matter where the method is, your state machine clearly has  
blocks stored as instance variables and you're trying to save the state  
machine as part of the Order; SandstoneDb doesn't support saving blocks.  
I'd try what Dennis Suggested and store message sends rather than blocks  
for the guarded method, then it might save fine. Inspect the state  
machine, any use of blocks has to be removed/changed to message sends in  
order for it to be persistable by SandstoneDb.  

--  
Ramon Leon  
http://onsmalltalk.com  


peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [Pharo-users] Problems with PunQLite

2017-07-12 Thread PBKResearch
Hi Esteban

 

Thanks. That has fixed the immediate problem – the tests in PqDatabaseTests are 
now all green. The effect is weird, because the downloaded .dll just overwrote 
the old one, so they are in the same place, but now it works.

 

I am still getting some PqFetch errors in testing, but I can’t yet give a clear 
characterisation of the problem. I shall come back when I have some more 
results.

 

Peter

 

From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of 
Esteban Lorenzano
Sent: 12 July 2017 13:24
To: Any question about pharo is welcome 
Subject: Re: [Pharo-users] Problems with PunQLite

 

Hi, 

 

while the installer should download and install the dll, I have seen that in 
some cases it does not downloads it correctly.

can you try to download the library from here: 

 

https://github.com/pharo-nosql/PunQLite/releases/tag/stable

 

and putting it in same dir as your image? (which is where should be the 
downloaded dll, so you need to replace it).

 

cheers!

Esteban

 

On 12 Jul 2017, at 14:10, PBKResearch mailto:pe...@pbkresearch.co.uk> > wrote:

 

Hello

 

Just an update on a further test. Going through old e-mails, I saw Esteban 
Lorenzano’s recommendation to use a different repository to install PunQLite. I 
used his snippet:

Metacello new 
repository: '  
github://pharo-nosql/PunQLite/repository';
baseline: 'PunQLite';
load.

to install it in a clean Moose 6.1 image. The results were the same; all tests 
red, manual test gave error: ‘External module not found’. I suspect it is all a 
matter of getting the unqlite.dll module where it can be found, but I don’t 
know where this should be.

 

Thanks for any help

 

Peter Kenny

 

From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of 
PBKResearch
Sent: 11 July 2017 18:27
To: pharo-users@lists.pharo.org  
Subject: [Pharo-users] Problems with PunQLite

 

Hello

 

I have decided to have another try with PunQLite, having failed to get it 
working before. For the record, I am using Windows 10 Home with all recent 
updates applied.

 

I tried the following:

 

1.  Download latest image of Moose 6.1 (Pharo 6.0 Latest update: #60507). 
2.  Search Catalog Browser for PunQLite, which is flagged as OK for Pharo 
6.0, and select ‘Install stable version’.
3.  Check that the file unqlite.dll has been installed in the same folder 
as the image.
4.  Run tests in PqDatabaseTests. 30 tests run, all red.
5.  Try to run some tests manually. Enter ‘PqDatabase openOnMemory’ and 
‘doIt’. Result: ‘Error: External module not found’.

 

Looking at the Monticello Browser, I see that my image has 
ConfigurationOfPunQLite(TorstenBergmann.29) and 
PunQLite-Core(TorstenBergmann.28). This is the version chosen as stable by the 
Catalog Browser. Have I in fact got the right version? Do I have to do 
something with the .dll to make it visible to the .ffi call?

 

Any suggestions gratefully received.

 

Peter Kenny

 



Re: [Pharo-users] Glamour: update presenter with new text

2017-07-12 Thread Hilaire
Le 05/07/2017 à 19:43, Juraj Kubelka a écrit :
> I have added the bold line from the previous
> post: 
> http://forum.world.st/Custom-Glamour-browser-for-Dr-Geo-scripting-tp4952920p4953209.html
>  
>
> But it is not perfect, because it does not keep the selection.
>
> Hilaire, it looks like you are going to end up with a simplified
> Nautilus/Calypso system editor. 
> Maybe it is possible to take Calypso and find out how to simplify it
> for your needs? 
> Well, I am writing it without understanding your goal :-)

I read again carrefully your example and applied it to my case, and it
does not work as I explained one week ago.
And I am not sure I want to mess arround with Nautilus.
I don't know what to do? Do you want a copy of my image to test it?

Hilaire

-- 
Dr. Geo
http://drgeo.eu





Re: [Pharo-users] Glamour: update presenter with new text

2017-07-12 Thread Tudor Girba
Hi,

I will try to follow up tomorrow.

Cheers,
Doru


> On Jul 12, 2017, at 6:01 PM, Hilaire  wrote:
> 
> Le 05/07/2017 à 19:43, Juraj Kubelka a écrit :
>> I have added the bold line from the previous
>> post: 
>> http://forum.world.st/Custom-Glamour-browser-for-Dr-Geo-scripting-tp4952920p4953209.html
>>  
>> 
>> But it is not perfect, because it does not keep the selection.
>> 
>> Hilaire, it looks like you are going to end up with a simplified
>> Nautilus/Calypso system editor. 
>> Maybe it is possible to take Calypso and find out how to simplify it
>> for your needs? 
>> Well, I am writing it without understanding your goal :-)
> 
> I read again carrefully your example and applied it to my case, and it
> does not work as I explained one week ago.
> And I am not sure I want to mess arround with Nautilus.
> I don't know what to do? Do you want a copy of my image to test it?
> 
> Hilaire
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 
> 

--
www.tudorgirba.com
www.feenk.com

"Problem solving should be focused on describing
the problem in a way that makes the solution obvious."








Re: [Pharo-users] Glamour: update presenter with new text

2017-07-12 Thread Stephane Ducasse
I can tell you that you do not want to play with nautilus :).

Stef

On Wed, Jul 12, 2017 at 6:01 PM, Hilaire  wrote:
> Le 05/07/2017 à 19:43, Juraj Kubelka a écrit :
>> I have added the bold line from the previous
>> post: 
>> http://forum.world.st/Custom-Glamour-browser-for-Dr-Geo-scripting-tp4952920p4953209.html
>>
>> But it is not perfect, because it does not keep the selection.
>>
>> Hilaire, it looks like you are going to end up with a simplified
>> Nautilus/Calypso system editor.
>> Maybe it is possible to take Calypso and find out how to simplify it
>> for your needs?
>> Well, I am writing it without understanding your goal :-)
>
> I read again carrefully your example and applied it to my case, and it
> does not work as I explained one week ago.
> And I am not sure I want to mess arround with Nautilus.
> I don't know what to do? Do you want a copy of my image to test it?
>
> Hilaire
>
> --
> Dr. Geo
> http://drgeo.eu
>
>
>



Re: [Pharo-users] 2 questions around gitlab, gitfiletree, BaselineOf

2017-07-12 Thread Tim Mackinnon
I have another approach (possibly similar) - as gitlab has already checked out 
the code for you you simply need to point to it?

- rm -rf build. # gitlab can cache the build directory
- mkdir build
- cp scripts/* build

- cd build
- curl get.pharo.org/64/ | bash
- ./pharo Pharo.image --no-default-preferences --save --quit st loadLocal.st

Where loadLocal.st  is in a /scripts directory checked 
into gitlab, and /src is where my normal Pharo Iceberg packages are checked in. 
loadLocal.st  is simply:

"CmdLine script to load project"

Metacello new
repository: 'filetree://../src';
baseline: 'Lambda';
load.

Tim

> On 12 Jul 2017, at 06:49, Sabine Manaa  wrote:
> 
> Hi Thierry,
> 
> this would be nice and exactly what I was looking for.
> 
> I ask myself if iceberg would be able to solve this/will it be able to solve 
> it in a later version.
> 
> Regards
> Sabine 
> 
> 2017-07-11 23:13 GMT+02:00 Thierry Goubier [via Smalltalk] <[hidden email] 
> >:
> Hi Sabine, 
> 
> I have a slightly different script, a Makefile, which uses another 
> trick: put everything into a pharo/ subdirectory. Like that, just rm -rf 
> pharo/ erases everything before rebuilding. 
> 
> I think I would implement the support you need for you to simply be able 
> to write: 
> 
> Metacello new baseline: \'RKA24\'\; repository: 
> \'gitfiletree://192.168.1.61:3/SPF/Spesenfuchs.gitspf:1.0?protocol=http\ 
> '\;load
>  
> 
> so that the clone + Metacello over filetree isn't necessary. 
> 
> (at the moment, I'm just pretty sure GitFileTree doesn't handle http and 
> the port number, but that wouldn't be hard to add) 
> 
> Regards, 
> 
> Thierry 
> 
> 
> Le 11/07/2017 à 12:43, Sabine Manaa a écrit :
> 
> > After several questions and trials I ended with a script like this: 
> > 
> > cd /Applications/Pharo5.0-7.app/Contents/Resources 
> > rm Pharo.image 
> > rm Pharo.changes 
> > curl get.pharo.org/50   > > | bash 
> > rm -rf spfClonedGitlabRepository
> 
> > git clone http://192.168.1.61:3/SPF/Spesenfuchs.git 
> >   
> >  > > --branch 1.0 
> > spfClonedGitlabRepository 
> > Pharo Pharo.image --no-default-preferences eval --save "(CatalogProvider 
> > projectNamed: 'GitFileTree') installVersion: #stable. Metacello new 
> > baseline: 'RKA24'; repository: 
> > 'filetree://spfClonedGitlabRepository';load." 
> > 
> > It creates a local clone (of a certain version) of my gitlab repository 
> > (deleting old stuff before) and starts with a new image, loading the 
> > given branch. 
> > 
> > With this, I can always start with a new image, loading exactly the 
> > version I want from gitlab. 
> > 
> > For pushing into gitlab I use the MCFileTreeGitRepository browser and push. 
> > 
> > Big thank you for all who helped me, here and in discord. 
> >
> > 2017-07-08 18:31 GMT+02:00 Pierce Ng-3 [via Smalltalk] <[hidden email] 
> > >: 
> >
> 
> > On Fri, Jul 07, 2017 at 06:48:50AM -0700, Sabine Manaa wrote: 
> > 
> > > 1) For loading my own code, I currently have a bad solution 
> > > I would like to load it within my baseline like this below but I dont 
> > know 
> > > what to write in the fileTreeRepository method... 
> > > 
> > > baseline: spec 
> > >  
> > > spec 
> > > for: #common 
> > > do: [ spec blessing: #baseline. 
> > > spec repository: ##self fileTreeRepository##. 
> >   ^^^ 
> > Here I use 'http://127.0.0.1:20080/' , where 
> > the http server serves 
> > my filetree 
> > repo directory. The easiest way (for me on Linux/Mac) to get the 
> > http server 
> > running is 'python3 -m http.server 20080'. 
> > 
> > This method works for a directory full of .mcz files too. 
> > 
> > Pierce 
> > 
> > 
> >
> > 
> >  
> > If you reply to this email, your message will be added to the 
> > discussion below: 
> > 
> > http://forum.world.st/2-questions-around-gitlab-gitfiletree-BaselineOf-tp4953877p4954007.html
> >  
> > 
> > 
> >  >  
> > >
> >  
> > 
> > To start a new topic under Pharo Smalltalk Users, email [hidden 
> > email]  
> > To unsubscribe from Pharo Smalltalk Users, click here. 
> > NAML 
> > 
> > 

[Pharo-users] Is there a 64bit minimal image for either 6.0 or 7.0?

2017-07-12 Thread Tim Mackinnon
Hi - I would like to try a minimal image on AWS lambda (so I need a 64 bit 
version).

Is there a 64bit image for either 6.0 or 7.0 that is easy to download?

I can see - http://get.pharo.org/60-minimal  
but it doesn’t say its 64 bit, so I assume its 32bit?

Tim

Re: [Pharo-users] [OFFTOPIC] Update: Debris Publishing / Quuve Research & Portfolio Management Platform

2017-07-12 Thread Mariano Martinez Peck
BTW, thanks for creating the ycombinator post!

https://news.ycombinator.com/item?id=14756598#14757008

Cheers,

On Wed, Jul 12, 2017 at 4:53 PM, Mariano Martinez Peck <
marianop...@gmail.com> wrote:

> Hi all,
>
> A while back our team presented Quuve [1], a customizable investment
> management ecosystem for professional investors. We also discussed the
> technologies employed to build it [2] (it is developed on Pharo and
> deployed on GemStone). We are reaching out again because we recently
> revamped our website [3] and created a number of promotional videos that
> demonstrate Quuve's power [4]. We would appreciate your help in marketing
> our wares!
>
> Quuve is the world's first fully integrated and customizable research and
> portfolio management platform. The system offers powerful features never
> before seen by the investment community and it empowers users to tailor tools
> in ways that accommodate their idiosyncratic investment style. In the
> coming years, customization, data-inheritance, shared databases,
> machine-learning, and robo-trading will become standard among investors of
> all sizes, and we expect Quuve will blaze the trail.
>
> If you have any questions about Quuve please let us know.
>
> [1] http://pharo.org/success/Quuve
> [2] http://forum.world.st/Fwd-Debris-Quuve-Technologies-used
> -td4819786.html
> [3] http://www.debrispublishing.com/
> [4] https://www.youtube.com/watch?list=PLfTMPTPc22sGNrm2rXt8
> kD-9iFTgqbAUG&v=zdm4CVse2Hc
>
> Thanks,
>
> --
> Mariano
> http://marianopeck.wordpress.com
>



-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-users] Is there a 64bit minimal image for either 6.0 or 7.0?

2017-07-12 Thread Pavel Krivanek
Hi Tim,

I will prepare jobs that will convert them to 64bits.

-- Pavel

2017-07-12 23:14 GMT+02:00 Tim Mackinnon :

> Hi - I would like to try a minimal image on AWS lambda (so I need a 64 bit
> version).
>
> Is there a 64bit image for either 6.0 or 7.0 that is easy to download?
>
> I can see - http://get.pharo.org/60-minimal but it doesn’t say its 64
> bit, so I assume its 32bit?
>
> Tim
>


Re: [Pharo-users] Is there a 64bit minimal image for either 6.0 or 7.0?

2017-07-12 Thread Tim Mackinnon
That would be great. I'm keen to see if I can reproduce what Sven seemed to 
measure where he seemed to get image launch times down.

Currently on Lambda I am seeing an avg 3.5s to return a simple result.

I know that 700ms of this is the overhead of a nodejs shim (the golang Sparta 
project has reported this aspect).

So I'm curious if a smaller image (& no sources) could get me into a sub 2s 
range)

Tim

Sent from my iPhone



Sent from my iPhone
> On 13 Jul 2017, at 06:51, Pavel Krivanek  wrote:
> 
> Hi Tim,
> 
> I will prepare jobs that will convert them to 64bits.
> 
> -- Pavel
> 
> 2017-07-12 23:14 GMT+02:00 Tim Mackinnon :
>> Hi - I would like to try a minimal image on AWS lambda (so I need a 64 bit 
>> version).
>> 
>> Is there a 64bit image for either 6.0 or 7.0 that is easy to download?
>> 
>> I can see - http://get.pharo.org/60-minimal but it doesn’t say its 64 bit, 
>> so I assume its 32bit?
>> 
>> Tim
> 


Re: [Pharo-users] 2 questions around gitlab, gitfiletree, BaselineOf

2017-07-12 Thread Sabine Manaa
Hi Thierry,

when I take a new Pharo5 Image and do

Metacello new
baseline: 'FileTree';
repository: 'github://dalehenrich/filetree:pharo5.0_dev';
load

I get the following error;

"Could not resolve: BaselineOfFileTree [BaselineOfFileTree] in
/Applications/Pharo5.0-7.app/Contents/Resources/package-cache
github://dalehenrich/filetree:pharo5.0_dev"

When I look in the directory, I see, that the files are in the
/github-cache and not in the /package-cache.

Did I miss something?

Regards
Sabine

2017-07-12 22:15 GMT+02:00 Tim Mackinnon [via Smalltalk] <
ml+s1294792n4954619...@n4.nabble.com>:

> I have another approach (possibly similar) - as gitlab has already checked
> out the code for you you simply need to point to it?
>
> - rm -rf build. # gitlab can cache the build directory
> - mkdir build
> - cp scripts/* build
>
> - cd build
> - curl get.pharo.org/64/ | bash
> - ./pharo Pharo.image --no-default-preferences --save --quit st loadLocal.st
>
>
> Where loadLocal.st is in a /scripts directory checked into gitlab, and
> /src is where my normal Pharo Iceberg packages are checked in.
> loadLocal.st is simply:
>
> "CmdLine script to load project"
>
> Metacello new
> repository: 'filetree://../src';
> baseline: 'Lambda';
> load.
>
>
> Tim
>
> On 12 Jul 2017, at 06:49, Sabine Manaa <[hidden email]
> > wrote:
>
> Hi Thierry,
>
> this would be nice and exactly what I was looking for.
>
> I ask myself if iceberg would be able to solve this/will it be able to
> solve it in a later version.
>
> Regards
> Sabine
>
> 2017-07-11 23:13 GMT+02:00 Thierry Goubier [via Smalltalk] < href="x-msg://253/user/SendEmail.jtp?type=node&node=4954475&i=0"
> target="_top" rel="nofollow" link="external" class="">[hidden email]>:
>
> Hi Sabine,
>>
>> I have a slightly different script, a Makefile, which uses another
>> trick: put everything into a pharo/ subdirectory. Like that, just rm -rf
>> pharo/ erases everything before rebuilding.
>>
>> I think I would implement the support you need for you to simply be able
>> to write:
>>
>> Metacello new baseline: \'RKA24\'\; repository:
>> \'gitfiletree://192.168.1.61:3/SPF/Spesenfuchs.gitspf:1.
>> 0?protocol=http\
>> '\;load
>>
>>
>> so that the clone + Metacello over filetree isn't necessary.
>>
>> (at the moment, I'm just pretty sure GitFileTree doesn't handle http and
>> the port number, but that wouldn't be hard to add)
>>
>> Regards,
>>
>> Thierry
>>
>>
>> Le 11/07/2017 à 12:43, Sabine Manaa a écrit :
>>
>> > After several questions and trials I ended with a script like this:
>> >
>> > cd /Applications/Pharo5.0-7.app/Contents/Resources
>> > rm Pharo.image
>> > rm Pharo.changes
>> > curl get.pharo.org/50  | bash
>> > rm -rf spfClonedGitlabRepository
>>
>> > git clone http://192.168.1.61:3/SPF/Spesenfuchs.git
>> >  --branch 1.0
>> > spfClonedGitlabRepository
>> > Pharo Pharo.image --no-default-preferences eval --save
>> "(CatalogProvider
>> > projectNamed: 'GitFileTree') installVersion: #stable. Metacello new
>> > baseline: 'RKA24'; repository: 
>> > 'filetree://spfClonedGitlabRepository';load."
>>
>> >
>> > It creates a local clone (of a certain version) of my gitlab repository
>> > (deleting old stuff before) and starts with a new image, loading the
>> > given branch.
>> >
>> > With this, I can always start with a new image, loading exactly the
>> > version I want from gitlab.
>> >
>> > For pushing into gitlab I use the MCFileTreeGitRepository browser and
>> push.
>> >
>> > Big thank you for all who helped me, here and in discord.
>> >
>> > 2017-07-08 18:31 GMT+02:00 Pierce Ng-3 [via Smalltalk] <[hidden email]
>> > >:
>> >
>>
>> > On Fri, Jul 07, 2017 at 06:48:50AM -0700, Sabine Manaa wrote:
>> >
>> > > 1) For loading my own code, I currently have a bad solution
>> > > I would like to load it within my baseline like this below but I
>> dont know
>> > > what to write in the fileTreeRepository method...
>> > >
>> > > baseline: spec
>> > > 
>> > > spec
>> > > for: #common
>> > > do: [ spec blessing: #baseline.
>> > > spec repository: ##self fileTreeRepository##.
>> >
>> ^^^
>> > Here I use 'http://127.0.0.1:20080/', where the http server serves
>> > my filetree
>> > repo directory. The easiest way (for me on Linux/Mac) to get the
>> > http server
>> > running is 'python3 -m http.server 20080'.
>> >
>> > This method works for a directory full of .mcz files too.
>> >
>> > Pierce
>> >
>> >
>> >
>> > 
>> > 
>>
>
> > If you reply to this email, your message will be added to the
> > discussion below:
> > http://forum.world.st/2-questions-around-gitlab-gitfiletree-
> BaselineOf-tp4953877p4954