Pharo-users
By thread
pharo-users@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
May 2018
- 79 participants
- 452 messages
Re: [Pharo-users] How to LAN feature
by Hilaire
No idea about what it is.
Le 14/05/2018 à 15:03, Sean P. DeNigris a écrit :
> HilaireFernandes wrote
>> I need a strategy that will work on Windows too
> I assume you know about ProcessWrapper. Is there no Windows command to get
> similar info?
--
Dr. Geo
http://drgeo.eu
May 14, 2018
Is there a tonel:// format for repos?
by Tim Mackinnon
Hi - I converted my project to tonel, and am looking to hook it up to my gitlab pipeline, and for older projects I had a run.st <http://run.st/> script that did:
Metacello new
baseline: 'WillowPagerDuty';
repository: âfiletree://../src';
load.
I get a not found error when I run that, is there a new repo type for tonel eg?
Metacello new
baseline: 'WillowPagerDuty';
repository: 'tonel://../src';
load.
Or is this the PR Esteban was working on earlier this month so that filetree can support tonel? If so, it would be very good to get this support as it makes it much easier to write generic scripts to run in CI projects without having to reference branch names to build things (as its simply the source in you git directory that you want to build locally )
Tim
May 14, 2018
Re: [Pharo-users] How to LAN feature
by Sean P. DeNigris
HilaireFernandes wrote
> I need a strategy that will work on Windows too
I assume you know about ProcessWrapper. Is there no Windows command to get
similar info?
-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
May 14, 2018
Re: [Pharo-users] WeakXxx and Pharo7+ (was: Re: Package extension. Adding instance variables to classes)
by Herbert VojÄÃk
Guillermo Polito wrote:
>
>
> On Mon, May 14, 2018 at 11:22 AM, Herbert VojÄÃk <herby(a)mailbox.sk
> <mailto:herby@mailbox.sk>> wrote:
>
>
>
> Guillermo Polito wrote:
>
>
> On Sun, May 13, 2018 at 6:37 PM, Herbert VojÄÃk
> <herby(a)mailbox.sk <mailto:herby@mailbox.sk>
> <mailto:herby@mailbox.sk <mailto:herby@mailbox.sk>>> wrote:
>
>
>
> Guillermo Polito wrote:
>
> Just be careful, that privateState thing looks like a
> Moose only
> Famix feature. It't not available in plain Pharo objects :)
>
>
> In ES6 mailing list, they had this problem re how to do private
> state for objects, and it was shown that having private
> state is
> sort of isomorphic to having WeakMap indexed by objects. So
> in case
> of Pharo, I'd say using WeakIdentitityKeyDictionary can do the
> trick. Without resorting to any external dependency.
>
>
> This works if the WeakMap is ephemeral. We should see in latest
> Pharo7 if Ephemerons are working.
>
>
> Isn't Weak[Identity]KeyDictionary meant to have weak keys?
>
>
> Yes
>
> Since it is named after that and contains it in its docs? Or is
> Pharo7 thinking about removing WeakXxx from the vm / image
> completely :-o ?
>
>
> No, what makes you say so?
"This works if ... Ephemerons are working" of yours. Not a correct
understanding, it seems. :-)
> What I said is that there is a (not so) "new" finalization mechanism
> called ephemerons implemented in the VM since some time ago, that avoids
> memory leaks when using weak dictionarys.
>
> WeakArrays work ok.
>
> WeakDictionaries may generate a memory leak if a **strong** value has a
> reference to a __weak__ key.
Ah. Didn't know that, sorry.
> Herby
>
> On Wed, May 9, 2018 at 2:09 AM, Alidra Abdelghani via
> Pharo-users <pharo-users(a)lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>>> wrote:
>
>
>
> ---------- Forwarded message ----------
> From: Alidra Abdelghani <alidrandco(a)yahoo.fr
> <mailto:alidrandco@yahoo.fr>
> <mailto:alidrandco@yahoo.fr <mailto:alidrandco@yahoo.fr>>
> <mailto:alidrandco@yahoo.fr
> <mailto:alidrandco@yahoo.fr> <mailto:alidrandco@yahoo.fr
> <mailto:alidrandco@yahoo.fr>>>>
> To: Pavel Krivanek <pavel.krivanek(a)gmail.com
> <mailto:pavel.krivanek@gmail.com>
> <mailto:pavel.krivanek@gmail.com
> <mailto:pavel.krivanek@gmail.com>>
> <mailto:pavel.krivanek@gmail.com
> <mailto:pavel.krivanek@gmail.com>
> <mailto:pavel.krivanek@gmail.com
> <mailto:pavel.krivanek@gmail.com>>>>
> Cc: Any question about pharo is welcome
> <pharo-users(a)lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>>>
> Bcc:
> Date: Wed, 9 May 2018 01:09:06 +0100
> Subject: Re: Package extension. Adding instance
> variables
> to classes
> Hi Pavel,
>
> Thank you for your answer.
> I actually didnât know about this mechanism.
> I think it is will do the job :)
> I have probably to rewrite some parts pf my code
> to access my
> variables through privateState. no?
>
>
> Thanks again
> Abdelghani
>
> On 07 May 2018, at 13:15,
> pharo-users-request(a)lists.pharo.org
> <mailto:pharo-users-request@lists.pharo.org>
> <mailto:pharo-users-request@lists.pharo.org
> <mailto:pharo-users-request@lists.pharo.org>>
> <mailto:pharo-users-request@lists.pharo.org
> <mailto:pharo-users-request@lists.pharo.org>
> <mailto:pharo-users-request@lists.pharo.org
> <mailto:pharo-users-request@lists.pharo.org>>> wrote:
>
>
> Message: 1
> Date: Mon, 7 May 2018 13:43:56 +0200
> From: Pavel Krivanek <pavel.krivanek(a)gmail.com
> <mailto:pavel.krivanek@gmail.com>
> <mailto:pavel.krivanek@gmail.com
> <mailto:pavel.krivanek@gmail.com>>
> <mailto:pavel.krivanek@gmail.com
> <mailto:pavel.krivanek@gmail.com>
> <mailto:pavel.krivanek@gmail.com
> <mailto:pavel.krivanek@gmail.com>>>>
> To: Any question about pharo is welcome
> <pharo-users(a)lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>>>
> Subject: Re: [Pharo-users] Package extension.
> Adding
> instance
> variables to classes
> Message-ID:
>
> <CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN+pbc+Hsd=trMnmuiJqw(a)mail.gmail.com
> <mailto:trMnmuiJqw@mail.gmail.com>
> <mailto:trMnmuiJqw@mail.gmail.com
> <mailto:trMnmuiJqw@mail.gmail.com>>
> <mailto:CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN+pbc+Hsd
> <mailto:CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN%2Bpbc%2BHsd>
>
> <mailto:CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN%2Bpbc%2BHsd
> <mailto:CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN%252Bpbc%252BHsd>>=trMnmuiJqw(a)mail.gmail.com
> <mailto:trMnmuiJqw@mail.gmail.com>
> <mailto:trMnmuiJqw@mail.gmail.com
> <mailto:trMnmuiJqw@mail.gmail.com>>>>
> Content-Type: text/plain; charset="utf-8"
>
> 2018-05-07 12:25 GMT+02:00 Alidra Abdelghani via
> Pharo-users <
> pharo-users(a)lists.pharo.org <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>>>:
>
>
>
> ---------- P?eposlan? zpr?va ----------
> From: Alidra Abdelghani
> <alidrandco(a)yahoo.fr <mailto:alidrandco@yahoo.fr>
> <mailto:alidrandco@yahoo.fr
> <mailto:alidrandco@yahoo.fr>>
> <mailto:alidrandco@yahoo.fr
> <mailto:alidrandco@yahoo.fr>
> <mailto:alidrandco@yahoo.fr
> <mailto:alidrandco@yahoo.fr>>>>
> To:pharo-users@lists.pharo.org
> <mailto:To%3Apharo-users@lists.pharo.org>
> <mailto:To%3Apharo-users@lists.pharo.org
> <mailto:To%253Apharo-users@lists.pharo.org>>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>>
> Cc:
> Bcc:
> Date: Mon, 7 May 2018 11:25:49 +0100
> Subject: Package extension. Adding instance
> variables to classes
> Hi,
>
> I am working on a package named
> ClassNamesAnalyzer
> and I need to
> add code
> to third party classes in other packages (for
> instance the FAMIX-Core
> package).
> ?Extending? third party classes with
> methods is
> easy; I just need to
> categorise my methods under the
> *ClassNamesAnalyzer
> protocole so that
> loading my package will load them in the
> image.
> However, if I want to add instance
> variables to
> theses classes,
> they are
> not there when I load the package in a new
> image.
>
> *So my question is* : is there a way to
> include
> instance variables
> addition to other packages in my package?
>
>
> Currently not, you should use privateState
>
>
> *Another question is* : is it good
> practice to add
> instance
> variables to
> classes in third party packages and is
> there a way
> to avoid it
> (because I
> am not very confortable with that idea)?
>
>
> It is not, see
> FAMIXContainerEntity>>#definedAnnotationTypes how
> this issue
> is currently being solved using the privateState.
>
> Cheers,
> -- Pavel
>
>
>
> Thanks in advance,
> Abdelghani
>
>
>
>
>
>
>
> --
>
>
> Guille Polito
>
> Research Engineer
>
> Centre de Recherche en Informatique, Signal et
> Automatique de Lille
>
> CRIStAL - UMR 9189
>
> French National Center for Scientific Research -
> _http://www.cnrs.fr_
>
>
> *Web:* _http://guillep.github.io_
>
> *Phone: *+33 06 52 70 66 13
>
>
>
>
> --
>
>
>
> Guille Polito
>
> Research Engineer
>
> Centre de Recherche en Informatique, Signal et Automatique de Lille
>
> CRIStAL - UMR 9189
>
> French National Center for Scientific Research -
> _http://www.cnrs.fr_
>
>
> *Web:* _http://guillep.github.io_
>
> *Phone: *+33 06 52 70 66 13
>
>
>
>
> --
>
>
>
> Guille Polito
>
> Research Engineer
>
> Centre de Recherche en Informatique, Signal et Automatique de Lille
>
> CRIStAL - UMR 9189
>
> French National Center for Scientific Research - _http://www.cnrs.fr_
>
>
> *Web:* _http://guillep.github.io_
>
> *Phone: *+33 06 52 70 66 13
>
May 14, 2018
Re: [Pharo-users] Pharo70 session start and silent failures
by Guillermo Polito
On Thu, May 3, 2018 at 3:13 PM, Holger Freyther <holger(a)freyther.de> wrote:
> I am facing a problem with the new SessionManager>>#snapshot:andQuit:
> code. I have had plenty Pharo70 images that didn't restore anymore as the
> code is waiting for the "wait" semaphore. For sure it is something my code
> is doing but could anyone think of ways to make it more robust and handle
> failures more gracefully? My main concerns are:
>
> * When the failure becomes noticeable it is too late. :(
> * It fails silently. Maybe WorkingSession>>#runStartup: shouldn't rely on
> the UIManager doing the right thing (before the UI was fully initialized?)
> * Debugging is hard, there is no indication of why it broke, and getting
> to the situation of breakage takes a bit of time (installing the
> baseline..).
>
Can you give me more details about how to reproduce it?
You're loading a baseline as a startup action? As a startup script?
>
> holger
>
>
>
>
--
Guille Polito
Research Engineer
Centre de Recherche en Informatique, Signal et Automatique de Lille
CRIStAL - UMR 9189
French National Center for Scientific Research - *http://www.cnrs.fr
<http://www.cnrs.fr>*
*Web:* *http://guillep.github.io* <http://guillep.github.io>
*Phone: *+33 06 52 70 66 13
May 14, 2018
Re: [Pharo-users] WeakXxx and Pharo7+ (was: Re: Package extension. Adding instance variables to classes)
by Guillermo Polito
On Mon, May 14, 2018 at 11:22 AM, Herbert VojÄÃk <herby(a)mailbox.sk> wrote:
>
>
> Guillermo Polito wrote:
>
>>
>> On Sun, May 13, 2018 at 6:37 PM, Herbert VojÄÃk <herby(a)mailbox.sk
>> <mailto:herby@mailbox.sk>> wrote:
>>
>>
>>
>> Guillermo Polito wrote:
>>
>> Just be careful, that privateState thing looks like a Moose only
>> Famix feature. It't not available in plain Pharo objects :)
>>
>>
>> In ES6 mailing list, they had this problem re how to do private
>> state for objects, and it was shown that having private state is
>> sort of isomorphic to having WeakMap indexed by objects. So in case
>> of Pharo, I'd say using WeakIdentitityKeyDictionary can do the
>> trick. Without resorting to any external dependency.
>>
>>
>> This works if the WeakMap is ephemeral. We should see in latest Pharo7 if
>> Ephemerons are working.
>>
>
> Isn't Weak[Identity]KeyDictionary meant to have weak keys?
Yes
> Since it is named after that and contains it in its docs? Or is Pharo7
> thinking about removing WeakXxx from the vm / image completely :-o ?
>
No, what makes you say so?
What I said is that there is a (not so) "new" finalization mechanism called
ephemerons implemented in the VM since some time ago, that avoids memory
leaks when using weak dictionarys.
WeakArrays work ok.
WeakDictionaries may generate a memory leak if a **strong** value has a
reference to a __weak__ key.
>
> Herby
>>
>> On Wed, May 9, 2018 at 2:09 AM, Alidra Abdelghani via
>> Pharo-users <pharo-users(a)lists.pharo.org
>> <mailto:pharo-users@lists.pharo.org>
>> <mailto:pharo-users@lists.pharo.org
>> <mailto:pharo-users@lists.pharo.org>>> wrote:
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Alidra Abdelghani <alidrandco(a)yahoo.fr
>> <mailto:alidrandco@yahoo.fr>
>> <mailto:alidrandco@yahoo.fr <mailto:alidrandco@yahoo.fr>>>
>> To: Pavel Krivanek <pavel.krivanek(a)gmail.com
>> <mailto:pavel.krivanek@gmail.com>
>> <mailto:pavel.krivanek@gmail.com
>> <mailto:pavel.krivanek@gmail.com>>>
>> Cc: Any question about pharo is welcome
>> <pharo-users(a)lists.pharo.org <mailto:pharo-users@lists.pharo.org>
>> <mailto:pharo-users@lists.pharo.org
>> <mailto:pharo-users@lists.pharo.org>>>
>> Bcc:
>> Date: Wed, 9 May 2018 01:09:06 +0100
>> Subject: Re: Package extension. Adding instance variables
>> to classes
>> Hi Pavel,
>>
>> Thank you for your answer.
>> I actually didnât know about this mechanism.
>> I think it is will do the job :)
>> I have probably to rewrite some parts pf my code to access
>> my
>> variables through privateState. no?
>>
>>
>> Thanks again
>> Abdelghani
>>
>> On 07 May 2018, at 13:15,
>> pharo-users-request(a)lists.pharo.org
>> <mailto:pharo-users-request@lists.pharo.org>
>> <mailto:pharo-users-request@lists.pharo.org
>> <mailto:pharo-users-request@lists.pharo.org>> wrote:
>>
>>
>> Message: 1
>> Date: Mon, 7 May 2018 13:43:56 +0200
>> From: Pavel Krivanek <pavel.krivanek(a)gmail.com
>> <mailto:pavel.krivanek@gmail.com>
>> <mailto:pavel.krivanek@gmail.com
>> <mailto:pavel.krivanek@gmail.com>>>
>> To: Any question about pharo is welcome
>> <pharo-users(a)lists.pharo.org
>> <mailto:pharo-users@lists.pharo.org>
>> <mailto:pharo-users@lists.pharo.org
>> <mailto:pharo-users@lists.pharo.org>>>
>> Subject: Re: [Pharo-users] Package extension. Adding
>> instance
>> variables to classes
>> Message-ID:
>> <CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN+pbc+Hsd=
>> trMnmuiJqw(a)mail.gmail.com
>> <mailto:trMnmuiJqw@mail.gmail.com>
>> <mailto:CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN+pbc+Hsd
>> <mailto:CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN%2Bpbc%2BHsd>=trMnmu
>> iJqw(a)mail.gmail.com
>> <mailto:trMnmuiJqw@mail.gmail.com>>>
>> Content-Type: text/plain; charset="utf-8"
>>
>> 2018-05-07 12:25 GMT+02:00 Alidra Abdelghani via
>> Pharo-users <
>> pharo-users(a)lists.pharo.org
>> <mailto:pharo-users@lists.pharo.org>
>> <mailto:pharo-users@lists.pharo.org
>> <mailto:pharo-users@lists.pharo.org>>>:
>>
>>
>>
>> ---------- P?eposlan? zpr?va ----------
>> From: Alidra Abdelghani <alidrandco(a)yahoo.fr
>> <mailto:alidrandco@yahoo.fr>
>> <mailto:alidrandco@yahoo.fr
>> <mailto:alidrandco@yahoo.fr>>>
>> To:pharo-users@lists.pharo.org
>> <mailto:To%3Apharo-users@lists.pharo.org>
>> <mailto:pharo-users@lists.pharo.org
>> <mailto:pharo-users@lists.pharo.org>>
>> Cc:
>> Bcc:
>> Date: Mon, 7 May 2018 11:25:49 +0100
>> Subject: Package extension. Adding instance
>> variables to classes
>> Hi,
>>
>> I am working on a package named ClassNamesAnalyzer
>> and I need to
>> add code
>> to third party classes in other packages (for
>> instance the FAMIX-Core
>> package).
>> ?Extending? third party classes with methods is
>> easy; I just need to
>> categorise my methods under the *ClassNamesAnalyzer
>> protocole so that
>> loading my package will load them in the image.
>> However, if I want to add instance variables to
>> theses classes,
>> they are
>> not there when I load the package in a new image.
>>
>> *So my question is* : is there a way to include
>> instance variables
>> addition to other packages in my package?
>>
>>
>> Currently not, you should use privateState
>>
>>
>> *Another question is* : is it good practice to add
>> instance
>> variables to
>> classes in third party packages and is there a way
>> to avoid it
>> (because I
>> am not very confortable with that idea)?
>>
>>
>> It is not, see
>> FAMIXContainerEntity>>#definedAnnotationTypes how
>> this issue
>> is currently being solved using the privateState.
>>
>> Cheers,
>> -- Pavel
>>
>>
>>
>> Thanks in advance,
>> Abdelghani
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>>
>> Guille Polito
>>
>> Research Engineer
>>
>> Centre de Recherche en Informatique, Signal et Automatique de
>> Lille
>>
>> CRIStAL - UMR 9189
>>
>> French National Center for Scientific Research -
>> _http://www.cnrs.fr_
>>
>>
>> *Web:* _http://guillep.github.io_
>>
>> *Phone: *+33 06 52 70 66 13
>>
>>
>>
>>
>> --
>>
>>
>>
>> Guille Polito
>>
>> Research Engineer
>>
>> Centre de Recherche en Informatique, Signal et Automatique de Lille
>>
>> CRIStAL - UMR 9189
>>
>> French National Center for Scientific Research - _http://www.cnrs.fr_
>>
>>
>> *Web:* _http://guillep.github.io_
>>
>> *Phone: *+33 06 52 70 66 13
>>
>>
--
Guille Polito
Research Engineer
Centre de Recherche en Informatique, Signal et Automatique de Lille
CRIStAL - UMR 9189
French National Center for Scientific Research - *http://www.cnrs.fr
<http://www.cnrs.fr>*
*Web:* *http://guillep.github.io* <http://guillep.github.io>
*Phone: *+33 06 52 70 66 13
May 14, 2018
Re: [Pharo-users] How to LAN feature
by Henrik Sperre Johansen
Julián Maestri-2 wrote
>>
>> (impossible without the added networking prims, and still unreliable
>> whether it will find the correct ones with...)
>>
>
> The problem seems to be here: he->h_addr_list[0] its a list of addresses
> and only the first one is used.
That's the "old" ipv4 primitive.
The "new" ipv4/ipv6 primitive
(sqResolverGetAddressInfoHostSizeServiceSizeFlagsFamilyTypeProtocol) uses
getaddrinfo instead, and lets you interate over the results; this is what
the SSDP package tries to do when you specify allLocalV4Addresses.
It's unreliable because:
1) Finding the correct hostname can be difficult (iirc, some vm's fail the
hostname prim, and always returns the fallback 'localhost')
2) It uses DNS lookups, which can both be slow, and depend on network
configuration.
3) The correct domain to use when you want aggregated results over multiple
interfaces (.local? nothing?) differs from platform to platform. (iirc, OSX
only ever returns a single entry if adding .local)
"However when I activate a second network interface, this last one returns
an empty collection"
I just tested on a Windows 10 machine with 6.1 release (Pharo 6.1
stable\Pharo.exe
CoInterpreter VMMaker.oscog-eem.2254 uuid:
4f2c2cce-f4a2-469a-93f1-97ed941df0ad Jul 20 2017), for me the statement
part := SSDPParticipant new.
part allLocalV4Addresses.
correctly returns 1/2/1 addresses when connecting/disconnecting to a
wireless network :/
Why lookup would start to fail when you activate an interface, and stay
failing after you remove it, I couldn't say, but I can say that
SSDPParticipant >> hostName returning names that DNS won't resolve properly
for some or another reason has been a problem I've encountered before.
Cheers,
Henry
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
May 14, 2018
WeakXxx and Pharo7+ (was: Re: Package extension. Adding instance variables to classes)
by Herbert VojÄÃk
Guillermo Polito wrote:
>
> On Sun, May 13, 2018 at 6:37 PM, Herbert VojÄÃk <herby(a)mailbox.sk
> <mailto:herby@mailbox.sk>> wrote:
>
>
>
> Guillermo Polito wrote:
>
> Just be careful, that privateState thing looks like a Moose only
> Famix feature. It't not available in plain Pharo objects :)
>
>
> In ES6 mailing list, they had this problem re how to do private
> state for objects, and it was shown that having private state is
> sort of isomorphic to having WeakMap indexed by objects. So in case
> of Pharo, I'd say using WeakIdentitityKeyDictionary can do the
> trick. Without resorting to any external dependency.
>
>
> This works if the WeakMap is ephemeral. We should see in latest Pharo7
> if Ephemerons are working.
Isn't Weak[Identity]KeyDictionary meant to have weak keys? Since it is
named after that and contains it in its docs? Or is Pharo7 thinking
about removing WeakXxx from the vm / image completely :-o ?
> Herby
>
> On Wed, May 9, 2018 at 2:09 AM, Alidra Abdelghani via
> Pharo-users <pharo-users(a)lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>> wrote:
>
>
>
> ---------- Forwarded message ----------
> From: Alidra Abdelghani <alidrandco(a)yahoo.fr
> <mailto:alidrandco@yahoo.fr>
> <mailto:alidrandco@yahoo.fr <mailto:alidrandco@yahoo.fr>>>
> To: Pavel Krivanek <pavel.krivanek(a)gmail.com
> <mailto:pavel.krivanek@gmail.com>
> <mailto:pavel.krivanek@gmail.com
> <mailto:pavel.krivanek@gmail.com>>>
> Cc: Any question about pharo is welcome
> <pharo-users(a)lists.pharo.org <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>>
> Bcc:
> Date: Wed, 9 May 2018 01:09:06 +0100
> Subject: Re: Package extension. Adding instance variables
> to classes
> Hi Pavel,
>
> Thank you for your answer.
> I actually didnât know about this mechanism.
> I think it is will do the job :)
> I have probably to rewrite some parts pf my code to access my
> variables through privateState. no?
>
>
> Thanks again
> Abdelghani
>
> On 07 May 2018, at 13:15,
> pharo-users-request(a)lists.pharo.org
> <mailto:pharo-users-request@lists.pharo.org>
> <mailto:pharo-users-request@lists.pharo.org
> <mailto:pharo-users-request@lists.pharo.org>> wrote:
>
>
> Message: 1
> Date: Mon, 7 May 2018 13:43:56 +0200
> From: Pavel Krivanek <pavel.krivanek(a)gmail.com
> <mailto:pavel.krivanek@gmail.com>
> <mailto:pavel.krivanek@gmail.com
> <mailto:pavel.krivanek@gmail.com>>>
> To: Any question about pharo is welcome
> <pharo-users(a)lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>>
> Subject: Re: [Pharo-users] Package extension. Adding
> instance
> variables to classes
> Message-ID:
>
> <CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN+pbc+Hsd=trMnmuiJqw(a)mail.gmail.com
> <mailto:trMnmuiJqw@mail.gmail.com>
> <mailto:CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN+pbc+Hsd
> <mailto:CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN%2Bpbc%2BHsd>=trMnmuiJqw(a)mail.gmail.com
> <mailto:trMnmuiJqw@mail.gmail.com>>>
> Content-Type: text/plain; charset="utf-8"
>
> 2018-05-07 12:25 GMT+02:00 Alidra Abdelghani via
> Pharo-users <
> pharo-users(a)lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>>:
>
>
>
> ---------- P?eposlan? zpr?va ----------
> From: Alidra Abdelghani <alidrandco(a)yahoo.fr
> <mailto:alidrandco@yahoo.fr>
> <mailto:alidrandco@yahoo.fr
> <mailto:alidrandco@yahoo.fr>>>
> To:pharo-users@lists.pharo.org
> <mailto:To%3Apharo-users@lists.pharo.org>
> <mailto:pharo-users@lists.pharo.org
> <mailto:pharo-users@lists.pharo.org>>
> Cc:
> Bcc:
> Date: Mon, 7 May 2018 11:25:49 +0100
> Subject: Package extension. Adding instance
> variables to classes
> Hi,
>
> I am working on a package named ClassNamesAnalyzer
> and I need to
> add code
> to third party classes in other packages (for
> instance the FAMIX-Core
> package).
> ?Extending? third party classes with methods is
> easy; I just need to
> categorise my methods under the *ClassNamesAnalyzer
> protocole so that
> loading my package will load them in the image.
> However, if I want to add instance variables to
> theses classes,
> they are
> not there when I load the package in a new image.
>
> *So my question is* : is there a way to include
> instance variables
> addition to other packages in my package?
>
>
> Currently not, you should use privateState
>
>
> *Another question is* : is it good practice to add
> instance
> variables to
> classes in third party packages and is there a way
> to avoid it
> (because I
> am not very confortable with that idea)?
>
>
> It is not, see
> FAMIXContainerEntity>>#definedAnnotationTypes how
> this issue
> is currently being solved using the privateState.
>
> Cheers,
> -- Pavel
>
>
>
> Thanks in advance,
> Abdelghani
>
>
>
>
>
>
>
> --
>
>
>
> Guille Polito
>
> Research Engineer
>
> Centre de Recherche en Informatique, Signal et Automatique de Lille
>
> CRIStAL - UMR 9189
>
> French National Center for Scientific Research -
> _http://www.cnrs.fr_
>
>
> *Web:* _http://guillep.github.io_
>
> *Phone: *+33 06 52 70 66 13
>
>
>
>
> --
>
>
>
> Guille Polito
>
> Research Engineer
>
> Centre de Recherche en Informatique, Signal et Automatique de Lille
>
> CRIStAL - UMR 9189
>
> French National Center for Scientific Research - _http://www.cnrs.fr_
>
>
> *Web:* _http://guillep.github.io_
>
> *Phone: *+33 06 52 70 66 13
>
May 14, 2018
Re: [Pharo-users] Package extension. Adding instance variables to classes
by Guillermo Polito
On Sun, May 13, 2018 at 6:37 PM, Herbert VojÄÃk <herby(a)mailbox.sk> wrote:
>
>
> Guillermo Polito wrote:
>
>> Just be careful, that privateState thing looks like a Moose only Famix
>> feature. It't not available in plain Pharo objects :)
>>
>
> In ES6 mailing list, they had this problem re how to do private state for
> objects, and it was shown that having private state is sort of isomorphic
> to having WeakMap indexed by objects. So in case of Pharo, I'd say using
> WeakIdentitityKeyDictionary can do the trick. Without resorting to any
> external dependency.
>
This works if the WeakMap is ephemeral. We should see in latest Pharo7 if
Ephemerons are working.
>
> Herby
>
> On Wed, May 9, 2018 at 2:09 AM, Alidra Abdelghani via Pharo-users <
>> pharo-users(a)lists.pharo.org <mailto:pharo-users@lists.pharo.org>> wrote:
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Alidra Abdelghani <alidrandco(a)yahoo.fr
>> <mailto:alidrandco@yahoo.fr>>
>> To: Pavel Krivanek <pavel.krivanek(a)gmail.com
>> <mailto:pavel.krivanek@gmail.com>>
>> Cc: Any question about pharo is welcome <pharo-users(a)lists.pharo.org
>> <mailto:pharo-users@lists.pharo.org>>
>> Bcc:
>> Date: Wed, 9 May 2018 01:09:06 +0100
>> Subject: Re: Package extension. Adding instance variables to classes
>> Hi Pavel,
>>
>> Thank you for your answer.
>> I actually didnât know about this mechanism.
>> I think it is will do the job :)
>> I have probably to rewrite some parts pf my code to access my
>> variables through privateState. no?
>>
>>
>> Thanks again
>> Abdelghani
>>
>>> On 07 May 2018, at 13:15, pharo-users-request(a)lists.pharo.org
>>> <mailto:pharo-users-request@lists.pharo.org> wrote:
>>>
>>>
>>> Message: 1
>>> Date: Mon, 7 May 2018 13:43:56 +0200
>>> From: Pavel Krivanek <pavel.krivanek(a)gmail.com
>>> <mailto:pavel.krivanek@gmail.com>>
>>> To: Any question about pharo is welcome
>>> <pharo-users(a)lists.pharo.org <mailto:pharo-users@lists.pharo.org>>
>>> Subject: Re: [Pharo-users] Package extension. Adding instance
>>> variables to classes
>>> Message-ID:
>>> <CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN+pbc+Hsd=trMnmuiJqw(a)mail.gmail.com
>>> <mailto:CAHN2FzeMiBL4Y8asJ0XCjS2AQdxycoN+pbc+Hsd=trMnmuiJqw@
>>> mail.gmail.com>>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>> 2018-05-07 12:25 GMT+02:00 Alidra Abdelghani via Pharo-users <
>>> pharo-users(a)lists.pharo.org <mailto:pharo-users@lists.pharo.org>>:
>>>
>>>
>>>>
>>>> ---------- P?eposlan? zpr?va ----------
>>>> From: Alidra Abdelghani <alidrandco(a)yahoo.fr
>>>> <mailto:alidrandco@yahoo.fr>>
>>>> To:pharo-users@lists.pharo.org <mailto:pharo-users@lists.pharo.org>
>>>> Cc:
>>>> Bcc:
>>>> Date: Mon, 7 May 2018 11:25:49 +0100
>>>> Subject: Package extension. Adding instance variables to classes
>>>> Hi,
>>>>
>>>> I am working on a package named ClassNamesAnalyzer and I need to
>>>> add code
>>>> to third party classes in other packages (for instance the
>>>> FAMIX-Core
>>>> package).
>>>> ?Extending? third party classes with methods is easy; I just need to
>>>> categorise my methods under the *ClassNamesAnalyzer protocole so
>>>> that
>>>> loading my package will load them in the image.
>>>> However, if I want to add instance variables to theses classes,
>>>> they are
>>>> not there when I load the package in a new image.
>>>>
>>>> *So my question is* : is there a way to include instance variables
>>>> addition to other packages in my package?
>>>>
>>>>
>>> Currently not, you should use privateState
>>>
>>>
>>> *Another question is* : is it good practice to add instance
>>>> variables to
>>>> classes in third party packages and is there a way to avoid it
>>>> (because I
>>>> am not very confortable with that idea)?
>>>>
>>>>
>>> It is not, see FAMIXContainerEntity>>#definedAnnotationTypes how
>>> this issue
>>> is currently being solved using the privateState.
>>>
>>> Cheers,
>>> -- Pavel
>>>
>>>
>>>
>>>> Thanks in advance,
>>>> Abdelghani
>>>>
>>>
>>
>>
>>
>>
>>
>> --
>>
>>
>>
>> Guille Polito
>>
>> Research Engineer
>>
>> Centre de Recherche en Informatique, Signal et Automatique de Lille
>>
>> CRIStAL - UMR 9189
>>
>> French National Center for Scientific Research - _http://www.cnrs.fr_
>>
>>
>> *Web:* _http://guillep.github.io_
>>
>> *Phone: *+33 06 52 70 66 13
>>
>>
--
Guille Polito
Research Engineer
Centre de Recherche en Informatique, Signal et Automatique de Lille
CRIStAL - UMR 9189
French National Center for Scientific Research - *http://www.cnrs.fr
<http://www.cnrs.fr>*
*Web:* *http://guillep.github.io* <http://guillep.github.io>
*Phone: *+33 06 52 70 66 13
May 14, 2018
Re: [Pharo-users] How to LAN feature
by HilaireFernandes
Hello,
Thanks for the tip.
Yep, indeed it is possible to get the information from the command line. But
I need a strategy that will work on Windows too (75% of the Dr. Geo user
base).
I have the same problem with bitmap clipboard, I have a strategy only for
linux with command line[1], may be for Mac, but I don't know for Windows.
Thanks
Hilaire
[1] https://bugs.launchpad.net/drgeo/+bug/1697418
-----
http://drgeo.eu
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
May 14, 2018