wgl | 2 Dec 22:29 2009

Question about psets and examples shown in tutorial

I am using sbcl 1.0.30, and latest elephant (the alpha 1.0) bdb 4.7 and
am trying to do the examples shown
in
http://common-lisp.net/project/elephant/doc/Persistent-collections.html#Persistent-collections
to work, and it seems that the double parens around the friends slot def might be a typo.

In any case, with my example using a very similar definition using the
pset approach, the make instance of the persistent class gets "Elephant
deserialization error deserialize fubar!".

Any recommendations would be appreciated.

--wgl--

Shaneal Manek | 3 Dec 14:09 2009
Picon

Using Elephant in Production

Hi,

I just wanted to quickly let everyone know that I'm using elephant in
production on my start up (http://postabon.com).

Thanks to everyone here for creating such a great piece of open source
software. In particular, Ian Eslick and Leslie Polzer were very
helpful answering my newbie questions and helping me get off the
ground. But the whole elephant team has my eternal gratitude ;-)

(If we ever get funding/revenue/coders I plan to start contributing
back to Elephant. For now, I'm the only programmer (and a student to
boot) so I must apologize that I don't have the time/resources to do
so properly).

Thanks
-Shaneal

wgl | 3 Dec 15:09 2009

Re: Question about psets and examples shown in tutorial

All:

I resolved my problem, and now things are working quite well.  I do
thing the mentioned example does have a typo.

Thanks for all the effort you put into this.  Glad to see that Elephant
is getting some good press on HN and reddit with the new startup.

--wgl--

On Wed, 2009-12-02 at 15:29 -0600, wgl wrote:
> I am using sbcl 1.0.30, and latest elephant (the alpha 1.0) bdb 4.7 and
> am trying to do the examples shown in
>
http://common-lisp.net/project/elephant/doc/Persistent-collections.html#Persistent-collections
to work, and it seems that the double parens around the friends slot def might be a typo.
> 
> In any case, with my example using a very similar definition using the
> pset approach, the make instance of the persistent class gets "Elephant
> deserialization error deserialize fubar!".
> 
> Any recommendations would be appreciated.
> 
> --wgl--
> 
> 
> _______________________________________________
> elephant-devel site list
> elephant-devel@...
> http://common-lisp.net/mailman/listinfo/elephant-devel
(Continue reading)

Ian Eslick | 3 Dec 20:41 2009
Picon

Elephant in Production and the Elephant 1.0 Release

Shaneal,

It's great to hear Elephant is working well for people doing new projects.  My own project,
www.lamsight.org, has been live for about a year with no Elephant related problems that I can recall. 
There are corner cases that you may hit during development where the code isn't yet rock solid, but the main
use cases have been stable for quite a few of us for the last year and a half or so.

:: Appeal below for help on 1.0 ::

Leslie and I are both very motivated to get a proper 1.0 release out the door.  The 1.0 requires tightening up
the corner cases people have reported recently.  A proper release is a significant effort.  I think we can
handle the few remaining bugs and feature cleanup, but a release will not happen anytime soon without help
from the community to augment the test suite and update the manual.  In fact it's better that people less
familiar with the code base do both as we don't always catch confusing issues that are not intuitive for us.

There is plenty of opportunity for small efforts from volunteers (1-3 hour chunks) that would greatly
accelerate the release cycle.  If you write to me directly, I'd be willing to put together a 'punchlist' of
small projects along these lines that would help.  If we get 5 or more people to volunteer to do a few of these,
I'll commit to the core work necessary to wrap up the release (and hopefully Leslie will help too!)

Regards,
Ian

On Dec 3, 2009, at 5:09 AM, Shaneal Manek wrote:

> Hi,
> 
> I just wanted to quickly let everyone know that I'm using elephant in
> production on my start up (http://postabon.com).
> 
(Continue reading)

Plamen . | 5 Dec 14:31 2009
Picon

Problem with LWW 5.1.2, BDB-backend

Sorry if posted twice...

Hello,
I need to use BDB for my current application and from what I see on
the net, elephant seems to be the most mature and functional solution.
After following the installation instructions (I use LispWorks 5.1.2
for Windows - yes - I need that configuration at the moment, with
Berkeley DB 4.5.20, with prebuild DLLs (libberkeley-db.dll and
libmemutil.dll) in the elephant-root and from what I see a correct
my-config.sexp also in the elephant-root directory), after loading
Elephant I get the following error :

ELE-USER 13 > (open-store '(:bdb "/temp/db2/"))

Error: The call (#<Function DB-BDB::%DB-ENV-CREATE 22053092> 0) does
not match definition (#<Function DB-BDB::%DB-ENV-CREATE 22053092>
DB-BDB::FLAGS DB-BDB::ERRNO).

From what I see in the sources - there are 3 relevant definitions :

1. the BDB one :

db_env_create

________________________________

#include <db.h>

int
db_env_create(DB_ENV **dbenvp, u_int32_t flags);
(Continue reading)

Plamen . | 5 Dec 14:28 2009
Picon

Problem with LWW 5.1.2, BDB-backend

Hello,
I need to use BDB for my current application and from what I see on
the net, elephant seems to be the most mature and functional solution.
After following the installation instructions (I use LispWorks 5.1.2
for Windows - yes - I need that configuration at the moment, with
Berkeley DB 4.5.20, with prebuild DLLs (libberkeley-db.dll and
libmemutil.dll) in the elephant-root and from what I see a correct
my-config.sexp also in the elephant-root directory), after loading
Elephant I get the following error :
ELE-USER 13 > (open-store '(:bdb "/temp/db2/"))
Error: The call (#<Function DB-BDB::%DB-ENV-CREATE 22053092> 0) does
not match definition (#<Function DB-BDB::%DB-ENV-CREATE 22053092>
DB-BDB::FLAGS DB-BDB::ERRNO).
From what I see in the sources - there are 3 relevant definitions :
1. the BDB one :

db_env_create

________________________________

#include <db.h>

int
db_env_create(DB_ENV **dbenvp, u_int32_t flags);

2. then the libberkeley-db one :

DB_ENV *db_env_cr(u_int32_t flags, int *errno) {
  DB_ENV *envp;
  *errno = db_env_create(&envp, flags);
(Continue reading)

Ian Eslick | 6 Dec 17:44 2009
Picon

Re: Problem with LWW 5.1.2, BDB-backend

Hey, quick answers:

1) In the online FAQ you'll notice that you have to ensure that you are using uffi and not the uffi
compatibility package from cffi.
2) The prebuilt DLLs are not up to date (sorry!), they need to be made current against BDB 4.7 which Elephant
1.0 depends on.
3) We have one or two lispworks users that I'm aware of, so it should work, but I can't rule out a lispworks
specific problem, although I think #1 and #2 above explain what you're seeing.

Are you a position to build the DLLs yourself?

Ian

On Dec 5, 2009, at 5:28 AM, Plamen . wrote:

> Hello,
> I need to use BDB for my current application and from what I see on
> the net, elephant seems to be the most mature and functional solution.
> After following the installation instructions (I use LispWorks 5.1.2
> for Windows - yes - I need that configuration at the moment, with
> Berkeley DB 4.5.20, with prebuild DLLs (libberkeley-db.dll and
> libmemutil.dll) in the elephant-root and from what I see a correct
> my-config.sexp also in the elephant-root directory), after loading
> Elephant I get the following error :
> ELE-USER 13 > (open-store '(:bdb "/temp/db2/"))
> Error: The call (#<Function DB-BDB::%DB-ENV-CREATE 22053092> 0) does
> not match definition (#<Function DB-BDB::%DB-ENV-CREATE 22053092>
> DB-BDB::FLAGS DB-BDB::ERRNO).
> From what I see in the sources - there are 3 relevant definitions :
> 1. the BDB one :
(Continue reading)

Elliott Slaughter | 6 Dec 22:12 2009
Picon

Failure of Allegro on Windows with BDB 4.7

Hi,

I get the following compile error with the newest Elephant 1.0 in Allegro on Windows 7 with BDB 4.7.

Let me know if there is anything else I can do to help debug this.

;;; Compiling file
;;;   C:\Bin\asdf-allegro\elephant-1.0\src\db-bdb\berkeley-db.lisp
; While compiling DB-CURSOR:
Error: This declare form is not in a place declares are allowed:
(DECLARE (TYPE POINTER-INT ERRNO-BUFFER))
Problem detected when processing
       (DECLARE (TYPE POINTER-INT ERRNO-BUFFER))
inside (PROGN (DECLARE (TYPE POINTER-INT ERRNO-BUFFER))
              (LET* (# #) (DECLARE # #) ...)) ..
inside (UNWIND-PROTECT ..)
inside (WITH-FOREIGN-OBJECT (ERRNO-BUFFER :INT) ..)
inside (BLOCK DB-CURSOR ..)
inside (PROGN (BLOCK DB-CURSOR (WITH-FOREIGN-OBJECT # # ...))) ..
  [condition type: PARSE-ERROR]

--
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay
<div>
<div>Hi,</div>
<div><br></div>
<div>I get the following compile error with the newest Elephant 1.0 in Allegro on Windows 7 with BDB 4.7.</div>
<div><br></div>
<div>Let me know if there is anything else I can do to help debug this.</div>
<div><br></div>
<div>;;; Compiling file</div>
<div>;;; &nbsp; C:\Bin\asdf-allegro\elephant-1.0\src\db-bdb\berkeley-db.lisp</div>
<div>; While compiling DB-CURSOR:</div>
<div>Error: This declare form is not in a place declares are allowed:</div>
<div>(DECLARE (TYPE POINTER-INT ERRNO-BUFFER))</div>
<div>Problem detected when processing</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; (DECLARE (TYPE POINTER-INT ERRNO-BUFFER))</div>

<div>inside (PROGN (DECLARE (TYPE POINTER-INT ERRNO-BUFFER))</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(LET* (# #) (DECLARE # #) ...)) ..</div>
<div>inside (UNWIND-PROTECT ..)</div>
<div>inside (WITH-FOREIGN-OBJECT (ERRNO-BUFFER :INT) ..)</div>

<div>inside (BLOCK DB-CURSOR ..)</div>
<div>inside (PROGN (BLOCK DB-CURSOR (WITH-FOREIGN-OBJECT # # ...))) ..</div>
<div>&nbsp;&nbsp;[condition type: PARSE-ERROR]</div>
<br>-- <br>Elliott Slaughter<br><br>"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay<br>
</div>
Elliott Slaughter | 6 Dec 22:12 2009
Picon

Failure of SBCL on Windows with BDB 4.7

Hi,


I'm testing the newest Elephant 1.0 SBCL 1.0.29 on Windows 7 with BDB 4.7. I get the following error when attempting to open a controller. (I've used SBCL with Elephant 1.0 and BDB 4.5 in the past, so either this is an upgrade issue from 4.5 to 4.7 or a regression.)

Let me know if there is anything else I can do to help debug this.

DB_ENV->set_lk_detect: unknown deadlock detection mode specified

debugger invoked on a BDB-DB-ERROR: Berkeley DB error #22: Invalid argument

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [CONTINUE] Ignore runtime option --load "test.lisp".
  1: [ABORT   ] Skip rest of --eval and --load options.
  2:            Skip to toplevel READ/EVAL/PRINT loop.
  3: [QUIT    ] Quit SBCL (calling #'QUIT, killing the process).

(DB-BDB::DB-ENV-SET-MAX-LOCKS #<unavailable argument> #<unavailable argument>)
0] ba

0: (DB-BDB::DB-ENV-SET-MAX-LOCKS
    #<unavailable argument>
    #<unavailable argument>)
1: ((SB-PCL::FAST-METHOD ELEPHANT::OPEN-CONTROLLER
     (DB-BDB::BDB-STORE-CONTROLLER)) #<unavailable lambda list>)[:EXTERNAL]
2: ((LAMBDA
        (SB-PCL::.PV. SB-PCL::.NEXT-METHOD-CALL. SB-PCL::.ARG0. SB-INT:&MORE
         SB-PCL::.DFUN-MORE-CONTEXT. SB-PCL::.DFUN-MORE-COUNT.))
    #<unused argument>
    #<unused argument>
    #<BDB-STORE-CONTROLLER test.db/>
    671267
    0)
3: (OPEN-STORE #<unavailable lambda list>)[:EXTERNAL]
4: (SB-INT:SIMPLE-EVAL-IN-LEXENV (OPEN-STORE '(:BDB "test.db/")) #<NULL-LEXENV>)

5: (SB-FASL::LOAD-AS-SOURCE
    #<SB-SYS:FD-STREAM for "file c:\\Bin\\asdf\\elephant-1.0\\test.lisp" {23EEEE
B9}>
    NIL
    NIL)
6: ((FLET SB-FASL::LOAD-STREAM)
    #<SB-SYS:FD-STREAM for "file c:\\Bin\\asdf\\elephant-1.0\\test.lisp" {23EEEE
B9}>)
7: (LOAD #P"test.lisp")[:EXTERNAL]
8: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS ((:LOAD . "test.lisp")))
9: (SB-IMPL::TOPLEVEL-INIT)
10: ((LABELS SB-IMPL::RESTART-LISP))
11: ("foreign function: #x4120C4")
12: ("foreign function: #x40AF88")

--
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay
<div>
<p>Hi,</p>
<div><br></div>
<div>I'm testing the newest Elephant 1.0 SBCL 1.0.29 on Windows 7 with BDB 4.7. I get the following error when attempting to open a controller. (I've used SBCL with Elephant 1.0 and BDB 4.5 in the past, so either this is an upgrade issue from 4.5 to 4.7 or a regression.)<br>
</div>
<div><br></div>
<div>Let me know if there is anything else I can do to help debug this.</div>
<div><br></div>
<div>
<div>DB_ENV-&gt;set_lk_detect: unknown deadlock detection mode specified</div>
<div><br></div>
<div>debugger invoked on a BDB-DB-ERROR: Berkeley DB error #22: Invalid argument</div>

<div><br></div>
<div>Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.</div>
<div><br></div>
<div>restarts (invokable by number or by possibly-abbreviated name):</div>
<div>&nbsp;&nbsp;0: [CONTINUE] Ignore runtime option --load "test.lisp".</div>

<div>&nbsp;&nbsp;1: [ABORT &nbsp; ] Skip rest of --eval and --load options.</div>
<div>&nbsp;&nbsp;2: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Skip to toplevel READ/EVAL/PRINT loop.</div>
<div>&nbsp;&nbsp;3: [QUIT &nbsp; &nbsp;] Quit SBCL (calling #'QUIT, killing the process).</div>
<div><br></div>

<div>(DB-BDB::DB-ENV-SET-MAX-LOCKS #&lt;unavailable argument&gt; #&lt;unavailable argument&gt;)</div>
<div>0] ba</div>
<div><br></div>
<div>0: (DB-BDB::DB-ENV-SET-MAX-LOCKS</div>
<div>&nbsp;&nbsp; &nbsp;#&lt;unavailable argument&gt;</div>
<div>

&nbsp;&nbsp; &nbsp;#&lt;unavailable argument&gt;)</div>
<div>1: ((SB-PCL::FAST-METHOD ELEPHANT::OPEN-CONTROLLER</div>
<div>&nbsp;&nbsp; &nbsp; (DB-BDB::BDB-STORE-CONTROLLER)) #&lt;unavailable lambda list&gt;)[:EXTERNAL]</div>
<div>2: ((LAMBDA</div>
<div>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;(SB-PCL::.PV. SB-PCL::.NEXT-METHOD-CALL. SB-PCL::.ARG0. SB-INT:&amp;MORE</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; SB-PCL::.DFUN-MORE-CONTEXT. SB-PCL::.DFUN-MORE-COUNT.))</div>
<div>&nbsp;&nbsp; &nbsp;#&lt;unused argument&gt;</div>
<div>&nbsp;&nbsp; &nbsp;#&lt;unused argument&gt;</div>
<div>&nbsp;&nbsp; &nbsp;#&lt;BDB-STORE-CONTROLLER test.db/&gt;</div>
<div>&nbsp;&nbsp; &nbsp;671267</div>

<div>&nbsp;&nbsp; &nbsp;0)</div>
<div>3: (OPEN-STORE #&lt;unavailable lambda list&gt;)[:EXTERNAL]</div>
<div>4: (SB-INT:SIMPLE-EVAL-IN-LEXENV (OPEN-STORE '(:BDB "test.db/")) #&lt;NULL-LEXENV&gt;)</div>
<div><br></div>
<div>5: (SB-FASL::LOAD-AS-SOURCE</div>

<div>&nbsp;&nbsp; &nbsp;#&lt;SB-SYS:FD-STREAM for "file c:\\Bin\\asdf\\elephant-1.0\\test.lisp" {23EEEE</div>
<div>B9}&gt;</div>
<div>&nbsp;&nbsp; &nbsp;NIL</div>
<div>&nbsp;&nbsp; &nbsp;NIL)</div>
<div>6: ((FLET SB-FASL::LOAD-STREAM)</div>
<div>&nbsp;&nbsp; &nbsp;#&lt;SB-SYS:FD-STREAM for "file c:\\Bin\\asdf\\elephant-1.0\\test.lisp" {23EEEE</div>

<div>B9}&gt;)</div>
<div>7: (LOAD #P"test.lisp")[:EXTERNAL]</div>
<div>8: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS ((:LOAD . "test.lisp")))</div>
<div>9: (SB-IMPL::TOPLEVEL-INIT)</div>
<div>10: ((LABELS SB-IMPL::RESTART-LISP))</div>

<div>11: ("foreign function: #x4120C4")</div>
<div>12: ("foreign function: #x40AF88")</div>
</div>
<div>
<br>-- <br>Elliott Slaughter<br><br>"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay<br>
</div>
</div>
Elliott Slaughter | 6 Dec 21:55 2009
Picon

Re: Problem with LWW 5.1.2, BDB-backend

On Sun, Dec 6, 2009 at 8:44 AM, Ian Eslick <eslick-GGWXsB6tJanpgkiH4x7ZXw@public.gmane.org> wrote:

2) The prebuilt DLLs are not up to date (sorry!), they need to be made current against BDB 4.7 which Elephant 1.0 depends on.

Is Elephant incompatible with BDB 4.5? That could be part of the problem, since it sounds like Plamen is trying to use 4.5.

Are you a position to build the DLLs yourself?

I can provide up-to-date binaries for BDB 4.7, although I seem to be getting errors compiling Elephant with SBCL. (More on that in a separate thread.)

--
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay
<div>
<p>On Sun, Dec 6, 2009 at 8:44 AM, Ian Eslick <span dir="ltr">&lt;<a href="mailto:eslick@...">eslick@...</a>&gt;</span> wrote:</p>
<div class="gmail_quote">
<blockquote class="gmail_quote">

2) The prebuilt DLLs are not up to date (sorry!), they need to be made current against BDB 4.7 which Elephant 1.0 depends on.<br>
</blockquote>
<div><br></div>
<div>Is Elephant incompatible with BDB 4.5? That could be part of the problem, since it sounds like Plamen is trying to use 4.5.</div>
<div><br></div>
<blockquote class="gmail_quote">Are you a position to build the DLLs yourself?<br>
</blockquote>
<div><br></div>
<div>I can provide up-to-date binaries for BDB 4.7, although I seem to be getting errors compiling Elephant with SBCL. (More on that in a separate thread.)</div>
</div>
<br>-- <br>Elliott Slaughter<br><br>"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay<br>
</div>

Gmane