Awesome
<div align="center"> <img align="center" width="150" src="docs/images/logo.png#gh-light-mode-only"/> <img align="center" width="150" src="docs/images/logo-lightgray.png#gh-dark-mode-only"/> <h1>Arturo</h1>Simple, expressive & portable<br>programming language for efficient scripting<br><br> <a href="https://discord.gg/YdVK2CB" target="_blank"></a>
</div><!--ts--> <!--te-->
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][
switch n > 0 -> n * factorial n-1
-> 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.
<p align="center"><img width="50%" src="docs/images/icons/getting-started.png#gh-light-mode-only"><img width="50%" src="docs/images/icons/getting-started-white.png#gh-dark-mode-only"></p> | <p align="center"><img width="50%" src="docs/images/icons/in-a-nutshell.png#gh-light-mode-only"><img width="50%" src="docs/images/icons/in-a-nutshell-white.png#gh-dark-mode-only"></p> | <p align="center"><img width="50%" src="docs/images/icons/language.png#gh-light-mode-only"><img width="50%" src="docs/images/icons/language-white.png#gh-dark-mode-only"></p> |
---|---|---|
<p align="center">Getting Started</p> | <p align="center">In A Nutshell</p> | <p align="center">Language</p> |
<p align="center"><img width="50%" src="docs/images/icons/command-line.png#gh-light-mode-only"><img width="50%" src="docs/images/icons/command-line-white.png#gh-dark-mode-only"></p> | <p align="center"><img width="50%" src="docs/images/icons/library.png#gh-light-mode-only"><img width="50%" src="docs/images/icons/library-white.png#gh-dark-mode-only"></p> | <p align="center"><img width="50%" src="docs/images/icons/examples.png#gh-light-mode-only"><img width="50%" src="docs/images/icons/examples-white.png#gh-dark-mode-only"></p> |
<p align="center">Command Line</p> | <p align="center">Library</p> | <p align="center">Examples</p> |
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!
<p align="center">⇩ Download Arturo</p>
➤ 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
<p align="center"> <img align="center" width="250" src="https://raw.githubusercontent.com/arturo-lang/grafito/master/logo.png#gh-light-mode-only"><img align="center" width="250" src="https://raw.githubusercontent.com/arturo-lang/grafito/master/logo-dark.png#gh-dark-mode-only"> </p> <p align="center"> <a href="https://github.com/arturo-lang/grafito"><b>Portable, Serverless & Lightweight<br>SQLite-based Graph Database</b></a> </p><p align="center"> <img align="center" width="250" src="https://raw.githubusercontent.com/arturo-lang/aguila/master/docs/assets/logo.png"> </p> <p align="center"> <a href="https://github.com/arturo-lang/aguila"><b>Modern cross-platform webview-based desktop apps<br>without HTML/CSS/JS</b></a> </p>
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.
<img src="https://starchart.cc/arturo-lang/arturo.svg#gh-light-mode-only">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.
Contributing
Activity
<p align="center"> <img src="https://repobeats.axiom.co/api/embed/8c5035a3893bd66bdcc4e8295a6eee2ab8399b2f.svg"> </p>How can I contribute?
Please read docs/CONTRIBUTING.md for more details and the process for submitting pull requests.
Donations
Given that Arturo is written and maintained by people for free, in their own free time, that also have their daily jobs, any donation would give the project the help it needs to get to the next level. And for that, we'd also need you help.
So...
How can I donate?
We have different options for you:
You may also donate via Bitcoin:
<img width="150" src="docs/images/bitc.png"/>Sponsors
Every little bit counts and the least we could do is to thank you all for your help and making us stick to the project:
<!--<div align="center">--> <h4>🩶 Silver sponsors</h4><a href="https://github.com/hcengineering"><img align="center" width="100" src="https://avatars.githubusercontent.com/u/87086734?s=200&v=4"/><br><b>Huly® Platform™</b></a>
<!--</div>--> <!--<div align="center">--> <h4>⚡️ Bronze sponsors</h4><a href="https://github.com/BNAndras"><img align="center" width="50" src="https://avatars.githubusercontent.com/u/20251272?v=4"/></a>
<!--</div>-->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.