Files
sols.dev/index.html
2026-01-27 14:32:05 +11:00

104 lines
4.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content"Solstice is a programming language focused on ease of use.">
<link rel="stylesheet" href="index.css?v=1">
<title>Solstice</title>
</head>
<body>
<div class="main">
<div class="box" id="main">
<div class="hero-content">
<img src="https://sols.dev/solstice.svg" width="200" height="200" alt="Solstice logo"></img>
<h1>Solstice</h1>
<p class="big">A programming language focused on ease of use.</p>
<button onclick="window.location.href = 'https://chookspace.com/max/solstice'">View Code</button>
<button onclick="window.location.href = '#installing'">Install</button>
<button onclick="window.location.href = '/playground'">Try Online</button>
<button onclick="window.location.href = '/docs'">View Docs</button>
</div>
</div>
<div class="box">
<h2>Features</h2>
<div class="feature-row">
<div class="feature">
<h3>Small and fast</h3>
<p>Solstice's compiler is 1833 lines of C++, and compiles code at lightning speed.</p>
</div>
<div class="feature">
<h3>Built on Ground</h3>
<p>Solstice compiles for the Ground VM, a speedy, light platform. It can even compile to a native executable.</p>
</div>
<div class="feature">
<h3>Simple syntax</h3>
<p>Solstice feels familiar, but light. There's no quirks in the syntax, just pure bliss.</p>
</div>
</div>
</div>
<div class="box">
<h2>Examples</h2>
<div class="feature-row">
<div class="feature">
<h3>92nd Fibonacci Number</h3>
<pre class="code">
<code>a = 0
b = 1
n = 92
i = 0
while i != n {
temp = a + b
a = b
b = temp
i = i + 1
}
puts a</code></pre>
</div>
<div class="feature">
<h3>Guess The Password</h3>
<pre class="code">
<code>accessNotGranted = true
while accessNotGranted {
password = input("Password: ")
if password == "dingus" {
accessNotGranted = false
}
if password != "dingus" {
puts "Incorrect password!"
}
}
puts "Welcome!"</code></pre>
</div>
<div class="feature">
<h3>Count to 100,000</h3>
<pre class="code">
<code>number = 0
while number < 100000 {
number = number + 1
puts number
}</code></pre>
</div>
</div>
</div>
<div class="box" id="installing">
<h2>Getting Solstice</h2>
<p>Solstice is an in-development language, and you can find the latest code on the <a href="https://chookspace.com/max/solstice">Git repository</a>. At present, the stability of Solstice is questionable, so don't trust it to handle your nuclear codes or anything like that yet.</p>
<p>This script will automatically build and install Solstice and Ground from source for you, or update them if they are already installed.</p>
<pre class="code" style="overflow-y: auto">
<code>bash -c "$(curl -fsSL https://sols.dev/install.sh)"</code></pre>
<p>If you find any issues while trying Solstice, please report them <a href="https://chookspace.com/max/solstice/issues">here</a>! Solstice needs all the help it can get.</p>
<p>Stable-ish builds are avaliable in <a href="https://chookspace.com/max/solstice/releases">the releases tab</a> of the Git repository. These builds are likely to be more stable, but don't treat them as a stable branch yet.</p>
<p>Once you've installed, <a href="/docs">read the docs</a> to get started.</p>
</div>
</div>
</body>
</html>