This Article IsCreated at 2023-10-10Last Modified at 2023-10-10Referenced as ia.www.b20

Graphical Janet REPL in Spirit of Self

Source Code
Inspiration: Self

I have made a graphical REPL for Janet. It works like Self, but programming is much easier than in Self.

Here is a video showing how it works:

Here’s the script of the video.

- show basic values
    - (range 10)
    - (map |(* 2 $) _var)
    - (map |(* 3 $) _)

- os access
    - (os/dir ".")
    - (filter |(string/has-prefix? "zig" $) _)
    - (spit "out" (string/format "%j" _))

In case you haven’t figured it out, _ is the current object/window.

I honestly have no idea what to do with this thing I created. It is very powerful, only less powerful than the POSIX shell. Compared to Python, Janet doesn’t have much libraries. Maybe it’s better if I make it support IPython.