[Pharo-users] Failure with ZdcPluginSSLSession on latest Pharo 32 bit/Win

2017-10-31 Thread Raffaello Giulietti
Hi Pharo 32 bit/Win users, I'm on the latest stock Pharo 32 bit/Win downloaded from http://files.pharo.org/platform/Pharo6.1-win.zip which contains the latest 60518 image. When evaluating Metacello new smalltalkhubUser: 'Moose' project: 'GToolkit'; configuration: 'GToolki

[Pharo-users] Pharo/Win on a HiDPI display

2017-10-23 Thread Raffaello Giulietti
Hi, not sure if this has already been discussed. I'm using Pharo/Win on a HiDPI (aka "retina") display scaled at 200%. Everything shows correctly scaled (widgets, fonts, icons, etc.), except for the cursor, which is not scaled at all in Pharo, so it is rendered half the expected size. Outside

Re: [Pharo-users] [Pharo-dev] [ANN] Pharo 6.0 released!

2017-06-06 Thread Raffaello Giulietti
On Tue, Jun 6, 2017 at 11:11 PM, Esteban Lorenzano wrote: Dear World, The time has come for Pharo 6.0! Nice! Thanks to all contributors. Greetings Raffaello

Re: [Pharo-users] Smalltalkers will, eventually, win. So says this old C++ programmer.

2017-05-09 Thread Raffaello Giulietti
I agree with Eric that some future programming environments will probably provide and encourage optional types + type inference. This doesn't necessarily contrast with late dynamic binding à la Smalltalk. If types are an entangled part of the language, like in virtually any statically typed pr

Re: [Pharo-users] using UFFI in non-crashing way

2017-05-07 Thread raffaello . giulietti
On 07/04/17 18:28, Dimitris Chloupis wrote: > Do you guys received my CPU exceptions solution message ? Because the > issue you described is already resolved by hardware. Simple and elegant > solution too > On Fri, 7 Apr 2017 at 11:03, Denis Kudriashov > wrote: > > >

Re: [Pharo-users] Process scheduling

2017-05-07 Thread raffaello . giulietti
Hi Ben, On 01/05/17 15:23, Ben Coman wrote: > > > I was responding to your literal question about ProcessScheduler and > what part of the system does the context switching. > Now I'm guessing your interest is more about user-level > multi-threaded behaviour of Processes, > so I hunted down som

Re: [Pharo-users] Process scheduling

2017-04-30 Thread raffaello . giulietti
On 30/04/17 17:01, Ben Coman wrote: > > > On Sun, Apr 30, 2017 at 10:11 PM, > wrote: > > Hi, > > I can't find a description on how ProcessorScheduler in Pharo (i.e., > Cog) is supposed to do context switches in absence of other > synchron

[Pharo-users] Process scheduling

2017-04-30 Thread raffaello . giulietti
Hi, I can't find a description on how ProcessorScheduler in Pharo (i.e., Cog) is supposed to do context switches in absence of other synchronization points. Is it following the BlueBook spec? Just to recall that model, the VM, when about to execute the current bytecode instruction of the current

Re: [Pharo-users] Octal multiplication

2017-04-23 Thread raffaello . giulietti
On 23/04/17 15:13, nacho wrote: > Hello, > This could sound like a dumb question, it may be. > If I print: > 8r3 * 8r3 I get 9. > It seems that Pharo converts first to decimal and then performs the > multiplication. How do I get the result in octal which should be 8r11? > Thanks! > Hi Nacho Ther

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

2017-03-17 Thread raffaello . giulietti
Hi Pierce, sure, this works on any Unix-like system. On 17/03/17 03:37, Pierce Ng wrote: > On Wed, Mar 15, 2017 at 09:31:45AM +0100, Raffaello Giulietti wrote: >> Suppose my code directly accesses "my.dll" which, in turn, depends >> on "her.dll" which my code

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

2017-03-16 Thread raffaello . giulietti
ectories listed in the PATH environment variable. > > > > > > This can be changed using the call LoadLibraryEx instead of > LoadLibrary > > Flags can be set to change the directories used > > > > > > https://msdn.

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

2017-03-16 Thread raffaello . giulietti
e call LoadLibraryEx instead of LoadLibrary > Flags can be set to change the directories used > > https://msdn.microsoft.com/en-us/library/windows/desktop/ms684179(v=vs.85).aspx > > > > Also see AddDllDirectory > https://msdn.microsoft.com/en-us/library/windows/desktop/hh3

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

2017-03-15 Thread Raffaello Giulietti
ssage that if you do not understand C then you should not be using the UFFI in the first place. On Wed, Mar 15, 2017 at 4:51 PM Esteban Lorenzano <mailto:esteba...@gmail.com>> wrote: > On 15 Mar 2017, at 15:44, Raffaello Giulietti mailto:raffaello.giulie...@lifeware.ch>&g

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

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

2017-03-15 Thread Raffaello Giulietti
u’re in the same position). Anyway, if you want to try it, it would be something like this: DynamicLoader loadLibrary: 'path/to/libB.dll’. DynamicLoader loadLibrary: 'path/to/libA.dll’. then you can try to execute functions of libA… cheers, Esteban On 15 Mar 2017, at 14:32, Raffaello Giul

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 LoadL

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

2017-03-15 Thread Raffaello Giulietti
not targeting directly. But I'll try whether SetDllDirectory also affects load-time searches. Anyway, I hope future versions of the UFFI to offer setting the search paths more easily. Greetings Raffaello On 2017-03-15 07:22, Ben Coman wrote: On Tue, Mar 14, 2017 at 11:23 PM,

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

[Pharo-users] Specifying library dependencies in UFFI

2017-03-14 Thread Raffaello Giulietti
Hi, say I want to directly use a library that depends on other libraries in different folders. How does UFFI proceed to find these other libraries? Is there a way to specify the search folders in UFFI? I'm on Windows and in Pharo5/6. Greetings Raffaello

Re: [Pharo-users] small user experience behavior

2017-03-14 Thread Raffaello Giulietti
mplement in the same class hierarchy, you will see a small green triangle close to the method name in order to browse overriden methods. If the method is implemented in other classes, you can browse the implementors. Regards, On Tue, Mar 14, 2017 at 1:56 PM, Raffaello Giulietti wrote: Hi, her

Re: [Pharo-users] small user experience behavior

2017-03-14 Thread Raffaello Giulietti
nd already ;-) On 2017-03-14 13:58, jtuc...@objektfabrik.de wrote: Raffaello, not sure if it really is what you want, but why not instead of clicking on another class search for implementors of the method you are currently browsing? Joachim Am 14.03.17 um 13:56 schrieb Raffaello Giul

[Pharo-users] small user experience behavior

2017-03-14 Thread Raffaello Giulietti
Hi, here's a situation I'm facing quite often: I'm reading the code of a method in the browser and need to see how the method with the same selector looks like in another class (in particular, in the same class hierarchy). In some IDEs, it's simply a matter of selecting another class. If such

[Pharo-users] programmatic use of the language compiler

2017-03-14 Thread Raffaello Giulietti
Hi, I'm wondering how to programmatically compile a method. I tried using a variant of ClassDescription>>compile:*:notifying: However, on a method with undeclared variables, when the Transcript is open there seems to be no way to avoid a message being written there. Further, the requestor

Re: [Pharo-users] Pharo Spur 64 VM

2017-03-08 Thread raffaello . giulietti
On 08/03/17 18:08, Peter Uhnak wrote: > On Tue, Mar 07, 2017 at 10:20:10AM +0100, Raffaello Giulietti wrote: > >> probably most of the developers related to Pharo use macOS > > Last time (~two years ago) I asked it was about ~1/3 each platform > http://www.strawpoll.m

Re: [Pharo-users] Pharo Spur 64 VM

2017-03-07 Thread Raffaello Giulietti
My guess is, yes, while 90% of the desktops still run Windows, probably most of the developers related to Pharo use macOS. And since macOS is similar to Linux, porting to Linux is easy while porting to Windows seems not for the reasons outlined by Clément. On 2017-03-07 04:58, Hernán Morales

Re: [Pharo-users] Pharo Spur 64 VM

2017-03-02 Thread raffaello . giulietti
Thanks Clément for the useful overview. Raffaello On 02/03/17 16:51, Clément Bera wrote: > Hi Raffaello, > > Reportedly, the VM without the JIT (pure interpreter, also called PharoS > or StackVM) works on windows 64 and FFI works with it if the VM compiled > with clang but not with gcc. There

Re: [Pharo-users] Pharo Spur 64 VM

2017-03-02 Thread raffaello . giulietti
On 07/02/17 07:13, Esteban Lorenzano wrote: > >> On 6 Feb 2017, at 21:41, Cyril Ferlicot D. wrote: >> >> Le 06/02/2017 à 21:31, Benoit St-Jean via Pharo-users a écrit : >> >> >> Hi! >> >> IIRC, the windows VM will need some more time to be ready. Only Linux >> and OSX ones are usable at the momen

Re: [Pharo-users] spotting methods with TODO, FIXME, etc. comments?

2017-03-01 Thread Raffaello Giulietti
with a pragma, for example , then from the Finder tool (WorldMenu>Tools>Finder), you search for pragma: In the left text field, input workInProgress, then in the drop down list at the right, select Pragmas. Hilaire Le 01/03/2017 à 18:53, Raffaello Giulietti a écrit : Hi community, many ID

[Pharo-users] spotting methods with TODO, FIXME, etc. comments?

2017-03-01 Thread Raffaello Giulietti
Hi community, many IDEs for other language usually offer a way to annotate methods with special comments like "TODO ...", "FIXME ...". Such methods can then be later retrieved easily in task lists and selected by simple clicks. Is there something similar in Pharo? Thanks

Re: [Pharo-users] suggestions mini-pane shut up

2017-02-28 Thread Raffaello Giulietti
Thanks Peter, this does it for me. > 1. Open settings > 2. Type in quality > 3. Uncheck nautilus plugin > > (or remove the plugin via top-right corner of nautilus window -> plugins manager -> remove QA) > > Peter

Re: [Pharo-users] suggestions mini-pane shut up

2017-02-28 Thread Raffaello Giulietti
On 2017-02-28 15:12, Dimitris Chloupis wrote: which version of Pharo you use ? PS: I do not need QA to remind me I am an idiot, coding is doing that to me every day just fine for 30 years now :D Fully agree with you ;-) Anyway, I want to be in control of the tools.

Re: [Pharo-users] suggestions mini-pane shut up

2017-02-28 Thread Raffaello Giulietti
t Pharo version are you using ? The screenshot was from Pharo 6. On 28 Feb 2017, at 15:06, Raffaello Giulietti wrote: Hi Sven, I already searched in the settings. Here is what I see in the Nautilus Browser settings: Code Browsing Nautilus Browser Show hierarchy by default?

Re: [Pharo-users] suggestions mini-pane shut up

2017-02-28 Thread Raffaello Giulietti
, Raffaello Giulietti <mailto:raffaello.giulie...@lifeware.ch>> wrote: Hi, I find the suggestions mini-pane that appears under a method code rather useless and distracting. I perfectly know that I'm an idiot, so there's no need for the tool to keep reminding me how smart

[Pharo-users] suggestions mini-pane shut up

2017-02-28 Thread Raffaello Giulietti
Hi, I find the suggestions mini-pane that appears under a method code rather useless and distracting. I perfectly know that I'm an idiot, so there's no need for the tool to keep reminding me how smart it is instead. Is there a way to get rid of it?

Re: [Pharo-users] UFFI and ByteArray

2017-02-23 Thread raffaello . giulietti
On 23/02/17 19:26, Esteban Lorenzano wrote: > >> On 23 Feb 2017, at 19:21, raffaello.giulie...@lifeware.ch >> wrote: >> >> On 23/02/17 19:17, Esteban Lorenzano wrote: >>> On 23 Feb 2017, at 19:11, raffaello.giulie...@lifeware.ch

Re: [Pharo-users] UFFI and ByteArray

2017-02-23 Thread raffaello . giulietti
nstantiated temporary ByteArray, then >>>> copying the latter to the C heap. >>>> >>>> Copying *from* the C heap might require explicitly looping over the >>>> single bytes. I say "might" because I still cannot find more direct way, >>>> as

Re: [Pharo-users] UFFI and ByteArray

2017-02-23 Thread raffaello . giulietti
00. >>> ba replaceFrom: 1 to: 50 with: ea startingAt: 51. >>> >>> >>> Am I missing some point? >>> >>> >>> >>> >>>> On 2017-02-21 17:20, Esteban Lorenzano wrote: >>>> usually, something more or less like this: >>>&

Re: [Pharo-users] UFFI and ByteArray

2017-02-23 Thread raffaello . giulietti
ny suggestion on more effective copy operations? Thanks Raffaello On 22/02/17 15:08, Raffaello Giulietti wrote: > Hi Esteban, > > not sure I'm understanding your snippet correctly. > > Below is my try. It throws a SubscriptOutOfBounds exception in the last &g

Re: [Pharo-users] UFFI and ByteArray

2017-02-22 Thread Raffaello Giulietti
heers, Esteban On 21 Feb 2017, at 17:13, Raffaello Giulietti wrote: Hi, I'm having a hard time finding documentation on how to copy a portion of a ByteArray to/from another portion of a heap allocated C byte array with UFFI. My current reference is https://ci.inria.fr/pharo-contrib

Re: [Pharo-users] forcing window closing

2017-02-22 Thread Raffaello Giulietti
Thanks On 2017-02-22 14:19, Denis Kudriashov wrote: Try open inspector on it (by halo menu alt+shift+click on Mac). And then you can evaluate: self delete. or World removeMorph: self 2017-02-22 14:12 GMT+01:00 Raffaello Giulietti mailto:raffaello.giulie...@lifeware.ch>>:

[Pharo-users] forcing window closing

2017-02-22 Thread Raffaello Giulietti
Hi, after 3 minutes working, I'm in a situation where a System Browser window cannot be closed. While the button is there, with tool tip and visual feedback, clicking it simply does nothing. Minimization and maximization still work. Is there a way to force a close?

Re: [Pharo-users] running code on image starts and quitting

2017-02-21 Thread Raffaello Giulietti
On 2017-02-21 17:43, Cyril Ferlicot D. wrote: On 21/02/2017 17:29, Raffaello Giulietti wrote: Hi Cyril, doesn't seem to work in my case. Just for fun, I try to set a class instance variable to Time current in the class-side #startUp method and quit the image with saving. Upon restartin

Re: [Pharo-users] running code on image starts and quitting

2017-02-21 Thread Raffaello Giulietti
On 2017-02-21 17:10, Cyril Ferlicot D. wrote: On 21/02/2017 16:54, Raffaello Giulietti wrote: Hi guys, I need to run some Pharo code whenever the image starts. Similarly on (clean) quitting. What's the recommended practice? Regards RG Hello! Every classes should be able to overrid

[Pharo-users] UFFI and ByteArray

2017-02-21 Thread Raffaello Giulietti
Hi, I'm having a hard time finding documentation on how to copy a portion of a ByteArray to/from another portion of a heap allocated C byte array with UFFI. My current reference is https://ci.inria.fr/pharo-contribution/view/Books/job/PharoBookWorkInProgress/lastSuccessfulBuild/artifact/book

[Pharo-users] running code on image starts and quitting

2017-02-21 Thread Raffaello Giulietti
Hi guys, I need to run some Pharo code whenever the image starts. Similarly on (clean) quitting. What's the recommended practice? Regards RG