« first day (591 days earlier)      last day (944 days later) » 

1:28 AM
one of the things I liked about Special K was the "swizzler" syntax it borrowed from GLSL. Hard to generalize with the same level of concision, though
 
 
18 hours later…
7:37 PM
@ktye have you tried ngn's js k from iphone/android?
didn't seem like the split editor is making much difference, but could be an iphone issue of course.
 
7:48 PM
@JeromeIbanes no, only with desktop browser
 
could it be due to an iphone setting perhaps?
I mean security "feature"
 
@JeromeIbanes maybe. if nk.html works, that could be because of the server.
 
ngn
8:08 PM
@JeromeIbanes i added an "editor+output" view, as an alternative to the repl
ctrl+enter executes the code in the left pane (as if it's in a file) and shows output in the right
 
maybe it needs emojis
 
ngn
8:42 PM
does anyone have ideas for a compression algorithm for permalinks?
 
@ngn how large is your bytecode compared to src?
 
ngn
8:59 PM
@ktye the wasm is 97kB, the source (?.c and ?.h) is 70kB
 
@ngn i mean k-bytecode
 
ngn
ah. no idea.
 
mayebe not shorter than src (for url)
 
ngn
it's hard to measure. does it include headers and the free space after arrays? how are constants counted? symbols?
should the bytecode of internal k-strings be counted too?
and why does it matter anyway
@ktye some information is lost when compiling
e.g. a[b] and a b and a b compile to the same bytecode
 
@ngn can you format(uncompile) byte code?
 
ngn
9:06 PM
no
i was thinking, the first step could be replacing base64 with base81
there are 81 chars that are valid in a url "fragment" (the part after #)
that should be an improvement of ~5% (log(81)/log(64))
 
9:25 PM
@ngn or escape # % ^ [ ] { } \ " < >
 
ngn
@ktye but escaping is very expensive
 
@ngn remap to upperspace first
 
ngn
3 bytes for 1 char
 
why 3 bytes, you can do your own quoting.
 
ngn
true
 

« first day (591 days earlier)      last day (944 days later) »