Arc Forumnew | comments | leaders | submit | utx00's commentslogin
1 point by utx00 5084 days ago | link | parent | on: Writing a debugger for arc (help)

thanks. will take a look.

-----

1 point by utx00 5825 days ago | link | parent | on: Arc3.tar

u get the jist by now ... go write yer own

-----

4 points by almkglor 5825 days ago | link

And call it "Anarki"

-----

2 points by utx00 5844 days ago | link | parent | on: Bug?

well done. someone give tokipin a cookie!

-----

1 point by utx00 5878 days ago | link | parent | on: Create your own collection: cached-table

"For example, in the Arc server, continuations are kept in a table of fnid's. In the Arc server code, the table is periodically cleared "

... continuations or plain closures?

-----

1 point by almkglor 5878 days ago | link

There's no real difference between them: continuations are just a type of closure, one which accepts a single argument, the return value of the called function. cref. lambda the ultimate declarative.

-----


an elisp one would suit me just fine. anyone?

-----


i'm guessing it has continuations, it's tail recursive, it's probably faster than scheme48.

is sbcl available on OSX ?

-----

3 points by eds 5890 days ago | link

SBCL's download page includes binaries for OSX on x86 and PPC. So the answer is yes.

-----

1 point by prophetekimpuma 5774 days ago | link

yes

-----

1 point by utx00 5905 days ago | link | parent | on: Arc Cluster Implications

Could one cluster news.arc as is? It persists everything in files. Could that be a problem whilst saving an item that's modified by two users at the same time? (If the users happen to be in different runtime instances that is). I guess I should just try it, but any feedback will be appreciated.

Thanks.

-ut

-----

2 points by lojic 5905 days ago | link

You've asked a good question. pg could probably answer off the top of his head; otherwise, it may take some digging into the source. If I had to guess, I'd say that you'd have problems clustering it as is, but that's an easy guess, because clustering usually has problems :)

Ruby on Rails (and many others) use a shared nothing approach, so each node in the cluster has to read everything it needs from the database (or other store) for each request. It's very easy to scale until you overload your database, but not very efficient.

Another approach is to have the nodes in the cluster communicate information amongst themselves.

I would think using something like memcached would be pretty effective in helping to cluster news.yc

-----

1 point by utx00 5905 days ago | link

Thanks for the reply. I played with it a little bit, and I think there could be some contention. If two users created kids for the same item, the kids entry in the 'item template has to be updated to reflect the two new articles (ie, the item has to be serialized again). If the users are on different instances I believe you could lose information ... I think :)

Also, it doesn't seem save-table is safe in the sense that it just overwrites the file that's already there (as opposed to writing it with a different name, and just 'mv' over which is supposedly atomic).

Anyhoo ....

-----

2 points by utx00 5905 days ago | link

Also, take a look at couchdb if you're interested in such things.

-ut

-----