[Factor-talk] User update magic in

2010-02-21 Thread Alex Drummond
Hi, I've written an implementation of the furnace authentication provider protocol for couchdb. I decided to do a direct implementation, rather than write a tuple db interface for couchdb, since when using couchdb you need to jump through various hoops in order to ensure the uniqueness of username

Re: [Factor-talk] User update magic in

2010-02-21 Thread Slava Pestov
Hi Alex, Does the call-responder* method of your authentication realm execute call-next-method? Because M: realm call-responder* calls save-user-after, which sets up a destructor that will call update-user when the request is done. If you implement the update-user generic word then editing the pro

Re: [Factor-talk] User update magic in

2010-02-21 Thread Alex Drummond
Oops, when I switched back to using allow-edit-profile instead of the hack in the previous email, it worked fine. I guess there must previously have been a bug in my update-user method which somehow led me to think that it wasn't being called at all. (I am just using , so there wouldn't have been

Re: [Factor-talk] User update magic in

2010-02-21 Thread Slava Pestov
Excellent. Looking forward you seeing your code contributed. Are you interested in refactoring furnace.sessions to allow alternate session storage as well? Right now its hard-coded to use the database, but it could also use in-memory sessions (faster performance, no failover) or couchdb (for peopl

Re: [Factor-talk] User update magic in

2010-02-21 Thread Alex Drummond
Sure, I think the auth implementation is pretty much done now. I guess I should test it for a few days first. What's the best way for me to send it to you? I'll probably take a look at furnace.sessions at some point. Right now I am just using sqlite for sessions. In fact, this *probably* makes mor

Re: [Factor-talk] User update magic in

2010-02-21 Thread Slava Pestov
On Sun, Feb 21, 2010 at 10:53 PM, Alex Drummond wrote: > What's the best way for me to > send it to you? Set up a github account. > I'll probably take a look at furnace.sessions at some point. Right now > I am just using sqlite for sessions. In fact, this *probably* makes > more sense than using

[Factor-talk] Vocab for comparing complex data types

2010-02-21 Thread Jim mack
I have some complicated datastructure, mixing containers & tuples, like an ast. I would like to get a report on what's different between two of them, say for a test. Is there an existing vocab for that? It won't need to be fast. My first thought was to get the prettyprint representations, then

Re: [Factor-talk] Vocab for comparing complex data types

2010-02-21 Thread Kobi Lurie
On 21/2/2010 16:28, Jim mack wrote: > I have some complicated datastructure, mixing containers & tuples, > like an ast. I would like to get a report on what's different between > two of them, say for a test. Is there an existing vocab for that? It > won't need to be fast. My first thought

Re: [Factor-talk] Vocab for comparing complex data types

2010-02-21 Thread Jim mack
Thanks! Never thought to look at that. I did get something going with the lcs library, but this may be better. On Sun, Feb 21, 2010 at 10:44 AM, Kobi Lurie wrote: > On 21/2/2010 16:28, Jim mack wrote: > > I have some complicated datastructure, mixing containers & tuples, > > like an ast. I w