<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ArkScript</title><link>https://arkscript-lang.dev/</link><description>Recent content on ArkScript</description><generator>Hugo</generator><language>en</language><copyright>Copyright (c) Lexy Plt</copyright><lastBuildDate>Thu, 12 Nov 2026 18:52:13 +0100</lastBuildDate><atom:link href="https://arkscript-lang.dev/index.xml" rel="self" type="application/rss+xml"/><item><title>Getting started</title><link>https://arkscript-lang.dev/docs/prologue/getting_started/</link><pubDate>Sun, 20 Jul 2025 19:30:16 +0200</pubDate><guid>https://arkscript-lang.dev/docs/prologue/getting_started/</guid><description>&lt;script src="https://arkscript-lang.dev/js/rainbow.min.js">&lt;/script>
&lt;script src="https://arkscript-lang.dev/js/arkscript.js">&lt;/script>


&lt;h2 id="what-is-arkscript">What is ArkScript?&lt;/h2>
&lt;ul>
&lt;li>A small functional scripting language,&lt;/li>
&lt;li>Only needs 9 keywords to write code, not &lt;a href="https://en.wikipedia.org/wiki/List_of_Java_keywords">68&lt;/a>,&lt;/li>
&lt;li>Portable, compile once and run your bytecode anywhere,&lt;/li>
&lt;li>Homoiconic via its macro processor,&lt;/li>
&lt;/ul>
&lt;details>
 &lt;summary>Can use &lt;code>async&lt;/code> on any function (no more &lt;a href="https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/">coloured function&lt;/a>)&lt;/summary>
 &lt;div class="expressive-code">
 &lt;figure class="frame not-content">
 &lt;div class="highlight">
 &lt;pre class="chroma">&lt;code class="rainbowjs" data-language="arkscript">(import std.List)
(let data [very important data here])
# the function we&amp;#39;ll call using async
(let sum (fun (a b src) {
 (mut acc 0)
 (while (&amp;lt; a b) {
 (set acc (&amp;#43; acc (@ src a)))
 (set a (&amp;#43; 1 a))})
 acc }))
# a set of calls to `sum` to compute data asynchronously
(let workers [
 (async sum 0 (/ size 4) data)
 (async sum (/ size 4) (/ size 2) data)
 (async sum (/ size 2) (- size (/ size 4)) data)
 (async sum (- size (/ size 4)) size data)])
# awaiting on all of our workers and summing it up!
(let result (list:sum (list:map workers (fun (w) (await w)))))
&lt;/code>&lt;/pre>
 &lt;/div>
 &lt;/figure>
&lt;/div>
&lt;/details>
&lt;details>
 &lt;summary>Has tail call optimisation&lt;/summary>
 So that recursive functions calls are optimised as best as possible, to help enforce a functional style.&lt;/details>
&lt;details>
 &lt;summary>Designed to help you code better and find your errors quickly&lt;/summary>
 


&lt;div class="expressive-code">
 &lt;figure class="frame is-terminal not-content">
 &lt;figcaption class="header">
 &lt;span class="title">&lt;/span>
 &lt;/figcaption>
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">CompilationError: Unbound variable error &lt;span class="s2">&amp;#34;fib&amp;#34;&lt;/span> &lt;span class="o">(&lt;/span>did you mean &lt;span class="s2">&amp;#34;fibo&amp;#34;&lt;/span>?&lt;span class="o">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">In file fibonacci.ark
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">On line 7:12, got &lt;span class="sb">`&lt;/span>&lt;span class="o">(&lt;/span>Symbol&lt;span class="o">)&lt;/span> fib&lt;span class="err">&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="m">4&lt;/span> &lt;span class="p">|&lt;/span> n
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="m">5&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="o">(&lt;/span>+ &lt;span class="o">(&lt;/span>fibo &lt;span class="o">(&lt;/span>- n 1&lt;span class="o">))&lt;/span> &lt;span class="o">(&lt;/span>fibo &lt;span class="o">(&lt;/span>- n 2&lt;span class="o">))))))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="m">6&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="o">(&lt;/span>&lt;span class="k">while&lt;/span> &lt;span class="k">continue&lt;/span> &lt;span class="o">{&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="m">7&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="o">(&lt;/span>print &lt;span class="o">(&lt;/span>fib 28&lt;span class="o">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">|&lt;/span> ^^^
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="m">8&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="o">(&lt;/span>&lt;span class="k">if&lt;/span> &lt;span class="o">(=&lt;/span> &lt;span class="o">(&lt;/span>random &lt;span class="m">1&lt;/span> 10&lt;span class="o">)&lt;/span> 1&lt;span class="o">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="m">9&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="o">(&lt;/span>&lt;span class="nb">set&lt;/span> &lt;span class="k">continue&lt;/span> &lt;span class="nb">false&lt;/span>&lt;span class="o">))&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/figure>
&lt;/div>
&lt;/details>
&lt;h2 id="how-do-i-tryinstalluse-the-language">How do I try/install/use the language?&lt;/h2>
&lt;p>You will want to learn the language first: &lt;a href="https://arkscript-lang.dev/docs/tutorials/language">Learning ArkScript&lt;/a>.&lt;/p></description></item><item><title>Building and installing</title><link>https://arkscript-lang.dev/docs/prologue/building/</link><pubDate>Mon, 14 Jul 2025 17:03:31 +0200</pubDate><guid>https://arkscript-lang.dev/docs/prologue/building/</guid><description>&lt;p>You can choose to build the project from source (which requires some knowledge like git, cmake and using shell commands) or get a build from a ZIP file.&lt;/p></description></item><item><title>Contributing guidelines</title><link>https://arkscript-lang.dev/docs/guides/contributing/</link><pubDate>Mon, 14 Jul 2025 16:49:48 +0200</pubDate><guid>https://arkscript-lang.dev/docs/guides/contributing/</guid><description>&lt;p>If you are here, it means that you are interested in contributing to this project, and we are happy about it!
You will find a collections of useful resources to get started, whatever you would like to contribute.&lt;/p></description></item><item><title>Coding guidelines</title><link>https://arkscript-lang.dev/docs/guides/coding_guidelines/</link><pubDate>Mon, 14 Jul 2025 19:29:13 +0200</pubDate><guid>https://arkscript-lang.dev/docs/guides/coding_guidelines/</guid><description>&lt;script src="https://arkscript-lang.dev/js/rainbow.min.js">&lt;/script>
&lt;script src="https://arkscript-lang.dev/js/arkscript.js">&lt;/script>


&lt;h2 id="definitions">Definitions&lt;/h2>
&lt;ul>
&lt;li>&lt;em>guideline&lt;/em>: general rule applying to ArkScript code, which must be followed when contributing to the standard library and examples of the main repository&lt;/li>
&lt;li>&lt;em>standard library (aka lib)&lt;/em>: the files and functions in the &lt;code>lib/std&lt;/code> folder of &lt;code>ArkScript-lang/Ark&lt;/code>&lt;/li>
&lt;li>&lt;em>builtins&lt;/em>: functions and constants defined through C++ code, available without having to import anything&lt;/li>
&lt;li>&lt;em>module&lt;/em>: C++ plugin for the ArkScript virtual machine, allowing use of C++ code (eg: the SFML)&lt;/li>
&lt;/ul>
&lt;h2 id="precisions">Precisions&lt;/h2>
&lt;p>Indentation matters to us, programmers (but not to the compiler):&lt;/p></description></item><item><title>Naming convention in ArkScript</title><link>https://arkscript-lang.dev/docs/guides/naming/</link><pubDate>Mon, 14 Jul 2025 19:29:13 +0200</pubDate><guid>https://arkscript-lang.dev/docs/guides/naming/</guid><description>&lt;script src="https://arkscript-lang.dev/js/rainbow.min.js">&lt;/script>
&lt;script src="https://arkscript-lang.dev/js/arkscript.js">&lt;/script>


&lt;h2 id="definitions">Definitions&lt;/h2>
&lt;ul>
&lt;li>&lt;em>guideline&lt;/em>: general rule applying to ArkScript code, which must be followed when contributing to the standard library and examples of the main repository&lt;/li>
&lt;li>&lt;em>standard library (aka lib)&lt;/em>: the files and functions in the &lt;code>lib/&lt;/code> folder&lt;/li>
&lt;li>&lt;em>builtins&lt;/em>: functions and constants defined through C++ code, available without having to import anything&lt;/li>
&lt;li>&lt;em>module&lt;/em>: C++ plugin for the ArkScript virtual machine, allowing use of C++ code (eg: the SFML)&lt;/li>
&lt;/ul>
&lt;h2 id="naming">Naming&lt;/h2>
&lt;h3 id="arkscript">ArkScript&lt;/h3>
&lt;p>Variables and functions in ArkScript standard library are named in &lt;em>camelCase&lt;/em>, though &lt;em>kebab-case&lt;/em>, &lt;em>snake_case&lt;/em> and &lt;em>PascalCase&lt;/em> are also supported.&lt;/p></description></item><item><title>CI integration</title><link>https://arkscript-lang.dev/docs/guides/ci/</link><pubDate>Thu, 12 Nov 2026 18:52:13 +0100</pubDate><guid>https://arkscript-lang.dev/docs/guides/ci/</guid><description>&lt;h2 id="formatting-arkscript-code-on-ci">Formatting ArkScript code on CI&lt;/h2>
&lt;p>GitHub action: &lt;a href="https://github.com/ArkScript-lang/action-format">ArkScript-lang/action-format&lt;/a>&lt;/p>
&lt;p>Inputs:&lt;/p>
&lt;ul>
&lt;li>folder:
&lt;ul>
&lt;li>description: Folder with .ark files to check, scanned &lt;strong>recursively&lt;/strong>&lt;/li>
&lt;li>required: true&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;p>Example:&lt;/p></description></item><item><title>Learning ArkScript</title><link>https://arkscript-lang.dev/docs/tutorials/language/</link><pubDate>Mon, 14 Jul 2025 19:29:13 +0200</pubDate><guid>https://arkscript-lang.dev/docs/tutorials/language/</guid><description>&lt;script src="https://arkscript-lang.dev/js/rainbow.min.js">&lt;/script>
&lt;script src="https://arkscript-lang.dev/js/arkscript.js">&lt;/script>


&lt;h2 id="running-code">Running code&lt;/h2>
&lt;p>Create a &lt;code>file.ark&lt;/code> on your disk, and from a terminal, run &lt;code>arkscript file.ark&lt;/code>.&lt;br>
This will create a cache folder &lt;code>__arkscript__/&lt;/code> with the compiled bytecode inside, that the VM will then run.&lt;/p></description></item><item><title>Embedding ArkScript in C++ projects</title><link>https://arkscript-lang.dev/docs/tutorials/embedding/</link><pubDate>Mon, 14 Jul 2025 19:11:23 +0200</pubDate><guid>https://arkscript-lang.dev/docs/tutorials/embedding/</guid><description>&lt;h2 id="memory-requirements">Memory requirements&lt;/h2>
&lt;p>As of writing, ArkScript requires a 64 bits CPU and uses around 35MB of RAM to run a script.&lt;/p></description></item><item><title>Debugging ArkScript code</title><link>https://arkscript-lang.dev/docs/tutorials/debugging/</link><pubDate>Sat, 17 Jan 2026 19:25:20 +0200</pubDate><guid>https://arkscript-lang.dev/docs/tutorials/debugging/</guid><description>&lt;script src="https://arkscript-lang.dev/js/rainbow.min.js">&lt;/script>
&lt;script src="https://arkscript-lang.dev/js/arkscript.js">&lt;/script>


&lt;p>ArkScript has a debugger built into its VM, that usually do not trigger, unless you pass the command flag &lt;code>-fdebugger&lt;/code> to the CLI. It also doesn&amp;rsquo;t trigger by default when using ArkScript as an embedded scripting language.&lt;/p></description></item><item><title>Creating modules</title><link>https://arkscript-lang.dev/docs/tutorials/modules/</link><pubDate>Mon, 14 Jul 2025 19:25:20 +0200</pubDate><guid>https://arkscript-lang.dev/docs/tutorials/modules/</guid><description>&lt;h2 id="before-starting">Before starting&lt;/h2>
&lt;p>You will still need to dive a bit into the documentation of the project, to know how:&lt;/p>
&lt;ul>
&lt;li>the VM API works, and what it provides&lt;/li>
&lt;li>the possibilities of the Value type (comparisons, creations)&lt;/li>
&lt;li>how to use the &lt;code>Ark::UserType&lt;/code>&lt;/li>
&lt;/ul>
&lt;p>Also, read &lt;a href="https://arkscript-lang.dev/docs/reference/module_error_handling">the HOWTO guide about module error handling&lt;/a> to use the same conventions as the other modules, and &lt;a href="https://arkscript-lang.dev/docs/guides/naming">the guidelines about naming convention&lt;/a> in ArkScript (specifically see the &lt;em>Modules (C++)&lt;/em> section).&lt;/p></description></item></channel></rss>