-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
280 lines (244 loc) · 13.7 KB
/
index.html
File metadata and controls
280 lines (244 loc) · 13.7 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Nue - Simplicity without compromise.</title>
<link rel="icon" href="favicon.ico" />
<!-- general meta -->
<meta name="title" content="Nue - Simplicity without compromise." />
<meta name="description"
content="Nue is a fast, coherent programming language written in C. Designed for clarity, performance, and elegance." />
<meta name="theme-color" content="#FF8D7B" />
<meta name="keywords"
content="Nue, Nue language, programming language, programming language, modern language, Richard Ziupsnys, Numelon, interpreter, language design, VSCode extension, scripting, custom language, C-based language, syntax highlighting, experimental language, lexer, parser, simple programming language, custom compiler, toy language, future of programming, fast language, type-safe language, Lua-inspired, expressive language, beginner friendly, advanced scripting, modern syntax, match statement, alias, variadic functions, soft typing, custom types, code aesthetics, Numelon Ltd" />
<!-- opengraph meta -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://nue.nu/" />
<meta property="og:title" content="Nue - Simplicity without compromise." />
<meta property="og:description"
content="Nue is a fast, coherent programming language written in C. Designed for clarity, performance, and elegance." />
<meta property="og:image" content="https://raw.githubusercontent.com/nue-lang/logo/main/exported/banner.png" />
<!-- twitter meta -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:url" content="https://nue.nu/" />
<meta name="twitter:title" content="Nue - Simplicity without compromise." />
<meta name="twitter:description"
content="Nue is a fast, coherent programming language written in C. Designed for clarity, performance, and elegance." />
<meta name="twitter:image" content="https://raw.githubusercontent.com/nue-lang/logo/main/exported/banner.png" />
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono&family=Nunito+Sans:wght@400;700&display=swap"
rel="stylesheet" />
<!-- bloated tailwind -->
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css" />
<!-- custom prism style for nue -->
<link rel="stylesheet" href="styles/prism-styles-nue.css" />
<script src="https://cdn.jsdelivr.net/npm/prismjs/prism.js"></script>
<!-- custom prism syntax declaration for nue -->
<script src="js/prism-nue.js"></script>
<link rel="stylesheet" href="styles/tailwind.css" />
<script defer data-domain="nue.nu"
src="https://plstrk.numelon.com/js/script.file-downloads.hash.outbound-links.tagged-events.js"></script>
<script>window.plausible = window.plausible || function () { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
</head>
<body class="bg-[#1a1a1a] text-[#fce1d2]">
<header class="text-center py-20 bg-gradient-to-br from-[#2a2a2a] to-[#1a1a1a]">
<img src="https://raw.githubusercontent.com/NueLanguage/logo/refs/heads/main/exported/logo.png" alt="Nue Logo"
class="w-24 h-24 mx-auto mb-4" />
<h1 class="text-6xl font-bold text-[var(--accent)]">Nue</h1>
<p class="mt-4 text-xl text-[var(--muted)]">
A fast and coherent programming language without compromise 🌸
</p>
<div class="mt-6 space-x-4">
<a href="#about"
class="inline-block px-6 py-2 border border-[var(--accent)] rounded hover:bg-[var(--accent)] hover:text-[#1a1a1a] transition"><i
class="fas fa-circle-info mr-2"></i>Learn More</a>
<a href="https://github.com/NueLanguage/nue" target="_blank"
class="inline-block px-6 py-2 border border-[var(--accent)] rounded hover:bg-[var(--accent)] hover:text-[#1a1a1a] transition"><i
class="fab fa-github mr-2"></i>GitHub</a>
<a href="#feature-request"
class="inline-block px-6 py-2 border border-[var(--accent)] rounded hover:bg-[var(--accent)] hover:text-[#1a1a1a] transition"><i
class="fas fa-lightbulb mr-2"></i>Feature Request</a>
<a href="https://discord.gg/VHDnSxgkGa" target="_blank"
class="inline-block px-6 py-2 bg-blue-500 text-white rounded hover:opacity-90 transition"><i
class="fab fa-discord mr-2"></i>Discord</a>
</div>
</header>
<section id="about" class="max-w-5xl mx-auto px-6 py-16">
<h2 class="text-3xl text-[var(--accent)] font-bold mb-10 text-center">
What is Nue?
</h2>
<div class="grid md:grid-cols-2 gap-6" id="feature-cards">
<div class="bg-[#2a2a2a] rounded-lg p-6 shadow glow-card">
<h3 class="text-xl font-semibold text-[var(--accent)] mb-2">
<i class="fas fa-microchip mr-2"></i> Lightweight, but Powerful
</h3>
<p>
Nue is written in C and compiles to highly optimised LLVM IR, combining low-level control with
modern backend performance. It is built to feel snappy at every stage, without sacrificing
expressiveness.
</p>
</div>
<div class="bg-[#2a2a2a] rounded-lg p-6 shadow glow-card">
<h3 class="text-xl font-semibold text-[var(--accent)] mb-2">
<i class="fas fa-code-branch mr-2"></i> Typed, yet Flexible.
</h3>
<p>
Nue requires strong typing without rigidity. Using <code>any</code> and explicit type whitelisting,
developers can define flexible yet safe data structs and function signatures.
</p>
</div>
<div class="bg-[#2a2a2a] rounded-lg p-6 shadow glow-card">
<h3 class="text-xl font-semibold text-[var(--accent)] mb-2">
<i class="fas fa-scroll mr-2"></i> Intuitive Syntax
</h3>
<p>
Nue feels natural. With readable constructs like <code>match</code>, table typing,
<code>for i in 1 .. 10</code>, and Lua-style variadics, its syntax is made to express intent, not
ceremony. You will rarely need semicolons, and you will never miss the noise.
</p>
</div>
<div class="bg-[#2a2a2a] rounded-lg p-6 shadow glow-card">
<h3 class="text-xl font-semibold text-[var(--accent)] mb-2">
<i class="fas fa-rocket mr-2"></i> Fast to Learn, Fun to Master
</h3>
<p>
Nue is designed for fun and flow. Its minimal syntax, clear rules and focus on expressiveness makes
it easy to pick up, yet also powerful enough to reward more complex things.
</p>
</div>
</div>
</section>
<section id="examples" class="max-w-5xl mx-auto px-6 py-16">
<h2 class="text-3xl text-[var(--accent)] font-bold mb-6 text-center">
What does Nue look like?
</h2>
<!-- the tab buttons -->
<div class="flex flex-wrap justify-center gap-2 mb-4">
<button class="tab-button active" onclick="showTab('tab1', event)">
Hello World
</button>
<button class="tab-button" onclick="showTab('tab2', event)">
Multiple Types
</button>
<button class="tab-button" onclick="showTab('tab3', event)">
match
</button>
<button class="tab-button" onclick="showTab('tab4', event)">
Alias
</button>
<button class="tab-button" onclick="showTab('tab5', event)">
Custom Iterator
</button>
</div>
<!-- actual tab content itself, hidden until selected -->
<div id="tab1" class="tab-content active">
<pre class="rounded overflow-auto bg-[#2d2d2d] p-4 text-sm text-white"><code class="language-nue">// this one is quite obvious! :)
print("Hello from Nue!")</code></pre>
</div>
<div id="tab2" class="tab-content">
<pre class="rounded overflow-auto bg-[#2d2d2d] p-4 text-sm text-white"><code class="language-nue">[string, number] myVar = "hello"
myVar = 123
print(myVar) //123
myVar = {} // error: myVar only allows strings and numbers</code></pre>
</div>
<div id="tab3" class="tab-content">
<pre class="rounded overflow-auto bg-[#2d2d2d] p-4 text-sm text-white"><code class="language-nue">string input = {"yes", "no", "maybe"}[math.random(1, 3)]
match input {
case "yes" {
print("Confirmed!")
}
case "no" {
print("Cancelled!")
}
case { // this is the default case
print("Unknown response.")
}
}</code></pre>
</div>
<div id="tab4" class="tab-content">
<pre class="rounded overflow-auto bg-[#2d2d2d] p-4 text-sm text-white"><code class="language-nue">boolean enabled = true
alias mirror = enabled
mirror = false
print(mirror) // output: false, this is to be expected
print(enabled) // output: false
// this is because when we made an alias of 'enabled' (mirror),
// we effectively made them share the same memory</code></pre>
</div>
<div id="tab5" class="tab-content">
<pre class="rounded overflow-auto bg-[#2d2d2d] p-4 text-sm text-white"><code class="language-nue">function customIterator(...) -> function {
table items = {...}
number i = 1
return function() -> boolean, any? {
if i > #items { return false }
return true, items[i++]
}
}
for value in customIterator("a", 2, true) {
print(value)
}</code></pre>
</div>
</section>
<section id="extension" class="max-w-4xl mx-auto px-6 py-16">
<h2 class="text-3xl text-[var(--accent)] font-bold mb-6">
VSCode Extension
</h2>
<p class="mb-4">
Even in its early days, Nue already has an experimental VSCode extension
with syntax highlighting and more coming soon.
</p>
<img src="https://github.com/NueLanguage/vscode-extension/raw/main/README-assets/features.png"
alt="VSCode Extension Preview" class="rounded shadow mb-4" />
<div class="space-x-4 flex justify-center flex-wrap gap-4">
<a href="https://marketplace.visualstudio.com/items?itemName=NueLanguage.nue-vscode" target="_blank"
class="inline-block px-4 py-2 bg-[var(--accent)] text-[#1a1a1a] rounded hover:opacity-90 transition"><i
class="fas fa-code mr-2"></i> VSCode Marketplace</a>
<a href="https://open-vsx.org/extension/NueLanguage/nue-vscode" target="_blank"
class="inline-block px-4 py-2 bg-[var(--accent)] text-[#1a1a1a] rounded hover:opacity-90 transition"><i
class="fas fa-box-open mr-2"></i> Open VSX</a>
<a href="https://github.com/NueLanguage/vscode-extension" target="_blank"
class="inline-block px-4 py-2 bg-[var(--accent)] text-[#1a1a1a] rounded hover:opacity-90 transition"><i
class="fab fa-github mr-2"></i> GitHub</a>
</div>
</section>
<section id="feature-request" class="max-w-4xl mx-auto px-6 py-16">
<h2 class="text-3xl text-[var(--accent)] font-bold mb-6">
Feature Requests
</h2>
<p>
See something missing from Nue or wish for a feature that no other
language has? Let Nue be your dream -
<strong>let's rewrite history together!</strong>
</p>
<a href="https://github.com/NueLanguage/nue/issues" target="_blank"
class="inline-block mt-4 px-6 py-2 bg-[var(--accent)] text-[#1a1a1a] rounded hover:opacity-90 transition"><i
class="fas fa-magic mr-2"></i>Request a Feature</a>
</section>
<section id="timeline" class="max-w-4xl mx-auto px-6 py-16">
<h2 class="text-3xl text-[var(--accent)] font-bold mb-6">Timeline & Development Pace</h2>
<p>
Nue is developed by a single A-Level student - me - juggling 12-hour school days, coursework, and a genuine
love for both computer science and this language alike. Development continues whenever possible, typically
surging during school holidays (think October half-term, winterbreak, etc. in the UK).
<br><br>
While an August to September 2025 milestone was once the goal, it is clear now that the timeline will be
more fluid. Realistically, <strong>late October 2025</strong> is the next window for major progress, with
further milestones aligned to future breaks.
<br><br>
If you are excited about Nue, please consider joining the <a href="https://discord.gg/VHDnSxgkGa"
class="text-[var(--accent)]">Discord
server</a> - it is the best
place to suggest features, follow updates, or just enjoy a small but growing community that is passionate
about Nue.
</p>
</section>
<footer class="text-center py-8 text-[var(--muted)] text-sm">
© 2025 Nue. Crafted with care and peachy precision! 🍑
<br>
Nue is currently being made by <a href="https://richy.lol" style="text-decoration-line: underline;">Richard
Ziupsnys</a>, who also created this site.
</footer>
<script src="js/code-tabs.js"></script>
<script src="js/card-glow.js"></script>
</body>
</html>