Arc Forumnew | comments | leaders | submitlogin
2 points by erikb 5763 days ago | link | parent

thx, will try this. But how do you yourself use arc? (Yes, on UNIX. SuSE, Debian, Ubuntu, OS X. But on Windows I would have the same question, I guess. Because it is not described in the install or tutorial text)

And how do you start a script?

in python I just do this: $ python myscript.py

and in php it is this: $ php myscript.php

so I would expect this: $ arc myscript.arc

I wrote a bash script that executes this mzscheme -m -f .... stuff. But still I can't start an arc script from my shell.

It is really strange, it is such a basic stuff, but I can't find it in the install/tutorial text. Maybe there is some way that the lisp or scheme usage in common differs from the usage of other languages like python or php?



4 points by palsecam 5763 days ago | link

> It is really strange, it is such a basic stuff. Maybe there is some way that the lisp or scheme usage in common differs from the usage of other languages like python or php?

Absolutely true. In short, Lisps in general just consider the OS is crap, and they are too "pure" to talk with it. Hence, no easy way to start a script. Hence (also), no popularity because the majority of people live in the real world and not in the ideal lambda calculus one ^^ (this is not that bad with MzScheme or say SBCL [Common Lisp implementation] to be honest)

> But how do you yourself use arc?

Mostly dealing with the fact that it fucks the Unix philosophy, but I patched it to be a little less stupid on that. Sorry, no time now, but I'll post the patch in the near future, although it is not as sufficient as I'd like yet.

To reply more directly: nearly exclusively from the REPL.

-----

2 points by palsecam 5759 days ago | link

> I patched it to be a little less stupid on that. Sorry, no time now, but I'll post the patch in the near future, although it is not as sufficient as I'd like yet.

Done & sufficient now. See http://www.arclanguage.org/item?id=10344. And directly solves the relative paths problem.

-----

1 point by erikb 5755 days ago | link

I saw it before looking here. very nice work! :)

-----

4 points by thaddeus 5763 days ago | link

To launch arc - I use a unix command file:

  #!/bin/sh
  (cd /home/programs/arc;
   /home/programs/scheme/bin/mzscheme -f as.scm)
As for windows read:

http://arclanguage.org/item?id=9263

and

http://arclanguage.org/item?id=9382

Also - here are a few others to read:

1. Starting an arc script: http://arclanguage.org/item?id=9617

2. Easy means to search the arc forum: http://af.searchyc.com/

3. Good documentation: http://arcfn.com/

-----

3 points by erikb 5763 days ago | link

thx guys. I will read more on arcfn.com. I am very happy that there actually is more documentation! And I am still interested to see more information here. Are there other people out there, who have invested some energy in enhancing the usability of arc? Please tell me more!

-----

3 points by conanite 5763 days ago | link

Take a look at anarki, a community-maintained fork of arc with a bunch of enhancements (I don't know if there's a simple list of changes anywhere) ... and rainbow (an arc interpreter in java; mostly the same as arc except for access to java libs; dunno if that counts as "enhancing usability" :))

anarki http://github.com/nex3/arc/tree/master

rainbow http://github.com/conanite/rainbow/tree/master

-----