« first day (725 days earlier)      last day (810 days later) » 

ngn
5:41 PM
@coltim it took a while but finally, fixed. thanks.
 
6:23 PM
new language: https://ktye.github.io/j.html
the core is 2576 bytes in webassembly.
animations: https://ktye.github.io/js.html#eJyLTi9KTc2LTSsuqcxJ5YqONlQwjC0pSswrzlGINlAwUDAFodi0otTkktjotKLE3NRYKwDXPhFk
4
 
ngn
@ktye inspired by forth?
 
inspired by joy and postscript (js.html)
contrary to joy, there are not many primitives. e.g. no loops/recursion. only ? for branching. but it is enough to build the rest in the language itself. like in lisp, a list [a b c] is both a program and a data type.
 
 
1 hour later…
ngn
7:51 PM
@ktye i skimmed through it. looks really lightweight and interesting (i'm familiar with lisp but not with joy). what do you envision it to be used for?
 
i thought, if k has a vm, as a stack machine at it's core, maybe we could make use of it. e.g. for meta programming, maybe even at a syntax level [a b c] could be a quotation (instead of k9 dict).
the primitives of that language would be k's functions instead of those i used.
I also wanted to learn about the implementation of a stack machine. this one is not very sophisticated, it's focused on a simple implementation.
Another goal was to have somthing like postscript for the web, to draw and animate. e.g. to teach programing to kids.
 
ngn
the canvas api can make it suitable for in-browser games
 
this is joy (recursion theory): joy-lang.org/papers-on-joy/recursion-theory-and-joy and steven's interview is interesting: archive.vector.org.uk/art10000350
@ngn i still need a small patch. canvas uses radians for angles (rotation, arc,..) but i only have ints. i'm going to use degree as input and convert in js.
 

« first day (725 days earlier)      last day (810 days later) »