Anarki – Community-managed fork of the Arc dialect of Lisp
1–10 of 45 posts
Re: Anarki – Community-managed fork of the Arc dialect of Lisp
#2Re: Anarki – Community-managed fork of the Arc dialect of Lisp
#3What are the core features that differentiate Arc from other lisp dialects?
arc> (= l '(1 2 3))
(1 2 3)
arc> (= f [+ _ 1])
#
arc> (map l '(0 1 2))
(1 2 3)
arc> (map f '(0 1 2))
(1 2 3)Re: Anarki – Community-managed fork of the Arc dialect of Lisp
#4What are the core features that differentiate Arc from other lisp dialects?
To me, one of the most fundamental features of Arc is taking the unification of code and data much further. I don't know of other Lisps that do this! K is another language that does. arc> (= l '(1 2 3)) (1 2 3) arc> (= f [+ _ 1]) # arc> (map l '(0 1 2)) (1 2 3) arc> (map f '(0 1 2)) (1 2 3)
Re: Anarki – Community-managed fork of the Arc dialect of Lisp
#5Earlier quoted context omitted.
To me, one of the most fundamental features of Arc is taking the unification of code and data much further. I don't know of other Lisps that do this! K is another language that does. arc> (= l '(1 2 3)) (1 2 3) arc> (= f [+ _ 1]) # arc> (map l '(0 1 2)) (1 2 3) arc> (map f '(0 1 2)) (1 2 3)
Clojure’s maps, sets, and vectors are all functions.
Clojure is definitely better thought out as a language, and while Arc has some interesting ideas around web development, it also doesn't have a module system, so everything is just loaded into the same global namespace, which is pretty insane.
Re: Anarki – Community-managed fork of the Arc dialect of Lisp
#6Earlier quoted context omitted.
To me, one of the most fundamental features of Arc is taking the unification of code and data much further. I don't know of other Lisps that do this! K is another language that does. arc> (= l '(1 2 3)) (1 2 3) arc> (= f [+ _ 1]) # arc> (map l '(0 1 2)) (1 2 3) arc> (map f '(0 1 2)) (1 2 3)
Clojure’s maps, sets, and vectors are all functions.
To say they are functions would be incorrect. By the same logic, a keyword is would be a function.
Re: Anarki – Community-managed fork of the Arc dialect of Lisp
#7Earlier quoted context omitted.
To me, one of the most fundamental features of Arc is taking the unification of code and data much further. I don't know of other Lisps that do this! K is another language that does. arc> (= l '(1 2 3)) (1 2 3) arc> (= f [+ _ 1]) # arc> (map l '(0 1 2)) (1 2 3) arc> (map f '(0 1 2)) (1 2 3)
Clojure’s maps, sets, and vectors are all functions.
Re: Anarki – Community-managed fork of the Arc dialect of Lisp
#8Earlier quoted context omitted.
Clojure’s maps, sets, and vectors are all functions.
It would be more correct to say that they can be coerced to a function with a special purposes (e.g. using a set as a function is an alias for checking whether an item exists). To say they are functions would be incorrect. By the same logic, a keyword is would be a function.
Oh and (#{1 2} 3) is equivalent to (get #{1 2} 3) not (contains? #{1 2} 3)
Re: Anarki – Community-managed fork of the Arc dialect of Lisp
#9What are the core features that differentiate Arc from other lisp dialects?
https://github.com/wting/hackernews
This is a great place to start with understanding Arc, as the jump to Anarki (an Arc fork) will make more sense as it comes bundled with News - a Hacker News style app - which is fun to play with if you have experience with HN and want to try a variation of this site.