Re: [Pharo-users] OmniBase for Pharo 6

2018-07-25 Thread Matias Maretto
Marco: thank you for this. A few weeks ago when I was trying to find the "lock" 
problem I saw this method but I did not dare to change it; and just as you said 
I  been using OminBase with no problem, but never runned the Garbage Collector, 
Surely I was going to have a bigger problem in the future for not running the 
garbageCollect.

I have just update this method on my project and tried both the garbageCollect 
and the reorganize method , both worked fine (win 7 32bits, later I am going to 
test on Win 10 64 bits).

Thanks again.

Matías.



De: Pharo-users  en nombre de marco 

Enviado: miércoles, 25 de julio de 2018 10:23 a. m.
Para: pharo-users@lists.pharo.org
Asunto: Re: [Pharo-users] OmniBase for Pharo 6

One serious problem left: OmniBaseTest>>testGC fails.

Have a look at the 2 methods

/ODBContainer>>lockDataFile
"Dec, 2010 sas: this code was relying in evaluating a block that was
happening only in win32
but not in *nix. So now I'm making it wait for the lock and then execute
the code normally
because it seems the intention was the same."
| currentSpace defaultSpace |

activeDataFile waitForAddingLock.
currentSpace := activeDataFile == dataFileA ifTrue: [0] ifFalse: [1].
defaultSpace := objectManager defaultObjectSpace.
currentSpace == defaultSpace
ifFalse:
[defaultSpace == 0
ifTrue:
[dataFileA isNil ifTrue: [dataFileA := ODBObjectStorage
openOn: self dataFileNameA].
activeDataFile := dataFileA]
ifFalse:
[dataFileB isNil ifTrue: [dataFileB := ODBObjectStorage
openOn: self dataFileNameB].
activeDataFile := dataFileB].
^self lockDataFile]


ODBFile>>waitForLockAt: pos length: length whileWaitingDo: aBlock
"Wait for lock at given position.
Evaluate aBlock in each iteration."

"Dec, 2010. sas: evaluating code in each iteration while waiting sounds
weird but whatever.
I think this was designed on the wrong assumption that the OS always
will provide a false
in the first try but what actually happens is that in win32 you always
will
get at least one false but in *nixes you don't do see that happening
(which is totally reasonable).
BEWARE of stupid code relying on this stupid assumption (I've already
patched #lockDataFile because of this)."

| startTime currentTime |
(stream lockAt: pos length: length) ifFalse: [
startTime := Time totalSeconds.
[stream lockAt: pos length: length] whileFalse: [
aBlock value.
currentTime := Time totalSeconds.
currentTime - startTime < self timeOutLength
ifFalse: [
ODBLockNotification signal
ifTrue: [startTime := currentTime]
ifFalse: [^ODBCannotLock signal
/

So "sas" did a refactoring in 2010 because he/she thought it is stupid code.
This code change breaks the GarbageCollection of Omnibase.

I reverted the first method to the original code of the Omnibase author,
David Gorisek:

/lockDataFile

| currentSpace defaultSpace |

activeDataFile waitForAddingLockWhileWaitingDo:
[currentSpace := activeDataFile == dataFileA ifTrue: [0] ifFalse: [1].
defaultSpace := objectManager defaultObjectSpace.
currentSpace == defaultSpace
ifFalse:
[defaultSpace == 0
ifTrue:
[dataFileA isNil ifTrue: [dataFileA := ODBObjectStorage
openOn: self dataFileNameA].
activeDataFile := dataFileA]
ifFalse:
[dataFileB isNil ifTrue: [dataFileB := ODBObjectStorage
openOn: self dataFileNameB].
activeDataFile := dataFileB].
^self lockDataFile]]
/
I removed the comment of "sas" from the second method. It is wrong.


The garbage collection works again and the test is green. GC is an important
feature of Omnibase.
It creates a new repository/database file and copies the data into the new
file, compressing the data.
It keeps your database compact and clean. If you don't run it (frequently)
your db files keep on growing...

Matias, your fixes are absolutely valid and should be published - together
with the one above -  in Esteban's repository.




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Smalltalk - Pharo Smalltalk Users | Mailing List 
Archive
forum.world.st
Pharo Smalltalk Users forum and mailing list archive. Pharo User Forum






Re: [Pharo-users] OmniBase for Pharo 6

2018-06-24 Thread Matias Maretto
Thank you for the info Peter ; I have been working storing and retrieving data 
, everything works fine. I have an ODBPErsistDictionary with almost 20.000 
objects on it, I really get sorprised of how fast can resolve "select:[] 
commands"; I know it is not related with the subjet we are working, but well 





De: Pharo-users  en nombre de PBKResearch 

Enviado: domingo, 24 de junio de 2018 05:54 p. m.
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] OmniBase for Pharo 6


Hi Matias (and EstebanLM)



I have explained the problem with storing and retrieving Date. Looking through 
the OmniBase code in the repository, I see that there is a whole series of 
extensions for many of the standard classes, which provide methods for 
serializing and deserializing instances of those classes. The extension for 
Date class ignores the start time, and simply saves the day number; the 
retrieval method can only use the days, and so cannot take account of the 
offset for the time zone. If it is necessary to save and restore dates in a way 
which is time-zone sensitive, it will be necessary to modify the code for 
serializing dates to store day and offset. I have not yet worked out how the 
methods are structured, so I have not tried to recode, but all the methods I 
have looked at are only one or two lines, so it should not be difficult.



Looking through the classes with extensions, I realise that we may need to 
check rather more examples to be sure that everything is handled correctly. I 
did one little test with String. The standard test in TestEquality just stores 
and retrieves ‘Hello World’. To check that it could handle other encodings, I 
tried the test with a German string encoded in utf8. This worked OK. So thus 
far everything is fine, but it would be a good idea to check correct retrieval 
each time we persist a new class of object.



Best wishes



Peter Kenny



From: Pharo-users  On Behalf Of Matias 
Maretto
Sent: 23 June 2018 19:40
To: Any question about pharo is welcome 
Subject: Re: [Pharo-users] OmniBase for Pharo 6



Hi Peter, thanks for the news. I have been doing some tests, persisting 
diferent kind of objects and until now everythings works fine.

If you find anything else, please let me now.



Thanks.

Matias.







De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de PBKResearch 
mailto:pe...@pbkresearch.co.uk>>
Enviado: sábado, 23 de junio de 2018 05:18 p. m.
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] OmniBase for Pharo 6



Hi Matias



A further report. I have worked through the test suite in OmniBaseTests, 
running each test individually. I now have all green except two – testEquality, 
which fails on the storage and retrieval of ‘Date today’, and testGC, which 
fails for reasons I have not yet found.



The worrying thing is the apparent change in the instance variables of Date – 
see my exchange with Alistair Grant in another thread. I shall try to work 
through the way OmniBase saves and resets the instvars, just in case it might 
be a general problem.



I shall let you know of anything else I find.



Peter Kenny



From: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 On Behalf Of PBKResearch
Sent: 23 June 2018 09:18
To: 'Any question about pharo is welcome' 
mailto:pharo-users@lists.pharo.org>>
Subject: Re: [Pharo-users] OmniBase for Pharo 6



Matias



Thanks. I have made this change, but it does not affect the tests I have run.



I have focused on getting the test suite in OmniBaseTests to run. So far I 
still have 5 greens, 7 reds and one orange. The greens are all the first five 
test methods in the browser list; it seems it half fails on the sixth one 
(TestEquality), hence the orange, and then red for all the rest.



One problem is that the test database is created at the start of the test 
suite, and then not removed at the end. This seems to mess up the next attempt 
to run the tests. I tried to run the OmniBaseTests>>#tearDown manually, but it 
fails, so I have to exit Pharo and delete the test database in Windows.



I intend to continue running the test suite, but I shall run the tests 
individually, and put breakpoints in those that fail. I shall report here if I 
make any progress.



Best wishes



Peter Kenny



From: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 On Behalf Of Matias Maretto
Sent: 23 June 2018 01:37
To: Any question about pharo is welcome 
mailto:pharo-users@lists.pharo.org>>
Subject: Re: [Pharo-users] OmniBase for Pharo 6



Peter: I think I found the problem. On ODBFileStream class >> 
accessModeReadOnly the "o" on "only" is not capital. It is  
^#accessModeReadonly  when should be ^#accessModeReadOnly ; so on the 
ODBWin32FileStream >> createOn:  createMode:  accessMode:  shareMode:  
cacheMod

Re: [Pharo-users] OmniBase for Pharo 6

2018-06-23 Thread Matias Maretto
Hi Peter, thanks for the news. I have been doing some tests, persisting 
diferent kind of objects and until now everythings works fine.

If you find anything else, please let me now.


Thanks.

Matias.




De: Pharo-users  en nombre de PBKResearch 

Enviado: sábado, 23 de junio de 2018 05:18 p. m.
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] OmniBase for Pharo 6


Hi Matias



A further report. I have worked through the test suite in OmniBaseTests, 
running each test individually. I now have all green except two – testEquality, 
which fails on the storage and retrieval of ‘Date today’, and testGC, which 
fails for reasons I have not yet found.



The worrying thing is the apparent change in the instance variables of Date – 
see my exchange with Alistair Grant in another thread. I shall try to work 
through the way OmniBase saves and resets the instvars, just in case it might 
be a general problem.



I shall let you know of anything else I find.



Peter Kenny



From: Pharo-users  On Behalf Of PBKResearch
Sent: 23 June 2018 09:18
To: 'Any question about pharo is welcome' 
Subject: Re: [Pharo-users] OmniBase for Pharo 6



Matias



Thanks. I have made this change, but it does not affect the tests I have run.



I have focused on getting the test suite in OmniBaseTests to run. So far I 
still have 5 greens, 7 reds and one orange. The greens are all the first five 
test methods in the browser list; it seems it half fails on the sixth one 
(TestEquality), hence the orange, and then red for all the rest.



One problem is that the test database is created at the start of the test 
suite, and then not removed at the end. This seems to mess up the next attempt 
to run the tests. I tried to run the OmniBaseTests>>#tearDown manually, but it 
fails, so I have to exit Pharo and delete the test database in Windows.



I intend to continue running the test suite, but I shall run the tests 
individually, and put breakpoints in those that fail. I shall report here if I 
make any progress.



Best wishes



Peter Kenny



From: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 On Behalf Of Matias Maretto
Sent: 23 June 2018 01:37
To: Any question about pharo is welcome 
mailto:pharo-users@lists.pharo.org>>
Subject: Re: [Pharo-users] OmniBase for Pharo 6



Peter: I think I found the problem. On ODBFileStream class >> 
accessModeReadOnly the "o" on "only" is not capital. It is  
^#accessModeReadonly  when should be ^#accessModeReadOnly ; so on the 
ODBWin32FileStream >> createOn:  createMode:  accessMode:  shareMode:  
cacheMode:  this part fails:

accessMode = #accessModeReadOnly ifTrue: [acMode := 2147483648 "GENERIC_READ"].

So it cant open the users file for read.  I have fix it and at least for now I 
didn't get any "block" error.









De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de PBKResearch 
mailto:pe...@pbkresearch.co.uk>>
Enviado: viernes, 22 de junio de 2018 10:39 p. m.
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] OmniBase for Pharo 6



Matias



Thanks for the hints. I now have 5 greens, but all the rest are red. I am still 
getting the ‘File cannot be locked’ message. Are you doing better than that? I 
may try a few trials using it for real, rather than the test suite.



Thanks again



Peter Kenny



From: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 On Behalf Of Matias Maretto
Sent: 22 June 2018 22:54
To: Any question about pharo is welcome 
mailto:pharo-users@lists.pharo.org>>
Subject: Re: [Pharo-users] OmniBase for Pharo 6



Hi Peter, yes I had the same error at the beginning. I have done 2 minor  
changes. Now it seems to be working fine (Although I am still running more 
tests). Here:



ODBWin32FileStream >>

closeHandle: aHandle

"Close an open Win32 object handle, freeing any resources held by it.

Once closed a handle is no longer valid. Answer whether the function

succeeds.

See Win32 SDK help for more information.



BOOL CloseHandle(

HANDLE  hObject

// handle of object to close

);"



""

^ self ffiCall: #(ulong CloseHandle(long aHandle))







ODBWin32FileStream >>

lockFile: aHandle offsetLow: loPos offsetHigh: hiPos lengthLow: loLength 
lengthHigh: hiLength

""



^ self

ffiCall: #(long LockFile #(long aHandle , ulong loPos , ulong hiPos , ulong 
loLength , ulong hiLength))









De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de PBKResearch 
mailto:pe...@pbkresearch.co.uk>>
Enviado: viernes, 22 de junio de 2018 09:45 p. m.
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] OmniBase for Pharo 6



Matias



I have just loaded Esteban’s package in a new Pharo 6.1 under Windows 10. I get 
an err

Re: [Pharo-users] OmniBase for Pharo 6

2018-06-22 Thread Matias Maretto
Peter: I think I found the problem. On ODBFileStream class >> 
accessModeReadOnly the "o" on "only" is not capital. It is  
^#accessModeReadonly  when should be ^#accessModeReadOnly ; so on the 
ODBWin32FileStream >> createOn:  createMode:  accessMode:  shareMode:  
cacheMode:  this part fails:

accessMode = #accessModeReadOnly ifTrue: [acMode := 2147483648 "GENERIC_READ"].
So it cant open the users file for read.  I have fix it and at least for now I 
didn't get any "block" error.




De: Pharo-users  en nombre de PBKResearch 

Enviado: viernes, 22 de junio de 2018 10:39 p. m.
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] OmniBase for Pharo 6


Matias



Thanks for the hints. I now have 5 greens, but all the rest are red. I am still 
getting the ‘File cannot be locked’ message. Are you doing better than that? I 
may try a few trials using it for real, rather than the test suite.



Thanks again



Peter Kenny



From: Pharo-users  On Behalf Of Matias 
Maretto
Sent: 22 June 2018 22:54
To: Any question about pharo is welcome 
Subject: Re: [Pharo-users] OmniBase for Pharo 6



Hi Peter, yes I had the same error at the beginning. I have done 2 minor  
changes. Now it seems to be working fine (Although I am still running more 
tests). Here:



ODBWin32FileStream >>

closeHandle: aHandle

"Close an open Win32 object handle, freeing any resources held by it.

Once closed a handle is no longer valid. Answer whether the function

succeeds.

See Win32 SDK help for more information.



BOOL CloseHandle(

HANDLE  hObject

// handle of object to close

);"



""

^ self ffiCall: #(ulong CloseHandle(long aHandle))







ODBWin32FileStream >>

lockFile: aHandle offsetLow: loPos offsetHigh: hiPos lengthLow: loLength 
lengthHigh: hiLength

""



^ self

ffiCall: #(long LockFile #(long aHandle , ulong loPos , ulong hiPos , ulong 
loLength , ulong hiLength))









De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de PBKResearch 
mailto:pe...@pbkresearch.co.uk>>
Enviado: viernes, 22 de junio de 2018 09:45 p. m.
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] OmniBase for Pharo 6



Matias



I have just loaded Esteban’s package in a new Pharo 6.1 under Windows 10. I get 
an error message saying ‘File cannot be locked. Try again?’. When I select 
‘no’, all tests are run and give red. Are you still running on win 7? If so, I 
must be doing something wrong. Can you give more details of the FFI corrections 
you made, please?



Many thanks



Peter Kenny



From: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 On Behalf Of Matias Maretto
Sent: 22 June 2018 21:07
To: Any question about pharo is welcome 
mailto:pharo-users@lists.pharo.org>>
Subject: Re: [Pharo-users] OmniBase for Pharo 6



Esteban: it's working fine, I had to made a minor corrections on 2 FFI calls 
and now everithing seems to be working fine.

For What I saw with Voyage-UnqLite only String Objects can be used to 
searilize; Omnibase allow to persist almost any kind of objects, thats the part 
I like about it.









De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de Esteban Lorenzano 
mailto:esteba...@gmail.com>>
Enviado: jueves, 21 de junio de 2018 08:19 p. m.
Para: Any question about pharo is welcome
Asunto: Re: [Pharo-users] OmniBase for Pharo 6



I did it manually and I took like 5 min :P
but this was really easy, just a bunch of FFI calls.

Esteban

> On 21 Jun 2018, at 15:31, Sean P. DeNigris 
> mailto:s...@clipperadams.com>> wrote:
>
> EstebanLM wrote
>> I just made a “blind port”… migrated the old FFI to new UFFI
>
> Did you do this manually or use some migration tool? How long did it take?
>
>
>
> -
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Smalltalk - Pharo Smalltalk Users | Mailing List 
Archive<http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html>

forum.world.st

Pharo Smalltalk Users forum and mailing list archive. Pharo User Forum



>


Re: [Pharo-users] OmniBase for Pharo 6

2018-06-22 Thread Matias Maretto
Peter: when I run code like this example:


db := OmniBase createOn: 'C:\temp\testOmni'.
aTrans := db newTransaction.

aTrans root at: 'Hello' put: (OrderedCollection with: 1 with: 2 with: 3).
aTrans commit.
db close.

db := OmniBase openOn: 'C:\temp\testOmni'.
aTrans := db newTransaction.
(aTrans root at: 'Hello') size



Everything is fine, but sometimes when I close an reopen the base I get the 
"lock" error, but even when I get the error the base is still opened and 
transactions run fine. I will take a closer look to the lockFIle method.

I will tell you if I find a solution. (I am using Win 7).








De: Pharo-users  en nombre de PBKResearch 

Enviado: viernes, 22 de junio de 2018 10:39 p. m.
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] OmniBase for Pharo 6


Matias



Thanks for the hints. I now have 5 greens, but all the rest are red. I am still 
getting the ‘File cannot be locked’ message. Are you doing better than that? I 
may try a few trials using it for real, rather than the test suite.



Thanks again



Peter Kenny



From: Pharo-users  On Behalf Of Matias 
Maretto
Sent: 22 June 2018 22:54
To: Any question about pharo is welcome 
Subject: Re: [Pharo-users] OmniBase for Pharo 6



Hi Peter, yes I had the same error at the beginning. I have done 2 minor  
changes. Now it seems to be working fine (Although I am still running more 
tests). Here:



ODBWin32FileStream >>

closeHandle: aHandle

"Close an open Win32 object handle, freeing any resources held by it.

Once closed a handle is no longer valid. Answer whether the function

succeeds.

See Win32 SDK help for more information.



BOOL CloseHandle(

HANDLE  hObject

// handle of object to close

);"



""

^ self ffiCall: #(ulong CloseHandle(long aHandle))







ODBWin32FileStream >>

lockFile: aHandle offsetLow: loPos offsetHigh: hiPos lengthLow: loLength 
lengthHigh: hiLength

""



^ self

ffiCall: #(long LockFile #(long aHandle , ulong loPos , ulong hiPos , ulong 
loLength , ulong hiLength))









De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de PBKResearch 
mailto:pe...@pbkresearch.co.uk>>
Enviado: viernes, 22 de junio de 2018 09:45 p. m.
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] OmniBase for Pharo 6



Matias



I have just loaded Esteban’s package in a new Pharo 6.1 under Windows 10. I get 
an error message saying ‘File cannot be locked. Try again?’. When I select 
‘no’, all tests are run and give red. Are you still running on win 7? If so, I 
must be doing something wrong. Can you give more details of the FFI corrections 
you made, please?



Many thanks



Peter Kenny



From: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 On Behalf Of Matias Maretto
Sent: 22 June 2018 21:07
To: Any question about pharo is welcome 
mailto:pharo-users@lists.pharo.org>>
Subject: Re: [Pharo-users] OmniBase for Pharo 6



Esteban: it's working fine, I had to made a minor corrections on 2 FFI calls 
and now everithing seems to be working fine.

For What I saw with Voyage-UnqLite only String Objects can be used to 
searilize; Omnibase allow to persist almost any kind of objects, thats the part 
I like about it.









De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de Esteban Lorenzano 
mailto:esteba...@gmail.com>>
Enviado: jueves, 21 de junio de 2018 08:19 p. m.
Para: Any question about pharo is welcome
Asunto: Re: [Pharo-users] OmniBase for Pharo 6



I did it manually and I took like 5 min :P
but this was really easy, just a bunch of FFI calls.

Esteban

> On 21 Jun 2018, at 15:31, Sean P. DeNigris 
> mailto:s...@clipperadams.com>> wrote:
>
> EstebanLM wrote
>> I just made a “blind port”… migrated the old FFI to new UFFI
>
> Did you do this manually or use some migration tool? How long did it take?
>
>
>
> -
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Smalltalk - Pharo Smalltalk Users | Mailing List 
Archive<http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html>

forum.world.st

Pharo Smalltalk Users forum and mailing list archive. Pharo User Forum



>


Re: [Pharo-users] OmniBase for Pharo 6

2018-06-22 Thread Matias Maretto
Hi Peter, yes I had the same error at the beginning. I have done 2 minor  
changes. Now it seems to be working fine (Although I am still running more 
tests). Here:


ODBWin32FileStream >>

closeHandle: aHandle
"Close an open Win32 object handle, freeing any resources held by it.
Once closed a handle is no longer valid. Answer whether the function
succeeds. See Win32 SDK help for more information.

BOOL CloseHandle(
HANDLE  hObject // handle of object to close
);"

""
^ self ffiCall: #(ulong CloseHandle(long aHandle))




ODBWin32FileStream >>

lockFile: aHandle offsetLow: loPos offsetHigh: hiPos lengthLow: loLength 
lengthHigh: hiLength

""

^ self
ffiCall: #(long LockFile #(long aHandle , ulong loPos , ulong hiPos , ulong 
loLength , ulong hiLength))





De: Pharo-users  en nombre de PBKResearch 

Enviado: viernes, 22 de junio de 2018 09:45 p. m.
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] OmniBase for Pharo 6


Matias



I have just loaded Esteban’s package in a new Pharo 6.1 under Windows 10. I get 
an error message saying ‘File cannot be locked. Try again?’. When I select 
‘no’, all tests are run and give red. Are you still running on win 7? If so, I 
must be doing something wrong. Can you give more details of the FFI corrections 
you made, please?



Many thanks



Peter Kenny



From: Pharo-users  On Behalf Of Matias 
Maretto
Sent: 22 June 2018 21:07
To: Any question about pharo is welcome 
Subject: Re: [Pharo-users] OmniBase for Pharo 6



Esteban: it's working fine, I had to made a minor corrections on 2 FFI calls 
and now everithing seems to be working fine.

For What I saw with Voyage-UnqLite only String Objects can be used to 
searilize; Omnibase allow to persist almost any kind of objects, thats the part 
I like about it.









De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de Esteban Lorenzano 
mailto:esteba...@gmail.com>>
Enviado: jueves, 21 de junio de 2018 08:19 p. m.
Para: Any question about pharo is welcome
Asunto: Re: [Pharo-users] OmniBase for Pharo 6



I did it manually and I took like 5 min :P
but this was really easy, just a bunch of FFI calls.

Esteban

> On 21 Jun 2018, at 15:31, Sean P. DeNigris 
> mailto:s...@clipperadams.com>> wrote:
>
> EstebanLM wrote
>> I just made a “blind port”… migrated the old FFI to new UFFI
>
> Did you do this manually or use some migration tool? How long did it take?
>
>
>
> -
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Smalltalk - Pharo Smalltalk Users | Mailing List 
Archive<http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html>

forum.world.st

Pharo Smalltalk Users forum and mailing list archive. Pharo User Forum



>



Re: [Pharo-users] OmniBase for Pharo 6

2018-06-22 Thread Matias Maretto
Esteban: it's working fine, I had to made a minor corrections on 2 FFI calls 
and now everithing seems to be working fine.

For What I saw with Voyage-UnqLite only String Objects can be used to 
searilize; Omnibase allow to persist almost any kind of objects, thats the part 
I like about it.





De: Pharo-users  en nombre de Esteban 
Lorenzano 
Enviado: jueves, 21 de junio de 2018 08:19 p. m.
Para: Any question about pharo is welcome
Asunto: Re: [Pharo-users] OmniBase for Pharo 6

I did it manually and I took like 5 min :P
but this was really easy, just a bunch of FFI calls.

Esteban

> On 21 Jun 2018, at 15:31, Sean P. DeNigris  wrote:
>
> EstebanLM wrote
>> I just made a “blind port”… migrated the old FFI to new UFFI
>
> Did you do this manually or use some migration tool? How long did it take?
>
>
>
> -
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Smalltalk - Pharo Smalltalk Users | Mailing List 
Archive
forum.world.st
Pharo Smalltalk Users forum and mailing list archive. Pharo User Forum



>




Re: [Pharo-users] OmniBase for Pharo 6

2018-06-21 Thread Matias Maretto
Hi, Thank you Esteban, I will load it and run some test; very thankful. Todd , 
Tim, also thank you for your comments, I will certainly take a look a Voyage.
I will let you know how it turns out.


Matias.




De: Pharo-users  en nombre de Esteban 
Lorenzano 
Enviado: jueves, 21 de junio de 2018 07:10 a. m.
Para: Any question about pharo is welcome
Asunto: Re: [Pharo-users] OmniBase for Pharo 6

Hi,

I just made a “blind port” of OmniBase to Pharo6+ (migrated the old FFI to new 
UFFI).
New port is here:

https://github.com/estebanlm/OmniBase
[https://avatars0.githubusercontent.com/u/513630?s=400=4]<https://github.com/estebanlm/OmniBase>

estebanlm/OmniBase<https://github.com/estebanlm/OmniBase>
github.com
OmniBase is Smalltalk efficient objects repository, BTree and filesystem based 
with full ACID features



and can be load like this:

Metacello new
repository: 'github://estebanlm/OmniBase/src';
baseline: 'OmniBase';
load.

PLEASE note I’ve never used OmniBase and I don’t know if this port will work 
out of the box. But if it was working, it should continue working now (and this 
list can help to get you rolling).

cheers,
Esteban

ps: I always wanted to do a Voyage-OmniBase… maybe this is the moment? :P



On 21 Jun 2018, at 08:13, Tim Mackinnon 
mailto:tim@testit.works>> wrote:

I too used it in Dolphin and it was fine, But i don’t think it gets used much 
in Pharo and so has probably decayed, isn’t Voyage an object dB or Gemstone?

(Todd & everyone, a gentle reminder to try and leave personality opinions at 
the door , we’ve already had another thread that got overly heated 
unnecessarily. Our community is small and we need to avoid knife fights. The 
technical stuff is already hard enough)

Tim

Sent from my iPhone

On 21 Jun 2018, at 00:20, Matias Maretto 
mailto:mgmare...@hotmail.com>> wrote:

 thanks for your answer Todd. I know omnibase from dolphin. Now I am starting a 
new Project and I want to use pharo. Would you recommend me another object 
database?
Thanks.

El 20 jun. 2018 19:29, Todd Blanchard 
mailto:tblanch...@mac.com>> escribió:
FWIW, I have used it before and I don't have anything good to say about the 
library or the individual who wrote it.

I'd look for something else.

On Jun 20, 2018, at 3:05 PM, pablo digonzelli Argentina 
mailto:pdigonze...@gmail.com>> wrote:

Hi try this. I do not know if working on pharo 6 or 7

https://github.com/sebastianconcept/OmniBase



El mié., 20 jun. 2018 a las 17:22, Matias Maretto 
(mailto:mgmare...@hotmail.com>>) escribió:

Hi folks, does anyone know how to get OmniBase for Pharo 6?.  The Package on 
Pharo.org<http://pharo.org/> is for pharo 4, I tried to install them manually 
from the MCZ files, but I get a strange error in a closeHandle method. 
 ulong 'CloseHandle' (long) 
module:'kernel32.dll'>
^self externalCallFailed.
I am using win 7.
Thanks.
Matias.




--
Ing. Pablo Digonzelli
Software Solutions
IP-Solutiones SRL
25 de Mayo 521
Email: pdigonze...@softsargentina.com<mailto:pdigonze...@softsargentina.com>
pdigonze...@gmail.com<mailto:pdigonze...@gmail.com>
Cel: 543815982714





Re: [Pharo-users] OmniBase for Pharo 6

2018-06-20 Thread Matias Maretto
 thanks for your answer Todd. I know omnibase from dolphin. Now I am starting a 
new Project and I want to use pharo. Would you recommend me another object 
database?
Thanks.

El 20 jun. 2018 19:29, Todd Blanchard  escribió:
FWIW, I have used it before and I don't have anything good to say about the 
library or the individual who wrote it.

I'd look for something else.

On Jun 20, 2018, at 3:05 PM, pablo digonzelli Argentina 
mailto:pdigonze...@gmail.com>> wrote:

Hi try this. I do not know if working on pharo 6 or 7

https://github.com/sebastianconcept/OmniBase



El mié., 20 jun. 2018 a las 17:22, Matias Maretto 
(mailto:mgmare...@hotmail.com>>) escribió:

Hi folks, does anyone know how to get OmniBase for Pharo 6?.  The Package on 
Pharo.org<http://Pharo.org> is for pharo 4, I tried to install them manually 
from the MCZ files, but I get a strange error in a closeHandle method. 
 ulong 'CloseHandle' (long) 
module:'kernel32.dll'>
^self externalCallFailed.
I am using win 7.
Thanks.
Matias.




--
Ing. Pablo Digonzelli
Software Solutions
IP-Solutiones SRL
25 de Mayo 521
Email: pdigonze...@softsargentina.com<mailto:pdigonze...@softsargentina.com>
pdigonze...@gmail.com<mailto:pdigonze...@gmail.com>
Cel: 543815982714




Re: [Pharo-users] OmniBase for Pharo 6

2018-06-20 Thread Matias Maretto
Hi pablo, Thanks for your answer, yes I tried it, doesn't work. When load the 
package omnibase-base I Get the same error.


El 20 jun. 2018 19:05, pablo digonzelli Argentina  
escribió:
Hi try this. I do not know if working on pharo 6 or 7

https://github.com/sebastianconcept/OmniBase



El mié., 20 jun. 2018 a las 17:22, Matias Maretto 
(mailto:mgmare...@hotmail.com>>) escribió:

Hi folks, does anyone know how to get OmniBase for Pharo 6?.  The Package on 
Pharo.org is for pharo 4, I tried to install them manually from the MCZ files, 
but I get a strange error in a closeHandle method.  ulong 'CloseHandle' (long) module:'kernel32.dll'>
^self externalCallFailed.
I am using win 7.
Thanks.
Matias.



--
Ing. Pablo Digonzelli
Software Solutions
IP-Solutiones SRL
25 de Mayo 521
Email: pdigonze...@softsargentina.com<mailto:pdigonze...@softsargentina.com>
pdigonze...@gmail.com<mailto:pdigonze...@gmail.com>
Cel: 543815982714



[Pharo-users] OmniBase for Pharo 6

2018-06-20 Thread Matias Maretto
Hi folks, does anyone know how to get OmniBase for Pharo 6?.  The Package on 
Pharo.org is for pharo 4, I tried to install them manually from the MCZ files, 
but I get a strange error in a closeHandle method.  ulong 'CloseHandle' (long) module:'kernel32.dll'>
^self externalCallFailed.
I am using win 7.
Thanks.
Matias.



[Pharo-users] Morph & MVC tutorials

2018-06-06 Thread Matias Maretto
Hi guys, I have been doing some things with Dolphin, actually feel very 
confortable with it, but now I am trying to learn Pharo. I have noticed that 
many things are quite similars,  but others are very differents, one of this 
things is the Visual Part, can someone point me out some good tutorial for 
Morph and MVC, I trying to understand the use of these two "worlds" and I want 
to "play" a little with them.


Thanks.


Matías.