Content deleted Content added
m Dating maintenance tags: {{Citation needed}} |
specify Arc has been ported to Common Lisp |
||
(42 intermediate revisions by 33 users not shown) | |||
Line 1:
{{Short description|Open-source programming language}}
{{Distinguish|ARC Macro Language}}
'''Arc''' is a [[dialect (computing)|dialect]] of the [[Lisp programming language]] developed by [[Paul Graham (computer programmer)|Paul Graham]] and [[Robert Tappan Morris|Robert Morris]].▼
{{Infobox programming language
| name = Arc
| logo = <!-- Filename only -->
| logo caption =
| screenshot = <!-- Filename only -->
| screenshot caption =
| paradigms = [[Multi-paradigm programming language|Multi-paradigm]]: [[Functional programming|functional]], [[Metaprogramming|meta]], [[Procedural programming|procedural]]
| family = [[Lisp (programming language)|Lisp]]
| designer = [[Paul Graham (programmer)|Paul Graham]]
| developers = Paul Graham, Robert Morris,<br />Arc [[Community of practice|community]]
| released = {{Start date and age|2008|01|29|df=yes}}
| latest release version = 3.2
| latest release date = {{Start date and age|2018|10|28|df=yes}}<ref>{{cite web |url=http://arclanguage.org/item?id=20772 |title=Arc Forum: Tell Arc: Arc 3.2 |website=Arclanguage.org |access-date=2018-11-07}}</ref>
| latest preview version =
| latest preview date = <!-- {{Start date and age|201Y|MM|DD|df=yes}} -->
| typing = [[Dynamic typing|Dynamic]]
| scope =
| programming language = [[Racket (programming language)|Racket]], [[Common Lisp (programming language)|Common Lisp]]
| platform = [[IA-32]], [[x86-64]]
| operating system = [[Linux]]
| license = [[Artistic License]] 2.0
| file ext = .arc
| file format = <!-- or: | file formats = -->
| website = {{URL|arclanguage.org}}
| implementations = Arc, Anarki, Arcadia, Rainbow
| dialects =
| influenced by = [[Lisp (programming language)|Lisp]], [[Scheme (programming language)|Scheme]]
| influenced =
}}
▲'''Arc''' is a [[
== History==▼
In 2001, [[Paul Graham (computer programmer)|Paul Graham]] announced that he was working on a new [[dialect (computing) |dialect]] of [[Lisp (programming language) |Lisp]] named "Arc". Over the years since, he has written several essays describing features or goals of the language, and some internal projects at Y Combinator have been written in Arc, most notably the [[Hacker News]] web forum and news aggregator program. Arc itself is written in [[Racket (programming language) |Racket]].<ref>{{cite web |url= https://arclanguage.github.io/ |title= Arc Programming Language | publisher = Git hub}}</ref>▼
▲== History ==
In the essay ''Being Popular''<ref>{{cite web|url=http://www.paulgraham.com/popular.html|title=Being Popular | first = Paul | last = Graham}}</ref> Graham describes a few of his goals for the language. While many of the goals are very general ("Arc should be hackable," "there should be good [[Library (computing)|libraries]]"), he did give some specifics. For instance, he believes that it is important for a language to be terse:▼
▲In 2001,
{{Quote | It would not be far from the truth to say that a hacker about to write a program decides what language to use, at least subconsciously, based on the total number of characters he'll have to type. If this isn't precisely how hackers think, a language designer would do well to act as if it were.}}▼
==Motives==
He also stated that it is better for a language to only implement a small number of "axioms", even when that means the language may not have features that large organizations want, such as [[Object-oriented programming |object-orientation]] (OO). In fact, Graham feels that OO is not useful as its methods and patterns are just "good design", and he sees the language features used to implement OO as partially mistaken.<ref>{{cite web |url= http://www.paulgraham.com/noop.html |title=Why Arc Isn't Especially Object-Oriented | first = Paul | last = Graham | accessdate= 2013-01-23}}</ref><ref>{{cite web|url= http://www.paulgraham.com/arcfaq.html |title= Arc FAQ | first =Paul | last = Graham | accessdate=2013-01-23}}</ref> At Arc's introduction in 2008, Graham stated one of its benefits was its brevity.<ref>{{cite web|url= http://www.linux-magazine.com/Online/News/Arc-Makes-Programs-Shorter |title=Arc Makes Programs Shorter | newspaper = Linux magazine}}</ref>▼
▲In the essay ''Being Popular''<ref>{{cite web |url=http://www.paulgraham.com/popular.html |title=Being Popular |last=Graham |first
▲{{Quote |
▲He also stated that it is better for a language to only implement a small number of
A controversy among Lisp programmers is whether, and how much, the [[S-expression]]s of the language should be complemented by other forms of [[syntax]]. Graham feels that additional syntax should be used in situations where pure S-expressions would be overly verbose, saying, "I don't think we should be religiously opposed to introducing syntax into Lisp." Graham also feels that efficiency problems should be solved by giving the programmer a good [[profiling (computer programming) |profiler]].{{Citation needed |date=November 2015}}▼
▲A controversy among Lisp programmers is whether, and how much, the [[
=== Reception ===
== Examples ==
[["Hello, World!" program|Hello world]] in Arc :
<
(prn "Hello, World")
</syntaxhighlight>
<
(defop said req
(aform [onlink "click here" (pr "you said: " (arg _ "foo"))]
(input "foo")
(submit)))
</syntaxhighlight>
==Versions==
===Official version===
The first publicly released version of Arc was made available on 29 January 2008,<ref>{{cite web |url=
=== Unofficial versions ===
Due to
''Arc++''<ref>{{cite web |url=https://github.com/kimtg/Arcpp |title=Arcpp |last=Kim |first=Taegyoon (kimtg) |date=13 August 2023 |website=GitHub |access-date=2023-08-13}}</ref> is an implementation of Arc in [[C++]].
===Timeline of LISP Dialects===
{{Lisp}}
==References==
{{
==External links==
*{{Official website|arclanguage.org}}
*[http://www.arclanguage.org/tut.txt Tutorial]
*{{GitHub|arclanguage/anarki|Anarki}}
{{Lisp programming language}}
[[Category:Dynamically typed programming languages]]
|