Category:Arturo: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page with "{{stub}}{{language|Arturo}}")
 
m (minor edit)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}{{language|Arturo}}
{{language|Arturo
|exec=interpreted
|strength=strong
|checking=dynamic
|express=implicit
|site=https://arturo-lang.io
|tags=arturo
|gc=yes}}
Arturo is an independently-developed, modern programming language, vaguely related to various other ones - including but not limited to [[Logo]], [[Rebol]], [[Forth]], [[Ruby]], [[Haskell]], [[D]], [[SmallTalk]], [[Tcl]] and [[Lisp]].

The language has been designed following some very simple and straightforward principles:

* Code is just a list of words and symbols
* Words and symbols within a block are interpreted - when needed - according to the context
* No reserved words or keywords - look for them as hard as you can; there are absolutely none

<syntaxhighlight lang="arturo">
factorial: function [n][
if? n > 0 -> n * factorial n-1
else -> 1
]

loop 1..19 [x]->
print ["Factorial of" x "=" factorial x]
</syntaxhighlight>

===Implementation===
The main compiler is implemented in [[Nim]]/[[C]] as a Bytecode interpreter / Stack-based VM and should run in most architectures.

The main goals are: expressiveness, brevity, performance and portability. (With that exact order)

===License===
Arturo is released under the [[MIT/X11 License]].

===Todo===
[[Tasks not implemented in Arturo]]

{{language programming paradigm|Concatenative}}
{{language programming paradigm|Declarative}}
{{language programming paradigm|Dynamic}}
{{language programming paradigm|Functional}}
{{language programming paradigm|Imperative}}
{{language programming paradigm|Reflective}}

Latest revision as of 16:00, 7 March 2023

Language
Arturo
This programming language may be used to instruct a computer to perform a task.
Official website
Execution method: Interpreted
Garbage collected: Yes
Type strength: Strong
Type expression: Implicit
Type checking: Dynamic
Lang tag(s): arturo
See Also:


Listed below are all of the tasks on Rosetta Code which have been solved using Arturo.

Arturo is an independently-developed, modern programming language, vaguely related to various other ones - including but not limited to Logo, Rebol, Forth, Ruby, Haskell, D, SmallTalk, Tcl and Lisp.

The language has been designed following some very simple and straightforward principles:

  • Code is just a list of words and symbols
  • Words and symbols within a block are interpreted - when needed - according to the context
  • No reserved words or keywords - look for them as hard as you can; there are absolutely none
factorial: function [n][
	if? n > 0 -> n * factorial n-1
	else 	  -> 1
] 

loop 1..19 [x]->
	print ["Factorial of" x "=" factorial x]

Implementation

The main compiler is implemented in Nim/C as a Bytecode interpreter / Stack-based VM and should run in most architectures.

The main goals are: expressiveness, brevity, performance and portability. (With that exact order)

License

Arturo is released under the MIT/X11 License.

Todo

Tasks not implemented in Arturo

Subcategories

This category has only the following subcategory.

@

Pages in category "Arturo"

The following 200 pages are in this category, out of 779 total.

(previous page) (next page)

C

(previous page) (next page)