Re: [Pharo-dev] Out of the Box support for launching, browsing and proxy

2015-03-11 Thread Sven Van Caekenberghe
I also fail to see why this is soo bad.
The plugin passes settings to another object.
The plugin is Mac only, from 200 years ago.

Yes, we would try to do things different today, 
but the outside world is messy.

> On 12 Mar 2015, at 06:58, Marcus Denker  wrote:
> 
>> 
>> On 12 Mar 2015, at 03:38, Sean P. DeNigris  wrote:
>> 
>> Guillermo Polito wrote
>>> Smalltalk os isMacOS
>>>   ifTrue: [
>>>   self useHTTPProxy
>>>   ifTrue: [
>>>   (self getHTTPProxyHost findTokens: ':') ifNotEmpty: [
>>> :p |
>>>NetworkSystemSettings
>>>   httpProxyServer: p first;
>>>   httpProxyPort: p second asInteger;
>>>   useHTTPProxy: true ] ]
>>>   ifFalse: [
>>>   NetworkSystemSettings useHTTPProxy: false ] ]
>> 
>> Oh god, why?! Why?!
> 
> 
> I harvested the class (the plugin was shipped with the VM already)
> for Squeak against the *explicit* wish of Andreas (because one could do 
> better,
> which of course never happened… Squeak in it’s essence…)
> 
> So: I wanted to make sure that it did not brake anything… so I added a very 
> conservative check to only end up calling it on the mac, with as little 
> impact 
> as possible.
> 
>   Marcus




Re: [Pharo-dev] Out of the Box support for launching, browsing and proxy

2015-03-11 Thread Marcus Denker

> On 12 Mar 2015, at 03:38, Sean P. DeNigris  wrote:
> 
> Guillermo Polito wrote
>> Smalltalk os isMacOS
>>ifTrue: [
>>self useHTTPProxy
>>ifTrue: [
>>(self getHTTPProxyHost findTokens: ':') ifNotEmpty: [
>> :p |
>> NetworkSystemSettings
>>httpProxyServer: p first;
>>httpProxyPort: p second asInteger;
>>useHTTPProxy: true ] ]
>>ifFalse: [
>>NetworkSystemSettings useHTTPProxy: false ] ]
> 
> Oh god, why?! Why?!


I harvested the class (the plugin was shipped with the VM already)
for Squeak against the *explicit* wish of Andreas (because one could do better,
which of course never happened… Squeak in it’s essence…)

So: I wanted to make sure that it did not brake anything… so I added a very 
conservative check to only end up calling it on the mac, with as little impact 
as possible.

Marcus





Re: [Pharo-dev] new link to query all projects in smalltalkhub

2015-03-11 Thread p...@highoctane.be
What about a litte ?format=json feature?

Phil
Le 12 mars 2015 00:12, "Stephan Eggermont"  a écrit :

> On 10/03/15 11:50, Esteban Lorenzano wrote:
>
>> Hi,
>> You can now look at
>>
>> http://smalltalkhub.com/projectList
>>
>
> Nice, thank you.
>
> Stephan
>
>
>
>


Re: [Pharo-dev] Debugging red screen

2015-03-11 Thread Alejandro Infante
Hi,
It is also possible to see Trachel classes involved, so maybe there is a 
problem with some Roassal code.

Do you have some way to reproduce it??

Cheers,
Alejandro

> On Mar 11, 2015, at 4:11 PM, Tudor Girba  wrote:
> 
> Hi,
> 
> I think the problem is that your Pharo30.sources are not available. Could it 
> be?
> 
> Cheers,
> Doru
> 
> 
> 
> On Wed, Mar 11, 2015 at 7:26 PM, Nicolai Hess  > wrote:
> Hi Natalia,
> 
> did you try to bring up the halo menu and select "debug drawing error"?
> 
> This error looks like AthensCairoMatrix translateBy is called with wrong 
> argument type.
> This may happen if it is called with a fraction instead of a float type.
> 
> nicolai
> 
> 
> 2015-03-11 17:15 GMT+01:00 Natalia Tymchuk  >:
> Hello.
> I’m working with graphics. Usually if i have some problem I got the debugger 
> window, however some times it gives me the red rectangle error. I cannot 
> understand from it what is the problem.
> What should I do in such case, maybe there is some way to get this 
> signalError in debugger?
> 
> Best regards,
> Natalia
> 
> P.S. Here I attach the error I got.
> 
>  
> 
> 
> 
> 
> 
> 
> -- 
> www.tudorgirba.com 
> 
> "Every thing has its own flow"



Re: [Pharo-dev] Out of the Box support for launching, browsing and proxy

2015-03-11 Thread Sean P. DeNigris
Guillermo Polito wrote
> Smalltalk os isMacOS
> ifTrue: [
> self useHTTPProxy
> ifTrue: [
> (self getHTTPProxyHost findTokens: ':') ifNotEmpty: [
> :p |
>  NetworkSystemSettings
> httpProxyServer: p first;
> httpProxyPort: p second asInteger;
> useHTTPProxy: true ] ]
> ifFalse: [
> NetworkSystemSettings useHTTPProxy: false ] ]

Oh god, why?! Why?!

Issue 15119: Beautify HTTP Proxy Configuration
Fix in inbox:
SLICE-Issue-15119-Beautify-HTTP-Proxy-Configuration-SeanDeNigris.1
Refactor -> OOP

But I guess it will have to wait until 5.0 :/




-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Out-of-the-Box-support-for-launching-browsing-and-proxy-tp4811099p4811329.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.



Re: [Pharo-dev] new link to query all projects in smalltalkhub

2015-03-11 Thread Stephan Eggermont

On 10/03/15 11:50, Esteban Lorenzano wrote:

Hi,
You can now look at

http://smalltalkhub.com/projectList


Nice, thank you.

Stephan





[Pharo-dev] [ANN] TODO List of Requested Features

2015-03-11 Thread Damien Cassou
I've just written a list of nice features we miss in Pillar:

http://www.smalltalkhub.com/#!/~Pier/Pillar

Please contribute by either making the list longer or, and I would prefer that, 
making it shorter. 

Re: [Pharo-dev] Debugging red screen

2015-03-11 Thread Peter Uhnák
Also I believe someone named it the "Red Screen of Death".

On Wed, Mar 11, 2015 at 5:39 PM, Peter Uhnák  wrote:

> I've seen this many times when I had an error in my Athens drawing or were
> performing illegal operation in drawDuring: [...] (or the canvas wasn't
> initialized or whatever).
> Unfortunately I don't know how to open proper debugger... I always found
> the issue with "self halt."s. :(
>
> Peter
>
> On Wed, Mar 11, 2015 at 5:24 PM, Max Leske  wrote:
>
>>
>> > On 11 Mar 2015, at 17:15, Natalia Tymchuk <
>> natalia.tymc...@unikernel.net> wrote:
>> >
>> > Hello.
>> > I’m working with graphics. Usually if i have some problem I got the
>> debugger window, however some times it gives me the red rectangle error. I
>> cannot understand from it what is the problem.
>> > What should I do in such case, maybe there is some way to get this
>> signalError in debugger?
>> >
>> > Best regards,
>> > Natalia
>>
>> I work with NB too and I’ve never seen that (I either get a debugger or
>> my image crashes :) ). Maybe it has something to do with the fact that
>> you’re using / modifying Athens which is itself used to render elements of
>> the image?
>>
>> Cheers,
>> Max
>>
>> >
>> > P.S. Here I attach the error I got.
>> >
>> >  
>> >
>> >
>>
>>
>>
>


Re: [Pharo-dev] Debugging red screen

2015-03-11 Thread Peter Uhnák
I've seen this many times when I had an error in my Athens drawing or were
performing illegal operation in drawDuring: [...] (or the canvas wasn't
initialized or whatever).
Unfortunately I don't know how to open proper debugger... I always found
the issue with "self halt."s. :(

Peter

On Wed, Mar 11, 2015 at 5:24 PM, Max Leske  wrote:

>
> > On 11 Mar 2015, at 17:15, Natalia Tymchuk 
> wrote:
> >
> > Hello.
> > I’m working with graphics. Usually if i have some problem I got the
> debugger window, however some times it gives me the red rectangle error. I
> cannot understand from it what is the problem.
> > What should I do in such case, maybe there is some way to get this
> signalError in debugger?
> >
> > Best regards,
> > Natalia
>
> I work with NB too and I’ve never seen that (I either get a debugger or my
> image crashes :) ). Maybe it has something to do with the fact that you’re
> using / modifying Athens which is itself used to render elements of the
> image?
>
> Cheers,
> Max
>
> >
> > P.S. Here I attach the error I got.
> >
> >  
> >
> >
>
>
>


Re: [Pharo-dev] Debugging red screen

2015-03-11 Thread kilon alios
I have seen that myself but I dont think it was NB , I think it was
strikefonts and TTFs but that problem has been resolved since then. So its
possible to get severe red box of doom. Fortunately it rarely happens and
has happened to me 1-2 times.

On Wed, Mar 11, 2015 at 6:24 PM, Max Leske  wrote:

>
> > On 11 Mar 2015, at 17:15, Natalia Tymchuk 
> wrote:
> >
> > Hello.
> > I’m working with graphics. Usually if i have some problem I got the
> debugger window, however some times it gives me the red rectangle error. I
> cannot understand from it what is the problem.
> > What should I do in such case, maybe there is some way to get this
> signalError in debugger?
> >
> > Best regards,
> > Natalia
>
> I work with NB too and I’ve never seen that (I either get a debugger or my
> image crashes :) ). Maybe it has something to do with the fact that you’re
> using / modifying Athens which is itself used to render elements of the
> image?
>
> Cheers,
> Max
>
> >
> > P.S. Here I attach the error I got.
> >
> >  
> >
> >
>
>
>


Re: [Pharo-dev] Debugging red screen

2015-03-11 Thread Max Leske

> On 11 Mar 2015, at 17:15, Natalia Tymchuk  
> wrote:
> 
> Hello.
> I’m working with graphics. Usually if i have some problem I got the debugger 
> window, however some times it gives me the red rectangle error. I cannot 
> understand from it what is the problem.
> What should I do in such case, maybe there is some way to get this 
> signalError in debugger?
> 
> Best regards,
> Natalia

I work with NB too and I’ve never seen that (I either get a debugger or my 
image crashes :) ). Maybe it has something to do with the fact that you’re 
using / modifying Athens which is itself used to render elements of the image?

Cheers,
Max

> 
> P.S. Here I attach the error I got.
> 
>  
> 
> 




Re: [Pharo-dev] Jenkins build trigger

2015-03-11 Thread Ben Coman
Thats cool. Thanks Esteban, and Christophe for the instruction.


On Wed, Mar 11, 2015 at 9:55 PM, Christophe Demarey <
christophe.dema...@inria.fr> wrote:

>
> Thanks to Esteban add-on on Smalltalkhub, it is now possible to notify
> Jenkins that there is a new package published for your project.
> What we do for now is to poll very often (each minute) smalltalkub to
> check if there is an update. It is a big waste of resources!
> Now we can do better! It would be very nice to update your jobs to now use
> the commit hook.
>
> Here is the way to go:
>
>- go to your job configuration on Jenkins
>   - In the *build triggers* section,
>  - enable *Trigger builds remotely (e.g., from scripts)* and
>  choose an* authentication token*.
>  - disable [*URLTrigger] - Poll with a URL*
>   - go to smalltalkhub, on your project settings page
>   - Fill in the *commit hook url *field with
>   https://ci.inria.fr/pharo-contribution/buildByToken/build?job=
>   *JOBNAME*&token=*TOKEN* by replacing JOBNAME and TOKEN by the
>   Jenkins job name and the token chosen.
>
>
> In the end, the build is now triggered immediately after the commit (no
> more delay).
>
> Christophe
>


[Pharo-dev] [pharo-project/pharo-core] 8b7830: 40552

2015-03-11 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: 8b78307901779f44ca534f9c7b18208dc285eefe
  
https://github.com/pharo-project/pharo-core/commit/8b78307901779f44ca534f9c7b18208dc285eefe
  Author: Jenkins Build Server 
  Date:   2015-03-11 (Wed, 11 Mar 2015)

  Changed paths:
A Reflectivity.package/ActiveMetaContext.class/README.md
A Reflectivity.package/ActiveMetaContext.class/definition.st
A Reflectivity.package/MetaLink.class/instance/meta eval/valueInContext_.st
A Reflectivity.package/RFMetaContext.class/README.md
A Reflectivity.package/RFMetaContext.class/class/accessing/current.st
A Reflectivity.package/RFMetaContext.class/class/reset/reset.st
A Reflectivity.package/RFMetaContext.class/definition.st
A 
Reflectivity.package/RFMetaContext.class/instance/initialization/initialize.st
A Reflectivity.package/RFMetaContext.class/instance/level/shiftLevelDown.st
A Reflectivity.package/RFMetaContext.class/instance/level/shiftLevelUp.st
A Reflectivity.package/RFMetaContext.class/instance/testing/isActive_.st
A Reflectivity.package/RFMetaContext.class/instance/testing/isMeta.st
A Reflectivity.package/extension/BlockClosure/instance/ctxtEnsure_.st
R ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script551.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script552.st
R ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40551.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40552.st
M 
ScriptLoader40.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st

  Log Message:
  ---
  40552
15116 last reflectivity related code for pharo4: MetaContext
https://pharo.fogbugz.com/f/cases/15116

http://files.pharo.org/image/40/40552.zip




[Pharo-dev] [pharo-project/pharo-core]

2015-03-11 Thread GitHub
  Branch: refs/tags/40552
  Home:   https://github.com/pharo-project/pharo-core


[Pharo-dev] [update 3.0] #30864

2015-03-11 Thread Marcus Denker
30864
-

14944 Pharo 3.0: Add subStrXyz to substrXYZ compatibility methods
https://pharo.fogbugz.com/f/cases/14944




Re: [Pharo-dev] Status of Pharo VM for FreeBSD

2015-03-11 Thread Frank Shearar
Just as a reminder, can I ask people to cross-post VM-related
questions (like this) to vm-...@lists.squeakfoundation.org? That way
the VM folk will definitely spot these kinds of queries.

frank

On 11 March 2015 at 08:23, Clément Bera  wrote:
> Hello,
>
> About the FreeBSD VM, Holger Freyther worked on it so he's the best person
> to answer. I think some people used it and it was at least partially
> working.
>
> About your NativeBoost bug on openSolaris,  need more information:
>
> - Can you confirm that you use an intel processor on your openSolaris
> machine ? I assume that yes but I ask because solaris were typically running
> on other processors. NativeBoost, as of today, works only with intel
> processor.
>
> - Do you build the Cog VM or Stack VM ? I mean PharoVMBuild or PharoSVMBuild
> ? I think the PharoSVMBuild does not include NativeBoost by default, that
> may be your problem. There's a fix somewhere...
>
> - What are you doing with NativeBoost ? Is it FFI only or are you generating
> and executing hand-written machine code ? If it's FFI only, there might be
> alternative available working more or less out of the box.
>
> Best,
>
> Clement
>
>
>
>
> 2015-03-10 20:26 GMT+01:00 Andreas Wacknitz :
>>
>> Hi all,
>>
>>
>> I have a question regarding the status of the PharoVM for UNIX operating
>> systems, especially FreeBSD.
>> As far as I have seen in the actual sources there is some support for
>> FreeBSD available but for me it’s not clear whether it’s only partial or
>> complete.
>> For me it looks more partial (eg. there are no build instructions for
>> FreeBSD and the default offers are only Mac, Linux and Windows),
>> I haven’t tried to build it yet but I am thinking about to do that and
>> want to get an idea about the efforts.
>>
>> I have successfully build a PharoVM for openindiana (an OpenSolaris
>> derivate). It runs both Pharo and Squeak images (at least partially, see
>> below).
>> I bootstrapped this on my Mac and used what was already available low
>> level.
>> Alas it has two problems until now:
>> 1. Sound is not working properly (just a single click when doing
>> some sound output and then silence).
>> 2. NativeBoost is not working (atm it is based on the Linux
>> version of NativeBoost).
>>
>> As my time is very limited (doing everything in my spare time) I would
>> like to get NativeBoost working on openindiana first, and then trying to
>> build an
>> actual PharoVM for FreeBSD. Therefore the question regarding the status of
>> PharoVM for FreeBSD.
>> Of course any hints where to start with the NativeBoost problem would be
>> highly appreciated :)
>>
>> Regards
>> Andreas
>
>



[Pharo-dev] [pharo-project/pharo-core] e24d83: 40551

2015-03-11 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: e24d837033c511a7250ef2b93072e01b8b55bd15
  
https://github.com/pharo-project/pharo-core/commit/e24d837033c511a7250ef2b93072e01b8b55bd15
  Author: Jenkins Build Server 
  Date:   2015-03-11 (Wed, 11 Mar 2015)

  Changed paths:
A 
MonticelloGUI.package/extension/EclipseUIThemeIcons/instance/newerPackagesAvailableIcon.st
M 
Morphic-Widgets-Tree.package/MorphTreeColumnButton.class/instance/initialization/initialize.st
A 
Polymorph-Widgets.package/UITheme.class/instance/border-styles/morphTreeColumnBorderStyleFor_.st
A 
Polymorph-Widgets.package/UITheme.class/instance/fill-styles/morphTreeColumnFillStyleFor_.st
R ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script550.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script551.st
R ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40550.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40551.st
M 
ScriptLoader40.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st

  Log Message:
  ---
  40551
15113 The MorphTreeMorph header is too dark in the default theme
https://pharo.fogbugz.com/f/cases/15113

15109 newerPackagesAvailableIcon can be done with an overlay
https://pharo.fogbugz.com/f/cases/15109

http://files.pharo.org/image/40/40551.zip




Re: [Pharo-dev] new link to query all projects in smalltalkhub

2015-03-11 Thread Esteban Lorenzano
because they are sorted by project, not by author :)

> On 11 Mar 2015, at 12:33, Damien Pollet  wrote:
> 
> why is it project/author, when they are otherwise presented as author/project 
> ?
> 
> On 10 March 2015 at 22:30, kilon alios  > wrote:
> AT LAST!!!
> 
> Thank you Esteban :)
> 
> On Tue, Mar 10, 2015 at 10:33 PM, Torsten Bergmann  > wrote:
> Nice - by using a simple jquery plugin like http://www.datatables.net/ 
> 
> on the page this would have been browseable/searchable.
> But it is a good start. Thanks!
> 
> Bye
> T.
> 
> 
> > Gesendet: Dienstag, 10. März 2015 um 12:09 Uhr
> > Von: "Esteban Lorenzano" mailto:esteba...@gmail.com>>
> > An: "Pharo Development List"  > >
> > Betreff: Re: [Pharo-dev] new link to query all projects in smalltalkhub
> >
> >
> > > On 10 Mar 2015, at 11:58, p...@highoctane.be  
> > > wrote:
> > >
> > > Cool.
> > >
> > > Would be nice with the description as well. Will avoid clicking around.
> >
> >
> > yes, I thought it too, but descriptions are sometimes very long… it would 
> > be too much.
> >
> >
> > >
> > > Phil
> > >
> >
> >
> 
> 
> 
> 
> 
> -- 
> Damien Pollet
> type less, do more [ | ] http://people.untyped.org/damien.pollet 
> 



Re: [Pharo-dev] new link to query all projects in smalltalkhub

2015-03-11 Thread Damien Pollet
why is it project/author, when they are otherwise presented as
author/project ?

On 10 March 2015 at 22:30, kilon alios  wrote:

> AT LAST!!!
>
> Thank you Esteban :)
>
> On Tue, Mar 10, 2015 at 10:33 PM, Torsten Bergmann  wrote:
>
>> Nice - by using a simple jquery plugin like http://www.datatables.net/
>> on the page this would have been browseable/searchable.
>> But it is a good start. Thanks!
>>
>> Bye
>> T.
>>
>>
>> > Gesendet: Dienstag, 10. März 2015 um 12:09 Uhr
>> > Von: "Esteban Lorenzano" 
>> > An: "Pharo Development List" 
>> > Betreff: Re: [Pharo-dev] new link to query all projects in smalltalkhub
>> >
>> >
>> > > On 10 Mar 2015, at 11:58, p...@highoctane.be wrote:
>> > >
>> > > Cool.
>> > >
>> > > Would be nice with the description as well. Will avoid clicking
>> around.
>> >
>> >
>> > yes, I thought it too, but descriptions are sometimes very long… it
>> would be too much.
>> >
>> >
>> > >
>> > > Phil
>> > >
>> >
>> >
>>
>>
>


-- 
Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet


Re: [Pharo-dev] [pharo-project/pharo-core] b45225: 40550

2015-03-11 Thread Esteban Lorenzano

> On 11 Mar 2015, at 09:11, GitHub  wrote:
> 
>  Branch: refs/heads/4.0
>  Home:   https://github.com/pharo-project/pharo-core
>  Commit: b45225de5a15a65a7273673a6fea294396c94dc8
>  
> https://github.com/pharo-project/pharo-core/commit/b45225de5a15a65a7273673a6fea294396c94dc8
>  Author: Jenkins Build Server 
>  Date:   2015-03-11 (Wed, 11 Mar 2015)
> 
>  Changed paths:
>M Morphic-Core.package/Morph.class/instance/deferred message/defer_.st
>M Morphic-Core.package/WorldMorph.class/instance/deferred message/defer_.st
>M Morphic-Core.package/WorldState.class/class/deferred 
> message/addDeferredUIMessage_.st
>M Morphic-Core.package/WorldState.class/class/deferred message/defer_.st
>M Morphic-Core.package/WorldState.class/instance/deferred message/defer_.st
>M Polymorph-Widgets.package/MorphicUIManager.class/instance/ui 
> process/defer_.st
>R ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
> scripts/script549.st
>A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
> scripts/script550.st
>R ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
> updates/update40549.st
>A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
> updates/update40550.st
>M 
> ScriptLoader40.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
>A Slot-Tests.package/ClassVariableTest.class/README.md
>A Slot-Tests.package/ClassVariableTest.class/definition.st
>A 
> Slot-Tests.package/ClassVariableTest.class/instance/tests/testCreateClassWithClassVariable.st
>A 
> Slot-Tests.package/ClassVariableTest.class/instance/tests/testCreateClassWithTwoClassVariable.st
>A 
> Slot-Tests.package/ClassVariableTest.class/instance/tests/testMigrateClassVar.st
>M Slot-Tests.package/PropertySlotTest.class/definition.st
>M 
> Slot.package/PharoClassInstaller.class/instance/notifications/sharedVariableOrSharedPoolChangedFrom_to_by_.st
>A 
> Traits.package/TBehavior.class/instance/accessing-properties/ensureProperties.st
> 
>  Log Message:
>  ---
>  40550
> 15112 add ClassVariableTest and a fix: copy over value when changing a Class 
> Var definition
>   https://pharo.fogbugz.com/f/cases/15112
> 
> 15111 defer: comments
>   https://pharo.fogbugz.com/f/cases/15111 
> 

that was fast :)

> 
> 15107 Failing test testBehaviorRespectsPolymorphismWithTraitBehavior
>   https://pharo.fogbugz.com/f/cases/15107
> 
> http://files.pharo.org/image/40/40550.zip
> 
> 



Re: [Pharo-dev] Out of the Box support for launching, browsing and proxy

2015-03-11 Thread Guillermo Polito
I remember playing a bit with proxy settings in Ubuntu a couple of years
ago.

The thing in ubuntu is that they do not use the typical Unix environment
variables to set the proxy but use(or use*d* at the time...) the gconf
mechanism from GNOME. A detailed explanation is in here [1].

The code for getting the http settings and others from ubuntu got
integrated.

https://github.com/pharo-project/pharo-vm/blob/55fbd0b0279998a4a33852f5afb3d213986cc3ae/platforms/unix/plugins/InternetConfigPlugin/sqUnixInternetConfiguration.c

We should however take a look and, if it works in latest ubuntu versions we
should use it. If not either fix it or throw it away.

Also, the other detail is that there is work to do with the proxy settings
on the image side:

- they are only fetched at startup (so updating while the image is running
will not update the image)

- it is by default deactivated in other than mac...

Here is the code

InternetPlugin >> startUp
Smalltalk os isMacOS
ifTrue: [
self useHTTPProxy
ifTrue: [
(self getHTTPProxyHost findTokens: ':') ifNotEmpty: [ :p |
 NetworkSystemSettings
httpProxyServer: p first;
httpProxyPort: p second asInteger;
useHTTPProxy: true ] ]
ifFalse: [
NetworkSystemSettings useHTTPProxy: false ] ]

Guille

[1]
http://stackoverflow.com/questions/7230422/how-to-find-default-proxy-settings-in-ubuntu

El mar., 10 de mar. de 2015 a la(s) 7:42 p. m., Torsten Bergmann <
asta...@gmx.de> escribió:

> Still there are three basic things I miss hardly in a unified way
> from the out of the box PHARO/ PHARO VM for the standard platforms (Unix,
> Win, Mac):
>
>  1. ability to execute another process (to start another executable process
> either asynchronous or blocking until the external process is finished)
>
>  2. ability to open a browser on a URL
>
>  3. Query for the native platform HTTP/HTTPs proxy settings (if there is
> one)
> so Zinc and others work behind a proxy.
>
>
> Situation hasnt improved on this side compared to Squeak/Squeak VM times
> (which also
> did not provide something like this).
>
> I know there is OSProcess, FFI, NB, and my OS-... packages and anyone could
> roll their own.
>
> But I would like to see this included BY DEFAULT in an easy and uniform
> way: either in
> the VM or default image even when on exotic platforms it returns
> ERROR_NOT_AVAILABLE.
>
> Any comments?
>
> Thanks
> T.
>
>
>


Re: [Pharo-dev] [Pharo4][Reflectivity] Fix link invalidation + hook generation on MetaLink

2015-03-11 Thread Marcus Denker

I was looking at transforming the AST to take the links into account.

Last year with Clara we did that with a AST visitor that copies the AST while 
transforming it
(e.g. adding the code for the before link).

But this is not that easy as it sounds when taking the whole picture into 
account
(cached #ast per method, using AST for mapping byte code offset->text and using
it in all the tools).

for example, this should work:

testUninstallLinkAndRun
| sendNode link |
sendNode := (ReflectivityExamples>>#exampleMethod) ast body statements 
first value.
link := MetaLink new metaObject: nil; selector: #value. “do nothing"
sendNode link: link.

self assert: sendNode hasMetalink.
self assert: (ReflectivityExamples>>#exampleMethod) class = 
ReflectiveMethod.
self assert: (ReflectivityExamples new exampleMethod = 5).

sendNode := (ReflectivityExamples>>#exampleMethod) ast body statements 
first value.
self assert: sendNode hasMetalink.

self assert: (ReflectivityExamples>>#exampleMethod) class = 
CompiledMethod.
link uninstall. 


this means asking the compiled method for an AST *after* putting a link onto an 
AST node
of the method should return an AST where that node actually has that link… even 
after recompiling
the method.

So I think what we should do is to not change the AST and not even transform 
it, instead
we keep  the original and annotate it. 

We generate AST nodes (small sub ASTs) for the links and annotate the AST with 
those, 
then visit them in the visitors later as if they would be part of the AST.

e.g. for before, the semantic checker visits the exception added for the links, 
then 
ASTTranslator visited them for code generation.

This way everything should work.

What we need

-> finally simplify ASTTranslator so we can actually subclass it and configure 
a compiler
instance to use the subclass.
-> implement that plugin infrastructure 
-> implement ASTTranslator subclass that takes #before into account
-> check how much complexity is needed for #around… or #after on methodNode 
with 
primitive methods. Does it work for these cases?


The change is too big for Pharo4 and will happen in Pharo5.

Marcus


> After experimenting with the AST transformer, I think I will for now (for 
> Pharo4)
> just do it very simple: add the resulting hook as an annotation (beforeHook) 
> to
> the AST node, do name analysis on those and then visit them in the 
> ASTTranslator
> to generate code.
> 
> This is very easy for “before” links, and the milestone we need for Pharo4 is
> just before to support Breakpoints and change-notification on variable access.
> 
> Having just one AST is important for text/bc to AST mapping… when transforming
> one needs to take care to not destroy all this meta information… so we will 
> postpone
> that to Pharo5.
> 







Re: [Pharo-dev] Status of Pharo VM for FreeBSD

2015-03-11 Thread Clément Bera
Hello,

About the FreeBSD VM, Holger Freyther worked on it so he's the best person
to answer. I think some people used it and it was at least partially
working.

About your NativeBoost bug on openSolaris,  need more information:

- Can you confirm that you use an intel processor on your openSolaris
machine ? I assume that yes but I ask because solaris were typically
running on other processors. NativeBoost, as of today, works only with
intel processor.

- Do you build the Cog VM or Stack VM ? I mean PharoVMBuild or
PharoSVMBuild ? I think the PharoSVMBuild does not include NativeBoost by
default, that may be your problem. There's a fix somewhere...

- What are you doing with NativeBoost ? Is it FFI only or are you
generating and executing hand-written machine code ? If it's FFI only,
there might be alternative available working more or less out of the box.

Best,

Clement




2015-03-10 20:26 GMT+01:00 Andreas Wacknitz :

> Hi all,
>
>
> I have a question regarding the status of the PharoVM for UNIX operating
> systems, especially FreeBSD.
> As far as I have seen in the actual sources there is some support for
> FreeBSD available but for me it’s not clear whether it’s only partial or
> complete.
> For me it looks more partial (eg. there are no build instructions for
> FreeBSD and the default offers are only Mac, Linux and Windows),
> I haven’t tried to build it yet but I am thinking about to do that and
> want to get an idea about the efforts.
>
> I have successfully build a PharoVM for openindiana (an OpenSolaris
> derivate). It runs both Pharo and Squeak images (at least partially, see
> below).
> I bootstrapped this on my Mac and used what was already available low
> level.
> Alas it has two problems until now:
> 1. Sound is not working properly (just a single click when doing
> some sound output and then silence).
> 2. NativeBoost is not working (atm it is based on the Linux
> version of NativeBoost).
>
> As my time is very limited (doing everything in my spare time) I would
> like to get NativeBoost working on openindiana first, and then trying to
> build an
> actual PharoVM for FreeBSD. Therefore the question regarding the status of
> PharoVM for FreeBSD.
> Of course any hints where to start with the NativeBoost problem would be
> highly appreciated :)
>
> Regards
> Andreas
>


[Pharo-dev] [pharo-project/pharo-core] b45225: 40550

2015-03-11 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: b45225de5a15a65a7273673a6fea294396c94dc8
  
https://github.com/pharo-project/pharo-core/commit/b45225de5a15a65a7273673a6fea294396c94dc8
  Author: Jenkins Build Server 
  Date:   2015-03-11 (Wed, 11 Mar 2015)

  Changed paths:
M Morphic-Core.package/Morph.class/instance/deferred message/defer_.st
M Morphic-Core.package/WorldMorph.class/instance/deferred message/defer_.st
M Morphic-Core.package/WorldState.class/class/deferred 
message/addDeferredUIMessage_.st
M Morphic-Core.package/WorldState.class/class/deferred message/defer_.st
M Morphic-Core.package/WorldState.class/instance/deferred message/defer_.st
M Polymorph-Widgets.package/MorphicUIManager.class/instance/ui 
process/defer_.st
R ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script549.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script550.st
R ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40549.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40550.st
M 
ScriptLoader40.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
A Slot-Tests.package/ClassVariableTest.class/README.md
A Slot-Tests.package/ClassVariableTest.class/definition.st
A 
Slot-Tests.package/ClassVariableTest.class/instance/tests/testCreateClassWithClassVariable.st
A 
Slot-Tests.package/ClassVariableTest.class/instance/tests/testCreateClassWithTwoClassVariable.st
A 
Slot-Tests.package/ClassVariableTest.class/instance/tests/testMigrateClassVar.st
M Slot-Tests.package/PropertySlotTest.class/definition.st
M 
Slot.package/PharoClassInstaller.class/instance/notifications/sharedVariableOrSharedPoolChangedFrom_to_by_.st
A 
Traits.package/TBehavior.class/instance/accessing-properties/ensureProperties.st

  Log Message:
  ---
  40550
15112 add ClassVariableTest and a fix: copy over value when changing a Class 
Var definition
https://pharo.fogbugz.com/f/cases/15112

15111 defer: comments
https://pharo.fogbugz.com/f/cases/15111

15107 Failing test testBehaviorRespectsPolymorphismWithTraitBehavior
https://pharo.fogbugz.com/f/cases/15107

http://files.pharo.org/image/40/40550.zip




[Pharo-dev] [pharo-project/pharo-core]

2015-03-11 Thread GitHub
  Branch: refs/tags/40550
  Home:   https://github.com/pharo-project/pharo-core


[Pharo-dev] [Slots] add ClassVariableTest and a fix: copy over value when changing a Class Var definition

2015-03-11 Thread Marcus Denker
Tiny improvement… 

Imagine a class where the class var TT is already set to 5.

Object subclass: #TT
slots: {  }
classVariables: { #TT  }
category: ‘PlayGround'


now changing that to a special ClassVariable that saves its value not in the
binding but somewhere else (like ExampleClassVariable), the value should
be copied over on class modification:

Object subclass: #TT
slots: {  }
classVariables: { #TT => ExampleClassVariable }
category: ‘PlayGround'


this is now fixed with

https://pharo.fogbugz.com/f/cases/15112/add-ClassVariableTest-and-a-fix-copy-over-value-when-changing-a-Class-Var-definition

- tests
- when changing a class var to a new kind, make sure to copy the existing value 
over.


Marcus