Arc Forumnew | comments | leaders | submitlogin
3 points by Pauan 4690 days ago | link | parent

My current recommendation for people who want a "no nonsense easy to use" version of Arc 3.1 is to use Lite Nu:

https://github.com/Pauan/ar/tree/lite-nu

This should be a lot easier, cleaner, and simpler for people who are new to Arc. Please tell me if you have any questions, suggestions, or concerns.



3 points by akkartik 4689 days ago | link

I've been playing with lite-nu and tried to load up srv.arc and news.arc. There seems to be a bug with the default for optional args:

  $ arc
  > (def foo((o a)) a)
  #<fn:foo>
  > (foo)
  #<fn:...nu/01 nu.rkt:106:50>
I was going to report it on github, but the repo seems to not have an issues tab. Is it because it's a fork?

-----

1 point by Pauan 4689 days ago | link

That's right. I actually just discovered that a few hours ago when I tried to call "cut". It's already been fixed on my harddrive, I just need to push it out to git. It should be fixed within the new few minutes.

I don't know why it doesn't have an issues tab. In any case, any issues can either be posted here or e-mailed to me.

---

EDIT: Fixed.

-----

3 points by akkartik 4689 days ago | link

Thanks! I got news.arc up and running!

One other change I had to make was to add keywords to the call to open-output-file in nu.rkt:

  (open-output-file f #:mode 'text #:exists mode)
This is looking great.

-----

2 points by Pauan 4689 days ago | link

Ah, right, Nu is still using the mzscheme version of open-output-file, whereas Racket uses keywords... thanks, I'll fix that right now.

EDIT: Fixed.

-----

1 point by Pauan 4689 days ago | link

I just realized that Arc uses 'text mode with outfile... but that breaks on Windows if the file you're writing to isn't a regular file. Even worse, there's no way to specify 'binary from within Arc.

It does, however, allow Arc to pretend that "everything is Unix" since 'text mode automatically converts "\n" to "\r\n" on Windows. But infile uses 'binary mode, so in that case it should probably use 'text mode too, to maintain the illusion.

Alternatively, make outfile use 'binary mode. Just so long as outfile and infile are consistent and agree with each other.

-----

3 points by akkartik 4690 days ago | link

Feel free to update http://sites.google.com/site/arclanguagewiki!

-----

2 points by Pauan 4689 days ago | link

I would, but I'm not sure where to place it. If it were up to me, it would be right at the top, making it easy for newbies to find. But that could be construed as rather egotistical on my part, especially since ar is placed almost at the bottom.

-----

3 points by akkartik 4689 days ago | link

a) Adding it anywhere would be better than the current situation.

b) Feel free to reorganize the page to bring say ar up as well.

The only goal should be to make things easier for newcomers. I think it makes sense to highlight the active variants where the owner is around to answer questions.

-----

4 points by kinleyd 4689 days ago | link

@akkartik: I've been granted write privileges and have begun contributing to the wiki. I agree that some reorganization is necessary and have been taking a good look at the current state. I will focus on giving newbies some more hand holding at the getting started stages, and have opened a new Installing Arc page where I will be more elaborate in detailing installation instructions.

@pauan: I agree that Lite-Nu is the simplest in getting installed and started, and so will add Lite-Nu install instructions and references as well. Newbies should thus be attracted, deservedly, towards Lite-Nu especially in the initial stages. :) After that of course, it's up to them.

-----

1 point by kinleyd 4689 days ago | link

@Pauan, thanks. I like Lite-Nu. I particularly like the ability to run arc scripts from the command line and shell scripts written in Arc - very nifty! I think this gives one the opportunity to get deeply immersed in Arc.

I haven't played enough with it to provide other meaningful feedback or ask questions but I will as I starting using it.

-----