Re: [Pharo-users] Glorp: `session login` fails for Garage SQLite

2017-08-05 Thread Guillermo Polito
How did you install garage and glorp? Catalog, configurations? Can you paste here the installation instructions you followed? On Sun, Aug 6, 2017 at 1:37 AM, Herby Vojčík wrote: > Herby Vojčík wrote: > >> Guillermo Polito wrote: >> >>> AFAIR, PharoDatabaseAccessor was meant to work with SqueakDB

Re: [Pharo-users] PetitParser: Parse X as long as it's not Y

2017-08-05 Thread Sean P. DeNigris
vonbecmann wrote > did you try with negate? That is the standard trick with PP, but the problem here is that I'm trying to say, not just "anything which is not Y", but "any string of these characters as long is it doesn't also match Y" - Cheers, Sean -- View this message in context: http:/

Re: [Pharo-users] Glorp: `session login` fails for Garage SQLite

2017-08-05 Thread Herby Vojčík
Herby Vojčík wrote: Guillermo Polito wrote: AFAIR, PharoDatabaseAccessor was meant to work with SqueakDBX/DBXTalk driver. No other driver should use it. At the time Garage did not even exist. So I'd say that you should not use PharoDatabaseAccessor with another driver than the one it was origin

Re: [Pharo-users] Best Practices for Bundling Documentation

2017-08-05 Thread Evan Donahue
Hello, The projects are a logic programming and machine learning system respectively, so they probably warrant more involved tutorial-style documentation. I will take a look at the Pillar docs, but just to think ahead a bit, assuming I write up some docs in Pillar, what would be the best way to di

Re: [Pharo-users] Glorp: `session login` fails for Garage SQLite

2017-08-05 Thread Herby Vojčík
Guillermo Polito wrote: AFAIR, PharoDatabaseAccessor was meant to work with SqueakDBX/DBXTalk driver. No other driver should use it. At the time Garage did not even exist. So I'd say that you should not use PharoDatabaseAccessor with another driver than the one it was originally mean to? I do no

Re: [Pharo-users] Glorp: `session login` fails for Garage SQLite

2017-08-05 Thread Herby Vojčík
Esteban A. Maringolo wrote: Which version of Pharo, Glorp and SQLite are you using? As for SQLite dll, I don't know (does it change the fact if queryEncoding method is present?). Pharo is 6.1, Glorp, Garage etc. are #stable loaded from Pharo60 catalog (see attachment). Herby Esteban A

Re: [Pharo-users] Glorp: `session login` fails for Garage SQLite

2017-08-05 Thread Esteban A. Maringolo
Which version of Pharo, Glorp and SQLite are you using? Esteban A. Maringolo 2017-08-05 19:20 GMT-03:00 Herby Vojčík : > Esteban A. Maringolo wrote: >> >> Herby, >> >> I regularly use `session login`, but I don't use SQLite in Pharo, but I >> do in VisualWorks and it works just fine. >> Maybe i

Re: [Pharo-users] Glorp: `session login` fails for Garage SQLite

2017-08-05 Thread Guillermo Polito
AFAIR, PharoDatabaseAccessor was meant to work with SqueakDBX/DBXTalk driver. No other driver should use it. At the time Garage did not even exist. So I'd say that you should not use PharoDatabaseAccessor with another driver than the one it was originally mean to? I do not know exactly your setup,

Re: [Pharo-users] Lazy-initialization patterns

2017-08-05 Thread Esteban A. Maringolo
2017-08-05 19:21 GMT-03:00 Peter Uhnak : > If I want to initialize the value in a separate method (typically for testing > or reuse), then I prefer to avoid state mutation there and instead I return > the result. > > MyClass>>#property > ^ property ifNil: [ property := self createNewProp

Re: [Pharo-users] Lazy-initialization patterns

2017-08-05 Thread Esteban A. Maringolo
I know the compiler is smart enough in most cases, and even if it isn't, an extra send or two won't hurt me in the kind of computation I do. But it's the style what "worried" me the most. Let's use the first then :) Esteban A. Maringolo 2017-08-05 19:18 GMT-03:00 Paul DeBruicker : > Seems lik

Re: [Pharo-users] Lazy-initialization patterns

2017-08-05 Thread Peter Uhnak
Personally I prever to avoid long lazy initializations, so I have it nice and tidy in a single method. MyClass>>#property ^ property ifNil: [ property := self bar collect: #food ] If I want to initialize the value in a separate method (typically for testing or reuse), then I prefer to a

Re: [Pharo-users] Glorp: `session login` fails for Garage SQLite

2017-08-05 Thread Herby Vojčík
Esteban A. Maringolo wrote: Herby, I regularly use `session login`, but I don't use SQLite in Pharo, but I do in VisualWorks and it works just fine. Maybe if there is a bug we should fix it. Even with a no-op method. Regards! Esteban A. Maringolo It's hard. The problem is PharoDatabaseAcces

Re: [Pharo-users] Lazy-initialization patterns

2017-08-05 Thread Paul DeBruicker
Seems like either way would have unmeasurable performance impact for your application vs the other and you should go for whats most legible/comprehensible. On that metric I prefer the first but #yolo Esteban A. Maringolo wrote > Hi there, > > I have a question about lazy initialization

Re: [Pharo-users] PetitParser: Parse X as long as it's not Y

2017-08-05 Thread Bernardo Ezequiel Contreras
did you try with negate? comment ^ ($" asParser , $" asParser negate star , $" asParser) flatten On Sat, Aug 5, 2017 at 5:26 PM, Sean P. DeNigris wrote: > How do I tell Petit Parser to parse a string of certain allowable > characters > as long as the final result isn't a particular string? E.

[Pharo-users] Lazy-initialization patterns

2017-08-05 Thread Esteban A. Maringolo
Hi there, I have a question about lazy initialization accessor methods that always keep me thinking in terms of performance and style. For years I did something like: MyClass>>#property property isNil ifTrue: [ self initializeProperty ]. "It could be ifNil: as well" ^property MyClass>>#init

Re: [Pharo-users] Glorp: `session login` fails for Garage SQLite

2017-08-05 Thread Esteban A. Maringolo
Herby, I regularly use `session login`, but I don't use SQLite in Pharo, but I do in VisualWorks and it works just fine. Maybe if there is a bug we should fix it. Even with a no-op method. Regards! Esteban A. Maringolo 2017-08-05 15:52 GMT-03:00 Herby Vojčík : > Alistair Grant wrote: > >> Hi H

[Pharo-users] PetitParser: Parse X as long as it's not Y

2017-08-05 Thread Sean P. DeNigris
How do I tell Petit Parser to parse a string of certain allowable characters as long as the final result isn't a particular string? E.g. consume an identifier as long as it's not 'Baz' or 'Bar' Thanks - Cheers, Sean -- View this message in context: http://forum.world.st/PetitParser-Parse-X

Re: [Pharo-users] Glorp: `session login` fails for Garage SQLite

2017-08-05 Thread Herby Vojčík
Alistair Grant wrote: Hi Herby, On 5 August 2017 at 18:09, Herby Vojčík wrote: Hello! First of all, what is preferred way to (first time) login into database? I had the impression that `aDatabaseAccessor login` is sorta low-level, and one should do `session login` (after all, it is session yo

Re: [Pharo-users] Glorp: `session login` fails for Garage SQLite

2017-08-05 Thread Alistair Grant
Hi Herby, On 5 August 2017 at 18:09, Herby Vojčík wrote: > Hello! > > First of all, what is preferred way to (first time) login into database? I > had the impression that `aDatabaseAccessor login` is sorta low-level, and > one should do `session login` (after all, it is session you get to work >

Re: [Pharo-users] problem with FLMaterializer

2017-08-05 Thread Johannes Brauer
In the EnterprisePharo Book there is a chapter "Fuel Format Migration". There the format migration form Fuel version 1.7 to 1.9 is shown. I ask me if there is a similar possibility for the migration between Fuel in Pharo 4 and 6. Johannes Am 05.08.2017 um 15:08 schrieb Cyril Ferlicot mailto:cyr

Re: [Pharo-users] about a pillar based output format for Epicea

2017-08-05 Thread Stephane Ducasse
This is question of time and energy. I should restart to work and make it smaller and nicer. I want ecstatic too. On Wed, Aug 2, 2017 at 10:21 PM, Tim Mackinnon wrote: > Out of curiosity (as Pillar - well actually Ecstatic, was on my next hitlist > to research), but is it so different from someth

Re: [Pharo-users] Best Practices for Bundling Documentation

2017-08-05 Thread Stephane Ducasse
Hi Evan Depending on the size of the documentation. - if you have a kind of tutorial I would go (and I can help) for a pillar booklet or a chapter. - else class comments are simply cool with examples stef On Sat, Aug 5, 2017 at 2:19 AM, Evan Donahue wrote: > Hello, > > I'm working on cleaning

[Pharo-users] Glorp: `session login` fails for Garage SQLite

2017-08-05 Thread Herby Vojčík
Hello! First of all, what is preferred way to (first time) login into database? I had the impression that `aDatabaseAccessor login` is sorta low-level, and one should do `session login` (after all, it is session you get to work with, not an accessor). But with Garage SQLite, `session login`,

Re: [Pharo-users] problem with FLMaterializer

2017-08-05 Thread Cyril Ferlicot
On sam. 5 août 2017 at 13:10, Johannes Brauer wrote: > Peter > > Your suggestion is correct. I correct the expression to > > (FLMaterializer materializeFromFileNamed: aFileRefence *fullName*) > > Now I get another exception. > KeyNotFound: key #'ositive8SmallIntegerClusterJ 4Ü 1‚ ð+ –( %? "< 9 ª

Re: [Pharo-users] problem with FLMaterializer

2017-08-05 Thread Johannes Brauer
Peter Your suggestion is correct. I correct the expression to (FLMaterializer materializeFromFileNamed: aFileRefence fullName) Now I get another exception. KeyNotFound: key #'ositive8SmallIntegerClusterJ4Ü1‚ð+–( %?"<9ª6PM¾0d*ÒD ''x!Œ8' not found in SystemDictionary I think thi

Re: [Pharo-users] problem with FLMaterializer

2017-08-05 Thread PBKResearch
Johannes Just a suggestion: FLMaterializer class >>materializeFromFileNamed: requires as argument aFilename, not aFileRefence. Presumably this means the name as a string. This makes sense, because #convertToWithConverter: is the name of a method understood by strings. If your invocation of the