Re: [Factor-talk] Newbie: using mongodb

2010-09-28 Thread Sascha Matzke
Hi Doug, thank for pulling the changes into the main tree. I had no problems merging origin/master into my branch - so I think everything should be fine (my last merge was before Slava had to reset the head of the main tree). Sascha -- Through the darkness of future past the magician longs to s

Re: [Factor-talk] Newbie: using mongodb

2010-09-27 Thread Sascha Matzke
I suppose I need some more vocabs updated. > > I also tried to build factor from git completely but somehow end up with a > non-startable system. > Are you aware of any documentation on how to build factor from scratch? > > Thanks again, > > - Jörg > > On 27.09.2010, at

Re: [Factor-talk] Newbie: using mongodb

2010-09-26 Thread Sascha Matzke
Hi, what version of mongodb are you using (and which version of factor)? The MongoDB guys changed some internal structures (from integer to boolean) - so the decoding fails. For the latest and greatest please merge git://github.com/x6j8x/factor.git mongodb-changes locally. Sascha On Sun, Sep

Re: [Factor-talk] Newbie: using mongodb

2010-09-26 Thread Sascha Matzke
Hi, what version of mongodb are you using (and which version of factor)? The MongoDB guys changed some internal structures (from integer to boolean) - so the decoding fails. For the latest and greatest please merge git://github.com/x6j8x/factor.git mongodb-changes locally. Sascha On Sun, Sep

Re: [Factor-talk] mongo verify-nodes fail

2010-08-10 Thread Sascha Matzke
Hi, it seems like the mongodb guys changed the return values of the "ismaster" command - instead of a "1" they now return a real boolean value. You can find a fixed version of the mongodb vocab in my github repos (git:// github.com/x6j8x/factor.git mongodb-changes). Sascha -- Through the darkne

Re: [Factor-talk] mongodb regexp

2010-08-01 Thread Sascha Matzke
Hi, if you're using my repo - please use the mongodb-changes branch. But that shouldn't be necessary, as those patches were already pulled into the factor main repo. Regular expressions do work (using the persons collection from the doc examples): "db" "127.0.0.1" 27017 r/ "Al.*" / "name" assoc

Re: [Factor-talk] pull request

2010-08-01 Thread Sascha Matzke
Hi, it that the general direction contrib vocabs should take from now on? If that's the case we should track those vocabs (maybe on the concatenative.orgwiki?). Until now I was under the impression that contrib vocabs should always be included under extra if they reached a certain maturity. Sasc

Re: [Factor-talk] documentation error + sqlite question

2010-07-31 Thread Sascha Matzke
Hi, the tuple vocab adds functionality on top of the mongodb.driver vocab. The "_mfd_t_info" field is used to keep reference to the factor tuple class - it is needed to automatically deserialize the bson structure to the matching class. If you're concerned about storage space, just use the low-le

Re: [Factor-talk] documentation error + sqlite question

2010-07-31 Thread Sascha Matzke
Hi, On Sat, Jul 31, 2010 at 03:37, Vladimir Darmanian < vladimir.darman...@gmail.com> wrote: > Hey guys, > > That error has indeed been fixed in the dev branch so thank you. > > However I've uncovered more problems. > > 1) the tuple example does not create the specified index in the database. >

Re: [Factor-talk] documentation error + sqlite question

2010-07-30 Thread Sascha Matzke
with-db quotation. > > Using the -unsafe words ultimately fixed the problem and the low level > driver seems to work properly though I haven't tested everything. > > However, when using the high level tuple vocab even with a custom > update-tuple-unsafe word it has no effect on

Re: [Factor-talk] documentation error + sqlite question

2010-07-29 Thread Sascha Matzke
Hi, please try the latest mongodb driver changes in the Factor git repository. The typo in the docs is fixed now and the error you received should be gone too. Sascha -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. --

[Factor-talk] bson vocab changes

2010-06-10 Thread Sascha Matzke
Hi, here are some more changes to the bson vocab. - added support for new bson types (timestamp, integer64) - simplified bson.reader (which made it also faster) Please pull from: g...@github.com:x6j8x/factor.git mongodb-changes Sascha -- Through the darkness of future past the magician longs

[Factor-talk] Weird Factor behavior

2010-06-09 Thread Sascha Matzke
Hi, today I came across some weird behavior of Factor... I can't explain it, so here are the steps to reproduce it (you don't need to have MongoDB installed - it's all 100% Factor). USING: mongodb.driver mongodb.tuple mongodb.tuple.persistent fry literals ; MDBTUPLE: person name age ; person "per

[Factor-talk] Weird behavior (works when walking through, but not if running normally)

2010-06-09 Thread Sascha Matzke
Hi, today I came across some weird behavior of Factor... I can't explain it, so here are the steps to reproduce it (you don't need to have MongoDB installed - it's all 100% Factor). USING: mongodb.driver mongodb.tuple mongodb.tuple.persistent fry literals ; MDBTUPLE: person name age ; person "per

[Factor-talk] Mongodb driver changes - please pull

2010-06-05 Thread Sascha Matzke
Hi, I did some work on the mongodb/bson vocabs. In addition to that I fixed the documentation typo and the non-working example. g...@github.com:x6j8x/factor.git mongodb-changes - better bson encoding/decoding performance (I still could use some hints here how to improve the throughput) - impleme

[Factor-talk] MongoDB driver changes

2010-06-05 Thread Sascha Matzke
Hi, I did some work on the mongodb/bson vocabs. In addition to that I fixed the documentation typo and the non-working example. g...@github.com:x6j8x/factor.git mongodb-changes - better bson encoding/decoding performance (I still could use some hints here how to improve the throughput) - impleme

[Factor-talk] Design idea for an eventual Factor IDE

2010-04-11 Thread Sascha Matzke
Hi, I just found this... It's an IDE for Java, but I like the general idea. http://www.cs.brown.edu/people/acb/codebubbles_site.htm Sascha -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. --

Re: [Factor-talk] mongodb on Windows

2010-01-16 Thread Sascha Matzke
Hi, The mongodb doesn't load on Windows because it references the time_t > word in the unix vocab, which is not defined on Windows. It should not > be using the unix vocab at all, in fact. Could you change it to define > your own time_t perhaps? > I looked really hard, but couldn't find any usage

[Factor-talk] Problem in stream-read-until (iota change)

2010-01-15 Thread Sascha Matzke
Hi, It seems stream-read-until broke during the iota change. The problem is in search-buffer-until which calls find-from with 2 integers and a quotation on the stack. find-from's stack-effect is ( n seq quot -- i elt ) and in (find-from) length is called on the second stack element. Sascha --

Re: [Factor-talk] support for bound local address

2009-09-27 Thread Sascha Matzke
Hi, me again... I've removed the bound-client special casing and added a new combinator called with-local-address ( address quot -- ) git://github.com/x6j8x/factor.git Branch: client-bind Sascha -- Through the darkness of future past the magician longs to see One chants out between two world

Re: [Factor-talk] support for bound local address

2009-09-27 Thread Sascha Matzke
Hi, okay... forget it... Although it works this way - it just doesn't play nice with all existing usages of or with-client. I think I'll add a with-local-address ( quot -- ) ... Stay tuned, Sascha On Sun, Sep 27, 2009 at 17:34, Sascha Matzke wrote: > Hi, > > I've ad

[Factor-talk] support for bound local address

2009-09-27 Thread Sascha Matzke
Hi, I've added / with-bound-client to io.sockets. Those two new words allow to bind the local address to a specific address. git://github.com/x6j8x/factor.git Branch: client-bind Sascha -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire wal

[Factor-talk] concurrency.messaging changes...

2009-09-27 Thread Sascha Matzke
Hi, I completed my messaging changes. This time the patch should apply without problems. I did a "load-all", ran help-lint and the tests all run flawlessly. The main reason for the changes was to introduce synchronous message sends with timeouts. git://github.com/x6j8x/factor.git Branch: messag

[Factor-talk] read-until broken?

2009-03-27 Thread Sascha Matzke
Hi, somehow stream-read-until seems to be broken for byte-reader: B{ 120 0 0 0 0 0 0 } binary [ "\0" read-until ] with-byte-reader results in B{ 120 } 0 on the stack.. If there were other values read from the stream before: B{ 0 120 0 0 0 0 0 0 } binary [ 1 read drop "\0" read-until ] with-b

Re: [Factor-talk] Bug in XML Parser?

2009-03-15 Thread Sascha Matzke
Hi, > Your code doesn't work because the XML parser auto-detects encodings, > and thus it needs a binary stream, not a character stream. the problem is, that in my original use-case (the file is just a workaround to reproduce the issue) I get the XML via HTTP GET (http-get word) - which exibits t

[Factor-talk] Bug in XML Parser?

2009-03-15 Thread Sascha Matzke
Hi, please see https://paste.factorcode.org/paste?id=505 There you can find the XML snippet (a part from an Amazon AWS answer), the factor code I'm using to parse this snippet and the (unexpected) output. It seems that the closing "Summary" tag isn't recognized. Sascha -- Through the darkness o

[Factor-talk] MongoDB Factor driver

2009-03-03 Thread Sascha Matzke
Hi, as an exercise in Factor (my new favorite language :-) ) I wrote a driver for the MongoDB (http://www.mongodb.org) database. The code is available via GitHub (https://github.com/x6j8x/mongo-factor-driver/tree; git://github.com/x6j8x/mongo-factor-driver.git). Just clone the repository and add