Re: [Pharo-users] JSON keys not quoted?

2019-02-22 Thread Ben Coman
Just curiousity... Is an idempotent round trip required/expected ? cheers -ben On Sat, 23 Feb 2019 at 05:24, Sven Van Caekenberghe wrote: > Good catch. > > Indeed, JSON keys have to be strings. > > The question is, should the writer convert them for you, or should you > simply not use them ? >

Re: [Pharo-users] JSON keys not quoted?

2019-02-22 Thread Sven Van Caekenberghe
> On 22 Feb 2019, at 22:52, Esteban Maringolo wrote: > > El vie., 22 feb. 2019 a las 18:24, Sven Van Caekenberghe > () escribió: >> >> Good catch. >> >> Indeed, JSON keys have to be strings. >> >> The question is, should the writer convert them for you, or should you >> simply not use them

Re: [Pharo-users] Interval form: x to: y when x > y - or how to count down...

2019-02-22 Thread Sven Van Caekenberghe
> On 22 Feb 2019, at 22:35, Tim Mackinnon wrote: > > If it’s always been that way - and things rely on it, sure. > > But it doesn’t feel like the Smalltalk way to me. > > Having to know about adding -1 seems very C, whereas Smalltalk always seems > more natural ... and 5 to: 1 seems like yo

Re: [Pharo-users] JSON keys not quoted?

2019-02-22 Thread Esteban Maringolo
El vie., 22 feb. 2019 a las 18:24, Sven Van Caekenberghe () escribió: > > Good catch. > > Indeed, JSON keys have to be strings. > > The question is, should the writer convert them for you, or should you simply > not use them ? > > I mean, there are many Pharo constructs that cannot be converted to

Re: [Pharo-users] Interval form: x to: y when x > y - or how to count down...

2019-02-22 Thread Tim Mackinnon
If it’s always been that way - and things rely on it, sure. But it doesn’t feel like the Smalltalk way to me. Having to know about adding -1 seems very C, whereas Smalltalk always seems more natural ... and 5 to: 1 seems like you would count down, not be an empty range and do nothing. But as y

Re: [Pharo-users] JSON keys not quoted?

2019-02-22 Thread Sven Van Caekenberghe
Good catch. Indeed, JSON keys have to be strings. The question is, should the writer convert them for you, or should you simply not use them ? I mean, there are many Pharo constructs that cannot be converted to JSON. Some could be output to JSON, but you won't be able to read them back in. So

[Pharo-users] JSON keys not quoted?

2019-02-22 Thread Esteban Maringolo
If you convert a Dictionary with numbers as keys it will produce not valid JSON [1], since all object keys must be quoted. E.g. NeoJSONWriter toString: (Dictionary with: 1->'foo'). or (Dictionary with: 1->'foo') asJson Should the library generate quoted keys? Seaside's WAJsonCanvas is manual, so

Re: [Pharo-users] firebase client in pharo?

2019-02-22 Thread Esteban Maringolo
Not that I know, I'm working on a CouchDB client to have something close to what Firebase, or even better, Firestore can provide. There is a thread about it. Esteban A. Maringolo El vie., 22 feb. 2019 a las 15:37, Tudor Girba () escribió: > > Hi, > > Did anyone worked on connecting Pharo with Fi

[Pharo-users] firebase client in pharo?

2019-02-22 Thread Tudor Girba
Hi, Did anyone worked on connecting Pharo with Firebase? Cheers, Doru -- www.feenk.com "Quality cannot be an afterthought."

[Pharo-users] How to test a new Iceberg baseline?

2019-02-22 Thread Tim Mackinnon
How does one go about testing an Iceberg/metacello baseline? Two parts to this actually - I want to check one under my control - and am wondering if there is a lint checker or some way to tell me what it will load (without having to check it in and try. Or if you do this - can you test loading

Re: [Pharo-users] Interval form: x to: y when x > y - or how to count down...

2019-02-22 Thread Konrad Hinsen
On 22/02/2019 15:57, Tim Mackinnon wrote: I've just been caught out with Intervals - why can't you do: 5 to: 1 do: [ :i | Transcript show: i printString] (eg a negative interval)? if you want to iterate down a series of numbers do you really have to do: 5 to: 1 by: -1 do: [… I always assumed t

[Pharo-users] Interval form: x to: y when x > y - or how to count down...

2019-02-22 Thread Tim Mackinnon
I've just been caught out with Intervals - why can't you do: 5 to: 1 do: [ :i | Transcript show: i printString] (eg a negative interval)? if you want to iterate down a series of numbers do you really have to do: 5 to: 1 by: -1 do: [… I always assumed that if x > y the step was automatically -1

[Pharo-users] What does the Package and Sub-Package comment do?

2019-02-22 Thread Tim Mackinnon
Hi - I notice that you can sort of put comments on packages - but I’m not sure if this is working or if its supposed to work? When I type something it seems to create and extra Manifest tag, and then the comment that I type seems to be the same for the package and all of its sub tags? Is this

Re: [Pharo-users] Embedding object properties in NeoJSON mappings

2019-02-22 Thread Esteban Maringolo
Hi, El vie., 22 feb. 2019 a las 7:55, Sven Van Caekenberghe () escribió: > > On 22 Feb 2019, at 02:05, Esteban Maringolo wrote: > > Am I stretching it too much? :) > > Yes, this is out of the scope of NeoJSON. > > As you know, JSON is strictly limited and kept simple, by design. > Things people d

Re: [Pharo-users] Pharo Object Serialization

2019-02-22 Thread BrunoBB
Peter, Yes i already read those posts. Maybe i will try and see but i highly doubt i will use it in production. Back in the old days i used it a lot with Dolphin Smalltalk, David Jorisek provided good support then. regards, bruno -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f131

Re: [Pharo-users] Streams for FileReference in Pharo 7

2019-02-22 Thread Sven Van Caekenberghe
https://github.com/pharo-project/pharo/pull/2695 > On 18 Feb 2019, at 16:52, Sven Van Caekenberghe wrote: > > OK, I that is what I expected. > I will study this again and make a PR with better comments and tests. > >> On 18 Feb 2019, at 16:32, ducasse wrote: >> >>> >>> >>> I have been thin

Re: [Pharo-users] Pharo Object Serialization

2019-02-22 Thread PBKResearch
Bruno OmniBase was ported to Pharo 6+ in Jun 2018. The original porting work was done by Esteban Lorenzano, but he pointed out that, as a non-user, he is not in a position to provide any support. It was used to a small extent by me, and much more by Matias Maretto. The repo is at https://github.co

[Pharo-users] Iliad & disbled JS

2019-02-22 Thread Siemen Baader
Hi, has support for disabled JavaScript been removed from Iliad? When I do $ curl http://localhost:/examples/counters I get [...] 0++ [...] So it works only with JS enabled. It would be nice to be able to make requests from non-JS-capable clients such as ZnEasy for testing purposes. Can

Re: [Pharo-users] Embedding object properties in NeoJSON mappings

2019-02-22 Thread Sven Van Caekenberghe
Hi, > On 22 Feb 2019, at 02:05, Esteban Maringolo wrote: > > Hi all (again), > > As part of writing the port (and adaptation to use Zinc and NeoJSON), > a CouchDB JSON-REST API, now I find something I don't know how to > solve using NeoJSON mappings. > > All objects you store in CouchDB at a p

[Pharo-users] Remember to registrar to Pharo days 2019!

2019-02-22 Thread Esteban Lorenzano
Dear all, Pharo days registration is open since two weeks now, and we are starting to work on the schedule and organising the social event :) Register now! Pharo days is a gathering of the Pharo community to exchange, discuss and code with your online colleagues. Join us to share your experie

Re: [Pharo-users] im using pharo 7 with linux env. but cannot input korean.

2019-02-22 Thread Hilaire
Thanks Pierce. So kind of work out of the box as long as the appropriate font is selected. Hilaire Le 22/02/2019 à 04:34, Pierce Ng a écrit : > Hi Hilaire, > > My self-built VM on Windows 7 doesn't have the option either. But, > multilingual input into Pharo works. > > Outside of Pharo, configu