Arc Forumnew | comments | leaders | submit | byronsalty's commentslogin
6 points by byronsalty 6259 days ago | link | parent | on: Arc2.tar

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.

-----

3 points by pg 6258 days ago | link

I just arranged for static files to be read from a separate dir; it will go out in the next release.

-----

3 points by lojic 6222 days ago | link

Can you allow paths also?

http://arclanguage.com/item?id=5599

-----

3 points by byronsalty 6259 days ago | link | parent | on: Arc2.tar

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.

-----

2 points by byronsalty 6259 days ago | link | parent | on: Arc2.tar

will do

-----


I'm wondering about this #| .. |# syntax. Never seen that before.

-----

2 points by cadaver 6261 days ago | link

It's the scheme way to write multiline comments (possibly other lisps?). It's specified in the R6RS.

-----

1 point by kennytilton 6261 days ago | link

Also Common Lisp, and this reminds me that this is something I missed when working on some Arc code.

-----

2 points by cadaver 6261 days ago | link

#| ... |# works in Arc too. Though whether by design or because mzscheme supports it, I don't know.

-----

1 point by kennytilton 6261 days ago | link

Doh! :)

-----

1 point by byronsalty 6261 days ago | link | parent | on: Community wiki

One thing that it's not good at (as far as I could tell) but is generally useful for a wiki is file uploads through web. I'm planning to add this myself but it's about 3rd or 4th on my list so I won't be upset if someone else beats me to it. hint hint.

-----

1 point by byronsalty 6262 days ago | link | parent | on: On the need for garbage collection

Why would GC be unnecessary for stateless servers? Something needs to free memory once the response is committed. Either the interpreter, the server, or your webapp. I prefer the interpreter - that's why I'm not using C.

-----

6 points by byronsalty 6262 days ago | link | parent | on: Community wiki

Good point. Arclanguage.com has to link to the wiki at the same level as the tutorial and forum.

I think this would be sufficient.

-----


I think there is way too much discussion on this forum of new syntax without much clear gain. It's rather overwhelming listening too and I'm afraid it will make arc much more difficult to learn if it all gets adopted.

As mentioned, I'd vote down but I can't.

-----

4 points by drcode 6262 days ago | link

You have a point, but let's distinguish between optional syntax (like : ' !) and mandatory syntax (as is used copiously in most languages)

Optional syntax has far fewer minuses, I would argue- New users wouldn't need to use it if they prefer not to.

Also, we're not talking about increasing syntax here, just using the existing syntax in a different way.

My personal thinking, though, is that it would be OK to go all out with the other special characters to generate optional syntax, as long as it is really, really, really well thought out. (other arc users, such as yourself, would probably disagree with this argument, however) Some special character for currying (such as described in the current arc.arc comments) would be a strong plus, I think.

-----

2 points by dplabs 6262 days ago | link

the problem is that people will use it. i don't want to read through a:b.c code. my eyes are already optimized for (a (b c)) and i like it thank you very much.

-----

6 points by byronsalty 6263 days ago | link | parent | on: On the need for garbage collection

I'm missing how internet traffic relates to memory consumption per computer. This is a joke right? You just got me didn't you?

I'm waiting for the conclusion where Microsoft is going to send me $243 for every person I send this to.

Oh I get it now - the Internet is generating garbage. You, sir, are a funny one.

-----

5 points by raymyers 6263 days ago | link

It's no laughing matter!

"Conses don't grow on trees" -- Gerald Sussman.

Oh wait... that's exactly where they grow, isn't it?

-----

3 points by byronsalty 6263 days ago | link | parent | on: Automatic .arc reloading in background

Nice. I was trying to think of an easy way to do this.

In order to not have to muck with the internals of load itself I wonder if you could wrap the saving path name functionality but then call the original load. Maybe this would be some new synatx / ability to add to the language? Of course this is just aspects which I thought Lisp could do so - I'm probably missing something.

-----

More