Category:Arturo: Difference between revisions

From Rosetta Code
Content added Content deleted
m (add link to unimplemented tasks)
m (minor edit)
 
Line 15: Line 15:
* No reserved words or keywords - look for them as hard as you can; there are absolutely none
* No reserved words or keywords - look for them as hard as you can; there are absolutely none


<syntaxhighlight lang="arturo">
<lang rebol>
factorial: function [n][
factorial: function [n][
if? n > 0 -> n * factorial n-1
if? n > 0 -> n * factorial n-1
Line 23: Line 23:
loop 1..19 [x]->
loop 1..19 [x]->
print ["Factorial of" x "=" factorial x]
print ["Factorial of" x "=" factorial x]
</syntaxhighlight>
</lang>


===Implementation===
===Implementation===

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)