Arc Forumnew | comments | leaders | submit | hjek's commentslogin
3 points by hjek 137 days ago | link | parent | on: How many people still lurk here?

Yo!

-----

3 points by hjek 587 days ago | link | parent | on: ASK: How does sml differ from sxml

SML seems a bit terser than SXML since attributes aren't wrapped in parenthesis and don't use an @.

SML example from your link:

(tagname attr "value" attr2 "value2" (tagname2) (tagname3 "data"))

SXML example from your link:

(tag (@ (attr1 "value1") (attr2 "value2")) (nested "Text node") (empty))

-----

2 points by hjek 587 days ago | link | parent | on: ASK: Best way to learn Lisp?

MIT have some good freely available videos on Lisp, where they go through a lot of philosophical stuff: https://archive.org/details/mit_ocw_sicp

-----

2 points by hjek 588 days ago | link | parent | on: ASK: Best way to learn Lisp?

If you already know Javascript, you write that with LISP syntax: https://github.com/anko/eslisp

That might reduce the entry barrier to building something.

-----

2 points by hjek 588 days ago | link | parent | on: NEWBIE:: new to Lisp, new to Arc.

You might want to give Welder a look.

Welder is an arc IDE bundled with Rainbow (an arc implementation in Java that is complete enough to run News).

https://github.com/conanite/rainbow

-----

1 point by GenArx 571 days ago | link

I am happy to use this "rainbow", though please show me how to install and use it initially [new to github] thanks in advance :)

-----

2 points by hjek 537 days ago | link

It's fine being new to stuff. If you try clicking the link, there's installation instructions there:

To download and build rainbow and open a REPL:

   git clone git://github.com/conanite/rainbow.git
   cd rainbow
   ant
   ant           # yes, twice. The second time uses rainbow to generate optimisations of itself
   cd src/arc
   java -server -jar rainbow.jar

-----


... and it's working on the threads already there. Neat!

-----

2 points by hjek 749 days ago | link | parent | on: POST requests in Arc

Interesting! Arc is reading the request one character at the time. I think I see where it's happening, in the handle-request-thread function where readc is called. So, for Nginx/Apache, are you suggesting Arc might be able to handle uploads if it's sitting behind Nginx/Apache acting as reverse proxy doing buffering? Or is it more like doing anything with big files in Arc is a no-go, so it's better to have a separate setup of Nginx/Apache (with PHP or whichever) handling file the uploads?

-----

3 points by aw 749 days ago | link

> So, for Nginx/Apache, are you suggesting Arc might be able to handle uploads if it's sitting behind Nginx/Apache acting as reverse proxy doing buffering?

Nope, that won't help.

> so it's better to have a separate setup of Nginx/Apache (with PHP or whichever) handling file the uploads

That's the easiest approach. Not that you'd need PHP, just pop in a module to handle file uploads for you.

> Or is it more like doing anything with big files in Arc is a no-go

Not Arc as such but the implementation in srv.arc isn't designed for large files. You could read the old MZScheme documentation at http://docs.racket-lang.org/mzscheme/index.html and figure out how to read an input stream into a binary buffer, but it would be more work.

-----

1 point by hjek 746 days ago | link

Thanks a lot for helping clear that up. Those limitations of Arc are definitely not immediately obvious from reading the docs and essays available on the language.

-----

2 points by hjek 751 days ago | link | parent | on: POST requests in Arc

I love Arc as a language. A friend asked me to set up a web board for artists, so I thought it would be nice to work in Arc, and extend news.arc (instead of just using PHP or whatever) with some basic functionality for handling small-to-medium sized images (<1MB per image). However Arc 3.1 (and Rainbow and Anarki) seem to choke on POST requests larger than ~100KB, and become unresponsive afterwards. Would there be some other, more arcish way handling files over network?

-----