@misterscan/sesi 1.1.2 โ 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -8
- package/bin/sesi.js +35 -34
- package/dist/ai-runtime.d.ts +5 -0
- package/dist/ai-runtime.d.ts.map +1 -1
- package/dist/ai-runtime.js +157 -7
- package/dist/ai-runtime.js.map +1 -1
- package/dist/builtins.d.ts +1 -1
- package/dist/builtins.d.ts.map +1 -1
- package/dist/builtins.js +114 -1
- package/dist/builtins.js.map +1 -1
- package/dist/interpreter.d.ts +6 -1
- package/dist/interpreter.d.ts.map +1 -1
- package/dist/interpreter.js +210 -36
- package/dist/interpreter.js.map +1 -1
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +2 -0
- package/dist/parser.js.map +1 -1
- package/dist/sesi.bundled.js +1029 -489
- package/dist/types.d.ts +9 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/docs/ARCHITECTURE.md +9 -9
- package/docs/BUILTINS.md +87 -8
- package/docs/DISTRIBUTED_SYSTEMS.md +1 -1
- package/docs/IMAGE_GENERATION.md +82 -1
- package/docs/IMPLEMENTATION_SUMMARY.md +544 -533
- package/docs/QUICKSTART.md +41 -1
- package/docs/README.md +20 -14
- package/docs/ROADMAP.md +10 -11
- package/docs/SPECIFICATION.md +37 -14
- package/docs/SYSTEMS_REASONING.md +35 -11
- package/docs/bakery_logo.png +0 -0
- package/docs/coffee_mug.png +0 -0
- package/docs/desk_lamp.png +0 -0
- package/docs/favicon.ico +0 -0
- package/docs/logo.png +0 -0
- package/docs/notebook.png +0 -0
- package/docs/sesi_ai_chronicles.md +209 -0
- package/examples/16_modules.sesi +28 -0
- package/examples/17_http_client.sesi +29 -0
- package/examples/18_parallel_requests.sesi +37 -0
- package/main/chatbot.sesi +36 -0
- package/main/conversational_classifier_weights.json +45 -0
- package/main/conversational_sentences.json +304 -0
- package/main/epochs.sesi +94 -0
- package/main/gpu_orchestrator.sesi +36 -0
- package/main/hardware_diagnostics.sesi +118 -0
- package/main/inference.sesi +54 -0
- package/main/native_chatbot.sesi +180 -0
- package/main/native_synthesizer.sesi +83 -0
- package/main/nn_personas_trainer.sesi +302 -0
- package/main/nn_responses_trainer.sesi +269 -0
- package/main/nn_sentences_trainer.sesi +330 -0
- package/main/personas.json +124 -0
- package/main/personas_classifier_weights.json +45 -0
- package/main/playground.sesi +3 -1
- package/main/predictive_typing.sesi +127 -0
- package/main/query_brain.sesi +45 -0
- package/main/response_classifier_weights.json +45 -0
- package/main/retro_chat.html +239 -0
- package/main/retro_chat_generator.sesi +745 -0
- package/main/sesi_ai.sesi +158 -0
- package/main/sesi_db_chatbot.sesi +252 -0
- package/main/terminal.log +56 -0
- package/main/terminal_chat.py +385 -0
- package/main/tests/temp_math_mod.sesi +3 -0
- package/main/tests/test_image_input.sesi +40 -0
- package/main/tests/test_v2_features.sesi +48 -0
- package/main/unified_sesi_ai.sesi +334 -0
- package/main/varied_responses.json +304 -0
- package/package.json +27 -15
- package/main/atm_deposit.sesi +0 -37
- package/main/atm_withdraw.sesi +0 -37
- package/main/data.txt +0 -1
- package/main/math_aggregator.sesi +0 -15
- package/main/math_generator.sesi +0 -7
- package/main/math_processor.sesi +0 -23
- package/main/tax_calculator.sesi +0 -15
- package/main/vault.sesi +0 -15
|
@@ -1,533 +1,544 @@
|
|
|
1
|
-
# Sesi Language - Complete Implementation Summary
|
|
2
|
-
|
|
3
|
-
## ๐ Overview
|
|
4
|
-
|
|
5
|
-
**Sesi** is a high-performance **Systems Language** designed for building resilient, stateful applications. It provides first-class primitives for process management and filesystem orchestration, while integrating reasoning as a first-class execution primitive. Unlike traditional languages that rely on external SDKs for AI interaction, Sesi treats reasoning as a native language construct, enabling developers to build context-aware systems with minimal boilerplate.
|
|
6
|
-
|
|
7
|
-
## ๐ฏ Design Philosophy
|
|
8
|
-
|
|
9
|
-
Sesi follows these core principles:
|
|
10
|
-
|
|
11
|
-
1. **Reasoning as a Primitive**: Reasoning calls aren't library functionsโthey're language constructs with dedicated syntax. This allows for deep integration with the interpreter's environment and type system.
|
|
12
|
-
2. **Practical Over Perfect**: Focus on what developers actually need, not theoretical completeness.
|
|
13
|
-
3. **Transparency Over Magic**: Explicit reasoning calls with clear costs and latency.
|
|
14
|
-
4. **Simplicity First**: Tree-walking interpreter for clarity and maintainability.
|
|
15
|
-
5. **Type Safety with Flexibility**: Static types for normal code, runtime checking for reasoning outputs.
|
|
16
|
-
|
|
17
|
-
## ๐ Complete Project Structure
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
โโโ SKILLS.md # Workspace context and repo guardrails
|
|
22
|
-
โโโ index.html # Sesi-generated systems landing page
|
|
23
|
-
โโโ eslint.config.mjs # ESLint configuration
|
|
24
|
-
โโโ example.js # Helper script to run basic examples
|
|
25
|
-
โโโ example-ai.js # Helper script to run reasoning examples
|
|
26
|
-
โโโ README.md # Project overview
|
|
27
|
-
โโโ QUICKSTART.md # Getting started guide
|
|
28
|
-
โโโ package.json # Dependencies & scripts
|
|
29
|
-
โโโ tsconfig.json # TypeScript configuration
|
|
30
|
-
โโโ dist/ # Compiled TypeScript output
|
|
31
|
-
โ
|
|
32
|
-
โโโ src/ # Source code
|
|
33
|
-
โ โโโ types.ts # Type definitions & AST nodes (400+ lines)
|
|
34
|
-
โ โโโ lexer.ts # Tokenization (350+ lines)
|
|
35
|
-
โ โโโ parser.ts # Recursive descent parser (700+ lines)
|
|
36
|
-
โ โโโ interpreter.ts # Tree-walking interpreter (600+ lines)
|
|
37
|
-
โ โโโ builtins.ts # Built-in functions (250+ lines)
|
|
38
|
-
โ โโโ ai-runtime.ts # Integrated reasoning integration (120+ lines)
|
|
39
|
-
โ โโโ index.ts # Entry point (30+ lines)
|
|
40
|
-
โ
|
|
41
|
-
โโโ bin/
|
|
42
|
-
โ โโโ sesi.js # CLI executable
|
|
43
|
-
โ
|
|
44
|
-
โโโ main/ # Playgrounds & debugging
|
|
45
|
-
โ โโโ playground.sesi # Main playground script
|
|
46
|
-
โ โโโ start.sesi # Beginner script
|
|
47
|
-
โ โโโ build_website.sesi # Sesi-powered systems site generator
|
|
48
|
-
โ โโโ tests/ # Additional syntax validation scripts
|
|
49
|
-
โ
|
|
50
|
-
โโโ docs/
|
|
51
|
-
โ โโโ SPECIFICATION.md # Complete language spec (600+ lines)
|
|
52
|
-
โ โโโ ARCHITECTURE.md # Runtime & system design (400+ lines)
|
|
53
|
-
โ โโโ BUILTINS.md # Built-in functions reference (450+ lines)
|
|
54
|
-
|
|
55
|
-
โ โโโ SYSTEMS_REASONING.md # Integrated reasoning guide (500+ lines)
|
|
56
|
-
|
|
57
|
-
โ โโโ ROADMAP.md # V2-V4+ development plan (400+ lines)
|
|
58
|
-
โ
|
|
59
|
-
โโโ examples/
|
|
60
|
-
โ โโโ 01_hello.sesi # Hello World
|
|
61
|
-
โ โโโ 02_variables.sesi # Variables & operations
|
|
62
|
-
โ โโโ 03_functions.sesi # Functions with parameters
|
|
63
|
-
โ โโโ 04_conditionals.sesi # If/else control flow
|
|
64
|
-
โ โโโ 05_loops.sesi # While, for, for-in loops
|
|
65
|
-
โ โโโ 06_arrays_objects.sesi # Collections
|
|
66
|
-
โ โโโ 07_prompts.sesi # Reasoning blocks
|
|
67
|
-
โ โโโ 08_model_call.sesi # Basic reasoning calls
|
|
68
|
-
โ โโโ 09_structured_output.sesi # Type-safe reasoning responses
|
|
69
|
-
โ โโโ 10_code_generation.sesi # Systems logic generation
|
|
70
|
-
โ โโโ 11_memory_conversation.sesi # Multi-turn stateful reasoning
|
|
71
|
-
โ โโโ 12_classification.sesi # Systems classification loop
|
|
72
|
-
โ โโโ 13_data_pipeline.sesi # Complete systems pipeline
|
|
73
|
-
โ โโโ 14_folder_explainer.sesi # Directory parsing & reasoning
|
|
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
|
-
print(
|
|
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
|
-
### Run
|
|
269
|
-
|
|
270
|
-
```bash
|
|
271
|
-
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
-
|
|
307
|
-
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
-
|
|
315
|
-
-
|
|
316
|
-
-
|
|
317
|
-
-
|
|
318
|
-
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
-
|
|
326
|
-
-
|
|
327
|
-
-
|
|
328
|
-
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
-
|
|
335
|
-
-
|
|
336
|
-
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
-
|
|
345
|
-
-
|
|
346
|
-
-
|
|
347
|
-
- Performance
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
-
|
|
353
|
-
-
|
|
354
|
-
-
|
|
355
|
-
-
|
|
356
|
-
-
|
|
357
|
-
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
|
374
|
-
|
|
|
375
|
-
|
|
|
376
|
-
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
-
|
|
409
|
-
-
|
|
410
|
-
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
-
|
|
417
|
-
-
|
|
418
|
-
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
-
|
|
423
|
-
-
|
|
424
|
-
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
-
|
|
438
|
-
-
|
|
439
|
-
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
-
|
|
445
|
-
-
|
|
446
|
-
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
- **
|
|
453
|
-
- **
|
|
454
|
-
- **
|
|
455
|
-
- **
|
|
456
|
-
|
|
457
|
-
### Why
|
|
458
|
-
|
|
459
|
-
- **
|
|
460
|
-
- **
|
|
461
|
-
- **
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
- **
|
|
467
|
-
- **
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
##
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
**
|
|
525
|
-
**
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
Sesi
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
1
|
+
# Sesi Language - Complete Implementation Summary
|
|
2
|
+
|
|
3
|
+
## ๐ Overview
|
|
4
|
+
|
|
5
|
+
**Sesi** is a high-performance **Systems Language** designed for building resilient, stateful applications. It provides first-class primitives for process management and filesystem orchestration, while integrating reasoning as a first-class execution primitive. Unlike traditional languages that rely on external SDKs for AI interaction, Sesi treats reasoning as a native language construct, enabling developers to build context-aware systems with minimal boilerplate.
|
|
6
|
+
|
|
7
|
+
## ๐ฏ Design Philosophy
|
|
8
|
+
|
|
9
|
+
Sesi follows these core principles:
|
|
10
|
+
|
|
11
|
+
1. **Reasoning as a Primitive**: Reasoning calls aren't library functionsโthey're language constructs with dedicated syntax. This allows for deep integration with the interpreter's environment and type system.
|
|
12
|
+
2. **Practical Over Perfect**: Focus on what developers actually need, not theoretical completeness.
|
|
13
|
+
3. **Transparency Over Magic**: Explicit reasoning calls with clear costs and latency.
|
|
14
|
+
4. **Simplicity First**: Tree-walking interpreter for clarity and maintainability.
|
|
15
|
+
5. **Type Safety with Flexibility**: Static types for normal code, runtime checking for reasoning outputs.
|
|
16
|
+
|
|
17
|
+
## ๐ Complete Project Structure
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
Sesi/
|
|
21
|
+
โโโ SKILLS.md # Workspace context and repo guardrails
|
|
22
|
+
โโโ index.html # Sesi-generated systems landing page
|
|
23
|
+
โโโ eslint.config.mjs # ESLint configuration
|
|
24
|
+
โโโ example.js # Helper script to run basic examples
|
|
25
|
+
โโโ example-ai.js # Helper script to run reasoning examples
|
|
26
|
+
โโโ README.md # Project overview
|
|
27
|
+
โโโ QUICKSTART.md # Getting started guide
|
|
28
|
+
โโโ package.json # Dependencies & scripts
|
|
29
|
+
โโโ tsconfig.json # TypeScript configuration
|
|
30
|
+
โโโ dist/ # Compiled TypeScript output
|
|
31
|
+
โ
|
|
32
|
+
โโโ src/ # Source code
|
|
33
|
+
โ โโโ types.ts # Type definitions & AST nodes (400+ lines)
|
|
34
|
+
โ โโโ lexer.ts # Tokenization (350+ lines)
|
|
35
|
+
โ โโโ parser.ts # Recursive descent parser (700+ lines)
|
|
36
|
+
โ โโโ interpreter.ts # Tree-walking interpreter (600+ lines)
|
|
37
|
+
โ โโโ builtins.ts # Built-in functions (250+ lines)
|
|
38
|
+
โ โโโ ai-runtime.ts # Integrated reasoning integration (120+ lines)
|
|
39
|
+
โ โโโ index.ts # Entry point (30+ lines)
|
|
40
|
+
โ
|
|
41
|
+
โโโ bin/
|
|
42
|
+
โ โโโ sesi.js # CLI executable
|
|
43
|
+
โ
|
|
44
|
+
โโโ main/ # Playgrounds & debugging
|
|
45
|
+
โ โโโ playground.sesi # Main playground script
|
|
46
|
+
โ โโโ start.sesi # Beginner script
|
|
47
|
+
โ โโโ build_website.sesi # Sesi-powered systems site generator
|
|
48
|
+
โ โโโ tests/ # Additional syntax validation scripts
|
|
49
|
+
โ
|
|
50
|
+
โโโ docs/
|
|
51
|
+
โ โโโ SPECIFICATION.md # Complete language spec (600+ lines)
|
|
52
|
+
โ โโโ ARCHITECTURE.md # Runtime & system design (400+ lines)
|
|
53
|
+
โ โโโ BUILTINS.md # Built-in functions reference (450+ lines)
|
|
54
|
+
โ โโโ IMAGE_GENERATION.md # Image generation guide (>100 lines)
|
|
55
|
+
โ โโโ SYSTEMS_REASONING.md # Integrated reasoning guide (500+ lines)
|
|
56
|
+
โ โโโ DISTRIBUTED_SYSTEMS.md # Swarm & coordination guide (>100 lines)
|
|
57
|
+
โ โโโ ROADMAP.md # V2-V4+ development plan (400+ lines)
|
|
58
|
+
โ
|
|
59
|
+
โโโ examples/
|
|
60
|
+
โ โโโ 01_hello.sesi # Hello World
|
|
61
|
+
โ โโโ 02_variables.sesi # Variables & operations
|
|
62
|
+
โ โโโ 03_functions.sesi # Functions with parameters
|
|
63
|
+
โ โโโ 04_conditionals.sesi # If/else control flow
|
|
64
|
+
โ โโโ 05_loops.sesi # While, for, for-in loops
|
|
65
|
+
โ โโโ 06_arrays_objects.sesi # Collections
|
|
66
|
+
โ โโโ 07_prompts.sesi # Reasoning blocks
|
|
67
|
+
โ โโโ 08_model_call.sesi # Basic reasoning calls
|
|
68
|
+
โ โโโ 09_structured_output.sesi # Type-safe reasoning responses
|
|
69
|
+
โ โโโ 10_code_generation.sesi # Systems logic generation
|
|
70
|
+
โ โโโ 11_memory_conversation.sesi # Multi-turn stateful reasoning
|
|
71
|
+
โ โโโ 12_classification.sesi # Systems classification loop
|
|
72
|
+
โ โโโ 13_data_pipeline.sesi # Complete systems pipeline
|
|
73
|
+
โ โโโ 14_folder_explainer.sesi # Directory parsing & reasoning
|
|
74
|
+
โ โโโ 15_image_generation.sesi # Image generation API test
|
|
75
|
+
โ โโโ 16_modules.sesi # Modules & std library namespaces
|
|
76
|
+
โ โโโ 17_http_client.sesi # Network GET/POST client
|
|
77
|
+
โ โโโ 18_parallel_requests.sesi # Parallel requests concurrency
|
|
78
|
+
โ
|
|
79
|
+
โโโ tests/
|
|
80
|
+
โโโ basic.test.ts # Test suite
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## ๐ง Technology Stack
|
|
84
|
+
|
|
85
|
+
| Component | Technology | Rationale |
|
|
86
|
+
| --------- | ------------------------ | ---------------------------------------- |
|
|
87
|
+
| Language | TypeScript | Type safety, IDE support, easy debugging |
|
|
88
|
+
| Runtime | Node.js 18+ | Wide availability, async support |
|
|
89
|
+
| Reasoning | Gemini 3.1 | Latest models, 1M token context, fast |
|
|
90
|
+
| SDK | @google/genai | Official, well-maintained, async-first |
|
|
91
|
+
| Parser | Recursive descent | Simple, readable, extensible |
|
|
92
|
+
| Execution | Tree-walking interpreter | Easy to understand and modify |
|
|
93
|
+
| Testing | Typescript | Standard Node.js test framework |
|
|
94
|
+
|
|
95
|
+
**Why this stack?**
|
|
96
|
+
|
|
97
|
+
- **Tree-walking interpreter over bytecode**: Easier to understand, modify, and debug. No premature optimization.
|
|
98
|
+
- **TypeScript over JavaScript**: Catch errors early, better IDE support, self-documenting code.
|
|
99
|
+
- **Recursive descent over other parsers**: Handles the grammar perfectly, easy to add language features.
|
|
100
|
+
- **Gemini over other models**: Excellent instruction following, function calling support, cost-effective.
|
|
101
|
+
|
|
102
|
+
## ๐ Language Features (V1)
|
|
103
|
+
|
|
104
|
+
### Core Language โ
|
|
105
|
+
|
|
106
|
+
**Variables & Bindings**
|
|
107
|
+
|
|
108
|
+
```sesi
|
|
109
|
+
let x = 10
|
|
110
|
+
let PI = 3.14159
|
|
111
|
+
let y // null initially
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**Functions**
|
|
115
|
+
|
|
116
|
+
```sesi
|
|
117
|
+
fn add(a: number, b: number) -> number {return a + b}
|
|
118
|
+
|
|
119
|
+
fn greet(name: string = "World") {print "Hello, " + name}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**Control Flow**
|
|
123
|
+
|
|
124
|
+
```sesi
|
|
125
|
+
if condition { ... } else { ... }
|
|
126
|
+
while condition { ... }
|
|
127
|
+
for x = 0 to 10 { ... }
|
|
128
|
+
for item in array { ... }
|
|
129
|
+
try { ... } catch (e) { ... }
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**Operators**
|
|
133
|
+
|
|
134
|
+
- Arithmetic: `+`, `-`, `*`, `/`, `%`
|
|
135
|
+
- Comparison: `==`, `!=`, `<`, `>`, `<=`, `>=`
|
|
136
|
+
- Logical: `&&`, `||`, `!`
|
|
137
|
+
- Assignment: `=`
|
|
138
|
+
|
|
139
|
+
**Data Types**
|
|
140
|
+
|
|
141
|
+
- Primitives: `number`, `string`, `bool`, `null`
|
|
142
|
+
- Collections: `array<T>`, `object<T>`
|
|
143
|
+
- Functions: First-class values
|
|
144
|
+
- Union types: `T | U`
|
|
145
|
+
- Optional: `T?`
|
|
146
|
+
|
|
147
|
+
**Scoping**
|
|
148
|
+
|
|
149
|
+
- Lexical scoping with environment chain
|
|
150
|
+
- Block scope for loops/conditionals
|
|
151
|
+
- Closure support
|
|
152
|
+
|
|
153
|
+
### Integrated Reasoning Features โ
|
|
154
|
+
|
|
155
|
+
**Prompt Blocks**
|
|
156
|
+
|
|
157
|
+
```sesi
|
|
158
|
+
prompt greeting {"Hello, " name "!"}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Reasoning Calls**
|
|
162
|
+
|
|
163
|
+
```sesi
|
|
164
|
+
let response = model("gemini-3-flash-preview") {"temperature": 0.7, "max_tokens": 1000} {"Your prompt here"}
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
**Structured Output**
|
|
168
|
+
|
|
169
|
+
```sesi
|
|
170
|
+
let result = structured_output({field1: string, field2: number})(model("gemini-3.1-flash-lite") {"Your prompt here"})
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**Image Generation**
|
|
174
|
+
|
|
175
|
+
```sesi
|
|
176
|
+
let logo = image("gemini-3.1-flash-image-preview") {"ratio": '1:1', "size": 512} {"Your prompt here"}
|
|
177
|
+
write_image("logo.png", logo)
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**Temporal Context Injection** โ
|
|
181
|
+
|
|
182
|
+
Every reasoning call automatically includes the current UTC date and time in its context, providing the system with a native sense of "now."
|
|
183
|
+
|
|
184
|
+
**Implicit Statement Termination** โ
|
|
185
|
+
|
|
186
|
+
Expressions ending in `}` (such as prompt blocks or reasoning calls) no longer strictly require a newline or semicolon to terminate, allowing for cleaner one-liner syntax.
|
|
187
|
+
|
|
188
|
+
**Async Polling for MAX_TOKENS** โ
|
|
189
|
+
|
|
190
|
+
The AI runtime natively polls the model if it hits a `MAX_TOKENS` finish reasoning block, automatically appending previous chunks and prompting the model to continue exactly where it left off, seamlessly synthesizing long responses.
|
|
191
|
+
|
|
192
|
+
**Tool Calling**
|
|
193
|
+
|
|
194
|
+
```sesi
|
|
195
|
+
let result = tool_call(functionName)(model(gemini-3.1-flash-lite) {"Your prompt here"})
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**Memory**
|
|
199
|
+
|
|
200
|
+
```sesi
|
|
201
|
+
memory conversation {"Initial context"}
|
|
202
|
+
conversation = conversation + "User: How are you?"
|
|
203
|
+
print("Current Conversation Memory:")
|
|
204
|
+
print(conversation)
|
|
205
|
+
|
|
206
|
+
// Demonstrate using the memory in a model call
|
|
207
|
+
print("Calling model with memory context...")
|
|
208
|
+
let response = model("gemini-3-flash-preview") {conversation}
|
|
209
|
+
print("Reasoning Response:", response)
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## ๐ ๏ธ Built-in Functions
|
|
213
|
+
|
|
214
|
+
### I/O
|
|
215
|
+
|
|
216
|
+
- `print(...args)` - Output to stdout
|
|
217
|
+
- `read_file(path)` - Read file contents
|
|
218
|
+
- `write_file(path, content)` - Write file contents
|
|
219
|
+
- `write_image(path, content)` - Write base64 image data to file
|
|
220
|
+
- `list_dir(path)` - List directory contents
|
|
221
|
+
- `spawn(path)` - Launch concurrent background process
|
|
222
|
+
- `exec(command)` - Synchronous shell execution
|
|
223
|
+
- `time()` - Unix timestamp (ms)
|
|
224
|
+
- `random()` - Random number (0-1)
|
|
225
|
+
|
|
226
|
+
### Type Functions
|
|
227
|
+
|
|
228
|
+
- `type(value)` - Get type name
|
|
229
|
+
- `str(value)` - Convert to string
|
|
230
|
+
- `num(value)` - Convert to number
|
|
231
|
+
- `bool(value)` - Convert to boolean
|
|
232
|
+
|
|
233
|
+
### Collection Functions
|
|
234
|
+
|
|
235
|
+
- `len(collection)` - Get length
|
|
236
|
+
- `push(array, value)` - Add element
|
|
237
|
+
- `pop(array)` - Remove element
|
|
238
|
+
- `join(array, sep)` - Join to string
|
|
239
|
+
- `split(string, sep)` - Split to array
|
|
240
|
+
- `keys(object)` - Get keys
|
|
241
|
+
- `values(object)` - Get values
|
|
242
|
+
- `range(n)` - Create range array
|
|
243
|
+
|
|
244
|
+
### Network
|
|
245
|
+
|
|
246
|
+
- `web_get(url, headers)` - Perform HTTP GET request
|
|
247
|
+
- `web_send(url, body, headers)` - Perform HTTP POST request
|
|
248
|
+
|
|
249
|
+
### Concurrency
|
|
250
|
+
|
|
251
|
+
- `multi_req(fns)` - Concurrently execute multiple closures/functions
|
|
252
|
+
|
|
253
|
+
## ๐ Implementation Statistics
|
|
254
|
+
|
|
255
|
+
| Metric | Value |
|
|
256
|
+
| ------------------- | ------ |
|
|
257
|
+
| Total lines of code | ~3,000 |
|
|
258
|
+
| Source files | 7 |
|
|
259
|
+
| Documentation pages | 5 |
|
|
260
|
+
| Example programs | 15 |
|
|
261
|
+
| Built-in functions | 23 |
|
|
262
|
+
| Supported operators | 20+ |
|
|
263
|
+
| AST node types | 30+ |
|
|
264
|
+
| Token types | 50+ |
|
|
265
|
+
|
|
266
|
+
## ๐ Getting Started
|
|
267
|
+
|
|
268
|
+
### Run Example
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
sesi examples/01_hello.sesi
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Run with Reasoning
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
sesi examples/08_model_call.sesi
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### Run Tests
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
npm test
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
## ๐ก Key Implementation Details
|
|
287
|
+
|
|
288
|
+
### Lexer Design
|
|
289
|
+
|
|
290
|
+
- Character-by-character scanning
|
|
291
|
+
- Keyword recognition
|
|
292
|
+
- String/number literal parsing
|
|
293
|
+
- Comment stripping
|
|
294
|
+
- Position tracking for error messages
|
|
295
|
+
|
|
296
|
+
### Parser Design
|
|
297
|
+
|
|
298
|
+
- Recursive descent parsing
|
|
299
|
+
- Expression precedence (11 levels)
|
|
300
|
+
- Error recovery via synchronization
|
|
301
|
+
- Full AST construction
|
|
302
|
+
- Support for all language constructs
|
|
303
|
+
|
|
304
|
+
### Interpreter Design
|
|
305
|
+
|
|
306
|
+
- Tree-walking evaluation
|
|
307
|
+
- Environment chain for scoping
|
|
308
|
+
- Async support for reasoning calls
|
|
309
|
+
- Control flow exceptions (return, break, continue)
|
|
310
|
+
- Built-in function dispatch
|
|
311
|
+
|
|
312
|
+
### Reasoning Runtime Design
|
|
313
|
+
|
|
314
|
+
- Async Gemini API calls (via @google/genai)
|
|
315
|
+
- Response parsing and validation
|
|
316
|
+
- Memory buffer management
|
|
317
|
+
- Structured output JSON extraction with automatic schema simplification
|
|
318
|
+
- Automatic injection of current UTC date/time context
|
|
319
|
+
- Graceful error handling
|
|
320
|
+
|
|
321
|
+
## ๐ Documentation Coverage
|
|
322
|
+
|
|
323
|
+
โ
**SPECIFICATION.md** (600+ lines)
|
|
324
|
+
|
|
325
|
+
- Complete language grammar
|
|
326
|
+
- All language constructs
|
|
327
|
+
- Type system details
|
|
328
|
+
- Built-in functions
|
|
329
|
+
- Runtime semantics
|
|
330
|
+
- Module system design
|
|
331
|
+
|
|
332
|
+
โ
**ARCHITECTURE.md** (400+ lines)
|
|
333
|
+
|
|
334
|
+
- Component stack diagram
|
|
335
|
+
- Execution flow explanation
|
|
336
|
+
- Scope management
|
|
337
|
+
- Type system details
|
|
338
|
+
- Reasoning integration flow
|
|
339
|
+
- Error handling strategy
|
|
340
|
+
- Performance characteristics
|
|
341
|
+
|
|
342
|
+
โ
**BUILTINS.md** (450+ lines)
|
|
343
|
+
|
|
344
|
+
- Complete function reference
|
|
345
|
+
- Usage examples
|
|
346
|
+
- Return value documentation
|
|
347
|
+
- Performance notes
|
|
348
|
+
- Standard library plans
|
|
349
|
+
|
|
350
|
+
โ
**SYSTEMS_REASONING.md** (500+ lines)
|
|
351
|
+
|
|
352
|
+
- Systems reasoning overview
|
|
353
|
+
- Prompt blocks explained
|
|
354
|
+
- Model call configuration
|
|
355
|
+
- Structured output guide
|
|
356
|
+
- Memory system details
|
|
357
|
+
- Practical patterns
|
|
358
|
+
- Error handling
|
|
359
|
+
- Performance tips
|
|
360
|
+
|
|
361
|
+
โ
**ROADMAP.md** (400+ lines)
|
|
362
|
+
|
|
363
|
+
- V1.0 features (Complete)
|
|
364
|
+
- V1.1 improvements (Complete)
|
|
365
|
+
- V2.0 async & advanced reasoning (Q3-Q4 2026)
|
|
366
|
+
- V3.0 systems framework
|
|
367
|
+
- V4.0+ vision
|
|
368
|
+
- Community involvement
|
|
369
|
+
- Backwards compatibility
|
|
370
|
+
|
|
371
|
+
## ๐ Example Programs
|
|
372
|
+
|
|
373
|
+
| File | Demonstrates |
|
|
374
|
+
| --------------------------- | ------------------------------- |
|
|
375
|
+
| 01_hello.sesi | Basic print |
|
|
376
|
+
| 02_variables.sesi | Variables and operations |
|
|
377
|
+
| 03_functions.sesi | Functions, parameters, defaults |
|
|
378
|
+
| 04_conditionals.sesi | If/else logic |
|
|
379
|
+
| 05_loops.sesi | While, for, for-in |
|
|
380
|
+
| 06_arrays_objects.sesi | Collections and indexing |
|
|
381
|
+
| 07_prompts.sesi | Reasoning blocks |
|
|
382
|
+
| 08_model_call.sesi | Basic reasoning calls |
|
|
383
|
+
| 09_structured_output.sesi | Schema-guided output |
|
|
384
|
+
| 10_code_generation.sesi | Reasoning code generation |
|
|
385
|
+
| 11_memory_conversation.sesi | Multi-turn with memory |
|
|
386
|
+
| 12_classification.sesi | Reasoning classification loop |
|
|
387
|
+
| 13_data_pipeline.sesi | Complete pipeline |
|
|
388
|
+
| 14_folder_explainer.sesi | Directory parsing & reasoning |
|
|
389
|
+
| 15_image_generation.sesi | Image generation API test |
|
|
390
|
+
| 16_modules.sesi | Imports/exports & std namespaces|
|
|
391
|
+
| 17_http_client.sesi | HTTP GET and POST operations |
|
|
392
|
+
| 18_parallel_requests.sesi | Parallel request concurrency |
|
|
393
|
+
|
|
394
|
+
## โจ Unique Features
|
|
395
|
+
|
|
396
|
+
1. **First-class Reasoning Integration**: Not a library, but language syntax
|
|
397
|
+
2. **Prompt Blocks**: Composable, type-checked message templates
|
|
398
|
+
3. **Structured Output**: Get typed responses from models
|
|
399
|
+
4. **Memory Construct**: Native multi-turn conversation support
|
|
400
|
+
5. **Simple Yet Complete**: All core features in ~3K lines of code
|
|
401
|
+
6. **Well Documented**: 2000+ lines of documentation
|
|
402
|
+
7. **Production Ready (for v1)**: Error handling, examples, tests
|
|
403
|
+
|
|
404
|
+
## ๐ฎ Future Directions
|
|
405
|
+
|
|
406
|
+
### V2: Async & Advanced Logic
|
|
407
|
+
|
|
408
|
+
- Async/await for concurrent reasoning calls
|
|
409
|
+
- Streaming responses
|
|
410
|
+
- Advanced memory with embeddings
|
|
411
|
+
- finally blocks, custom error types, retry policies, timeout handling, and structured Reasoning error recovery
|
|
412
|
+
|
|
413
|
+
### V3: Systems Framework
|
|
414
|
+
|
|
415
|
+
- System state machines
|
|
416
|
+
- Multi-process collaboration
|
|
417
|
+
- Knowledge base integration
|
|
418
|
+
- RAG (Retrieval-Augmented Generation)
|
|
419
|
+
|
|
420
|
+
### V4+: Scale & Optimization
|
|
421
|
+
|
|
422
|
+
- Bytecode compilation
|
|
423
|
+
- JIT compilation
|
|
424
|
+
- Distributed execution
|
|
425
|
+
- Cross-model orchestration
|
|
426
|
+
|
|
427
|
+
## ๐งช Testing Strategy
|
|
428
|
+
|
|
429
|
+
**Component Testing**
|
|
430
|
+
|
|
431
|
+
- Lexer: Token stream correctness
|
|
432
|
+
- Parser: AST structure correctness
|
|
433
|
+
- Interpreter: Evaluation correctness
|
|
434
|
+
|
|
435
|
+
**Integration Testing**
|
|
436
|
+
|
|
437
|
+
- Example programs run successfully
|
|
438
|
+
- Reasoning features work with real API
|
|
439
|
+
- Error handling is graceful
|
|
440
|
+
|
|
441
|
+
**Example Coverage**
|
|
442
|
+
|
|
443
|
+
- 15 complete example programs
|
|
444
|
+
- Covers all major language features
|
|
445
|
+
- Demonstrates reasoning integration
|
|
446
|
+
- Real-world use cases
|
|
447
|
+
|
|
448
|
+
## ๐ฏ Design Decisions Explained
|
|
449
|
+
|
|
450
|
+
### Why a tree-walking interpreter?
|
|
451
|
+
|
|
452
|
+
- **Simplicity**: Easy to understand, modify, extend
|
|
453
|
+
- **Debugging**: Can print AST and execution steps
|
|
454
|
+
- **Iteration**: No compilation overhead, fast development
|
|
455
|
+
- **Good enough**: Performance is adequate for v1
|
|
456
|
+
|
|
457
|
+
### Why recursive descent parser?
|
|
458
|
+
|
|
459
|
+
- **Clarity**: Each grammar rule is a function
|
|
460
|
+
- **Flexibility**: Easy to add new constructs
|
|
461
|
+
- **Error recovery**: Can synchronize after errors
|
|
462
|
+
- **No dependencies**: No external parser generators
|
|
463
|
+
|
|
464
|
+
### Why Gemini specifically?
|
|
465
|
+
|
|
466
|
+
- **Instruction following**: Excellent at understanding prompts
|
|
467
|
+
- **Function calling**: Built-in tool use support
|
|
468
|
+
- **Context window**: 1M tokens for long documents
|
|
469
|
+
- **Cost**: Competitive pricing
|
|
470
|
+
- **Availability**: Easy to use via official SDK
|
|
471
|
+
|
|
472
|
+
### Why does v1.1.2 support a module system?
|
|
473
|
+
|
|
474
|
+
- **Organization**: As Sesi programs grew, having a single-file system became limiting. Local module imports/exports and standard libraries (`std/math`, `std/time`, `std/json`) are natively supported in v1.1.2.
|
|
475
|
+
|
|
476
|
+
### Why does v1.1.2 support parallel execution?
|
|
477
|
+
|
|
478
|
+
- **Concurrency**: While the interpreter remains tree-walking and single-threaded for simplicity, native concurrency is supported via the parallel request executor `multi_req(array<function>)`, executing asynchronous operations physically in parallel.
|
|
479
|
+
|
|
480
|
+
## ๐ Learning Path
|
|
481
|
+
|
|
482
|
+
1. **Start**: [QUICKSTART.md](QUICKSTART.md) - Get running in 5 minutes
|
|
483
|
+
2. **Basics**: examples/01-06 - Core language features
|
|
484
|
+
3. **Prompts**: examples/07 - Prompt blocks
|
|
485
|
+
4. **Reasoning**: examples/08-12 - Reasoning feature exploration
|
|
486
|
+
5. **Specification**: [SPECIFICATION.md](SPECIFICATION.md) - Complete grammar
|
|
487
|
+
6. **Advanced**: [SYSTEMS_REASONING.md](SYSTEMS_REASONING.md) - Patterns and best practices
|
|
488
|
+
7. **Builtins**: [BUILTINS.md](BUILTINS.md) - Built-in functions
|
|
489
|
+
8. **Image Generation**: [IMAGE_GENERATION.md](IMAGE_GENERATION.md) examples/15 - Generating images natively
|
|
490
|
+
9. **Architecture**: [ARCHITECTURE.md](ARCHITECTURE.md) - How it works
|
|
491
|
+
10. **Roadmap**: [ROADMAP.md](ROADMAP.md) - Future vision
|
|
492
|
+
|
|
493
|
+
## ๐ค Contributing Path (Future)
|
|
494
|
+
|
|
495
|
+
When open source:
|
|
496
|
+
|
|
497
|
+
1. Report bugs with minimal examples
|
|
498
|
+
2. Suggest language features via RFCs
|
|
499
|
+
3. Add built-in functions
|
|
500
|
+
4. Improve documentation
|
|
501
|
+
5. Submit example programs
|
|
502
|
+
6. Help with test coverage
|
|
503
|
+
|
|
504
|
+
## ๐ What's Included
|
|
505
|
+
|
|
506
|
+
- โ
Complete interpreter (3000+ lines of TypeScript)
|
|
507
|
+
- โ
Full language specification (600+ lines)
|
|
508
|
+
- โ
Architecture documentation (400+ lines)
|
|
509
|
+
- โ
API reference (450+ lines)
|
|
510
|
+
- โ
Systems reasoning guide (500+ lines)
|
|
511
|
+
- โ
Development roadmap (400+ lines)
|
|
512
|
+
- โ
15 example programs
|
|
513
|
+
- โ
CLI executable
|
|
514
|
+
- โ
Test suite
|
|
515
|
+
- โ
Quick start guide
|
|
516
|
+
|
|
517
|
+
## ๐ Next Steps
|
|
518
|
+
|
|
519
|
+
1. **Build and install**: `npm install && npm run build && npm install -g .`
|
|
520
|
+
2. **Try examples**: `sesi examples/01_hello.sesi`
|
|
521
|
+
3. **Set up Reasoning**: Set GEMINI_API_KEY in `.env`
|
|
522
|
+
4. **Explore Reasoning**: `sesi examples/08_model_call.sesi`
|
|
523
|
+
5. **Read docs**: Start with SPECIFICATION.md
|
|
524
|
+
6. **Write programs**: Create your own .sesi files
|
|
525
|
+
7. **Check roadmap**: See where language is headed
|
|
526
|
+
|
|
527
|
+
## ๐ Philosophy
|
|
528
|
+
|
|
529
|
+
> "Sesi demonstrates that systems-level logic and integrated reasoning can be unified into a single, elegant language primitive, eliminating the boilerplate of traditional AI development."
|
|
530
|
+
|
|
531
|
+
The language is designed to evolve. V1 provides a solid foundation. V2+ adds power. The architecture supports this gracefully without breaking existing programs.
|
|
532
|
+
|
|
533
|
+
---
|
|
534
|
+
|
|
535
|
+
**Status**: โ
Complete V1.1 implementation
|
|
536
|
+
**Ready for**: Distributed systems orchestration and prototypes
|
|
537
|
+
**Not ready for**: Massive-scale production (until v2.0 bytecode)
|
|
538
|
+
**Next milestone**: V2.0 (Async & advanced reasoning)
|
|
539
|
+
|
|
540
|
+
Sesi is an experiment in language design. Use it to learn, explore, and evolve what integrated reasoning will become.
|
|
541
|
+
|
|
542
|
+
---
|
|
543
|
+
|
|
544
|
+
For more information, see more of the documentation in this folder and examples in `examples/`.
|