Re: [Pharo-users] [Pharo-dev] Call about Numerical Methods in Pharo :)

2016-03-02 Thread Serge Stinckwich
On Thu, Mar 3, 2016 at 6:25 AM, Hernán Morales Durand
 wrote:
> Hi Stef,
>
> For bioinformatics research it would be **really** nice to have:
>
> - Tree creation algorithms: UPGMA, WPGMA.
> - MCMC methods: Metropolis-adjusted Langevin algorithm (MALA and SMMALA),
> Metropolis-coupled MCMC (MC3) would enable Bayesian inferences and to work
> with evolution of genes. I cannot tell how important is to have such
> algorithms implemented in Smalltalk.
> - Mahalanobis distance for analyzing bacterial plasmids.
> - Random Forest is used a lot for gene expression, protein-protein
> interaction predictions, genome-wide association studies, etc . For the
> argument "let's use FFI for it" please remember many of these methods are
> extended, like enriched random forest, for research with specialized data.

Can you add enhancement issues in the SciSmalltalk issue tracker :
https://github.com/SergeStinckwich/SciSmalltalk/issues
in order to keep them in mind ?

We are trying to create a pure Smalltalk library, so we try to avoid
FFI as much as possible :-)

> There are implementations of naive Bayes classifier in NaturalSmalltalk
> (which could be adapted to SciPharo)
> http://smalltalkhub.com/#!/~hernan/NaturalSmalltalk

Great, if we can move them to SciSmalltalk.

> As a side note I found an interesting history report of SciPy.
> From the slide 9 onwards:
>
> http://lide.com/www.slideshare.net/shoheihido/sci-pyhistory
>
> Presentation shows SciPy history (credited contributors with pictures, very
> nice!).
> As you can se they even have a Foundation NumFOCUS for raising money.

For sure, money always help ;-)
The only problem at the moment is that the Pharo community is much
smaller at the moment than the Python one.

Thank you for your help.
-- 
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/



Re: [Pharo-users] [Pharo-dev] Call about Numerical Methods in Pharo :)

2016-03-02 Thread Serge Stinckwich
On Wed, Mar 2, 2016 at 11:39 PM, Alexandre Bergel
 wrote:
> Hi !
>
>>   - Do a public call to know what is missing for you: this is this mail :)
>>Didier would like to work on concrete cases. I love that attitude
>>So tell us :)
>
> This is an excellent initiative!
> I personally need the following:
> - Shapiro-Wilk test to check for data normality
> - Kruskal-Wallis to analyze differences in median values between 
> samples
> - Bonferroni-Dunn to support multiple comparison and controlling the 
> group error rate
> - Mann-Whitney U test is a nonparametric statistical test that 
> operates over two samples of the same size.

Great list ! At the moment, there is only Kolmogorov-Smirnov test implemented.
Can you create issues in the SciSmalltalk issue tracker in order to
keep track of your needs ?
The issue tracker is here:
https://github.com/SergeStinckwich/SciSmalltalk/issues

You can also join the SciSmalltalk mailing-list:
https://groups.google.com/forum/#!forum/scismalltalk
Thank you Alex.
-- 
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/



Re: [Pharo-users] Call about Numerical Methods in Pharo :)

2016-03-02 Thread Hernán Morales Durand
Hi Stef,

For bioinformatics research it would be **really** nice to have:

- Tree creation algorithms: UPGMA, WPGMA.
- MCMC methods: Metropolis-adjusted Langevin algorithm (MALA and SMMALA),
Metropolis-coupled MCMC (MC3) would enable Bayesian inferences and to work
with evolution of genes. I cannot tell how important is to have such
algorithms implemented in Smalltalk.
- Mahalanobis distance for analyzing bacterial plasmids.
- Random Forest is used a lot for gene expression, protein-protein
interaction predictions, genome-wide association studies, etc . For the
argument "let's use FFI for it" please remember many of these methods are
extended, like enriched random forest, for research with specialized data.

There are implementations of naive Bayes classifier in NaturalSmalltalk
(which could be adapted to SciPharo)
http://smalltalkhub.com/#!/~hernan/NaturalSmalltalk

As a side note I found an interesting history report of SciPy.
>From the slide 9 onwards:

http://lide.com/www.slideshare.net/shoheihido/sci-pyhistory

Presentation shows SciPy history (credited contributors with pictures, very
nice!).
As you can se they even have a Foundation NumFOCUS for raising money.

Hernán

2016-03-02 10:17 GMT-03:00 stepharo :

> Hi guys
>
> I met Didier Besset and we had a great hacking session and discussions
> with Serge Stinckwich.
> Didier would like to help Pharo and the numerical part of it. ***Big
> thanks*** Didier.
>
> We would like to do several things:
>
> - Work on "Hows to"
>   The numerical methods in Pharo is good but the gap between us and
> the math is too large :)
>  so the idea is to have a series of "how to ..."
> - histomgram (simple, based on distribution)
>
> - Improve the SciPharo/NumPha (previously SciSmalltalk) library
> This morning we started to implement a ComponentPrincipalDecomposition
> by combining two of the
> objects available in SciPharo.
> Then we started to enhance the distributions to make sure that we
> can plug other distribution for having
> controlled random number.
>
> - Do a public call to know what is missing for you: this is this mail
> :)
> Didier would like to work on concrete cases. I love that attitude
> So tell us :)
>
> Hernan ??
> Alex: ?? pvalue? better distribution?
> Vincent: covariance? CPA?
> Philippe: times series
> Serge R frames?
> Sami: Better random number and various distributions?
>
> - Organise a two day lectures with practices on concrete case in
> September with a recording session.
> Either at IRD Bondy or Lille.
>
> - Make sure that the Numerical Method book will get on lulu :) with a
> better cover and title :)
>
>
> Stef
>
>
>


Re: [Pharo-users] Is there a way to display Spec widgets in a ListModel?

2016-03-02 Thread Johan Fabry

For me, a list should just hold ‘dumb’ items where the kinds of actions you can 
do are limited to e.g. a simple context menu. Otherwise if you need complex 
actions or multiple nested widgets et cetera, the ListModel implementation and 
API will become too complicated.

I instead think that what you want is something that should be taken care of by 
dynamic spec:
(1) you make a ComposableModel subclass that holds all the widgets for one item 
of your list, 
(2) you make your own ‘list widget’ that uses dynamic spec to dynamically 
add/remove instances of (1) in a one column layout.

Note that I have never tried this. As far as I understand, this should mostly 
work. When there will be a need for a vertical scrollbar I don’t think it will 
appear. If this is the case, dynamic spec should be extended with this support.

I think that in general, dynamic spec and layouting of widgets could benefit of 
some work. But this is a complex topic and I do not have the time to tackle it, 
sadly.

> On Mar 2, 2016, at 17:44, Julien Delplanque  wrote:
> 
> This: [1] is what I would like to do.
> I found it in  an old thread: [2] but it is a prototype. I wondered if there 
> was an object able to do it in the framework :-)...
> 
> Julien
> 
> Links:
> [1]: http://ijintek.fr/wiki/doku.php?id=spec_examples#listview_example
> [2]: http://forum.world.st/Spec-question-td4741608.html#a4747231
> 
> On 02/03/16 21:31, Johan Fabry wrote:
>> I never tried anything like this, I do not think it is possible.
>> 
>> What you are trying to do seems strange to me, what is the use case you want 
>> to implement?
>> 
>>> On Mar 2, 2016, at 17:06, Julien Delplanque  wrote:
>>> 
>>> Hi everyone,
>>> 
>>> I can't find how to display Spec widgets in a ListModel, is it possible?
>>> 
>>> I would like to have a list model holding, at each row, a TextModel and a 
>>> ButtonModel.
>>> 
>>> Thanks in advance,
>>> 
>>> Julien
>>> 
>>> 
>> 
>> 
>> ---> Save our in-boxes! http://emailcharter.org <---
>> 
>> Johan Fabry   -   http://pleiad.cl/~jfabry
>> PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of 
>> Chile
>> 
>> 
> 
> 
> 



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of 
Chile




Re: [Pharo-users] Celebrating the upcoming Open Data Day (March 5) with Pharo

2016-03-02 Thread Alexandre Bergel
This is fantastic!
Let us know how we can help you!

Alexandre


> On Mar 2, 2016, at 6:45 PM, Offray Vladimir Luna Cárdenas 
>  wrote:
> 
> Hi all,
> 
> I just want to share a post made on the Open Knowledge Foundation Forum 
> talking about what we're doing in our local community to celebrate the Open 
> Data Day:
> 
> https://discuss.okfn.org/t/our-poryect-and-hackathon-workshop-for-the-open-data-day-in-bogota-colombia/2159
> 
> Pharo, Roassal and Moose will be an integral part of our celebration. As I 
> said in the link, we're going to try some treemapping techniques. I know 
> about Quick Silver, but if any has some other advice, is very welcomed.
> 
> Probably I will be making some questions here and in the chat channel 
> regarding treemapping and some SQLite queries to get the proper info, so I'll 
> keep you posted on how our pharo powered workshop/hackathon for the 
> celebration of the Open Data Day advances.
> 
> Cheers,
> 
> Offray
> 

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






Re: [Pharo-users] Call about Numerical Methods in Pharo :)

2016-03-02 Thread Alexandre Bergel
Hi !

>   - Do a public call to know what is missing for you: this is this mail :)
>Didier would like to work on concrete cases. I love that attitude
>So tell us :)

This is an excellent initiative! 
I personally need the following:
- Shapiro-Wilk test to check for data normality
- Kruskal-Wallis to analyze differences in median values between samples
- Bonferroni-Dunn to support multiple comparison and controlling the 
group error rate
- Mann-Whitney U test is a nonparametric statistical test that operates 
over two samples of the same size.

Cheers,
Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






Re: [Pharo-users] Is there a way to display Spec widgets in a ListModel?

2016-03-02 Thread Hernán Morales Durand
Hi Julien

Have a look at https://youtu.be/fRhcNkPKXWY?t=28

That's a list creating composed Spec widgets dynamically.
Is that what you mean?

Hernán




2016-03-02 17:06 GMT-03:00 Julien Delplanque :

> Hi everyone,
>
> I can't find how to display Spec widgets in a ListModel, is it possible?
>
> I would like to have a list model holding, at each row, a TextModel and a
> ButtonModel.
>
> Thanks in advance,
>
> Julien
>
>


Re: [Pharo-users] Is there a way to display Spec widgets in a ListModel?

2016-03-02 Thread Stephan Eggermont

On 02/03/16 21:31, Johan Fabry wrote:

I never tried anything like this, I do not think it is possible.


That is what a MultiColumnListModel should be able to do (but can't)
It is probably better to extend the FastTableModel.


What you are trying to do seems strange to me, what is the use case you want to 
implement?


Representing objects and actions on them in a list?
And we want that in a matrix and tree too, not just linear.

Stephan




Re: [Pharo-users] Is there a way to display Spec widgets in a ListModel?

2016-03-02 Thread Julien Delplanque

This: [1] is what I would like to do.
I found it in  an old thread: [2] but it is a prototype. I wondered if 
there was an object able to do it in the framework :-)...


Julien

Links:
[1]: http://ijintek.fr/wiki/doku.php?id=spec_examples#listview_example
[2]: http://forum.world.st/Spec-question-td4741608.html#a4747231

On 02/03/16 21:31, Johan Fabry wrote:

I never tried anything like this, I do not think it is possible.

What you are trying to do seems strange to me, what is the use case you want to 
implement?


On Mar 2, 2016, at 17:06, Julien Delplanque  wrote:

Hi everyone,

I can't find how to display Spec widgets in a ListModel, is it possible?

I would like to have a list model holding, at each row, a TextModel and a 
ButtonModel.

Thanks in advance,

Julien





---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of 
Chile







Re: [Pharo-users] Is there a way to display Spec widgets in a ListModel?

2016-03-02 Thread Julien Delplanque
I would like to have a ListModel holding objects I can edit a value 
using the TextModel and apply my modification using the ButtonModel.


Julien

On 02/03/16 21:31, Johan Fabry wrote:

I never tried anything like this, I do not think it is possible.

What you are trying to do seems strange to me, what is the use case you want to 
implement?


On Mar 2, 2016, at 17:06, Julien Delplanque  wrote:

Hi everyone,

I can't find how to display Spec widgets in a ListModel, is it possible?

I would like to have a list model holding, at each row, a TextModel and a 
ButtonModel.

Thanks in advance,

Julien





---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of 
Chile







Re: [Pharo-users] Is there a way to display Spec widgets in a ListModel?

2016-03-02 Thread Johan Fabry

I never tried anything like this, I do not think it is possible.

What you are trying to do seems strange to me, what is the use case you want to 
implement?

> On Mar 2, 2016, at 17:06, Julien Delplanque  wrote:
> 
> Hi everyone,
> 
> I can't find how to display Spec widgets in a ListModel, is it possible?
> 
> I would like to have a list model holding, at each row, a TextModel and a 
> ButtonModel.
> 
> Thanks in advance,
> 
> Julien
> 
> 



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of 
Chile




[Pharo-users] Is there a way to display Spec widgets in a ListModel?

2016-03-02 Thread Julien Delplanque

Hi everyone,

I can't find how to display Spec widgets in a ListModel, is it possible?

I would like to have a list model holding, at each row, a TextModel and 
a ButtonModel.


Thanks in advance,

Julien



Re: [Pharo-users] Call about Numerical Methods in Pharo :)

2016-03-02 Thread Serge Stinckwich
On Wed, Mar 2, 2016 at 2:17 PM, stepharo  wrote:
> Hi guys
>
> I met Didier Besset and we had a great hacking session and discussions with
> Serge Stinckwich.
> Didier would like to help Pharo and the numerical part of it. ***Big
> thanks*** Didier.
>
> We would like to do several things:
>
> - Work on "Hows to"
>   The numerical methods in Pharo is good but the gap between us and the
> math is too large :)
>  so the idea is to have a series of "how to ..."
> - histomgram (simple, based on distribution)

Yes this is important to have more exemples, because they are a lot of

> - Improve the SciPharo/NumPha (previously SciSmalltalk) library
>
> This morning we started to implement a ComponentPrincipalDecomposition
> by combining two of the
> objects available in SciPharo.

:-)

> Then we started to enhance the distributions to make sure that we
> can plug other distribution for having
> controlled random number.

Ok, did you commit the code ?

> - Do a public call to know what is missing for you: this is this mail :)
> Didier would like to work on concrete cases. I love that attitude
> So tell us :)
>
> Hernan ??
> Alex: ?? pvalue? better distribution?
> Vincent: covariance? CPA?
> Philippe: times series
> Serge R frames?
> Sami: Better random number and various distributions?
>
> - Organise a two day lectures with practices on concrete case in
> September with a recording session.
> Either at IRD Bondy or Lille.
>
> - Make sure that the Numerical Method book will get on lulu :) with a
> better cover and title :)

Thank you Stef for pushing !
Can we move this discussion of the SciSmalltalk mailing-list ?
-- 
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/



Re: [Pharo-users] [Issue tracker] Please check old issues to prepare for release!

2016-03-02 Thread Paul DeBruicker
I submitted slices for 15733 & 15819 to the Pharo 50 Inbox. 

I can't see where in the image the 'format on accept' setting has gone.  Is
it there and I can't find it or something else?



--
View this message in context: 
http://forum.world.st/Issue-tracker-Please-check-old-issues-to-prepare-for-release-tp4881825p4882034.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] Garage and VoyageMongo Pharo5 versions for the MOOC

2016-03-02 Thread Esteban Lorenzano

> On 01 Mar 2016, at 18:14, Luc Fabresse  wrote:
> 
> Hi Guys,
> 
> I am trying to prepare a ConfigurationOfPharoWeb for the MOOC on Pharo5.
> 
> So I would be really greatful to have some help ;-)
> 
> - Garage does not seem to load properly in Pharo 5.
> 
> - VoyageMongo does not have a Pharo5 version nor a ConfigOf in the 
> MetaRepoForPharo5

is in the catalog marked as Pharo 4.0, but is loadable.

Esteban

> 
> Thanks
> 
> #Luc




Re: [Pharo-users] What are immediate subclass and word variable subclass?

2016-03-02 Thread stepharo

Thanks marcus
We are often doing that :)

Hello,

Here is the fix:

https://pharo.fogbugz.com/f/cases/17687/fix-changing-class-comments-does-not-work

(Done in a time that I should have done something else…)

On 24 Feb 2016, at 12:06, Marcus Denker > wrote:


I will fix it today… I hope.


On 24 Feb 2016, at 12:00, Alexandre Bergel > wrote:


???

Class comments cannot be improved then?
Well...

Alexandre


On Feb 23, 2016, at 10:59 AM, Sven Van Caekenberghe > wrote:


Currently, modified class comments are not loaded, so don't bother 
trying to improve them


On 23 Feb 2016, at 10:55, Alexandre Bergel 
> wrote:


I do not understand, is this related to the improved comment I 
have submitted?


Alexandre


On Feb 21, 2016, at 12:14 PM, Sven Van Caekenberghe > wrote:


We have a bug where class comment fail to load ;-)

https://pharo.fogbugz.com/f/cases/17655/Changes-in-package-loading-behavior

On 21 Feb 2016, at 15:21, Alexandre Bergel 
 wrote:


Done!
Waiting for Marcus :-)

Alexandre



On Feb 18, 2016, at 6:29 PM, stepharo  wrote:

Thanks Alex
can you add the answer of eliot to the comments?


Le 17/2/16 18:59, Alexandre Bergel a écrit :

Thanks, I have defined
https://pharo.fogbugz.com/f/cases/17625/The-immediateSubclass-and-variableSubclass-method-need-comments

your comments are in a slice, waiting in the inbox

Cheers,
Alexandre


On Feb 17, 2016, at 1:54 PM, Damien Pollet 
 wrote:


Immediate means it's stored in the OOP itself, like 
SmallInteger in 32 bits.
Variable word is like variable byte (ByteArray) I suppose, 
variable size, with indices instead of named instance 
variables, but each index points to a full word (I guess 
either 32 or 64bit depending on the VM)


On 17 February 2016 at 16:30, Alexandre Bergel 
 wrote:

Hi!

I have stumbled on:

Float immediateSubclass: #SmallFloat64
  instanceVariableNames: ''
  classVariableNames: ''
  package: 'Kernel-Numbers’


Float variableWordSubclass: #BoxedFloat64
  instanceVariableNames: ''
  classVariableNames: ''
  package: 'Kernel-Numbers’


What are immediate subclass and word variable?

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.










--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.









--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.









--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.












Re: [Pharo-users] CMD/CTRL-B for browsing?

2016-03-02 Thread Stephan Eggermont
The 'code' related behavior is currently too fixed to smalltalk code 
only. I want to be able to edit Pillar, PostgreSQL, user stories etc.
Shortcuts for doIt, browse, senders, implementors etc. make sense for 
these environments, but need a different implementation. And sometimes 
I'm editing text where the code shortcuts do not make sense. When 
inspecting a symbol, I expect code related shortcuts, because they are 
commonly used in meta programming.


Stephan




Re: [Pharo-users] A new idea for a project: WarpSpeed (a C inliner)

2016-03-02 Thread Thierry Goubier

Le 02/03/2016 20:21, Ben Coman a écrit :

On Wed, Mar 2, 2016 at 6:20 PM, Thierry Goubier
 wrote:

Le 02/03/2016 11:07, Ben Coman a écrit :


Back to Dimitris' original question, I wonder that the potential speed
benefit comes not so much from using "C", but from leveraging a large
body of work on optimizing passes at the lower level.  I found a
tutorial [1] to produce a toy language "Kaleidoscope" that generates
LLVM IR such that "by the end of the tutorial, we’ll have written a
bit less than 1000 lines of code. With this small amount of code,
we’ll have built up a very reasonable compiler for a non-trivial
language including a hand-written lexer, parser, AST, as well as code
generation support with a JIT compiler."



What is costly in the Pharo space is the fact that Kaleidoscope rely on the
LLVM C++ infrastructure to generate the IR. And this linking to C++ code and
classes is hard to do.


Are you referring only to FFI interfacing versus C++ name mangling,
for which "the C bindings in include/llvm-c should help a lot, since
most languages have strong support for interfacing with C.[A]"   or
something more?


No, just the fact that the IR is quite complex (have a look into the 
llvm IR reference), so you use a context and a builder 
(Builder.CreateFAdd) in the C++ code (and I think the Ocaml llvm module 
is probably large since it recreates the structure).


The naming scheme of LLVM is quite complex and unobvious as well (the 
%0, %1, etc...) with strange rules biting you if you don't number the 
same way as LLVM does when you use its API.


Thierry


[A] http://llvm.org/releases/3.1/docs/FAQ.html

cheers -ben







Re: [Pharo-users] CMD/CTRL-B for browsing?

2016-03-02 Thread Johan Fabry

I am a co-heretic with Doru.

In domain-specific languages built on top of Pharo you are faced exactly with 
what Doru is saying. I see these issues in my work on Live Robot Programming 
(and stuff before that). The proposed change to Spotter would be a good 
solution to keep all browsing options. 

> On Mar 2, 2016, at 10:40, Tudor Girba  wrote:
> 
> Hi,
> 
> Hmm.
> 
> I understand that what I will say is heresy, but this behavior is really not 
> wanted :). At least by me.
> 
> Let me explain.
> 
> The reason why we use a different font for code is exactly to document where 
> the code related behavior is expected. If we have code related shortcuts 
> everywhere, two things happen:
> - we impose code shortcuts everywhere, even in pieces of text that should 
> have nothing to do with code.
> - we either have them present in contextual menus, or we do not document 
> their existence. Either situations are not nice.
> 
> I understand that this is how things worked for 20 years, but it is a 
> limiting behavior that does not allow us to build new tools easily. I know 
> that people use those text editors to enter some name and then press a 
> shortcut to browse, but now we have Spotter that can do the same thing a 
> little better.
> 
> Here is the alternative:
> - whenever we have a selected piece of text, and we press Shift+Enter, we get 
> that piece of text in Spotter filled by default
> - then using the shortcuts, we can browse what we want
> 
> This is not yet implemented, but I think it can prove to become a new reflex 
> that will solve the problems uniformly without imposing hardcoded shortcuts 
> everywhere.
> 
> Please feel free to shoot :)
> 
> Cheers,
> Doru
> 


---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of 
Chile




Re: [Pharo-users] [Pharo-dev] Call about Numerical Methods in Pharo :)

2016-03-02 Thread Serge Stinckwich
On Wed, Mar 2, 2016 at 2:41 PM, Tudor Girba  wrote:
> This is great news!
>
> I would be interested in time series and distributions as well.

Distributions are already there. I start some early work on time series.

-- 
Serge Stinckwich
UCBN & UMI UMMISCO 209 (IRD/UPMC)
Every DSL ends up being Smalltalk
http://www.doesnotunderstand.org/



Re: [Pharo-users] [Pharo-dev] Call about Numerical Methods in Pharo :)

2016-03-02 Thread Tudor Girba
This is great news!

I would be interested in time series and distributions as well.

Cheers,
Doru



> On Mar 2, 2016, at 2:33 PM, stepharo  wrote:
> 
> Hi guys
> 
> I met Didier Besset and we had a great hacking session and discussions with 
> Serge Stinckwich.
> Didier would like to help Pharo and the numerical part of it. ***Big 
> thanks*** Didier.
> 
> We would like to do several things:
> 
>- Work on "Hows to"
>  The numerical methods in Pharo is good but the gap between us and the 
> math is too large :)
> so the idea is to have a series of "how to ..."
>- histomgram (simple, based on distribution)
> 
>- Improve the SciPharo/NumPha (previously SciSmalltalk) library
>This morning we started to implement a ComponentPrincipalDecomposition by 
> combining two of the
>objects available in SciPharo.
>Then we started to enhance the distributions to make sure that we can 
> plug other distribution for having
>controlled random number.
> 
>- Do a public call to know what is missing for you: this is this mail :)
>Didier would like to work on concrete cases. I love that attitude
>So tell us :)
> 
>Hernan ??
>Alex: ?? pvalue? better distribution?
>Vincent: covariance? CPA?
>Philippe: times series
>Serge R frames?
>Sami: Better random number and various distributions?
> 
>- Organise a two day lectures with practices on concrete case in September 
> with a recording session.
>Either at IRD Bondy or Lille.
> 
>- Make sure that the Numerical Method book will get on lulu :) with a 
> better cover and title :)
> 
> 
> Stef
> 
> 

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

"Obvious things are difficult to teach."







Re: [Pharo-users] CMD/CTRL-B for browsing?

2016-03-02 Thread Tudor Girba
Hi,

Hmm.

I understand that what I will say is heresy, but this behavior is really not 
wanted :). At least by me.

Let me explain.

The reason why we use a different font for code is exactly to document where 
the code related behavior is expected. If we have code related shortcuts 
everywhere, two things happen:
- we impose code shortcuts everywhere, even in pieces of text that should have 
nothing to do with code.
- we either have them present in contextual menus, or we do not document their 
existence. Either situations are not nice.

I understand that this is how things worked for 20 years, but it is a limiting 
behavior that does not allow us to build new tools easily. I know that people 
use those text editors to enter some name and then press a shortcut to browse, 
but now we have Spotter that can do the same thing a little better.

Here is the alternative:
- whenever we have a selected piece of text, and we press Shift+Enter, we get 
that piece of text in Spotter filled by default
- then using the shortcuts, we can browse what we want

This is not yet implemented, but I think it can prove to become a new reflex 
that will solve the problems uniformly without imposing hardcoded shortcuts 
everywhere.

Please feel free to shoot :)

Cheers,
Doru



> On Mar 2, 2016, at 1:40 PM, Marcus Denker  wrote:
> 
> 
>> On 02 Mar 2016, at 13:28, Tudor Girba  wrote:
>> 
>> Hi,
>> 
>> Could you describe in more details the specific case we have here?
>> 
> 
> inspect 
> 
> #(hello you)
> 
> then click on the first item. Now I select the 'hello' on the right and try 
> to do "senders of" --> replace by "n".
> 
> 
> 
>> Cheers,
>> Doru
>> 
>> 
>>> On Mar 2, 2016, at 11:28 AM, Marcus Denker  wrote:
>>> 
>>> 
 On 01 Mar 2016, at 18:10, Marcus Denker  wrote:
 
 
> On 01 Mar 2016, at 18:06, Luc Fabresse  wrote:
> 
> Hi Guys,
> 
> In Pharo 5, it seems that CMD/CTRL-B does not work for browsing in some 
> places such as in GTDebugger right bottom pane.
> Is this on purpose?
> 
> 
 No, still a bug: in non-code mode Rubric does not add the shortcuts. We 
 should fix that and allow these everywhere.
 
 
>>> 
>>> I added an issue:
>>> 
>>> 
>>> https://pharo.fogbugz.com/f/cases/17731/Rubric-When-not-in-Code-Mode-the-editor-should-still-support-senders-of-and-implementors-of-short-cuts
>>> 
>>> (Issue tracker status:
>>> - Open overall:  512
>>> - Open tagged Pharo5:   319
>>> - Closed last 7 days:   100 
>>> )
>> 
>> --
>> www.tudorgirba.com
>> www.feenk.com
>> 
>> "Next time you see your life passing by, say 'hi' and get to know her."
>> 
>> 
>> 
>> 
>> 
> 

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

"Some battles are better lost than fought."







[Pharo-users] Call about Numerical Methods in Pharo :)

2016-03-02 Thread stepharo

Hi guys

I met Didier Besset and we had a great hacking session and discussions 
with Serge Stinckwich.
Didier would like to help Pharo and the numerical part of it. ***Big 
thanks*** Didier.


We would like to do several things:

- Work on "Hows to"
  The numerical methods in Pharo is good but the gap between us and 
the math is too large :)

 so the idea is to have a series of "how to ..."
- histomgram (simple, based on distribution)

- Improve the SciPharo/NumPha (previously SciSmalltalk) library
This morning we started to implement a 
ComponentPrincipalDecomposition by combining two of the

objects available in SciPharo.
Then we started to enhance the distributions to make sure that 
we can plug other distribution for having

controlled random number.

- Do a public call to know what is missing for you: this is this 
mail :)

Didier would like to work on concrete cases. I love that attitude
So tell us :)

Hernan ??
Alex: ?? pvalue? better distribution?
Vincent: covariance? CPA?
Philippe: times series
Serge R frames?
Sami: Better random number and various distributions?

- Organise a two day lectures with practices on concrete case in 
September with a recording session.

Either at IRD Bondy or Lille.

- Make sure that the Numerical Method book will get on lulu :) with 
a better cover and title :)



Stef




[Pharo-users] Call about Numerical Methods in Pharo :)

2016-03-02 Thread stepharo

Hi guys

I met Didier Besset and we had a great hacking session and discussions 
with Serge Stinckwich.
Didier would like to help Pharo and the numerical part of it. ***Big 
thanks*** Didier.


We would like to do several things:

- Work on "Hows to"
  The numerical methods in Pharo is good but the gap between us and 
the math is too large :)

 so the idea is to have a series of "how to ..."
- histomgram (simple, based on distribution)

- Improve the SciPharo/NumPha (previously SciSmalltalk) library
This morning we started to implement a 
ComponentPrincipalDecomposition by combining two of the

objects available in SciPharo.
Then we started to enhance the distributions to make sure that 
we can plug other distribution for having

controlled random number.

- Do a public call to know what is missing for you: this is this 
mail :)

Didier would like to work on concrete cases. I love that attitude
So tell us :)

Hernan ??
Alex: ?? pvalue? better distribution?
Vincent: covariance? CPA?
Philippe: times series
Serge R frames?
Sami: Better random number and various distributions?

- Organise a two day lectures with practices on concrete case in 
September with a recording session.

Either at IRD Bondy or Lille.

- Make sure that the Numerical Method book will get on lulu :) with 
a better cover and title :)



Stef




Re: [Pharo-users] Zn / Connection closed while waiting for data

2016-03-02 Thread Sven Van Caekenberghe
Hmm, works for me, in Pharo 4 and 5 on OS X.

What platform are you on ?

> On 02 Mar 2016, at 13:54, Yuriy Tymchuk  wrote:
> 
> Yes, more exactly if you run:
> 
> 'http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.csv' 
> asUrl retrieveContents
> 
> try get this stack trace: 
> https://dl.dropboxusercontent.com/u/83145561/Debugger-Stack-Socket-2016-03-02-134847.fuel

Can't materialise, due to missing classes.

What is 'special' about the request is that it is 'chunked' but that should 
work in principle.

> I can open the url in my browser.
> 
> Cheers.
> Uko
> 
>> On 02 Mar 2016, at 13:35, Sven Van Caekenberghe  wrote:
>> 
>> 
>>> On 02 Mar 2016, at 13:28, Yuriy Tymchuk  wrote:
>>> 
>>> For me it’s also happening when I run 
>>> RTMapLocationExample>>#exampleSeismOnEarth
>> 
>> I do not have that code. What is the URL that fails to load ?
>> 
>>> Uko
>>> 
 On 30 Sep 2015, at 10:36, Andrei Chis  wrote:
 
 In my case it's still failing with 'Connection closed while waiting for 
 data.'
 
 Cheers,
 Andrei
 
 On Wed, Sep 30, 2015 at 9:29 AM, Sven Van Caekenberghe  
 wrote:
 
> On 30 Sep 2015, at 08:16, Volkert  wrote:
> 
> For your information: today i tried again and know it works as expected 
> ...
 
 OK, thanks for letting us know.
 
> Same net
> Same pharo-vm/image
> Same ubuntu/kernel
> 
> Strange  maybe the "blood moon" on monday ...
 
 Yes, weird.
 
> $ ./pharo Pharo.image eval 
> "'http://bl.ocks.org/ostock/raw/4063318/dji.csv' asUrl retrieveContents"
> 'Date,Open,High,Low,Close,Volume,Adj Close
> 2010-10-01,10789.72,10907.41,10759.14,10829.68,429891,10829.68
> 2010-09-30,10835.96,10960.99,10732.27,10788.05,428416,10788.05
> 2010-09-29,10857.98,10901.96,10759.75,10835.28,399028,10835.28
> 2010-09-28,10809.85,10905.44,10714.03,10858.14,402584,10858.14
> 2010-09-27,10860.03,10902.52,10776.44,10812.04,358786,10812.04
> 2010-09-24,10664.39,10897.83,10664.39,10860.26,412395,10860.26
> 2010-09-23,10738.48,10779.65,10610.12,10662.42,384785,10662.42
> 2010-09-22,10761.11,10829.75,10682.40,10739.31,391107,10739.31
> 2010-09-21,10753.39,10844.89,10674.83,10761.03,417566,10761.03
> 2010-09-20,10608.08,10783.51,10594.38,10753.62,336408,10753.62
> 
> 
> 
> 
> On 25.09.2015 19:58, stepharo wrote:
>> Thanks for spotting this problem.
>> 
>> 
>> Le 21/9/15 11:33, Volkert a écrit :
>>> Switching the socket implementation works ...
>>> 
>>> $./pharo Pharo.image eval "ZnNetworkingUtils default socketStreamClass: 
>>> SocketStream. 'http://bl.ocks.org/mbostock/raw/4063318/dji.csv' asUrl 
>>> retrieveContents"
>>> 'Date,Open,High,Low,Close,Volume,Adj Close
>>> 2010-10-01,10789.72,10907.41,10759.14,10829.68,429891,10829.68
>>> 2010-09-30,10835.96,10960.99,10732.27,10788.05,428416,10788.05
>>> 2010-09-29,10857.98,10901.96,10759.75,10835.28,399028,10835.28
>>> 2010-09-28,10809.85,10905.44,10714.03,10858.14,402584,10858.14
>>> 2010-09-27,10860.03,10902.52,10776.44,10812.04,358786,10812.04
>>> 
>>> 
>>> 
>>> The dedault implementation not ...
>>> 
>>> $ ./pharo Pharo.image eval 
>>> "'http://bl.ocks.org/mbostock/raw/4063318/dji.csv' asUrl 
>>> retrieveContents" Startup Error: ConnectionClosed: Connection 
>>> closed while waiting for data.
>>> [ ConnectionClosed signal: 'Connection closed while waiting for data.' 
>>> ] in Socket>>waitForDataFor: in Block: [ ConnectionClosed signal: 
>>> 'Connection closed whil...etc...
>>> Socket>>waitForDataFor:ifClosed:ifTimedOut:
>>> Socket>>waitForDataFor:
>>> ZdcSocketStream(ZdcAbstractSocketStream)>>socketWaitForData
>>> ZdcSocketStream>>readInto:startingAt:count:
>>> ZnUTF8Encoder>>optimizedReadInto:startingAt:count:fromStream:
>>> ZnUTF8Encoder>>readInto:startingAt:count:fromStream:
>>> [
>>> read := encoder
>>> readInto: buffer
>>> startingAt: 1
>>> count: buffer size
>>> fromStream: readStream ] in ZnStringEntity>>readFrom: in Block: [ ...
>>> BlockClosure>>on:do:
>>> ZnStringEntity>>readFrom:
>>> ZnEntity class>>readFrom:usingType:andLength:
>>> ZnEntityReader>>readFrom:usingType:andLength:
>>> ZnEntityReader>>readEntityFromStream
>>> [ entity := self readEntityFromStream ] in ZnEntityReader>>readEntity 
>>> in Block: [ entity := self readEntityFromStream ]
>>> [
>>> p psValueAt: index put: anObject.
>>> aBlock value ] in 
>>> ZnDefaultCharacterEncoder(DynamicVariable)>>value:during: in Block: [ 
>>> ...
>>> BlockClosure>>ensure:
>>> 

Re: [Pharo-users] Zn / Connection closed while waiting for data

2016-03-02 Thread Yuriy Tymchuk
Yes, more exactly if you run:

'http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.csv' asUrl 
retrieveContents

try get this stack trace: 
https://dl.dropboxusercontent.com/u/83145561/Debugger-Stack-Socket-2016-03-02-134847.fuel

I can open the url in my browser.

Cheers.
Uko

> On 02 Mar 2016, at 13:35, Sven Van Caekenberghe  wrote:
> 
> 
>> On 02 Mar 2016, at 13:28, Yuriy Tymchuk  wrote:
>> 
>> For me it’s also happening when I run 
>> RTMapLocationExample>>#exampleSeismOnEarth
> 
> I do not have that code. What is the URL that fails to load ?
> 
>> Uko
>> 
>>> On 30 Sep 2015, at 10:36, Andrei Chis  wrote:
>>> 
>>> In my case it's still failing with 'Connection closed while waiting for 
>>> data.'
>>> 
>>> Cheers,
>>> Andrei
>>> 
>>> On Wed, Sep 30, 2015 at 9:29 AM, Sven Van Caekenberghe  wrote:
>>> 
 On 30 Sep 2015, at 08:16, Volkert  wrote:
 
 For your information: today i tried again and know it works as expected ...
>>> 
>>> OK, thanks for letting us know.
>>> 
 Same net
 Same pharo-vm/image
 Same ubuntu/kernel
 
 Strange  maybe the "blood moon" on monday ...
>>> 
>>> Yes, weird.
>>> 
 $ ./pharo Pharo.image eval 
 "'http://bl.ocks.org/ostock/raw/4063318/dji.csv' asUrl retrieveContents"
 'Date,Open,High,Low,Close,Volume,Adj Close
 2010-10-01,10789.72,10907.41,10759.14,10829.68,429891,10829.68
 2010-09-30,10835.96,10960.99,10732.27,10788.05,428416,10788.05
 2010-09-29,10857.98,10901.96,10759.75,10835.28,399028,10835.28
 2010-09-28,10809.85,10905.44,10714.03,10858.14,402584,10858.14
 2010-09-27,10860.03,10902.52,10776.44,10812.04,358786,10812.04
 2010-09-24,10664.39,10897.83,10664.39,10860.26,412395,10860.26
 2010-09-23,10738.48,10779.65,10610.12,10662.42,384785,10662.42
 2010-09-22,10761.11,10829.75,10682.40,10739.31,391107,10739.31
 2010-09-21,10753.39,10844.89,10674.83,10761.03,417566,10761.03
 2010-09-20,10608.08,10783.51,10594.38,10753.62,336408,10753.62
 
 
 
 
 On 25.09.2015 19:58, stepharo wrote:
> Thanks for spotting this problem.
> 
> 
> Le 21/9/15 11:33, Volkert a écrit :
>> Switching the socket implementation works ...
>> 
>> $./pharo Pharo.image eval "ZnNetworkingUtils default socketStreamClass: 
>> SocketStream. 'http://bl.ocks.org/mbostock/raw/4063318/dji.csv' asUrl 
>> retrieveContents"
>> 'Date,Open,High,Low,Close,Volume,Adj Close
>> 2010-10-01,10789.72,10907.41,10759.14,10829.68,429891,10829.68
>> 2010-09-30,10835.96,10960.99,10732.27,10788.05,428416,10788.05
>> 2010-09-29,10857.98,10901.96,10759.75,10835.28,399028,10835.28
>> 2010-09-28,10809.85,10905.44,10714.03,10858.14,402584,10858.14
>> 2010-09-27,10860.03,10902.52,10776.44,10812.04,358786,10812.04
>> 
>> 
>> 
>> The dedault implementation not ...
>> 
>> $ ./pharo Pharo.image eval 
>> "'http://bl.ocks.org/mbostock/raw/4063318/dji.csv' asUrl 
>> retrieveContents" Startup Error: ConnectionClosed: Connection closed 
>> while waiting for data.
>> [ ConnectionClosed signal: 'Connection closed while waiting for data.' ] 
>> in Socket>>waitForDataFor: in Block: [ ConnectionClosed signal: 
>> 'Connection closed whil...etc...
>> Socket>>waitForDataFor:ifClosed:ifTimedOut:
>> Socket>>waitForDataFor:
>> ZdcSocketStream(ZdcAbstractSocketStream)>>socketWaitForData
>> ZdcSocketStream>>readInto:startingAt:count:
>> ZnUTF8Encoder>>optimizedReadInto:startingAt:count:fromStream:
>> ZnUTF8Encoder>>readInto:startingAt:count:fromStream:
>> [
>> read := encoder
>>  readInto: buffer
>>  startingAt: 1
>>  count: buffer size
>>  fromStream: readStream ] in ZnStringEntity>>readFrom: in Block: [ ...
>> BlockClosure>>on:do:
>> ZnStringEntity>>readFrom:
>> ZnEntity class>>readFrom:usingType:andLength:
>> ZnEntityReader>>readFrom:usingType:andLength:
>> ZnEntityReader>>readEntityFromStream
>> [ entity := self readEntityFromStream ] in ZnEntityReader>>readEntity in 
>> Block: [ entity := self readEntityFromStream ]
>> [
>> p psValueAt: index put: anObject.
>> aBlock value ] in 
>> ZnDefaultCharacterEncoder(DynamicVariable)>>value:during: in Block: [ ...
>> BlockClosure>>ensure:
>> ZnDefaultCharacterEncoder(DynamicVariable)>>value:during:
>> ZnDefaultCharacterEncoder class(DynamicVariable class)>>value:during:
>> ZnEntityReader>>withDefaultUtf8Decoding:
>> ZnEntityReader>>readEntity
>> ZnResponse(ZnMessage)>>readEntityFrom:
>> ZnResponse>>readEntityFrom:
>> ZnResponse(ZnMessage)>>readFrom:
>> ZnResponse class(ZnMessage class)>>readFrom:
>> ZnClient>>readResponse
>> ZnClient>>executeRequestResponse
>> [ self 

Re: [Pharo-users] CMD/CTRL-B for browsing?

2016-03-02 Thread Marcus Denker

> On 02 Mar 2016, at 13:28, Tudor Girba  wrote:
> 
> Hi,
> 
> Could you describe in more details the specific case we have here?
> 

inspect 

#(hello you)

then click on the first item. Now I select the 'hello' on the right and try to 
do "senders of" --> replace by "n".



> Cheers,
> Doru
> 
> 
>> On Mar 2, 2016, at 11:28 AM, Marcus Denker  wrote:
>> 
>> 
>>> On 01 Mar 2016, at 18:10, Marcus Denker  wrote:
>>> 
>>> 
 On 01 Mar 2016, at 18:06, Luc Fabresse  wrote:
 
 Hi Guys,
 
 In Pharo 5, it seems that CMD/CTRL-B does not work for browsing in some 
 places such as in GTDebugger right bottom pane.
 Is this on purpose?
 
 
>>> No, still a bug: in non-code mode Rubric does not add the shortcuts. We 
>>> should fix that and allow these everywhere.
>>> 
>>> 
>> 
>> I added an issue:
>> 
>>  
>> https://pharo.fogbugz.com/f/cases/17731/Rubric-When-not-in-Code-Mode-the-editor-should-still-support-senders-of-and-implementors-of-short-cuts
>> 
>> (Issue tracker status:
>>  - Open overall:  512
>>  - Open tagged Pharo5:   319
>>  - Closed last 7 days:   100 
>> )
> 
> --
> www.tudorgirba.com
> www.feenk.com
> 
> "Next time you see your life passing by, say 'hi' and get to know her."
> 
> 
> 
> 
> 



Re: [Pharo-users] Zn / Connection closed while waiting for data

2016-03-02 Thread Sven Van Caekenberghe

> On 02 Mar 2016, at 13:28, Yuriy Tymchuk  wrote:
> 
> For me it’s also happening when I run 
> RTMapLocationExample>>#exampleSeismOnEarth

I do not have that code. What is the URL that fails to load ?

> Uko
> 
>> On 30 Sep 2015, at 10:36, Andrei Chis  wrote:
>> 
>> In my case it's still failing with 'Connection closed while waiting for 
>> data.'
>> 
>> Cheers,
>> Andrei
>> 
>> On Wed, Sep 30, 2015 at 9:29 AM, Sven Van Caekenberghe  wrote:
>> 
>> > On 30 Sep 2015, at 08:16, Volkert  wrote:
>> >
>> > For your information: today i tried again and know it works as expected ...
>> 
>> OK, thanks for letting us know.
>> 
>> > Same net
>> > Same pharo-vm/image
>> > Same ubuntu/kernel
>> >
>> > Strange  maybe the "blood moon" on monday ...
>> 
>> Yes, weird.
>> 
>> > $ ./pharo Pharo.image eval 
>> > "'http://bl.ocks.org/ostock/raw/4063318/dji.csv' asUrl retrieveContents"
>> > 'Date,Open,High,Low,Close,Volume,Adj Close
>> > 2010-10-01,10789.72,10907.41,10759.14,10829.68,429891,10829.68
>> > 2010-09-30,10835.96,10960.99,10732.27,10788.05,428416,10788.05
>> > 2010-09-29,10857.98,10901.96,10759.75,10835.28,399028,10835.28
>> > 2010-09-28,10809.85,10905.44,10714.03,10858.14,402584,10858.14
>> > 2010-09-27,10860.03,10902.52,10776.44,10812.04,358786,10812.04
>> > 2010-09-24,10664.39,10897.83,10664.39,10860.26,412395,10860.26
>> > 2010-09-23,10738.48,10779.65,10610.12,10662.42,384785,10662.42
>> > 2010-09-22,10761.11,10829.75,10682.40,10739.31,391107,10739.31
>> > 2010-09-21,10753.39,10844.89,10674.83,10761.03,417566,10761.03
>> > 2010-09-20,10608.08,10783.51,10594.38,10753.62,336408,10753.62
>> >
>> > 
>> >
>> >
>> > On 25.09.2015 19:58, stepharo wrote:
>> >> Thanks for spotting this problem.
>> >>
>> >>
>> >> Le 21/9/15 11:33, Volkert a écrit :
>> >>> Switching the socket implementation works ...
>> >>>
>> >>> $./pharo Pharo.image eval "ZnNetworkingUtils default socketStreamClass: 
>> >>> SocketStream. 'http://bl.ocks.org/mbostock/raw/4063318/dji.csv' asUrl 
>> >>> retrieveContents"
>> >>> 'Date,Open,High,Low,Close,Volume,Adj Close
>> >>> 2010-10-01,10789.72,10907.41,10759.14,10829.68,429891,10829.68
>> >>> 2010-09-30,10835.96,10960.99,10732.27,10788.05,428416,10788.05
>> >>> 2010-09-29,10857.98,10901.96,10759.75,10835.28,399028,10835.28
>> >>> 2010-09-28,10809.85,10905.44,10714.03,10858.14,402584,10858.14
>> >>> 2010-09-27,10860.03,10902.52,10776.44,10812.04,358786,10812.04
>> >>>
>> >>> 
>> >>>
>> >>> The dedault implementation not ...
>> >>>
>> >>> $ ./pharo Pharo.image eval 
>> >>> "'http://bl.ocks.org/mbostock/raw/4063318/dji.csv' asUrl 
>> >>> retrieveContents" Startup Error: ConnectionClosed: Connection closed 
>> >>> while waiting for data.
>> >>> [ ConnectionClosed signal: 'Connection closed while waiting for data.' ] 
>> >>> in Socket>>waitForDataFor: in Block: [ ConnectionClosed signal: 
>> >>> 'Connection closed whil...etc...
>> >>> Socket>>waitForDataFor:ifClosed:ifTimedOut:
>> >>> Socket>>waitForDataFor:
>> >>> ZdcSocketStream(ZdcAbstractSocketStream)>>socketWaitForData
>> >>> ZdcSocketStream>>readInto:startingAt:count:
>> >>> ZnUTF8Encoder>>optimizedReadInto:startingAt:count:fromStream:
>> >>> ZnUTF8Encoder>>readInto:startingAt:count:fromStream:
>> >>> [
>> >>> read := encoder
>> >>>readInto: buffer
>> >>>startingAt: 1
>> >>>count: buffer size
>> >>>fromStream: readStream ] in ZnStringEntity>>readFrom: in Block: [ ...
>> >>> BlockClosure>>on:do:
>> >>> ZnStringEntity>>readFrom:
>> >>> ZnEntity class>>readFrom:usingType:andLength:
>> >>> ZnEntityReader>>readFrom:usingType:andLength:
>> >>> ZnEntityReader>>readEntityFromStream
>> >>> [ entity := self readEntityFromStream ] in ZnEntityReader>>readEntity in 
>> >>> Block: [ entity := self readEntityFromStream ]
>> >>> [
>> >>> p psValueAt: index put: anObject.
>> >>> aBlock value ] in 
>> >>> ZnDefaultCharacterEncoder(DynamicVariable)>>value:during: in Block: [ ...
>> >>> BlockClosure>>ensure:
>> >>> ZnDefaultCharacterEncoder(DynamicVariable)>>value:during:
>> >>> ZnDefaultCharacterEncoder class(DynamicVariable class)>>value:during:
>> >>> ZnEntityReader>>withDefaultUtf8Decoding:
>> >>> ZnEntityReader>>readEntity
>> >>> ZnResponse(ZnMessage)>>readEntityFrom:
>> >>> ZnResponse>>readEntityFrom:
>> >>> ZnResponse(ZnMessage)>>readFrom:
>> >>> ZnResponse class(ZnMessage class)>>readFrom:
>> >>> ZnClient>>readResponse
>> >>> ZnClient>>executeRequestResponse
>> >>> [ self executeRequestResponse ] in ZnClient>>getConnectionAndExecute in 
>> >>> Block: [ self executeRequestResponse ]
>> >>> BlockClosure>>ensure:
>> >>> ZnClient>>getConnectionAndExecute
>> >>> ZnClient>>executeWithRedirectsRemaining:
>> >>> Got startup errors:
>> >>>ConnectionClosed: Connection closed while waiting for data.
>> >>>
>> >>> Volkert
>> >>>
>> >>>
>> >>>
>> >>> On 21.09.2015 12:07, Sven Van 

Re: [Pharo-users] Zn / Connection closed while waiting for data

2016-03-02 Thread Yuriy Tymchuk
For me it’s also happening when I run RTMapLocationExample>>#exampleSeismOnEarth

Uko

> On 30 Sep 2015, at 10:36, Andrei Chis  wrote:
> 
> In my case it's still failing with 'Connection closed while waiting for data.'
> 
> Cheers,
> Andrei
> 
> On Wed, Sep 30, 2015 at 9:29 AM, Sven Van Caekenberghe  > wrote:
> 
> > On 30 Sep 2015, at 08:16, Volkert  > > wrote:
> >
> > For your information: today i tried again and know it works as expected ...
> 
> OK, thanks for letting us know.
> 
> > Same net
> > Same pharo-vm/image
> > Same ubuntu/kernel
> >
> > Strange  maybe the "blood moon" on monday ...
> 
> Yes, weird.
> 
> > $ ./pharo Pharo.image eval "'http://bl.ocks.org/ostock/raw/4063318/dji.csv 
> > ' asUrl retrieveContents"
> > 'Date,Open,High,Low,Close,Volume,Adj Close
> > 2010-10-01,10789.72,10907.41,10759.14,10829.68,429891,10829.68
> > 2010-09-30,10835.96,10960.99,10732.27,10788.05,428416,10788.05
> > 2010-09-29,10857.98,10901.96,10759.75,10835.28,399028,10835.28
> > 2010-09-28,10809.85,10905.44,10714.03,10858.14,402584,10858.14
> > 2010-09-27,10860.03,10902.52,10776.44,10812.04,358786,10812.04
> > 2010-09-24,10664.39,10897.83,10664.39,10860.26,412395,10860.26
> > 2010-09-23,10738.48,10779.65,10610.12,10662.42,384785,10662.42
> > 2010-09-22,10761.11,10829.75,10682.40,10739.31,391107,10739.31
> > 2010-09-21,10753.39,10844.89,10674.83,10761.03,417566,10761.03
> > 2010-09-20,10608.08,10783.51,10594.38,10753.62,336408,10753.62
> >
> > 
> >
> >
> > On 25.09.2015 19:58, stepharo wrote:
> >> Thanks for spotting this problem.
> >>
> >>
> >> Le 21/9/15 11:33, Volkert a écrit :
> >>> Switching the socket implementation works ...
> >>>
> >>> $./pharo Pharo.image eval "ZnNetworkingUtils default socketStreamClass: 
> >>> SocketStream. 'http://bl.ocks.org/mbostock/raw/4063318/dji.csv 
> >>> ' asUrl retrieveContents"
> >>> 'Date,Open,High,Low,Close,Volume,Adj Close
> >>> 2010-10-01,10789.72,10907.41,10759.14,10829.68,429891,10829.68
> >>> 2010-09-30,10835.96,10960.99,10732.27,10788.05,428416,10788.05
> >>> 2010-09-29,10857.98,10901.96,10759.75,10835.28,399028,10835.28
> >>> 2010-09-28,10809.85,10905.44,10714.03,10858.14,402584,10858.14
> >>> 2010-09-27,10860.03,10902.52,10776.44,10812.04,358786,10812.04
> >>>
> >>> 
> >>>
> >>> The dedault implementation not ...
> >>>
> >>> $ ./pharo Pharo.image eval 
> >>> "'http://bl.ocks.org/mbostock/raw/4063318/dji.csv 
> >>> ' asUrl 
> >>> retrieveContents" Startup Error: ConnectionClosed: Connection closed 
> >>> while waiting for data.
> >>> [ ConnectionClosed signal: 'Connection closed while waiting for data.' ] 
> >>> in Socket>>waitForDataFor: in Block: [ ConnectionClosed signal: 
> >>> 'Connection closed whil...etc...
> >>> Socket>>waitForDataFor:ifClosed:ifTimedOut:
> >>> Socket>>waitForDataFor:
> >>> ZdcSocketStream(ZdcAbstractSocketStream)>>socketWaitForData
> >>> ZdcSocketStream>>readInto:startingAt:count:
> >>> ZnUTF8Encoder>>optimizedReadInto:startingAt:count:fromStream:
> >>> ZnUTF8Encoder>>readInto:startingAt:count:fromStream:
> >>> [
> >>> read := encoder
> >>>readInto: buffer
> >>>startingAt: 1
> >>>count: buffer size
> >>>fromStream: readStream ] in ZnStringEntity>>readFrom: in Block: [ ...
> >>> BlockClosure>>on:do:
> >>> ZnStringEntity>>readFrom:
> >>> ZnEntity class>>readFrom:usingType:andLength:
> >>> ZnEntityReader>>readFrom:usingType:andLength:
> >>> ZnEntityReader>>readEntityFromStream
> >>> [ entity := self readEntityFromStream ] in ZnEntityReader>>readEntity in 
> >>> Block: [ entity := self readEntityFromStream ]
> >>> [
> >>> p psValueAt: index put: anObject.
> >>> aBlock value ] in 
> >>> ZnDefaultCharacterEncoder(DynamicVariable)>>value:during: in Block: [ ...
> >>> BlockClosure>>ensure:
> >>> ZnDefaultCharacterEncoder(DynamicVariable)>>value:during:
> >>> ZnDefaultCharacterEncoder class(DynamicVariable class)>>value:during:
> >>> ZnEntityReader>>withDefaultUtf8Decoding:
> >>> ZnEntityReader>>readEntity
> >>> ZnResponse(ZnMessage)>>readEntityFrom:
> >>> ZnResponse>>readEntityFrom:
> >>> ZnResponse(ZnMessage)>>readFrom:
> >>> ZnResponse class(ZnMessage class)>>readFrom:
> >>> ZnClient>>readResponse
> >>> ZnClient>>executeRequestResponse
> >>> [ self executeRequestResponse ] in ZnClient>>getConnectionAndExecute in 
> >>> Block: [ self executeRequestResponse ]
> >>> BlockClosure>>ensure:
> >>> ZnClient>>getConnectionAndExecute
> >>> ZnClient>>executeWithRedirectsRemaining:
> >>> Got startup errors:
> >>>ConnectionClosed: Connection closed while waiting for data.
> >>>
> >>> Volkert
> >>>
> >>>
> >>>
> >>> On 21.09.2015 12 :07, Sven Van Caekenberghe wrote:
> 

Re: [Pharo-users] CMD/CTRL-B for browsing?

2016-03-02 Thread Tudor Girba
Hi,

Could you describe in more details the specific case we have here?

Cheers,
Doru


> On Mar 2, 2016, at 11:28 AM, Marcus Denker  wrote:
> 
> 
>> On 01 Mar 2016, at 18:10, Marcus Denker  wrote:
>> 
>> 
>>> On 01 Mar 2016, at 18:06, Luc Fabresse  wrote:
>>> 
>>> Hi Guys,
>>> 
>>> In Pharo 5, it seems that CMD/CTRL-B does not work for browsing in some 
>>> places such as in GTDebugger right bottom pane.
>>> Is this on purpose?
>>> 
>>> 
>> No, still a bug: in non-code mode Rubric does not add the shortcuts. We 
>> should fix that and allow these everywhere.
>> 
>> 
> 
> I added an issue:
> 
>   
> https://pharo.fogbugz.com/f/cases/17731/Rubric-When-not-in-Code-Mode-the-editor-should-still-support-senders-of-and-implementors-of-short-cuts
> 
> (Issue tracker status:
>   - Open overall:  512
>   - Open tagged Pharo5:   319
>   - Closed last 7 days:   100 
> )

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

"Next time you see your life passing by, say 'hi' and get to know her."







Re: [Pharo-users] A new idea for a project: WarpSpeed (a C inliner)

2016-03-02 Thread Ben Coman
On Wed, Mar 2, 2016 at 6:20 PM, Thierry Goubier
 wrote:
> Le 02/03/2016 11:07, Ben Coman a écrit :
>>
>> Back to Dimitris' original question, I wonder that the potential speed
>> benefit comes not so much from using "C", but from leveraging a large
>> body of work on optimizing passes at the lower level.  I found a
>> tutorial [1] to produce a toy language "Kaleidoscope" that generates
>> LLVM IR such that "by the end of the tutorial, we’ll have written a
>> bit less than 1000 lines of code. With this small amount of code,
>> we’ll have built up a very reasonable compiler for a non-trivial
>> language including a hand-written lexer, parser, AST, as well as code
>> generation support with a JIT compiler."
>
>
> What is costly in the Pharo space is the fact that Kaleidoscope rely on the
> LLVM C++ infrastructure to generate the IR. And this linking to C++ code and
> classes is hard to do.

Are you referring only to FFI interfacing versus C++ name mangling,
for which "the C bindings in include/llvm-c should help a lot, since
most languages have strong support for interfacing with C.[A]"   or
something more?

[A] http://llvm.org/releases/3.1/docs/FAQ.html

cheers -ben



Re: [Pharo-users] CMD/CTRL-B for browsing?

2016-03-02 Thread Marcus Denker

> On 01 Mar 2016, at 18:10, Marcus Denker  wrote:
> 
> 
>> On 01 Mar 2016, at 18:06, Luc Fabresse  wrote:
>> 
>> Hi Guys,
>> 
>> In Pharo 5, it seems that CMD/CTRL-B does not work for browsing in some 
>> places such as in GTDebugger right bottom pane.
>> Is this on purpose?
>> 
>> 
> No, still a bug: in non-code mode Rubric does not add the shortcuts. We 
> should fix that and allow these everywhere.
> 
> 

I added an issue:


https://pharo.fogbugz.com/f/cases/17731/Rubric-When-not-in-Code-Mode-the-editor-should-still-support-senders-of-and-implementors-of-short-cuts

(Issue tracker status:
- Open overall:  512
- Open tagged Pharo5:   319
- Closed last 7 days:   100 
)


Re: [Pharo-users] A new idea for a project: WarpSpeed (a C inliner)

2016-03-02 Thread Thierry Goubier

Le 02/03/2016 11:07, Ben Coman a écrit :

On Mon, Feb 29, 2016 at 7:44 AM, Thierry Goubier
 wrote:

Le 29/02/2016 00:32, Ben Coman a écrit :


On Sat, Feb 27, 2016 at 3:30 AM, Dimitris Chloupis
 wrote:


So now that AsmJit is gone , I had a new idea for a project and I wanted
your opinion on this if you think it will be useful for the community, I
call it WarpSpeed.

I was thinking it would still be cool to have some kind of library that
will
help us boost the speed of pharo . So I was thinking about a C inliner
which is far easier than an Assembly inliner (see AsmJIT)  I also found
TinyC

http://bellard.org/tcc/

   which is as you guessed a tiny c compiler 100kbs in size which i can
include with a pharo image to allow me to dynamically compile inlined C
code
inside the pharo image so even pharo users without a C compiler installed
can benefit from it .

That means that if something does not perform as fast as you want you
could
mix C code with pharo code , I am thinking passing the C source code as a
string or even having the C code in a separate file, and then dynamically
call the TinyC compiler, compile it to shared library and load if via
UFFI
back to pharo. TinyC is very fast so compilation of the code should be as
fast if not faster than compiling pharo code.

Looks easy enough to do for a small project by me with the condition
there
are people really interested into something like this. TinyC is licensed
as
LGPL but I can make it fall back to other compilers as well if ones want
to
close the source.

How it sounds as an idea ?



I've thought about something similar myself, and also looked at tcc.
I think its a really interesting idea, but you need to treat it as an
*experiment* for learning.  Whether its ultimately useful to the
community will depend on a lot of things in implementation (I see
Clement indicates some difficulties).

But maybe tcc is not the right backend. [1] says "Note: I am no longer
working on TCC", the last release dates wehre 2009 & 2013, and [2]
indicates it tcc may be a dead end.

What would be *really* interesting is, given we have a good
infrastructure to compile Smalltalk to bytecode, investigate some new
constructs to compile  to SPIR-V [3].  The specification [4] and
execution/memory model [5] have recently been released. It would be
nice if someone more competent than myself could skim and advise on
the feasibility of such an idea.



SPIR-V format is similar to the LLVM-IR and it is quite hard to generate for
a language like Smalltalk. Typed operations, SSA, Phi nodes, etc... You get
extremely high performance this way, but it is a lot of work.


This presentation [6] starting p38 says SPIRV presents an "opportunity
to unleash innovation: Domain Specific Languages..." which is
typically considered a strength of Smalltalk. p40 says "Compiler split
in two, Front end compiler emits SPIR-V portable binary offline (that
would be us), then SPIR-V is compiled to machine-specific binary by
driver online (that would be just passing the SPIR-V to the GPU
driver). [7]



Yes, this is certainly where SPIR-V is interesting: all OpenCL devices would
carry a SPIR-V back-end compiler.


Perhaps interesting to see what people are trying in some other
languages...
* A bytecode translator like is being tried for Python [A], since SPIR-V
is
* End-user tools for working with SPIR-V, disassembling, analysing,
debugging, optimising it, for Go[B] and Python[C].

The opportunity in producing tools for working with SPIR-V is you draw
people in for the tool, and they get a side-exposure to our
environment, (which of course they then fall in love with.)




The opportunity is more like a compiler infrastructure you'll be writing. If
well written, yes, it could be an interesting artefact (training, teaching
compilation).


Back to Dimitris' original question, I wonder that the potential speed
benefit comes not so much from using "C", but from leveraging a large
body of work on optimizing passes at the lower level.  I found a
tutorial [1] to produce a toy language "Kaleidoscope" that generates
LLVM IR such that "by the end of the tutorial, we’ll have written a
bit less than 1000 lines of code. With this small amount of code,
we’ll have built up a very reasonable compiler for a non-trivial
language including a hand-written lexer, parser, AST, as well as code
generation support with a JIT compiler."


What is costly in the Pharo space is the fact that Kaleidoscope rely on 
the LLVM C++ infrastructure to generate the IR. And this linking to C++ 
code and classes is hard to do.


Generating .ll files are however Ok, and then everything can be done on 
the command line. However, the IR is complex in itself, and not very 
obvious in places (vectors, types), and you have to cope with the Phi 
instructions and block / temporary naming / declarations and all... It 
represent in the end quite a significant amount of code (I have it for 
my R compiler work 

Re: [Pharo-users] A new idea for a project: WarpSpeed (a C inliner)

2016-03-02 Thread kilon.alios
That does not change the fact that you will have a FFI overhead. 

For example pyOpenGL 2 was implemented using the Python C API as a wrapper
to OpenGL pyOpenGL3 was implemented using ctypes, the official FFI of python
(cpython in particular) . Version 3 is 2 to 3 times slower than version 2. 

But then a FFI also has much lower maintenance cost which is the reason why
they moved to a FFI implementations. 

Its really a difficult problem to solve and there is no blue pill solution. 

In my case I dont need to because Unreal has already a nice visual scripting
language but I want to use Pharo with Unreal. FFI is not an option since
unreal builds its own executables and I dont want to hack the engine even
though its open source. 

So I even considered making my own language on top of pharo that will
compile to C++. But obviously that is a very big effort and would mean
sacrificing a lot of nice things about pharo syntax.  

So now I fall back to my initial "lazy" solution of shared memory files.
Share memory between Pharo and Unreal , let those two process communicate
via the share memory and then save the shared memory to a file so I don't
lose live state. Relative easy to do since OS already support and provide
such functionality. 

The pro: is that you can still use Pharo as it is and have access to any C++
functionality
the con: you have to do all the manual work of mapping Pharo messages to C++
functionality, both at pharo but mainly at the C++ side. 

However your post made me wonder if I can still invent a programming
language like LLVM IR, something that will be basically a protocol of
communication between Pharo and C++ and even support onboard features of
Unreal like GC, reflection, hot code reloading, blueprints , game editor
etc. 

It looks like that will be the direction I will be going afterall. Seems
much simpler, easier and practical than anything else. 



--
View this message in context: 
http://forum.world.st/A-new-idea-for-a-project-WarpSpeed-a-C-inliner-tp4881273p4881952.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



[Pharo-users] Pharo Contributors & Consultants

2016-03-02 Thread Peter Uhnák
Hi all,

we are currently updating the pages for Pharo Contributors and Consultants.

https://consultants.pharo.org/
and
https://contributors.pharo.org/

if you want to add or update your record (info, mail, image, ...), you can
do so by sending us a pull request on GitHub in the appropriate repository

the format is STON so it should be understandable.

Contributors: https://github.com/pharo-project/pharo-project-contributors
Consultants: https://github.com/pharo-project/pharo-project-consultants

Alternatively you can open an issue in the github issue tracker with the
new info and it will be handled.

Peter


[Pharo-users] Pharo Days 2016 Registration is open

2016-03-02 Thread Sven Van Caekenberghe
Registration for the Pharo Days 2016 is now open !

We are using EventBrite. You can buy tickets using PayPal and any credit card. 
If absolutely necessary, you can opt for an off line payment. Please register 
on time.

  http://www.eventbrite.com/e/pharo-days-2016-tickets-22454533113

For social registration you can use Doodle.

  http://doodle.com/poll/rsc86cqzxbgwr9tr

Spread the word: http://pharodays2016.pharo.org.