Arc Forumnew | comments | leaders | submit | antiismist's commentslogin
1 point by antiismist 6306 days ago | link | parent | on: hosting for arc web app

Is there a standard graceful way of stopping a background process?

I could: launch nsv as a thread in the background, then fg it back, then use (quit) in the repl. But is there a better way to do this? Does (quit) shut down the server gracefully?

-----

3 points by almkglor 6306 days ago | link

(quit) shuts down gracefully AFAIK. If you're not confident of it, use (= quitsrv* t) and make one request from the server.

-----

4 points by antiismist 6307 days ago | link | parent | on: Arc Webserver Performance

About a month ago I went to a talk by Ethan Herdrick, cofounder of Biographicon.com, and he gave a pretty solid review of file-based persistence. If I remember correctly biographicon.com runs on scheme running on a jvm and of course uses file-based persistence.

Some points:

- beta testers gave unsolicited feedback on how swift they felt the site was

- massive scaling is sort of a caviar problem - if your company gets bought by a player like google then they are going to rip out your backend anyway--they aren't buying you because you know how to scale.

-----

2 points by listic 6305 days ago | link

Why run scheme on a jvm?

-----

3 points by sacado 6305 days ago | link

It can be intersting if you want to have access to all the Java libs (that's one of the ideas of Clojure or Scala for example) and / or if you want to be able to be embedded in a client JVM (e.g. to write Scheme applets or sandboxed code). The latter cannot be solved by a JNI / FFI solution.

-----

1 point by antiismist 6305 days ago | link

Access to the vast corpus of java libraries was the cited reason.

One interesting point that was made was that when you access the external libraries, it causes the scheme code to start to become less scheme-like and more like a java program written in scheme.

-----

1 point by antiismist 6307 days ago | link | parent | on: hosting for arc web app

As far as I know there are three ways to run nsv in the "background":

1. via (thread...)

2. via &

3. via a detatched screen

(I like to use this because my server is remote so I can set up something, detatch, disconnect, and log back in later and reattach)

So what I use is a detatched screen and (thread ...)

-----

1 point by antiismist 6307 days ago | link | parent | on: Arc Webserver Performance

See here for why it was slow:

http://news.ycombinator.com/item?id=133804

(in a nutshell, it wasn't the load so much as the new user signup.)

-----

6 points by antiismist 6311 days ago | link | parent | on: hosting for arc web app

Thanks for the suggestions. So I went with Slicehost.com

The setup so far:

apt-get install mzscheme

use wget to grab arc2

run (nsv 5555) - got the famous date error. So now the next task on my checklist is learning how to use git so I can get the date patch via anarki...

-----

9 points by nex3 6311 days ago | link

  apt-get install git
  git clone git://nex-3.com/arc-wiki.git
  cd arc-wiki
And optionally, if you only want the patches and no other improvements,

  git branch stable origin/stable
  git checkout stable

-----

4 points by antiismist 6310 days ago | link

worked like a champ, thanks!

minor point, I used

apt-get install git-core

(because just "git" didn't seem to work)

-----

3 points by nex3 6310 days ago | link

Oh, right, sorry. The "git" package is something else (GNU something tools, I think).

-----

2 points by antiismist 6313 days ago | link | parent | on: hosting for arc web app

Thanks for the answers!

-----

3 points by antiismist 6316 days ago | link | parent | on: Arc with vim

I'm also a VIM user. My setup is nothing fancy--just some screen instances and some :tabnews going.

I'll check out your syntax file, would help me out.

For running Arc w/o Mz, see http://arclanguage.org/item?id=4000

-----

3 points by antiismist 6317 days ago | link | parent | on: what does x!y do

Thanks for the answers!

-----


IAAL--Arc is under the Perl Artistic License, see http://www.opensource.org/licenses/artistic-license-2.0.php

PG can roll in changes per part 4.a

-----

4 points by nex3 6318 days ago | link

I don't think I've ever seen the term "IAAL" used before.

-----