Re: [Pharo-users] an elegant way to return a result

2015-07-02 Thread Peter Uhnák
> > > So for me > > arg: [ ^ ... ] > > > > is a big warning. > > > > Stef > > Is there a code critic for that ? :) > > There is code critic that encourages you to use it for guards. :) Peter

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-02 Thread Thierry Goubier
Le 02/07/2015 23:16, stepharo a écrit : Le 1/7/15 21:10, Thierry Goubier a écrit : Le 01/07/2015 21:07, jtuc...@objektfabrik.de a écrit : I gave up on porting tests. VAST doesn't support creating Arrays with curly braces, and they are used all over the place in Pharo code. I wuld use them if

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-02 Thread Thierry Goubier
Hi Stef, Le 02/07/2015 23:18, stepharo a écrit : Hi thierry mark will arriv at Lille saturday for a month. He is working with Camille on a new tree pattern matching algorithm A generic algorithm or one tied to the RB AST? because we lost energy on RB matcher. What was your analysis? Than

Re: [Pharo-users] an elegant way to return a result

2015-07-02 Thread Ben Coman
On Fri, Jul 3, 2015 at 5:23 AM, stepharo wrote: > Hi matthieu > > on my side: > > stream next ifNil: [^stream next]. > > When you execute a block (far away from the place it was created), it acts > as an exception, it stops the execution of currently executed methods and > return to its home c

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-07-02 Thread Sven Van Caekenberghe
Jan, I find it rather hard to believe you are the only Windows users for who #flush is slow. This is such a fundamental operation that it should have been caught earlier. Remember that the Pharo code itself is cross platform identical. Anyway, that is how I feel it. Just an idea: does your sou

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-07-02 Thread Jan Blizničenko
Flush is, in the store benchmark I used, called from from MultiByteFileStream(WriteStream) >>#nextChunkPut: and from CompiledMethod>>#putSource:inFile:withPreamble: ... when I comment out calling flush in these two methods, it is fast like when whole content of flush method is commented out. Howeve

Re: [Pharo-users] Mofify websockets status to deliver SVG?

2015-07-02 Thread stepharo
quite nice :) Le 30/6/15 23:43, Stephan Eggermont a écrit : On 30/06/15 22:56, Sean P. DeNigris wrote: Stephan Eggermont wrote Screenshot from 2015-06-30 22:46:08.png (110K) ; I'm not following. W

Re: [Pharo-users] an elegant way to return a result

2015-07-02 Thread stepharo
Hi matthieu on my side: stream next ifNil: [^stream next]. When you execute a block (far away from the place it was created), it acts as an exception, it stops the execution of currently executed methods and return to its home context (method that led to the creation of the block) Read d

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-02 Thread stepharo
Hi thierry mark will arriv at Lille saturday for a month. He is working with Camille on a new tree pattern matching algorithm because we lost energy on RB matcher. Stef Le 1/7/15 21:29, Thierry Goubier a écrit : Le 01/07/2015 21:16, jtuc...@objektfabrik.de a écrit : You mean RewriteRules? I

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-02 Thread stepharo
Le 1/7/15 21:10, Thierry Goubier a écrit : Le 01/07/2015 21:07, jtuc...@objektfabrik.de a écrit : I gave up on porting tests. VAST doesn't support creating Arrays with curly braces, and they are used all over the place in Pharo code. I wuld use them if I had them, so this is not an accuse or a

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-02 Thread stepharo
Le 1/7/15 12:35, jtuc...@objektfabrik.de a écrit : Hi there, I am on VA Smalltalk For your next successful project you should jump in Ph :) and therefor using an older version of NeoCSV (SvenVanCaekenberghe.14). I found a bug in this old version that is somewhat special. It seems N

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-07-02 Thread Nicolai Hess
2015-07-02 19:01 GMT+02:00 Sven Van Caekenberghe : > #flush on a stream means pushing all data to the final destination, > clearing buffers, doing actual network transfers. > > What can happen when you disable that ? > > That some data does not arrive where it should I guess. > > Mind that #close

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-07-02 Thread Sven Van Caekenberghe
#flush on a stream means pushing all data to the final destination, clearing buffers, doing actual network transfers. What can happen when you disable that ? That some data does not arrive where it should I guess. Mind that #close most of the time does an automatic/implicit #flush. Anyway, I d

Re: [Pharo-users] Slow compilation on one of my Windows PCs

2015-07-02 Thread Jan Blizničenko
I'm experimenting with commenting the flush automatically by startup script and loading now takes reasonable amount of time ( StandardFileStream compile: 'flush'. ). I haven't found any drawbacks so far, but it doesn't mean anything and that "manual" flushing probably is there for a reason, what is

Re: [Pharo-users] 1$ Recognizer in Pharo

2015-07-02 Thread Alexandre Bergel
> This is cool indeed! > > It would be interesting to integrate it with Roassal to drag elements around. > :) +1 Alexandre > > On Thu, Jul 2, 2015 at 12:33 AM, Johan Fabry wrote: > Very cool ! > > > On Jul 1, 2015, at 18:52, stepharo wrote: > > > > > > Now that we have gestures we can inte

Re: [Pharo-users] Phratch: Support for Spanish language in the interface

2015-07-02 Thread Thierry Goubier
Hi Jannik, about that. Why is Phratch not picking the language from the environment? Scratch on the same platform (linux / french) does it. Regards, Thierry Le 02/07/2015 14:00, Offray Vladimir Luna Cárdenas a écrit : Thanks Jannik, it worked. I miss the little globe. Cheers, Offray On 0

Re: [Pharo-users] DNS level changes for smalltalkhub.com Friday

2015-07-02 Thread Marcus Denker
Hello, Again: we didn’t manage to do it last friday, so it will be tomorrow. > On 25 Jun 2015, at 16:33, Marcus Denker wrote: > > Hello, > > Friday morning we will do some DNS level changes for smalltalkhub.com. > > This should normally have no impact on the server, as the new DNS server wil

[Pharo-users] [Pharo5] Update 150!

2015-07-02 Thread Marcus Denker
Hi, We have update 150! https://ci.inria.fr/pharo/job/Pharo-5.0-Update-Step-5-Publish/ On the issue tracker, we already closed 451 issues for Pharo5. Marcus

Re: [Pharo-users] Phratch: Support for Spanish language in the interface

2015-07-02 Thread Offray Vladimir Luna Cárdenas
Thanks Jannik, it worked. I miss the little globe. Cheers, Offray On 02/07/15 06:48, jannik laval wrote: Dear Offray, Thank you for using phratch. Spanish is available. You just have to click on the sphere on the left of "file" menu. Here, you will find a list of available languages. Sometim

Re: [Pharo-users] Phratch: Support for Spanish language in the interface

2015-07-02 Thread jannik laval
Dear Offray, Thank you for using phratch. Spanish is available. You just have to click on the sphere on the left of "file" menu. Here, you will find a list of available languages. Sometimes, there are blocks that are not translated. In this case, don't hesitate to contact me, we will translate the

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-02 Thread Sean P. DeNigris
Hannes Hirzel wrote > though Amber is said to be Pharo compatible there are some problems which > I > have to resolve first. Pharo is the reference implementation, but is a subset. I guess technically that's "compatible", but "compatible" is vague enough to be easily misleading... - Cheers,

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-02 Thread H. Hirzel
Hello Joachim In May I did a port of NeoCSV to Cuis Smalltalk. I followed a process like this 1. download .mcz in its "original" version and unpack it to have the st file only. Keep the Core and the Tests st file in the target repository for reference. 2. Make a copy of the two files 3. Modi

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-02 Thread Ben Coman
On Thu, Jul 2, 2015 at 3:48 PM, jtuc...@objektfabrik.de wrote: > Sven, > > you are, of course, right! > I should have checked in Pharo first. But since my version is old anyways, I > would have to try with at least two versions in order to make sure if the > bug is fixed or not. As long as keeping

Re: [Pharo-users] does anybody use the AST navigation?

2015-07-02 Thread Marcus Denker
> On 01 Jul 2015, at 23:30, stepharo wrote: > > >> > Because we could remove it. >> >> I think we never enabled it because we could not use good key combinations… >> the idea >> was to use ctrl-arrow keys for it… >> >> I still think that AST based navigation is a very good idea, removing it

Re: [Pharo-users] NeoCSVReader and an empty field at the very end of a file

2015-07-02 Thread jtuc...@objektfabrik.de
Sven, you are, of course, right! I should have checked in Pharo first. But since my version is old anyways, I would have to try with at least two versions in order to make sure if the bug is fixed or not. As long as keeping ports current is a lot of work due to (increasing) differences between

Re: [Pharo-users] HTTP file logging for Zinc

2015-07-02 Thread Sven Van Caekenberghe
> On 02 Jul 2015, at 01:04, Ben Coman wrote: > > On Thu, Jul 2, 2015 at 2:53 AM, Sven Van Caekenberghe wrote: >> >>> On 01 Jul 2015, at 19:54, Esteban A. Maringolo wrote: >>> >>> Thank you Sven! >> >> You're welcome. >> >> One thing that I did that I am not sure of is, whether Referer and