There's a new version at http://ycombinator.com/arc/arc2.tar
The biggest diff in this release is that it includes the source of News.YC. All you have to do to run it is type (nsv) at the Arc prompt, then go to http://localhost:8080.
Another pleasing thing in this release is the ability to say (only.foo (bar)) instead of (aif (bar) (foo it)).
I fixed a bunch of bugs found by users of this forum. Thanks, and please let me know about any new ones you discover.
Not to beat a dead horse ( http://arclanguage.com/item?id=3351 ), but what platform are you developing Arc on? 'date -u -r' doesn't work on Linux or OS X, so we have to keep patching arc.arc with each new release.
edit: I looked at the patch more carefully and it looks like BSD accepts -r, so the next question is, would you mind adding some platform dependent conditionals?
My bad. In my haste, I simply ssh'd to my Mac and issued 'date -u -r' and didn't take the time to see that it was simply complaining about the fact that I didn't provide an argument for -r. So, I guess it's a problem for Linux, and not for OSX.
The comment in ac.scm says "maybe it doesn't matter since the thread will die?", but the error can be caught (or ignored with errsafe), so this is a serious bug that will bite.
Several people have fixed date to work on more operating systems, I believe the simplest version I've seen is the one I wrote: http://arclanguage.org/item?id=2652
PG: I urge you to look at the rootdir* (docroot) that was added to srv.arc. Adding this in would allow you move the gifs you need out of the base directory for arc. This was added previously and allowed me to easily move the news gifs into arc/news_public_html and serve them from there.
PG: I removed "news.arc" from the "libs.arc". Besides probably unnecessary for most users, this was overwriting the || op which was effecting the "It's Alive" op that used to be there.
This is really great stuff. Although I haven't done any serious Arc hacking yet, it's already had a big impact on how I code in Ruby. news.arc will be a great source of ideas.
BTW, does anyone have any deployments planned? Does it make sense to deploy production sites using news.arc, or is keeping up with Arc's evolution at this stage too much of a challenge?
I imagine it would be OK if you don't need to keep up with changes.
It's more a question of the stability of the language specification. I don't doubt the code is solid enough for production sites; it's just that keeping up with Arc's evolution might be difficult. But as I pointed out, you might not need to do that. (I edited the original comment to be more clear.)
arc> (nsv)
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
load items: Error: "directory-list: could not open \"D:\\Projects\\lisp\\arc\\ar
c2\\arc/news/story/\""
arc> (nsv)
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The syntax of the command is incorrect.
load items: Error: "directory-list: could not open \"G:\\MzScheme\\arc2\\arc/news/story/\""
arc>
Forgive my newbness but I've not used git before and don't really have a clue where to start. I did read that you can connect to git repos with other clients (I currently have TortoiseSVN installed) and would love to know how to do that as it would probably be the easier than setting up cygwin and figuring out git. Any help would be appreciated.
You can use git as a frontend to an svn repo but I haven't heard about doing it the other way. Because git is a superset of svn it may be possible but a quick search turns up nothing. Setting up cygwin is a snap. I am still a git noob. After an hour or two of reading you'll be able to use the git basics and after a few hours more reading you'll be able to use the basics and actually know wtf is going on underneath.
is there any solution for this?
.
.
The syntax of the command is incorrect.
load items: Error: "directory-list: could not open \"G:\\MzScheme\\arc2\\arc/news/story/\""