also thought moving \n to the first position in the string and then using ~: instead of 1= would help, but it seems to be very slightly slower (at least for now)
i updated ktye/wasm building with tinygo to 300kB. I removed the ui stuff and use a normal textarea now. everything builds to a single file and can be loaded from a file url. image output is still possible with the w 9:i io verb. example:
ktye.github.io/#(w%3Bh)%3A800%20600%3Bu%3A(w*h)%230%3Bcmap%3A%7B(65536*x)%2B(256*256-x)%2B64%2F(x-127)*x-128%7D%5B!256%5D%3Bmandel%3A%7Bd%3A1.5%202.5%3Bc%3A%7Cd-2*d*(!n)%250.%2Bn%3Ax%3Bs%3A%7B(-%2Fx*x%3B2*%2Fx)%7D%3Bm%3A%7B%2B%2Fx*x%7D%3Bu%3A%3A%2C%2Fw%23'cmap%4016*(!16)%40%2B%2F(*%5C15%234)%3C%5C%3An%23m%2010(c%2Bs%40)%2F0%200%3B%7D%3Bmandel(h%3B…
? is an error (the message can only be seen in the js console). running the above twice is a ws error, e.g.
@chrispsn yes, it does handle it as a newcomer from other languages would expect
ngn/k is in line with atw/k in this case, but now i might reconsider it
i do accept } in the first column (unlike atw/k), but it still evaluates to :: (which is not printed)
btw, today's traffic in the google group makes me sad - so many people solve and golf in k7 without even thinking about whether k7 is better than k5/k6
@ktye i got a copy of k5, complete with z (the graphical interface of an early kOS) in 2014, but i lost it in a hard disc failure after i accidentally dropped my laptop
i just struggled implementing k7-style dot indexing. usually a single enlisted dict is converted to a table, but this is prevented in some cases. You add nulls in a.b.c:3;a But what is this? https://tio.run/##y9bNS8/7/z8hUTEhSTEhWdH4/38A