Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
170 lines (164 loc) · 6.79 KB
/
Copy pathindex.html
File metadata and controls
170 lines (164 loc) · 6.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>IronKernel — Kernel on the .NET CLR</title>
<meta
name="description"
content="IronKernel is a Kernel dialect for .NET: first-class operatives, environments, and continuations — I run on .NET."
/>
<link rel="icon" href="assets/ironkernel-mark.png" type="image/png" />
<link rel="stylesheet" href="assets/site.css" />
</head>
<body>
<header class="nav">
<div class="wrap nav-inner">
<a class="brand" href="index.html" aria-label="IronKernel home">
<img src="assets/ironkernel-mark.png" alt="" width="32" height="32" />
IronKernel
</a>
<ul class="nav-links">
<li><a href="docs/getting-started.html">Start</a></li>
<li><a href="docs/intro.html">Intro</a></li>
<li><a href="docs/guide.html">Guide</a></li>
<li><a href="docs/operators.html">Operators</a></li>
<li><a href="https://github.com/ironkernel-lang/IronKernel">GitHub</a></li>
</ul>
</div>
</header>
<main>
<section class="hero wrap">
<p class="hero-news">
<a href="news/ironkernel-0.6.0.html"
><strong>New</strong> · IronKernel 0.6.0 — the editor release: a language server,
recovering diagnostics, and sessions →</a
>
</p>
<h1 class="hero-brand">Iron<span>Kernel</span></h1>
<p class="hero-lead">
A Kernel programming language for the CLR — where combiners and environments are first-class,
and <em>It runs on .NET</em>.
</p>
<div class="cta-row">
<a class="btn btn-primary" href="docs/getting-started.html">Get started</a>
<a class="btn btn-ghost" href="docs/intro.html">Read the intro</a>
<a class="btn btn-ghost" href="https://github.com/ironkernel-lang/IronKernel/releases">Get the binary</a>
</div>
</section>
<section class="section">
<div class="wrap">
<h2 class="reveal">Why Kernel?</h2>
<p class="lede reveal">
Scheme gave us lambdas. Kernel goes further: the operative <code>vau</code> receives
<strong>unevaluated</strong> operand trees and the caller’s environment. New syntax is just
library code — no macro expander required.
</p>
<div class="grid-3">
<article class="feature reveal">
<h3>Operatives, not macros</h3>
<p>
Build <code>unless</code>, <code>and?</code>, or a tracer that prints source before it runs —
by choosing what to <code>eval</code>, when, and where.
</p>
</article>
<article class="feature reveal">
<h3>First-class environments</h3>
<p>
Environments are values. Import bindings, redirect evaluation, or script remote-eval across
modules without leaving the language.
</p>
</article>
<article class="feature reveal">
<h3>Lives on the CLR</h3>
<p>
Call into .NET with <code>.</code>, <code>new</code>, and <code>.get</code>. Hybrid compile to
Expression trees; full Kernel semantics kept via a trampolined CPS runtime.
</p>
</article>
<article class="feature reveal">
<h3>Tagged effects & async</h3>
<p>
Unforgeable prompt tags, deep handlers with one-shot <code>resume</code>, and
<code>await-task</code> for CLR Tasks — without leaving Kernel evaluation.
</p>
</article>
<article class="feature reveal">
<h3>Capability profiles</h3>
<p>
Run as <code>minimal</code>, <code>safe</code> (reviewed CLR wrappers), or
<code>unrestricted</code>. Authority rides with environments, not copied bindings.
</p>
</article>
<article class="feature reveal">
<h3>Projects on NuGet</h3>
<p>
<code>.ikproj</code> projects, the <code>ik</code> CLI, locked restores, and packages that
ship IronKernel source alongside CLR assemblies.
</p>
</article>
</div>
</div>
</section>
<section class="section">
<div class="wrap">
<h2 class="reveal">Taste of the language</h2>
<p class="lede reveal">
Define control forms that short-circuit — something a plain <code>lambda</code> cannot do without thunks.
</p>
<div class="example reveal">
<p class="example-caption">vau invents unless</p>
<pre><code>(define unless
(vau (test & body) env
(if (eval test env)
#inert
(eval (cons sequence body) env))))
(unless #f
(. System.Console WriteLine "fires only when test is false"))</code></pre>
</div>
<div class="example reveal">
<p class="example-caption">delimited continuations</p>
<pre><code>(reset
(begin
(shift (lambda (k) (cons 1 (k (#inert)))))
(shift (lambda (k) (cons 2 (k (#inert)))))
()))
; ⇒ (1 2)</code></pre>
</div>
<div class="example reveal">
<p class="example-caption">tagged effect handler</p>
<pre><code>(define request (make-prompt-tag))
(prompt request
(lambda (value k) (resume k (+ value 1)))
(+ 1 (perform request 40)))
; ⇒ 42</code></pre>
</div>
<p class="reveal">
<a href="docs/guide.html">Continue in the guided tour →</a>
</p>
</div>
</section>
<section class="section">
<div class="wrap">
<h2 class="reveal">ironkernel.org</h2>
<p class="lede reveal">
The name’s <strong>Iron</strong> prefix means <em>It runs on .NET</em>. The site lives at
<a href="https://ironkernel.org">ironkernel.org</a>
(the <code>.net</code> TLD was already taken — fitting irony for a CLR language).
</p>
<div class="cta-row reveal">
<a class="btn btn-primary" href="docs/operators.html">Operator reference</a>
<a class="btn btn-ghost" href="https://github.com/ironkernel-lang/IronKernel">Source on GitHub</a>
</div>
</div>
</section>
</main>
<footer class="footer">
<div class="wrap">
<span>IronKernel — Apache 2.0</span>
<span><a href="docs/intro.html">Docs</a> · <a href="https://github.com/ironkernel-lang/IronKernel">GitHub</a></span>
</div>
</footer>
<script src="assets/site.js"></script>
</body>
</html>