Re: [Pharo-users] NeoJSON Custom Mapping Question

2019-01-09 Thread Norbert Hartl via Pharo-users
--- Begin Message --- Hi Eric, I‘m late to the game but I‘m interested to talk abd cooperate. I implemented JSON schema [1] not long ago. This can also be used to add a mapping from object to json. It has also a type key inside the json object. I did it with an intermediate object. The

Re: [Pharo-users] Library to use multi-core in Pharo?

2019-01-09 Thread Ben Coman via Pharo-users
--- Begin Message --- On Thu, 10 Jan 2019 at 00:19, Alexandre Bergel via Pharo-users < pharo-users@lists.pharo.org> wrote: > Hi! > > Is there an effort to easily use multi-core or native processes in Pharo? > I am thinking about a library that offer a construct like: > > future := Runner

Re: [Pharo-users] Library to use multi-core in Pharo?

2019-01-09 Thread Pierce Ng via Pharo-users
--- Begin Message --- On Wed, Jan 09, 2019 at 01:18:45PM -0300, Alexandre Bergel via Pharo-users wrote: > Is there an effort to easily use multi-core or native processes in Pharo? > I am thinking about a library that offer a construct like: There used to be a Hydra VM for Squeak:

Re: [Pharo-users] NeoJSON Custom Mapping Question

2019-01-09 Thread Eric Gade
Hi Sven, thanks for the response. Unfortunately since I'm working with a standard here, there is always going to be an explicit `"type": ` attribute rather than having the key itself be the name of the type. I guess I'll stick to the two-pass read solution. But the writing solution can use the

Re: [Pharo-users] [ANN] P3 version 1.1

2019-01-09 Thread Tudor Girba
Perfect. Then I will continue in our repo and we see later. Doru > On Jan 9, 2019, at 9:36 PM, Sven Van Caekenberghe wrote: > > > >> On 7 Jan 2019, at 20:30, Tudor Girba wrote: >> >> Excellent. >> >> In the meantime, we extended GT4P3 a bit to also navigate Schemas and >> Tables'

Re: [Pharo-users] Library to use multi-core in Pharo?

2019-01-09 Thread Thierry Goubier
Oh well, sorry. I checked and ... it seemed taskit could do it, but now it seems to be a future extension. However OSProcess can do it: look at #forkSqueak. Thierry Le mer. 9 janv. 2019 à 21:36, Thierry Goubier a écrit : > > Hi Alexandre, > > look at taskit:

Re: [Pharo-users] Library to use multi-core in Pharo?

2019-01-09 Thread Thierry Goubier
Hi Alexandre, look at taskit: (https://github.com/sbragagnolo/taskit). I think it can do what you are looking for. I think that OSProcess is also able to do that via fork calls. Having minimal, light weight images without complex loading preferences and whatever would help, otherwise simply

Re: [Pharo-users] [ANN] P3 version 1.1

2019-01-09 Thread Sven Van Caekenberghe
> On 7 Jan 2019, at 20:30, Tudor Girba wrote: > > Excellent. > > In the meantime, we extended GT4P3 a bit to also navigate Schemas and Tables' > structure. > > > For this, I introduced a few classes such as Database, Schema or Table to > ease the inspection and tool creation. It’s a bit

Re: [Pharo-users] Documentation on Traits

2019-01-09 Thread Torsten Bergmann
Maybe this collection in my wiki can help you: http://wiki.astares.com/pharo/115 There are also many tests in the image that you can check regarding traits, slots, meta links, ... so you have the source luke. Bye T.   

Re: [Pharo-users] Library to use multi-core in Pharo?

2019-01-09 Thread Hernán Morales Durand
Hi Alex, I think you could launch jobs using GNU parallel, otherwise for shared memory parallelism OpenMP is a common choice. There is an old thread: http://forum.world.st/NativeBoost-and-OpenMP-td4837865.html but no library AFAIK Cheers, Hernán El mié., 9 ene. 2019 a las 16:56, Alexandre

Re: [Pharo-users] NeoJSON Custom Mapping Question

2019-01-09 Thread Sven Van Caekenberghe
Eric, > On 9 Jan 2019, at 00:34, Eric Gade wrote: > > Hey guys, > > I'm toying with the idea of a Pharo implementation of ActivityStreams > (https://www.w3.org/TR/activitystreams-core/#introduction) which is based on > a subset of JSON called JSON-LD (for "linked data"). > > While I do not

Re: [Pharo-users] Documentation on Traits

2019-01-09 Thread Steffen Märcker
Maybe I missed that part: Can conflicts with slots occur? The section on conflicts only mentions methods as cause. Do you have a pointer to a slots documentation? Am 9. Januar 2019 20:32:51 MEZ schrieb "Cyril Ferlicot D." : >Le 09/01/2019 à 18:49, Steffen Märcker a écrit : >> Nice. Do you

Re: [Pharo-users] Documentation on Traits

2019-01-09 Thread Cyril Ferlicot D.
Le 09/01/2019 à 18:49, Steffen Märcker a écrit : > Nice. Do you know where to find details on stateful traits and slots? I > am familiar with stateless traits and wonder how state is incoeporated > and how conflicts are handled. > The guide I send cover the user documentation of Stateful traits

Re: [Pharo-users] Documentation on Traits

2019-01-09 Thread Steffen Märcker
Nice. Do you know where to find details on stateful traits and slots? I am familiar with stateless traits and wonder how state is incoeporated and how conflicts are handled. Best, Steffen Am 9. Januar 2019 15:21:09 MEZ schrieb Konrad Hinsen : >Cyril Ferlicot writes: > >> There is

Re: [Pharo-users] NeoJSON Custom Mapping Question

2019-01-09 Thread Esteban Maringolo
This could be very useful, in the past I used ExtJS which serialized its components in JSON format with a similar "xtype" attribute that was used to lookup the proper class to instantiate. But NeoJSON being stream based, and requiring a mapping to instantiate specific classes, the only, dirty,

[Pharo-users] Library to use multi-core in Pharo?

2019-01-09 Thread Alexandre Bergel via Pharo-users
--- Begin Message --- Hi! Is there an effort to easily use multi-core or native processes in Pharo? I am thinking about a library that offer a construct like: future := Runner runInDifferentProcess: [ “This block is run in a different OS process” ] That would save the image under a different

Re: [Pharo-users] Documentation on Traits

2019-01-09 Thread Konrad Hinsen
Cyril Ferlicot writes: > There is documentation on Traits here: > https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/Traits.md Great, thanks! Konrad.

Re: [Pharo-users] Is it possible to follow an object through a computation?

2019-01-09 Thread Marcus Denker via Pharo-users
--- Begin Message --- > On 3 Jan 2019, at 03:17, Esteban Maringolo wrote: > > Hi Paul, > > You can set the object to be "read only" (aka "immutable") and handle the > exception. > > E.g. > > | u | > u := User named: 'Paul'. > u beReadOnlyObject. > [ "your code modifying u's state" ] >

Re: [Pharo-users] Documentation on Traits

2019-01-09 Thread Cyril Ferlicot
On Wed, Jan 9, 2019 at 11:15 AM Konrad Hinsen wrote: > > Dear Pharo experts, > Hello, > Is there any documentation on traits as implemented in Pharo 7? It's > easy to find discussions about the trait feature over the years, plus > slides and related stuff, but I am not sure what the current

[Pharo-users] Documentation on Traits

2019-01-09 Thread Konrad Hinsen
Dear Pharo experts, Is there any documentation on traits as implemented in Pharo 7? It's easy to find discussions about the trait feature over the years, plus slides and related stuff, but I am not sure what the current actually implemented version is. I did manage to write and use a first trait

Re: [Pharo-users] Updating singletons

2019-01-09 Thread Konrad Hinsen
Hi Steffen, > However, there is another fun possibility to figure out that a change > happened that does not involve configuration - though, a bit hacky. ;-) > You could write the accessor method such that it recompiles itself with > the first access after loading new code. For example: >