arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting

Home Page:http://arturo-lang.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arturo

Simple, expressive & portable
programming language for efficient scripting

License Language Build Status Chat on Discord



The Language

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, symbols and literal values
  • 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]

➤ Want to see more?

For more - working - examples, just have a look at the Examples in the official website.

Documentation

For more information about the language and access to the library reference, please visit the official Arturo Programming Language documentation website.

Getting Started

In A Nutshell

Language

Command Line

Library

Examples

Installation

Pre-built binaries

Arturo comes with its own pre-built binaries - for, practically, all OSes - so, technically, it doesn't require any "installation". All you have to do is download one of them and run it - that's it!

    

    

➤ Wanna be as up-to-date as possible?

Head over to the Nightlies repo and simply download the latest release!

The alternative way

curl -sSL https://get.arturo-lang.io | sh

For Unix/Mac, you may also copy-paste the code above in your terminal and Arturo's most recent stable version will be automatically installed. To get the most recent (nightly) build, just use: curl -sSL https://get.arturo-lang.io/latest | sh

Manually

In order to build Arturo manually, you may have a look here at the instructions here.

Other methods

Docker

Although it won't cut it, if what you need is the real-deal compiler for everyday use, if you just need a taste of it, the Docker image will absolutely do.

Just use the existing docker image:

docker run -it arturolang/arturo

or (to run a specific local script):

docker run -it -v $(pwd):/home arturolang/arturo <yourscript.art>

Homebrew

If you are on macOS, you can easily install Arturo using Homebrew as well - although I cannot guarantee it will be the latest version:

brew install arturo

➤ Trouble with the installation?

If there is any issue with the installation, just let me know (by opening an issue) and I'll try to fix it. In any case, it would be safer to try one of the pre-built binaries.*

Showcase

Portable, Serverless & Lightweight
SQLite-based Graph Database


Modern cross-platform webview-based desktop apps
without HTML/CSS/JS

Contributing

Please read docs/CONTRIBUTING.md for more details and the process for submitting pull requests.

Community

In case you want to ask a question, suggest an idea, or practically anything related to Arturo - feel free! Everything and everyone is welcome.

For that, the most convenient place for me would be the GitHub Issues page.

For questions, quick ideas, and discussing generally the language, there is also a dedicated Discord Server for all things Arturo.

FAQ

What's in a name?

In case you're wondering why I went for a programming language with a... Spanish male name, let me shed some light: Arturo was the name of my little pet Emperor Scorpion - hence the logo -, or Pandinus Imperator, who passed away in early 2020.

Despite being seemingly intimidating - as most scorpions do to those who don't know about the species - he was a very quiet, totally docile, easy-going and noble creature.

So, the name is a subtle hommage to him; and also a hint as to what this programming language aspires to be.

License

MIT License

Copyright (c) 2019-2024 Yanis Zafirópulos (aka Dr.Kameleon)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Simple, expressive & portable programming language for efficient scripting

http://arturo-lang.io

License:MIT License


Languages

Language:Nim 51.3%Language:C 30.2%Language:C++ 18.0%Language:Batchfile 0.2%Language:Objective-C 0.2%Language:JavaScript 0.0%Language:HTML 0.0%Language:Shell 0.0%