Re: [Factor-talk] Newbie: using mongodb
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 see One chants out between two worlds Fire walk with me. -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Newbie: using mongodb
Hi, the code in the factor main repo doesn't include the latest changes I made to the mongodb/bson vocab. @slava: Could you please merge from git://github.com/x6j8x/factor.gitmongodb-changes. Would it be better to remove to mongodb/bson vocabs from the factor main tree and put them into a repository of their own? Sascha On Mon, Sep 27, 2010 at 10:07, Jörg Plewe wrote: > Hi Sascha, thanks for your help. > > factor 0.94 (the binary download) > mongodb v1.6.2 > > I tried to mix in latest mongodb from git but this does not compile (due to > some missing ) so 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 07:47, Sascha Matzke wrote: > > 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 26, 2010 at 18:39, Jörg Plewe wrote: > >> Hi list! >> >> I'm trying to use the mongodb binding but run into an issue very soon and >> cannot help myself. Can anybody please help me to intepret the error? >> >> Thank you very much in advance, >> >> - Jörg >> >> Code: >> USING: mongodb.driver ; >> "db" "127.0.0.1" 27017 >> >> Error message: >> Generic word >integer does not define a method for the word class. >> Dispatching on object: t >> >> >> Call stack: >> (U) Quotation: [ set-namestack init-catchstack self quot>> call -> stop ] >> (O) Word: listener-thread >> (O) Word: listener >> (O) Word: (listener) >> (U) Quotation: [ >> [ ~quotation~ dip swap ~quotation~ dip ] dip swap >> [ call datastack ] dip -> swap [ set-datastack ] dip >> ] >> (U) Quotation: [ call -> datastack ] >> (O) Word: >> (O) Word: verify-nodes >> (O) Word: check-node >> (O) Word: eval-ismaster-result >> (O) Method: M\ object >integer >> (O) Word: no-method >> (O) Method: M\ object throw >> (U) Quotation: [ >> 63 special-object error-thread set-global >> continuation -> error-continuation set-global rethrow >> ] >> >> >> >> -- >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> >> > > > -- > Through the darkness of future past > the magician longs to see > One chants out between two worlds > Fire walk with me. > > -- > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > > http://p.sf.net/sfu/novell-sfdev2dev___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > > -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Newbie: using mongodb
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 26, 2010 at 18:39, Jörg Plewe wrote: > Hi list! > > I'm trying to use the mongodb binding but run into an issue very soon and > cannot help myself. Can anybody please help me to intepret the error? > > Thank you very much in advance, > > - Jörg > > Code: > USING: mongodb.driver ; > "db" "127.0.0.1" 27017 > > Error message: > Generic word >integer does not define a method for the word class. > Dispatching on object: t > > > Call stack: > (U) Quotation: [ set-namestack init-catchstack self quot>> call -> stop ] > (O) Word: listener-thread > (O) Word: listener > (O) Word: (listener) > (U) Quotation: [ > [ ~quotation~ dip swap ~quotation~ dip ] dip swap > [ call datastack ] dip -> swap [ set-datastack ] dip > ] > (U) Quotation: [ call -> datastack ] > (O) Word: > (O) Word: verify-nodes > (O) Word: check-node > (O) Word: eval-ismaster-result > (O) Method: M\ object >integer > (O) Word: no-method > (O) Method: M\ object throw > (U) Quotation: [ > 63 special-object error-thread set-global > continuation -> error-continuation set-global rethrow > ] > > > > -- > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Newbie: using mongodb
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 26, 2010 at 18:39, Jörg Plewe wrote: > Hi list! > > I'm trying to use the mongodb binding but run into an issue very soon and > cannot help myself. Can anybody please help me to intepret the error? > > Thank you very much in advance, > > - Jörg > > Code: > USING: mongodb.driver ; > "db" "127.0.0.1" 27017 > > Error message: > Generic word >integer does not define a method for the word class. > Dispatching on object: t > > > Call stack: > (U) Quotation: [ set-namestack init-catchstack self quot>> call -> stop ] > (O) Word: listener-thread > (O) Word: listener > (O) Word: (listener) > (U) Quotation: [ > [ ~quotation~ dip swap ~quotation~ dip ] dip swap > [ call datastack ] dip -> swap [ set-datastack ] dip > ] > (U) Quotation: [ call -> datastack ] > (O) Word: > (O) Word: verify-nodes > (O) Word: check-node > (O) Word: eval-ismaster-result > (O) Method: M\ object >integer > (O) Word: no-method > (O) Method: M\ object throw > (U) Quotation: [ > 63 special-object error-thread set-global > continuation -> error-continuation set-global rethrow > ] > > > > -- > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] mongo verify-nodes fail
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 darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] mongodb regexp
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" associate '[ "persons" _ count . ] with-db Instead of the syntactic sugar r/ ... / you could also just use: "db" "127.0.0.1" 27017 "Al.*" "name" associate '[ "persons" _ count . ] with-db Sascha On Mon, Aug 2, 2010 at 06:45, Vladimir Darmanian < vladimir.darman...@gmail.com> wrote: > Hi all, Sascha in particular, > > I can't figure out how to send regular expressions - I'm assuming you have > to use the mdbregexp tuple but it seems like it is not fully implemented. > Is this the case? Are you working towards completing it? > > Btw, I grabbed a snapshot of your git repo and there was no changes in it > in regard to the >multi flag. Perhaps you haven't committed it? > > After reading the mongo wire spec I added the multi flag myself, though. > > Thanks. > > > -- > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] pull request
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. Sascha On Sun, Aug 1, 2010 at 00:58, Slava Pestov wrote: > Hi Sam, > > Since some of your patches change various vocabularies in basis and > extra, and the coding style doesn't match the rest of the Factor > source tree, perhaps you should maintain your contributions as their > own vocabulary root instead of as patches against the Factor tree. > > For example, I've released the slides for two recent talks I gave as > vocabulary roots: > > http://github.com/slavapestov/boston-lisp-talk > http://github.com/slavapestov/emerging-langs-talk > > Slava > > On Sat, Jul 31, 2010 at 6:39 PM, Sam Anklesaria > wrote: > > Coming back to factor after a year, I found the majority of my old > contributions > > had stopped working and were relegated to unmaintained. The updated and > improved > > versions now live here: http://github.com/bogiebro/factor. Could this be > pulled? > > > > Thanks, > > Sam > > > > > -- > > The Palm PDK Hot Apps Program offers developers who use the > > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > > of $1 Million in cash or HP Products. Visit us here for more details: > > http://p.sf.net/sfu/dev2dev-palm > > ___ > > Factor-talk mailing list > > Factor-talk@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/factor-talk > > > > > -- > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] documentation error + sqlite question
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-level mongodb.driver vocab and do the mapping in your code by hand. Sascha On Sat, Jul 31, 2010 at 04:18, Vladimir Darmanian < vladimir.darman...@gmail.com> wrote: > One more thing: a "_mfd_t_info" field is inserted into the database for > every row when using the tuple vocab - is this intended behavior? > > That seems like a waste of space - I expected the tuple vocab to be a > wrapper over the driver vocab in which case it shouldn't add anything the > driver vocab doesn't add (and the driver vocab doesn't add any fields other > than what you specify). > -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] documentation error + sqlite question
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. > You have to use the ensure-table word in a with-db context to create the indexes. This is missing in the documented example. > > 2) How do you use the +unique+ and other singletons for indexes? I don't > get it... > They're not used anywhere at the moment. I'll remove them. > > 3) There is no >multi word for updating more than one row at once - which I > think is of high importance. > I've added a >multi word in my development branch (g...@github.com:x6j8x/factor.git mongodb-changes). You cannot just add fields to the Mongodb messages - the db will simply reject them (the wire format of the message is described here: http://www.mongodb.org/display/DOCS/Mongo+Wire+Protocol) Sascha -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] documentation error + sqlite question
Hi, ok some more background info... The mongodb guys changed the way the last_error command works and now return a value that wasn't handled correctly in the bson.reader vocab. Sascha On Fri, Jul 30, 2010 at 00:30, Vladimir Darmanian < vladimir.darman...@gmail.com> wrote: > Hey guys sorry about that, I completely forgot about the existence of the > dev branch. > > I'll try it out soon as I can. In the meantime I've tracked down where > exactly the error occurs but have no idea why none-the-less. > > Even if it is already fixed it feels like a waste to throw away my info so > I'll just list it here in case it is of any use. > > I got the exact same error while using the low level driver - details > follow: > > Executing any commands which modify the database triggers the same error. > > It occurs when executing the word send-message-check-error - it traces as > follows: > > send-message-check-error -> lasterror -> find-one -> send-query-plain -> > with-stream -> > with-streams* -> with-scope -> bind -> call > > That's where it throws an exception. > > If you execute the same command but use the -unsafe alternative word it > works without a problem. > > In fact even when the exception is throw the database is actually modified > appropriately and it seems like the error is phantom. > > The only difference as I could tell between, say, update and update-unsafe > is the latter does not call the lasterror word. > > If you execute update and then lasterror in two seperate with-db statements > there is no error, the error only occurs if lasterror follows update (or any > other modifying word) within the same 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 the database at all even though > it completes without error. > > That's all. > > Thanks guys. > > On Thu, Jul 29, 2010 at 11:55 PM, Sascha Matzke > wrote: > >> 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. >> >> >> -- >> The Palm PDK Hot Apps Program offers developers who use the >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share >> of $1 Million in cash or HP Products. Visit us here for more details: >> http://p.sf.net/sfu/dev2dev-palm >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> >> > > > -- > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] documentation error + sqlite question
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. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] bson vocab changes
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 to see One chants out between two worlds Fire walk with me. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] Weird Factor behavior
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 "persons" { } { $[ "ageIdx" [ "age" asc ] key-spec ] } define-persistent person new "Alfred" >>name dup tuple>selector The expected would be a hashtable containing the following H{ { "name" "Alfred" } } but instead it returns H{ { "_mfd" f } { "name" "Alfred" } { "age" f } { "_id" f } } Now find the word write-field? in the Factor browser and set a breakpoint. Run the whole thing again and simply step through until the end. Voilà H{ { "name" "Alfred" } } The same effect happens if you change something in the mongodb.tuple.persistent vocab and reload it. Something seems to be wrong here or it's simply to hot outside for me to think clearly (or I had too many beers already). Sascha PS: The functionality to filter out "f" fields is in the word write-field?. -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] Weird behavior (works when walking through, but not if running normally)
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 "persons" { } { $[ "ageIdx" [ "age" asc ] key-spec ] } define-persistent person new "Alfred" >>name dup tuple>selector The expected would be a hashtable containing the following H{ { "name" "Alfred" } } but instead it returns H{ { "_mfd" f } { "name" "Alfred" } { "age" f } { "_id" f } } Now find the word write-field? in the Factor browser and set a breakpoint. Run the whole thing again and simply step through until the end. Voilà H{ { "name" "Alfred" } } The same effect happens if you change something in the mongodb.tuple.persistent vocab and reload it. Something seems to be wrong here or it's simply to hot outside for me to think clearly. Sascha PS: The functionality to filter out "f" fields is in the word write-field?. -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] Mongodb driver changes - please pull
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) - implementation of mongodb gridfs ( http://www.mongodb.org/display/DOCS/GridFS) - support for mongodb commands ( http://www.mongodb.org/display/DOCS/List+of+Database+Commands) Sascha -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] MongoDB driver changes
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) - implementation of mongodb gridfs ( http://www.mongodb.org/display/DOCS/GridFS) - support for mongodb commands ( http://www.mongodb.org/display/DOCS/List+of+Database+Commands) Sascha -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] Design idea for an eventual Factor IDE
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. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] mongodb on Windows
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 of time_t in mongodb or bson. I found and removed a usage of "unix" in furnace.mongodb - but I'm not sure if that's what you've meant. ( g...@github.com:x6j8x/factor.git branch: mongodb-changes). Sascha -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] Problem in stream-read-until (iota change)
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 -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] support for bound local address
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 worlds Fire walk with me. -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] support for bound local address
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 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 walk with me. > -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] support for bound local address
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 walk with me. -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] concurrency.messaging changes...
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: messaging Sorry, it took so long to fix this but my MBP died 3 weeks ago and it took some time to get a new one. Sascha -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] read-until broken?
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-byte-reader the result is B{ 120 0 } 0 >From my understanding the bug is in using sequence-read ( or better (sequence-read) ). There the found position of the separator ("\0" in my example) is added as length ( add-length ) which results in to many bytes being read. So basically, stream-read-until currently only works for byte-reader when no other content was read before and produces unexpected behavior otherwise. Sascha -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Bug in XML Parser?
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 the same behavior. Should I re-encode the data returned by http-get into a byte-array to make the xml parser work? Sascha -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] Bug in XML Parser?
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 of future past the magician longs to see One chants out between two worlds Fire walk with me. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] MongoDB Factor driver
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 the directory to your ~/.factor-roots file. Here's a short example of how to use the driver: USE: mongodb.driver ! 1. initialize mdb ! database host port "db" "127.0.0.1" 27017 ! 2. create an index ! [ collection name spec ensure-index ] with-db dup [ "test" "idIdx" H{ { "_id" 1 } } ensure-index ] with-db ! 3. insert an object ! [ collection object save ] with-db dup [ "test" H{ { "_id" "12345" } { "name" "myobject" } } save ] with-db ! 4. find the object ! [ collection example ..options.. find ] with-db dup [ "test" H{ { "_id" "12345" } } find ] with-db ! a find with options would look like this dup [ "test" H{ { "name" "myobject" } } 10 limit [ "_id" asc "name" desc ] sort find ] with-db Unfortunately the code isn't documented ( yet ). Sascha -- Through the darkness of future past the magician longs to see One chants out between two worlds Fire walk with me. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk