Re: [Metakit] c4_Property shouldn't require a virtual destructor?

2002-12-23 Thread Jean-Claude Wippler
Vittorio Digilio wrote: Unfortunately it lacks (almost completely :-) ) a full C++ documentation (anybody, as a long-term user wrote down something and is willing to share, thanks :-) ), so I started experimenting and inspecting the C++ src code. Does

Re: [Metakit] mmap

2002-12-23 Thread Jean-Claude Wippler
Bruno Blondeau wrote: Could someone tell me how to force changes to the disk when mmap is being used by a Metakit database? MK uses mmap in readonly mode. Changes written to file during a commit are written to the underlying file. The implementation for all I/O is concentrated in the

Re: [Metakit] small borland change for metakit-2.4.8

2002-12-23 Thread Jean-Claude Wippler
Simon Cusack wrote: The new 2.4.8 is great, I had to make a small change for borland to compile it. In src\univ.cpp I had change line 22 from: #if !q4_MSVC !q4_WATC !(q4_MWCW defined(_WIN32)) to : #if !q4_BORC !q4_MSVC !q4_WATC !(q4_MWCW defined(_WIN32)) to build for borland builder

Re: [Metakit] Case Sensitive Find/Select/Locate

2002-12-26 Thread Jean-Claude Wippler
Jeffrey Kay wrote: How hard would it be to add another field type, say 's' (lowercase s) for supporting case sensitive strings? I've sort of run into a brick wall with this -- I have some tables that the case-insensitive search is fine, but others where I really need the case sensitivity. If

[Metakit] libtool

2003-01-22 Thread Jean-Claude Wippler
I have a question... For some reason I do not quite understand, MK builds shared libs with ld. This completes and works as expected with C++ programs, but it causes runtime errors when loaded from a C main (for example Mk4tcl.so loaded from tclsh). It may also breaks down even with C++ in

Re: [Metakit] Question on Views

2003-01-22 Thread Jean-Claude Wippler
Barbara Menzel wrote: We are using MetaKit with Visual C++. Often, we find there is a need to initialize or perform some initial action on a view within a new class. I've tried passing the view into the object via the constructor and get several compile errors, primarily, c4_view is not a

Re: [Metakit] Q: rowids?

2003-02-06 Thread Jean-Claude Wippler
Gordon McMillan wrote: Why sort it? Scan on open for the maxid, and maintain that in memory. It's lower overhead, and doesn't interfere with whatever ordering the app might want to see or maintain. Worth repeating, because it highlights a fundamental aspect of MK's column-wise data storage

Re: [Metakit] Tk with tclkit problem?

2003-02-19 Thread Jean-Claude Wippler
Lok Yek Soon wrote: I encounter the following problem when testing Tk with tclkit under Linux (eg. ./tclkit hello.tcl) Error message as follows: == invalid command name wm while executing wm title . Hello (file hello.tcl line 2) Add the following line before calling wm: package

[Metakit] Metakit 2.4.9 released

2003-02-20 Thread Jean-Claude Wippler
There is a new release of Metakit. It's mostly a bug fix release, plus some smaller changes to extend the Tcl binding a bit more on the OO side. Extract from changelog at http://www.equi4.com/metakit/CHANGES: 2003-02-19###MK 2.4.9 2003-02-18Fix bug in blocked view delete and hash

Re: [Metakit] MetaKit java bindings?

2003-04-02 Thread Jean-Claude Wippler
Michael Scharf wrote: I switched my project from delphi/python to java. And I still beleive that MetaKit is the best database for my application. Now I wonder if anybody has written some JNI code to access MetaKit from java. Whee... a trans-lingual MK afeccionado! :) It depends on what you want

Re: [Metakit] Redundant data

2003-05-29 Thread Jean-Claude Wippler
Angus Lord wrote: I'm using metakit partly as structured storage for my app. Setting up the database is fine, however if I modify one of the entries, then I get a copy of the data stored in the file (only once, I can modify it many times). This is fine for small bits of data, but if I am

Re: [Metakit] Installing Mk4tcl on Red Hat Linux 8.0

2003-05-30 Thread Jean-Claude Wippler
John Fletcher wrote: Set $auto_path accordingly. What does this do? Standard Tcl - please google for it or look at man pages. Is there any way in which the installation can do the building of the package index file? If not, then the demos and tests, which use package require will all fail,

Re: [Metakit] corrupt database

2003-06-26 Thread Jean-Claude Wippler
Guenther Fischer wrote: On Tue, 24 Jun 2003, Jacob Levy wrote: You (and we) need a little more information: [...] It is a starpack with the latest version of tclkit - the windows version is build on linux. tclkit is the build fron equi4.com. For issues regarding starpacks and tclkit, it is

Re: [Metakit] Using head of file

2003-09-02 Thread Jean-Claude Wippler
David Van Maren wrote: I noticed that constructing a (modifiable) storage from an existing non-metakit file succeeds, and allows metakit information to be written to it with no errors.  Examining the file afterwards, I've seen that the metakit information is simply appended to the original

Re: [Metakit] How long to wait before commiting?

2003-09-03 Thread Jean-Claude Wippler
Brian Kelley wrote: I am loading a database with a bunch of new data that the user is allowed to validate. I have been using commit() and rollback() for these operations because it's easy :) The question I have is, what are the ramifications of loading a lot of data without commiting?

Re: [Metakit] Do loaded rows hang around in memory?

2003-09-15 Thread Jean-Claude Wippler
Erik Hermansen wrote: [trouble] The only pattern I can see is that the corruption usually occurs when the user exits the application. If you have AutoCommit() enabled, then that may be related - it'll commit before exit. Can you copy away the file The commit buffers are also memory-mapped

Re: [Metakit] hash table size in database

2003-09-16 Thread Jean-Claude Wippler
Kristian G. Kvilekval wrote: I am using a hash view on a table of about 4K elements. Today I examined the database with the dump utility and noticed that the hash view sometimes has 4K elements and other times it has 8K.. What determines the size of the hash table? It's a power of two, and it's

Re: [Metakit] hash table size in database

2003-09-16 Thread Jean-Claude Wippler
Kristian G. Kvilekval wrote: Hmm... that's exactly what prompted the question. I have a database with 4030 entries, but one machine it generates a hash with 4096 and the other with 8192.. Is it checking whether the database fits in memory? Just infinitely curious: Machine 1:

Re: [Metakit] Mk4py behavioral questions [was Re: Mk4Py bug?]

2003-09-17 Thread Jean-Claude Wippler
Gordon McMillan wrote: On 17 Sep 2003 at 1:25, Nicholas Riley wrote: [...] I'm working under the assumption that, given a database, you'd prefer it to generate an error rather than discard data. Not at all. When working with GUI forms, I often use a form dict which may well have extra state I

Re: [Metakit] beginners hash view

2003-09-18 Thread Jean-Claude Wippler
Riccardo Cohen wrote: I built a view of 50k records that I need to access. With normal view it is too slow (180 ms), so I try with hash view that I never used, and the result is even slower !(250 ms) ! (I've just read the new page http://www.equi4.com/mkmapping.html) Here is what I've done :

Re: [Metakit] beginners hash view

2003-09-18 Thread Jean-Claude Wippler
Riccardo Cohen wrote: Thanks for your quick answer. I did try to use only viewhash, for adding. But it did not change. Weird... try using Find() instead of Select()? -jcw ___ metakit mailing list - [EMAIL PROTECTED]

[Metakit] Trends (was: Re: beginners hash view)

2003-09-18 Thread Jean-Claude Wippler
Riccardo Cohen wrote: c4_View view=db.GetAs(table[key:S,val:S]),selection; c4_View viewsec=db.GetAs(sec[_H:I,_R:I]); c4_View viewhash=view.Hash(viewsec,1); [...] what's wrong ?? is there any sample code ? To follow up on this - the demo/ and examples/ subdirs in the MK

Re: [Metakit] beginners hash view

2003-09-18 Thread Jean-Claude Wippler
Riccardo Cohen wrote: It worked fine with Find() ;) Then it comes two questions : 1) Is it normal that select does not use hash ? 2) If I do a SelectRange(), will it use hash ? It seems you've just answered your own Q's. Think about it: hashing is by value, not sorted. So select, which uses

Re: [Metakit] Ordered and Hash Views together!

2003-09-18 Thread Jean-Claude Wippler
Brian Kelley wrote: I have a database table table[id:I,name:S] that I would like to find quickly using either id or name. Is it possible to have two hash views simultaneously on this table? This Q was bound to come up one day ;) vw = st.getas(table[id:I,name:S]) dvw = vw.project(vw.name,

Re: [Metakit] indexed view

2003-09-19 Thread Jean-Claude Wippler
Riccardo Cohen wrote: While looking at indexed view in view.cpp, I read the header of hash view, and noticed a small mistake : [...] * c4_View datah = storage.GetAs(people_H1[name:S,age:I]); [...] while the text above speaks about the secondary view [_H:I,_R:I] (Must be an old version) Good

[Metakit] Bugs, gaps, and suggestions

2003-09-19 Thread Jean-Claude Wippler
There's a new page on the website which I'm going to use to collect issues which do not fit the bug tracking system well enough, as well as more open-ended ideas and suggestions for extending and improving Metakit. The new feature/to-do page is at http://www.equi4.com/mktodo.html The

Re: [Metakit] metakit for python 2.3 on freebsd

2003-09-20 Thread Jean-Claude Wippler
PieterB wrote: I'm trying to install metakit with python 2.3 on freebsd 5.1. When I run make METAKIT_WITH_PYTHON=yes from /usr/ports/databases/metakit (and changing python2.2 to python2.3 in the Makefile). Not sure how the FreeBSD ports system is setup with MK, so I can't comment on it. In

[Metakit] gcc 3.3 on mac

2003-09-20 Thread Jean-Claude Wippler
FYI, the MK build problems with gcc 3.3 on OS X are resolved by getting the latest gcc update from Apple (Aug 2003): This one is bonkers: $ gcc --version gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1435) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the

[Metakit] test - please ignore

2003-09-25 Thread Jean-Claude Wippler
(I'm fiddling with Mailman mailing list settings) -jcw ___ metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit

Re: [Metakit] S vs B datatypes in Python

2003-09-25 Thread Jean-Claude Wippler
[EMAIL PROTECTED] wrote: Is there in fact, for Python, a difference between using S and using B? There are some semantic differences between C/C++, Python, and Tcl - so there are always going to be some slight impedance mismatches between them for Metakit. In C, S-properties are

Re: [Metakit] Mk4py storage lifetime

2003-09-26 Thread Jean-Claude Wippler
Nicholas Riley wrote: I'm almost finished with my Mk4py work, finally. Down from about 20 items on my to-do list to two, at least. :-) Wow, great! Anyway, one more question. Should this work? metakit.storage().getas('blah[x:S,y:I]').structure() [] Because this does: s = metakit.storage()

Re: [Metakit] Mk4py changes

2003-09-27 Thread Jean-Claude Wippler
Nicholas, Thanks for this great contribution. I'll go through this to understand all the changes. In the meantime. I'm attaching a diff with the latest code in CVS, it wasn't so hard after all, and after editing out the differences reported for auto-generated stuff such as configure, it

Re: [Metakit] find select and search, help once again please

2003-09-29 Thread Jean-Claude Wippler
Riccardo Cohen wrote: Search() = many errors like : error search for key '836 my key 836' found idx 15000 this key is in the table, I see it with kitviewer, 3 records have this key. = when found, the value is sometimes not the good one : idx=498, key='195 my key 195', foundidx=5850,

Re: [Metakit] Mysteriously growing Metakit db

2003-09-30 Thread Jean-Claude Wippler
[EMAIL PROTECTED] wrote: [...] I am now fairly confident that my database will not grow without bound, consuming life as we know it on the east coast. Relieved :) But what is commit-extend mode anyway? I've dug up information about this in the Metakit wiki and used it as basis for a new page on

Re: [Metakit] Mk4Py for python2.3 on Windows

2003-09-30 Thread Jean-Claude Wippler
Thorsten Henninger wrote: I am trying to compile the Mk4py.dll (python bindings) for Python2.3 on Windows, but I did not succeed. I almost got it withthe mingw cross compiler on windows, but this one does not work as well! There was an issue with 64 bit ints (PWONumber.h and PyRowRef.cpp,

Re: [Metakit] Mk4py changes

2003-09-30 Thread Jean-Claude Wippler
Mikhail, did you change any files outside of mk4py distribution? FYI, see http://trixie.triqs.com/pipermail/metakit/2003-September/001409.html - I posted a patch, i.e. all the differences in one file. You can see exactly what Nicholas did. -jcw

Re: [Metakit] BSDDB vs. Metakit performance?

2003-10-10 Thread Jean-Claude Wippler
Brian Kelley wrote: Let's do the test: 2.9143433 seconds to iterate bsddb3 1.8621608 seconds to iterate metakit So metakit is approximately 30% faster for linear access. Both are pretty good though. As you know, statistics can be made to come out any way you like, i.e. your above

[Metakit] compression and encryption

2003-10-10 Thread Jean-Claude Wippler
Two options not implemented in MK 2.4.9.2, are compression and encryption. Due to the column-wise design of MK, this may actually have substantial consequences. The idea, is that in a datafile with say layout names[first:S,last:S,phones[type:S,number:S]] it would be possible to designate

Re: [Metakit] compression and encryption

2003-10-16 Thread Jean-Claude Wippler
Andreas Muegge wrote: the implementation of encryption is something I would like to see Ok, thanks for letting me know (surprising: just two responses so far). I am not sure about compression. If we talk about normal strings I guess you must try it out. Decompression is usually rather fast and

Re: [Metakit] KitBinder

2003-10-21 Thread Jean-Claude Wippler
Pascal Baspeyras wrote: I'm interested in KitBinder features, but I can't find more than this page: http://www.equi4.com/metakit/api-old/doc_kbind.html I easily embed a metakit file into my app's resources, but I fail to open it from there (Visual C++). Whoa ... that's 5 year old technology, it's

Re: [Metakit] Viewing a MK database

2003-10-31 Thread Jean-Claude Wippler
[EMAIL PROTECTED] wrote: Let's say I have a large Mk database that I want to display in a grid-like format (wxGrid, for example). What is the best way to approach this so that the display is very fast? [...] But these *represent* other things and what I want to display is the string

Re: [Metakit] Question on how to remove top level views

2003-11-11 Thread Jean-Claude Wippler
Berk, Murat wrote: We used to store a view name in one view (instead of marking cell as subview) so that we can do getAs(name) and use it. I do not want to change a lot of things, but when we try to delete the rows in the first view, the only thing we can do is to remove all elements of the

Re: [Metakit] unique() with count?

2003-11-16 Thread Jean-Claude Wippler
[EMAIL PROTECTED] wrote: It turns out that the unique() view operation is pretty useful to me. However, what would be even more useful is to have a count of each record which indicates the total number of records which were in its identity class. apply(view.counts, view.structure() +

Re: [Metakit] Passing views in Python

2003-11-20 Thread Jean-Claude Wippler
Brian Kelley wrote: My guess is the storage is going out of scope and being garbage collected and thereby closing your views without you knowing about it. You should keep the storage object in scope for your entire application run. Here is some proof of this: storage = metakit.storage()

Re: [Metakit] Re-assigning a c4_View - a quickie

2003-11-20 Thread Jean-Claude Wippler
Ian Fairclough wrote: Just a quick question, if you have the following code : c4_View viewB = viewA.Duplicate(); and then you want to re-assign viewB i.e. viewB = viewC.Duplicate(); What should you call prior to re-assigning viewB to ensure that the first viewB is properly destroyed. For

Re: [Metakit] 'Blocked' views

2003-11-26 Thread Jean-Claude Wippler
Jacob Levy wrote: Thanks for the example -- I'm sure I can construct the equivalent C++ code, and if not I'll look through the tests that I'm sure contain some examples. Look in examples/. It's all there, C++ and Tcl. You mentioned that blocked views are advantageous for when you have lots of

Re: [Metakit] License

2003-12-04 Thread Jean-Claude Wippler
Pat Knight wrote: The Metakit license says I have to include the copyright notice and license text if my product contains substantial parts of the software. However, the precompiled DLLs for Windows don't contain the required text. Am I allowed to redistribute them, or do I have to build my

Re: [Metakit] MKStats

2003-12-20 Thread Jean-Claude Wippler
Jeffrey Kay wrote: Is the source code for the mku portion of the mkstats program available? I thought that having the ability to compute the percentage of empty space in a db would be a helpful function to have in my code, specifically so I could decide when to compact the data. It appears

[Metakit] Metakit list at gmane.org

2003-12-20 Thread Jean-Claude Wippler
If you prefer to read this mailing list over the web, then you may want to check out the new archive at http://news.gmane.org/gmane.comp.db.metakit/ - it's quite sophisticated in its support of keyboard navigation (for javascript-capable browsers). Click on the question mark in the top right

Re: [Metakit] metakit and UTF-8

2003-12-23 Thread Jean-Claude Wippler
andrian wrote: I created a metakit database using Mk4tcl 2.4.9.2. I have saved the script file with the data to populate the db in UTF-8. However, the stored data appear to be corrupted. I understand that according to Metakit's specification UTF-8 is supported. Furthermore, I use Wikit, where I

Re: [Metakit] Closing storages (again)

2004-01-02 Thread Jean-Claude Wippler
[EMAIL PROTECTED] wrote: So now my question is this: Are weak references to PyStorage objects unsupported simply because the necessary stuff to support them was just never added? (It doesn't *look* as though it would take much to support this.) Or is there some more fundamental reason weak

Re: [Metakit] Question

2004-01-02 Thread Jean-Claude Wippler
chris mollis wrote: I have a question about the best way to validate information on reads/writes to the db.  For example, I'd like to make sure that data that is written out during a particular commit (by calculating a hash of data written, perhaps) can be verified again when the database is

Re: [Metakit] Potentially Stupid Question

2004-01-06 Thread Jean-Claude Wippler
Brian Kelley wrote: Based on some previous posts to the metakit news group, I have learned that a metakit storage can be about 1.5 Gigabytes in storage before performance starts to decline. I.e. memory mapped access is no longer viable. Good to know. What happens if you have two storages

[Metakit] Metakit 2.4.9.3

2004-01-26 Thread Jean-Claude Wippler
This is to announce a new release of the Metakit embedded high-performance database library for C++, Python, and Tcl. This version consolidates bug fixes over the past 9 months since 2.4.9.2 came out. There should be no source code or binary incompatibilities, upgrading is recommended (but

[Metakit] multi-column sorting

2004-02-09 Thread Jean-Claude Wippler
Does anyone know how to do a multi-column sort, using column-wise permutations? I'm looking at ways to optimize sorting, based on the fact that MK has a column-wise data organization. The current sort does row-wise comparisons. Here's what I'm after: * take the first column, sort it, and

Re: [Metakit] multi-column sorting

2004-02-09 Thread Jean-Claude Wippler
Brian Kelley wrote: Jean-Claude Wippler wrote: Does anyone know how to do a multi-column sort, using column-wise permutations? Is this the right approach? Thinking out loud here. A multi-column sort is really a precedence sort. You only need to sort on a secondary or tertiary key

Re: [Metakit] Metakit wiki

2004-03-03 Thread Jean-Claude Wippler
John Fletcher wrote: I cannot find on the metakit home page at http://www.equi4.com/metakit.html any link to the metakit wiki at http://www.equi4.com/metakit/wiki.cgi/0 It's still there, at http://www.equi4.com/mkmailing.html I wondered if it was still there, and it is.  For some purposes the

Re: [Metakit] E4graph link

2004-03-03 Thread Jean-Claude Wippler
John Fletcher wrote: The e4graph link on page http://www.equi4.com/mklinks.html should be changed to http://e4graph.sourceforge.net/ Done, thx. -jcw _ Metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit

Re: [Metakit] data structure question

2004-03-03 Thread Jean-Claude Wippler
Jerry wrote: I have a data structure (that works well so far) with three similar sub-views that are accessed, set, and summarized at different points. Now I have a requirement to output a summary of all the detail with a label that identifies with of the three sets the data came from.

Re: [Metakit] view() vs. getas() in Python

2004-03-03 Thread Jean-Claude Wippler
[EMAIL PROTECTED] wrote: Supposedly view() is The normal way to retrieve an existing view. But apparently even if the view doesn't exist, something gets retrieved -- though it isn't of much use. However, it does appear that you can append to this non-existent view since v =

[Metakit] libtool or not?

2004-03-03 Thread Jean-Claude Wippler
If you are building Metakit on anything but the usual quad or so of most common platforms, any of C++, Python, or Tcl - could you please help decide what to do? YES OR NO: get rid of libtool in the MK build process? WHY: less fighting, drop dependency on libtool, which has changed over the

Re: [Metakit] Metakit auto** problem

2004-03-03 Thread Jean-Claude Wippler
David McNab wrote: Nicholas Riley wrote: Try using the distutils build method instead of ./configure --enable-python - it'll work back to 1.5.2 if you use the latest distutils (which is also guaranteed to work back to 1.5.2). Tried that. With metakit's setup.py, distutils doesn't work for

[Metakit] libtool has been removed

2004-03-07 Thread Jean-Claude Wippler
I've removed libtool from the Metakit build setup and checked in changes to CVS. The changes are very preliminary - this build is likely to work on less platforms than before. Use the 2.4.9.3 distribution if you are not prepared to deal with this. I'll be adjusting this further in the coming

Re: [Metakit] problems with hash view in 2.4.9.3

2004-03-09 Thread Jean-Claude Wippler
Brian Kelley wrote: I don't know if this helps, but the error seems to be dependent on the column name 'email_sender' This is pretty weird... s=metakit.storage() fails = t[url_hash:I,email_sender:S] works = t[url_hash:I,pizza_sender:S] if 1: struc = fails field = 'email_sender' else:

[Metakit] new Tcl build structure

2004-03-09 Thread Jean-Claude Wippler
While repairing the damage caused by removing libtool from the MK build process, I came up with what I think is a better way to deal with all the language bindings of Metakit. Have started implementing it for Tcl / Mk4tcl. The basic idea is to first build the core library in the builds/

[Metakit] Fwd: [Starkit] Mk4tcl - SegFault when using cursors :-(

2004-03-18 Thread Jean-Claude Wippler
Begin forwarded message: From: Jean-Claude Wippler [EMAIL PROTECTED] Date: March 18, 2004 23:54:31 CET To: starkit list server [EMAIL PROTECTED] Subject: Re: [Starkit] Mk4tcl - SegFault when using cursors :-( Christoph Drube wrote: I have massive problems using MetaKit with Tcl (ActiveTcl 8.4.5

Re: [Metakit] Re: Maybe problems with Metakit 2.4.9.3

2004-04-24 Thread Jean-Claude Wippler
Yasushi Iwata wrote: I found another problem. Following code dose not work as expected. [...] But if you remove ordered(2) from getas(), it works as expected. I also removed ordered(2) from example code that I posted yesterday, it worked fine. There must be something wrong with ordered(). Thanks

[Metakit] Mk4py build test Q

2004-04-24 Thread Jean-Claude Wippler
I have a question for Python experts, w.r.t. distutils: I'd like to try and get setup.py working on its own. Here's what I get right now (cvs HEAD, build dir wiped): $ python setup.py build running build running build_py creating ../builds/lib.linux-i686-2.3 copying metakit.py -

Re: [Metakit] First metakit failure, database grew to 2+ gigabyte s

2004-05-12 Thread Jean-Claude Wippler
Brian Kelley wrote: Berk, Murat wrote: We use 'spans' and remove them in one operation and also do not commmit anything until we finish a pass over all rows. But main trick is blocked views, which uses smaller footprint on commits. Murat Yeah, I am using blocked views as well, but after

Re: [Metakit] Mk4py build test Q

2004-04-26 Thread Jean-Claude Wippler
Hello Jack, (thanks for your help on test.py vs. mktest.py) If you rename test.py to mktest.py you should be able to use both of them. I saw the mktest.py rename in CVS, and it almost works for me. I get the 'freebsd4' suite of tests (on debian linux) which tries to include a stdlib test module

[Metakit] blocked views

2004-04-28 Thread Jean-Claude Wippler
There is a faster implementation of blocked views in CVS now. It evolved from a change submitted by M. Berk (thank you!) and appears to have a considerable effect on performance. The trick is to cache the last used subview. If you use blocked views and check out the latest code from CVS, you

Re: [Metakit] PyDS 0.7.2 database corruption

2004-05-14 Thread Jean-Claude Wippler
Nicholas Riley wrote: I am not sure whether this is PyDS threading issues or Metakit bugs. In any case, Metakit should not crash while attempting to read data from a database! Agree. But stray pointer writes can damage things. I'm not saying this is the case here, just pointing out that

Re: [Metakit] Metakit and Tcl (and maybe others)

2004-05-27 Thread Jean-Claude Wippler
Bob X wrote: I am using 2.4.9.3 on Windows XP with ActiveTcl. I am creating a simple ticket tracker and I defined my view: set view [mk::view layout db.tracker username:S ticket:S recieved:I closed:I problem:S notes:S status:I] I then append into the view: mk::row append $view username Jeff

Re: [Metakit] c4_Bytes.Modify() mangling data

2004-09-23 Thread Jean-Claude Wippler
Brian Kelley wrote: I was inserting strings of length 2 which was why it worked for me. Yours were larger. It turns out that you can't cross the end boundary when using modify. So if you are inserting a string of length 10, you can't insert it into a string of length 9. Also, if you are

Re: [Metakit] How to backup a metakit database?

2004-10-13 Thread Jean-Claude Wippler
Allan Wind wrote: How do you backup a metakit database? The cold case is obvious as usual, ensure that no one else has the database file open prior to making a copy of the data with a file level tools (cp, tar etc). What are the options for hot (i.e. open with an active writer) backups? I noticed

Re: [Metakit] Re: c4_Bytes destructor causes memory deallocation failure

2004-10-13 Thread Jean-Claude Wippler
Arto Stimms wrote: It seems that the destructor releases the wrong memory. In the debug build it gives an assertion at the deallocation, but in a release build it gives no error. This just makes it worse though, since it may later try to use the released memory, causing a crash. Check this example

Re: [Metakit] In search of sparc solaris metakit building tips

2004-10-25 Thread Jean-Claude Wippler
Larry, metakit 2.4.9.3 and Tcl/Tk 8.4.7 I'm having a bit of a problem: $ configure --prefix=/usr/tcl84 --enable-shared --enable-symbols --with-tcl {lots of stuff output - can email if desirable} $ make all {a lot more output} CC -c -g -I../unix/../include -I/usr/tcl84/include/generic

Re: [Metakit] corrupt database?

2004-12-04 Thread Jean-Claude Wippler
Roy Sigurd Karlsbakk wrote: I'm an OS X user and my addressbook just fscked up. This is for what I've been told, based on metakit. Are there any tools around that I can use to try to rebuild it? I can find the data scattered all over the database file, but I can't assemble it... Chances are

Re: [Metakit] corrupt database?

2004-12-07 Thread Jean-Claude Wippler
Roy Sigurd Karlsbakk wrote: 4) open the newly created saved.txt file, i.e. double-click it (make the TextEdit window as wide as you can, preferably) there's no such editor like vi TextEdit sucks :) With a bit (a lot!) of luck, you may be able to see entries from your address book. If not,

Re: [Metakit] make install error

2004-12-16 Thread Jean-Claude Wippler
Kenny Chamber wrote: I've been trying to get metakit (both cvs and latest tarball) to compile with no success. Actually it compiles but won't install. The following is the output of the make install command: make install mkdir -p /usr/include /usr/lib /bin/sh ./libtool --mode=install

[Metakit] Re: Appending rows, effectiveness, documentation

2005-01-06 Thread Jean-Claude Wippler
Wolfgang Lipp wrote: imho, it would be a good idea to have a command similar to metakit.wrap() to add large number of data items to an existing view; that would solve most problems. or is there some efficient way to get the data from one (in-memory) view to another (on-disk) view? What

Re: Re[6]: [Metakit] newbie question - writing derived view back to db

2005-01-19 Thread Jean-Claude Wippler
Marcin Krol wrote: Geez, Brian, you're a wizard! I agree 100%. After syncing: 23.08 [...] Thanks for the help, Brian, now I have to go away to munch on all that. Now that you have these results: what file sizes do you see across the different DB's? (It might also be interesting to compare

Re: Re[2]: [Metakit] newbie question - writing derived view back to db

2005-01-19 Thread Jean-Claude Wippler
Marcin Krol wrote: BK vw2 = st.getas(test_save[a:i,b:s]) [...] However, there's another silly problem here remaining: how to delete the old view 'test' from the db and rename 'test_save' to 'test'? Try: st.getas(test_save) (note the absence of brackets and fields) As for renaming, you'll

Re: [Metakit] Mailing lists out of order

2005-01-29 Thread Jean-Claude Wippler
Well, the mailing list web interface is working again, yippie! http://www.mail-archive.com/mailman-users@python.org/msg29743.html [...] I'll just assume it'll be addressed over the coming days and come down as an update. The exact explanation. With a 10 sec fix:

Re: [Metakit] Python Patch for inserting a view into a view

2005-01-29 Thread Jean-Claude Wippler
Brian Kelley wrote: At long last, attached is the diff and the new PyView.cpp file that allows the python interface to insert a view into another view. usage: view.insert(index, view2) is now supported. Properties that don't exist in view but exist in view2 will be added to view. example: import

[Metakit] Regression in MK C++, Mk4py, and Mk4tcl

2005-02-18 Thread Jean-Claude Wippler
FYI, the following change to MK appears to be faulty: 2004-09-23Fix c4_BytesRef::Modify bytes insertion It shows up in MK's regression test b26, which fails. There is an explanation for why this hasn't been caught before, which I won't go into. It's most unfortunate. Thanks to Pat

[Metakit] Re: [Starkit] Regression in MK C++, Mk4py, and Mk4tcl

2005-02-18 Thread Jean-Claude Wippler
FYI, the following change to MK appears to be faulty: 2004-09-23Fix c4_BytesRef::Modify bytes insertion The change has been undone in CVS now, so latest CVS should be ok again. -jcw _ Metakit mailing list - Metakit@equi4.com

[Metakit] RSS feed

2005-02-18 Thread Jean-Claude Wippler
I've just found out that Gmane, the mailing-list-to-news gateway service, now also has a blog gateway service. So now you have three different ways to track postings the this mailing list: - Mailman: http://www.equi4.com/mailman/listinfo/metakit - News:

Re: [Metakit] Maximum practical size of Metakit databse?

2005-05-05 Thread Jean-Claude Wippler
Davis Adrian wrote: What factors govern the maximum practical size for a Metakit database? (This email was pending in a queue I rarely check nowadays due to the levels of spam flooding it, please consider subscribing to the mailing list to avoid getting in there) There's a hard limit at 2 Gb

[Metakit] Performance comparison Q

2005-05-09 Thread Jean-Claude Wippler
To all language specialists: I'm looking for a way to establish some basic performance figures, to compare and evaluate a number of approaches I'm exploring in the Vlerq project. As a very first datapoint, it would be nice to find out how one writes decent loops for a very simple task: sum

Re: [Metakit] Performance comparison Q

2005-05-09 Thread Jean-Claude Wippler
Brian Kelley wrote: python: == import operator data = range(5) # test data result = sum(data) Nice, of course. What about arbitrary operators, not just summation. I'm trying to stress generic looping, as well as see how well lists, ints, and addition work together. Sorry for the

Re: [Metakit] Performance comparison Q

2005-05-09 Thread Jean-Claude Wippler
Bruce A.Johnson wrote: Are you putting the Tcl test line inside a proc? Yes, thx. -jcw _ Metakit mailing list - Metakit@equi4.com http://www.equi4.com/mailman/listinfo/metakit

Re: [Metakit] Performance comparison Q

2005-05-09 Thread Jean-Claude Wippler
Magnus Lie Hetland wrote: result = sum(xrange(5)) I just did a simple experiment (using the timeit module) comparing the performance of sum(range(5)) and sum(xrange(5)), and the latter gave a speedup factor of about 2.2 on my computer... Also, allocating a list of size 5 seems a

Re: [Metakit] Performance comparison Q - results

2005-05-09 Thread Jean-Claude Wippler
Here are some performance figures, as promised. All timings were done on a PIII/650 laptop with Gentoo Linux 2.6.10, gcc 3.3.5 on May 9, 2005. The task: calculate the sum of a list containing the numbers 0..4. C0.6 mSec array of ints Python loop 72 mSec

Re: [Metakit] Starting work on a Java version of Metakit

2005-05-12 Thread Jean-Claude Wippler
[EMAIL PROTECTED] wrote: [... to java or not to java ...] I respect your concerns. I can well imagine that relatively direct Java access to Metakit databases would be welcomed by a significant number of Java developers. I encourage this effort. Me too. And if there is someone out there who

Re: [Metakit] Starting work on a Java version of Metakit

2005-05-12 Thread Jean-Claude Wippler
Brian Kelley wrote: And jcw, could I see the python only reader please, please :) Yeah, I was afraid you'd ask. Took me ages to find it on an old CD backup, even though I'm pretty well organized w.r.t. my backups these days (it's hard to find things by location when you don't know *where*

Re: [Metakit] Investigating a corrupt metakit file.

2005-06-09 Thread Jean-Claude Wippler
Pat, The problem is that out of 56 _B subviews all but one are as expected. However, one block is damaged. The values for the date and size columns have got swapped about. If the data file is wrong, but readable, then my first hunch would be a bug. Setting the wrong column could point to a

Re: [Metakit] Mk4py

2005-08-15 Thread Jean-Claude Wippler
On Aug 4, 2005, at 18:37, Brian Kelley wrote: Yeah the spaces kill me as well sometimes, and then I think that the spaces are okay sometimes. The real issue is that a metakit column name can include any printable character except a comma ,. Nor [, ], :, and a few more such as parentheses and

Re: [Metakit] trouble installing 2.4.9.4

2005-09-26 Thread Jean-Claude Wippler
Jack Diederich wrote: I was upgrading from 2.4.9.3 to 2.4.9.4 and I get this error when I tried to load it and get this error. sprat:~/src/metakit-2.4.9.4/builds# python Python 2.4.1 (#2, Mar 30 2005, 21:51:10) [GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2 Type help, copyright, credits or

Re: [Metakit] trouble installing 2.4.9.4

2005-09-26 Thread Jean-Claude Wippler
Jack Diederich wrote: Traceback (most recent call last): File stdin, line 1, in ? File /usr/lib/python2.4/site-packages/metakit.py, line 22, in ? from Mk4py import * ImportError: ./Mk4py.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE [...] I changed the Makefile from

  1   2   >