Arc Forumnew | comments | leaders | submitlogin
Noob resources for Arc/Anarki?
5 points by nupa 19 days ago | 6 comments
Is there a tutorial out there for how to set up an environment and get going? What IDEs / command line tools do you all actually use? I've been spoiled by things like python where all the 'bits' are included, so I'm not sure how to set this up. Specifically, what's the minimum amount of "set-up" required to be able to do these things on a windows box?

1. Get to a repl. 2. Browse and install packages. 3. Write code with syntax highlighting.





3 points by zck 7 days ago | link

I can't help with #1, as I'm not on Windows.

> 2. Browse and install packages.

I install packages (although I think the only ones I use are ones I've created) by downloading the file, then calling `(load "/path/to/file")`.

> 3. Write code with syntax highlighting.

I use Emacs. I use the same syntax highlighting as Common Lisp with this line in my Emacs config: https://bitbucket.org/zck/.emacs.d/src/de1b94f07f5d89fb88e1b....

There is an Arc editing mode that ships with Anarki (https://github.com/arclanguage/anarki/blob/9e53a1f2ed0158869...), but I've never tried it. I should!

reply

2 points by krapp 5 days ago | link

>I install packages (although I think the only ones I use are ones I've created) by downloading the file, then calling `(load "/path/to/file")`.

To be fair, though... when most people say they want to "browse and install packages" for a language, they don't mean including local files through a REPL. Although that is the best we can do in Arc for now.

reply

3 points by krapp 19 days ago | link

In Windows, the install instructions in the readme should work. You may or may not have to set environment variables, I don't remember if I had to do that, but I don't remember having any issues. You'll probably want Git and MinGW as well.

If by "browse and install packages" you mean for Arc, you can't, yet.

I use Sublime Text with the syntax set to Lisp (which works well enough) and the terminal plugin, so I can open a Powershell prompt with Ctrl-Alt-T.

reply

2 points by nupa 19 days ago | link

Thanks for the advice! I figured I was just missing something, but if it doesn't exist yet then that's reasonable enough.

I've heard of foreign function interfaces, does Arc have one of those?

Regardless, I'm sort of getting the impression that Arc is something I should come back to someday when I'm able to contribute tooling to it -- it's an amazing core but not much else.

reply

2 points by krapp 19 days ago | link

>I've heard of foreign function interfaces, does Arc have one of those?

If Racket interop counts, then yes, albeit not seamlessly.

>it's an amazing core but not much else.

Yeah, it's mostly News and some random experiments. Fun to mess around with, though.

reply

2 points by akkartik 19 days ago | link

On a tangent, I'm curious what bits you find are included with Python :) I use it for my dayjob, while it has lots of libraries I can't think of what IDE or commandline tools you're thinking of.

reply