Arc Forumnew | comments | leaders | submit | mk's commentslogin
1 point by mk 5270 days ago | link | parent | on: How do I invoke Arc3.1 from the command line?

Sorry I should have been clearer. I can get to an arc repl just fine. Say I wanted to use arc programs from the shell:

$ cat somefile | somearcprogram

How would I get that working?

-----

2 points by palsecam 5269 days ago | link

Disclaimer: self-plug.

You may be interested by this thread: http://arclanguage.org/item?id=10344 - "Arc usable on Unix (include ability to run scripts!)"

-----

1 point by mk 5269 days ago | link

Cool. It looks like they pulled some of your patch into anarki, so maybe I should take a look at it.

-----

1 point by mk 5928 days ago | link | parent | on: Show us your Arc code

I think this is right.

  arc> (def quadratic (a b c)
             (= minus-b (- 0 b))
             (= radical (sqrt (- (* b b) (* 4 a c))))
             (= divisor (* 2 a))
             (= root1 (/ (+ minus-b radical) divisor))
             (= root2 (/ (- minus-b radical) divisor))
             (cons root1 root2))

-----

3 points by mk 5930 days ago | link | parent | on: Welcome

For what it's worth I'm trying it out on v360 because thats what I happened to have installed, and so far no problems. Although I haven't really done much. If I run into anything I will post.

-----

1 point by lojic 5929 days ago | link

I went through some of the examples in the tutorial with v360, but when I tried the hello web app, it failed. Not sure if it's due to v360, or not. I guess I can uninstall it and install v352 :(

-----

4 points by chaos 5930 days ago | link

blog.arc seems to work with v360. :)

-----

2 points by bootload 5930 days ago | link

"... blog.arc seems to work with v360. :) ..."

Same here on a ubuntu 7.10 gutsy 64amd. There's no (easy) way to do an install for v352 w/o doing a source compile (works) and manually installing the files (can't be stuffed).

-----