Arc Forumnew | comments | leaders | submit | jsgrahamus's commentslogin
3 points by jsgrahamus 20 days ago | link | parent | on: How to connect mysql

Look here: https://www.google.com/search?ei=mYP8We-tGISOjwPy9ougAQ&...

reply

2 points by hjek 11 days ago | link

... and the first result on Google is this post.

reply

4 points by jsgrahamus 35 days ago | link | parent | on: Ask ARC: Can I start with Arc?

Recommend working through the tutorial, too.

reply

5 points by akkartik 34 days ago | link

Thanks for the reminder! Your comment reminded me that the Arc tutorial (http://arclanguage.org/tut.txt) doesn't quite match the state of Anarki, so I created copies of the tutorial for both stable and master branches at http://arclanguage.github.io.

The stable branch uses the Arc tutorial unchanged. All I did was to make it a little easier to read: https://arclanguage.github.io/tut-stable.html

The master branch of Anarki has one major incompatibility with Arc 3.1, and I created a version of the tutorial with it highlighted in bold: https://arclanguage.github.io/tut-anarki.html

micoangelo, if you decide to try out Arc, be sure to start at http://arclanguage.github.io rather than the instructions here at http://arclanguage.org. Even if you use the stable branch which is compatible with Arc 3.1, it has a couple of crucial bugfixes that are otherwise liable to bite you at an inopportune moment.

reply


Thanks, akkartik. Also read the discussion on Gerbil.

reply

3 points by jsgrahamus 183 days ago | link | parent | on: Nice work, malisper!

Makes sense. Thanks for the read.

How can we apply this to Arc, akkartik?

-----

2 points by akkartik 183 days ago | link

I don't think we can :) This forum seems slow enough that I figured we had time to discuss something off-topic.

-----

3 points by jsgrahamus 183 days ago | link

Well, that is certainly true; although I was surprised at the recent post where all those other folks showed up.

-----

3 points by jsgrahamus 183 days ago | link

http://arclanguage.org/item?id=20096

-----

2 points by jsgrahamus 183 days ago | link

Where does Arc get into a bind? No idea here.

-----

6 points by jsgrahamus 185 days ago | link | parent | on: How many people still lurk here?

Me, too.

-----

4 points by jsgrahamus 185 days ago | link | parent | on: At-sign in string

When I try this in Arc 3.1, I get no complaints.

-----

4 points by akkartik 185 days ago | link

Yes, the atstrings feature is turned off by default in Arc 3.1 (and also in Anarki's official/stable branches). I think I'll turn off the default in Anarki as well, and just let news.arc continue to make use of it.

Edit 1 hour later: This is now done. Turns out Anarki never meant to turn on atstrings by default. This was a side effect of loading news.arc by default (mea culpa). I've changed things so we load news.arc by default but only use atstrings in news.arc by default. Keep an eye out for subtle bugs introduced by atstrings being turned off when functions in news.arc are called. If we see any I'll probably take out the ability to turn it on and off and just decide to keep it everywhere or take it out entirely.

https://github.com/arclanguage/anarki/commit/d0eb0dcf17

-----


akkartik was kind enough to provide a spot for the paper on this project:

https://drive.google.com/file/d/0Bwqm_FatZFB3MGFDQVRlNXBNekU

Thanks, akkartik!

-----


I published a paper on my results of using Klong. Would like to share it with this group, but am not sure where to put it so that you all could access it.

-----

3 points by akkartik 267 days ago | link

Google Drive? You can share a document so anyone with the link can access it.

Another option is Gitlab or Bitbucket. Put the file in a repository (ideally with any of your code for the paper!) and push it.

I can do it for you if you like. Just email the paper to me. (My address is in my profile.)

-----


I work with MUMPS as my work programming language. Assuming you had an array of 10 numbers, to get the sum you would do something like this:

  F I=1:1:10 S ARR(I)=I   ; Stores 1-10 in array ARR
  S SUM=0
  F I=1:1:10 S SUM=SUM+ARR(I)
  W !,SUM                 ; Writes sum
In Klong you would do as follows: arr::1+!10 :" Initializes list arr with values of 1-10" .p(+/arr) :" .p() prints and +/arr sums all elements of the list"

I always thought that MUMPS was terse, but for certain things at least, it doesn't hold a candle to Klong. Of course, I thought Minnesota was green until I saw Wisconsin. And now I live in Washington state.

-----

3 points by jsgrahamus 269 days ago | link

Fixing the formatting.

I work with MUMPS as my work programming language. Assuming you had an array of 10 numbers, to get the sum you would do something like this:

  F I=1:1:10 S ARR(I)=I   ; Stores 1-10 in array ARR
  S SUM=0
  F I=1:1:10 S SUM=SUM+ARR(I)
  W !,SUM                 ; Writes sum
In Klong you would do as follows:

  arr::1+!10 :" Initializes list arr with values of 1-10"   
  .p(+/arr) :" .p() prints and +/arr sums all elements of the list"
I always thought that MUMPS was terse, but for certain things at least, it doesn't hold a candle to Klong. Of course, I thought Minnesota was green until I saw Wisconsin. And now I live in Washington state.

-----


Not sure how this applies to arc. They are both niche programming languages? They both strive for brevity?

-----

2 points by akkartik 273 days ago | link

Seems reasonable to me :)

-----

More