Re: [Pharo-users] [Pharo-dev] Mini Pharo -> JavaScript translator?

2017-03-15 Thread Alexandre Bergel
Thanks for your answers! We will have a close look at this. Cheers, Alexandre > On Mar 14, 2017, at 6:43 AM, H. Hirzel wrote: > > You mean this one (attached)? > > How would I use it standalone to translate Smalltalk to JavaScript? > > --Hannes > > On 3/14/17, H. Hirzel wrote: >> Hi Dave,

Re: [Pharo-users] Specifying library dependencies in UFFI

2017-03-15 Thread Raffaello Giulietti
Hi Dimitris, I don't get your point about proper C coding, C performance or Pharo crashes. It is not the focus of this thread. How dependencies between libraries are resolved at load-time is dictated by the OS. If the OS offers a working mechanism to specify folders that the OS uses to searc

Re: [Pharo-users] Specifying library dependencies in UFFI

2017-03-15 Thread Dimitris Chloupis
Please note the moment you use a FFI of any language you step to a C territory. VMs tend not to touch the code because the code is already in machine code format. There is zero reason for UFFI to worry about the dependencies of a library loaded, this must happen at the library level that UFFI does

Re: [Pharo-users] Specifying library dependencies in UFFI

2017-03-15 Thread Esteban Lorenzano
> On 15 Mar 2017, at 15:44, Raffaello Giulietti > wrote: > > On 2017-03-15 15:20, Esteban Lorenzano wrote: >> >>> On 15 Mar 2017, at 15:08, Raffaello Giulietti >>> wrote: >>> >>> Hi Esteban, >>> >>> I understand this is the current status of the UFFI, so I can certainly use >>> the workar

Re: [Pharo-users] Specifying library dependencies in UFFI

2017-03-15 Thread Raffaello Giulietti
On 2017-03-15 15:20, Esteban Lorenzano wrote: On 15 Mar 2017, at 15:08, Raffaello Giulietti wrote: Hi Esteban, I understand this is the current status of the UFFI, so I can certainly use the workarounds discussed below. But I hope UFFI will soon offer a more "declarative" way to specify t

Re: [Pharo-users] Specifying library dependencies in UFFI

2017-03-15 Thread Esteban Lorenzano
> On 15 Mar 2017, at 15:08, Raffaello Giulietti > wrote: > > Hi Esteban, > > I understand this is the current status of the UFFI, so I can certainly use > the workarounds discussed below. > > But I hope UFFI will soon offer a more "declarative" way to specify the > search folders, kind of L

Re: [Pharo-users] Specifying library dependencies in UFFI

2017-03-15 Thread Raffaello Giulietti
Hi Esteban, I understand this is the current status of the UFFI, so I can certainly use the workarounds discussed below. But I hope UFFI will soon offer a more "declarative" way to specify the search folders, kind of LD_LIBRARY_PATH mechanism but in the UFFI. Greetings Raffaello On 20

Re: [Pharo-users] Specifying library dependencies in UFFI

2017-03-15 Thread Esteban Lorenzano
Hi, UFFI cannot do what you want. If I understand well, you have: Pharo -> libA.dll -> libB.dll Pharo does a LoadLibrary(libA.dll), but has no control on how libA calls libB… and is not possible for us to influence it more than the predefined platform ways. One posible workaround (just po

Re: [Pharo-users] Specifying library dependencies in UFFI

2017-03-15 Thread Raffaello Giulietti
On 2017-03-15 13:51, Ben Coman wrote: On Wed, Mar 15, 2017 at 4:42 PM, Raffaello Giulietti mailto:raffaello.giulie...@lifeware.ch>> wrote: Hi Ben, my understanding is that SetDllDirectory only affects the search path of libraries that are loaded at *run-time* with LoadLibrary.

Re: [Pharo-users] snap package can't find vm-display-X11

2017-03-15 Thread Alistair Grant
On 14 March 2017 at 18:30, stepharong wrote: > This is super good that you are pushing this packaging. Yep, I wasn't looking forward to enabling i386 architecture, etc. on my home server (which I'm hoping not to upgrade for several years). This way I can have Pharo running on a fairly minimal sys

Re: [Pharo-users] Specifying library dependencies in UFFI

2017-03-15 Thread Ben Coman
On Wed, Mar 15, 2017 at 4:42 PM, Raffaello Giulietti < raffaello.giulie...@lifeware.ch> wrote: > Hi Ben, > > my understanding is that SetDllDirectory only affects the search path of > libraries that are loaded at *run-time* with LoadLibrary. > > What I'm asking for is a mechanism that works at *lo

Re: [Pharo-users] programmatic use of the language compiler

2017-03-15 Thread denker
> On 14 Mar 2017, at 11:23, Raffaello Giulietti > wrote: > > Hi, > > I'm wondering how to programmatically compile a method. I tried using a > variant of >ClassDescription>>compile:*:notifying: Yes, this is the Smalltalk API. You can use the compiler directly and then install the method

Re: [Pharo-users] MetaLinks with arbitrary number of arguments

2017-03-15 Thread denker
> On 15 Mar 2017, at 11:09, Peter Uhnak wrote: > > On Wed, Mar 15, 2017 at 10:49:51AM +0100, denker wrote: >> >>> On 15 Mar 2017, at 10:35, Peter Uhnak wrote: >>> >>> Hi, >>> >>> is it possible to create a metalink on arbitrary amount of arguments? >>> >>> Right now the metaObject and selec

[Pharo-users] [ANN] Collecting all Pharo related publications

2017-03-15 Thread Marcus Denker
Hi, We want to create a list of all Pharo related papers. I have added this page: http://pharo.org/web/PharoPublications it is linked from http://pharo.org/documentation Marcus

Re: [Pharo-users] MetaLinks with arbitrary number of arguments

2017-03-15 Thread Peter Uhnak
On Wed, Mar 15, 2017 at 10:49:51AM +0100, denker wrote: > > > On 15 Mar 2017, at 10:35, Peter Uhnak wrote: > > > > Hi, > > > > is it possible to create a metalink on arbitrary amount of arguments? > > > > Right now the metaObject and selector must have the same number of > > arguments, e.g. >

Re: [Pharo-users] MetaLinks with arbitrary number of arguments

2017-03-15 Thread denker
> On 15 Mar 2017, at 10:35, Peter Uhnak wrote: > > Hi, > > is it possible to create a metalink on arbitrary amount of arguments? > > Right now the metaObject and selector must have the same number of arguments, > e.g. > > MetaLink new > metaObject: [ :object :selector :args | ... ]; >

[Pharo-users] MetaLinks with arbitrary number of arguments

2017-03-15 Thread Peter Uhnak
Hi, is it possible to create a metalink on arbitrary amount of arguments? Right now the metaObject and selector must have the same number of arguments, e.g. MetaLink new metaObject: [ :object :selector :args | ... ]; selector: #value:value:value; arguments: #(object sele

Re: [Pharo-users] Specifying library dependencies in UFFI

2017-03-15 Thread Raffaello Giulietti
Hi Ben, my understanding is that SetDllDirectory only affects the search path of libraries that are loaded at *run-time* with LoadLibrary. What I'm asking for is a mechanism that works at *load-time*, when a library I'm accessing directly depends on another one which I'm not targeting direct

Re: [Pharo-users] Specifying library dependencies in UFFI

2017-03-15 Thread Raffaello Giulietti
Hi Phil, I'm familiar with all this, but it doesn't help. Suppose my code directly accesses "my.dll" which, in turn, depends on "her.dll" which my code does not need directly and suppose that library is located in folder "". How can I enforce the UFFI to perform the search there? BTW, the

Re: [Pharo-users] New Version of Pillar on Windows

2017-03-15 Thread stepharong
Oki You see I cannot compile the latest version of Entreprise Pharo on my machine. One day I will go back to it. Stef Hello Steph, Thank you and those that helped me on both Slack and Discord. This turned out to be an obsolescence issue! Mine and the April 2016 edition of Enterp

Re: [Pharo-users] programmatic use of the language compiler

2017-03-15 Thread p...@highoctane.be
You can set the NonInteractiveTranscript to be used when compiling and then set it back to the ThreadSafeTranscript when done. Will not play nice with other concurrent users of Transcript so make this in an atomic operation... Will allow you to catch the errors there. There was a thread about ha

Re: [Pharo-users] small user experience behavior

2017-03-15 Thread p...@highoctane.be
I am using TWM - Tiling Window Manager to put windows side by side properly when comparing things like that. I am using that all the time. Need to fix the shortcuts because I have to mouse around a bit too much at the moment. I was thinking of adding windows sizing and placement icons in SystemWin