tinyself is a small programming language with a focus on minimalism of the core and maximalism of the standard library.
if true (tinyself is-small -) [
assert that (tinyself possibilities -
length - equals Infinity)
] else [ universe implode - ]
Examples note: only the first one works currently the standard library is in development
a simple hello world program
system get-console - write-line "Hello, World!"
writing to a text file
var file (system open-file "file.txt") var file-stream (file open-write-stream -) file-stream write-line "Hello, World!" file-stream close - file close -
a basic http server
var server (system open-http-server -)
server on-GET [
var output (@ open-write-stream -)
output write-line ("Hello from "
with (@ get-path -))
output close -
]
server listen 3000
server close -