« first day (591 days earlier)
← previous day
next day →
last day (944 days later) »
JohnE
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…
Jerome Ibanes
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.
ktye
7:48 PM
@JeromeIbanes no, only with desktop browser
Jerome Ibanes
could it be due to an iphone setting perhaps?
I mean security "feature"
ktye
@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
Jerome Ibanes
maybe it needs emojis
ngn
8:42 PM
does anyone have ideas for a compression algorithm for permalinks?
ktye
@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
ktye
@ngn i mean k-bytecode
ngn
ah. no idea.
ktye
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
ktye
@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))
ktye
9:25 PM
@ngn or escape # % ^ [ ] { } \ " < >
ngn
@ktye but escaping is very expensive
ktye
@ngn remap to upperspace first
ngn
3 bytes for 1 char
ktye
why 3 bytes, you can do your own quoting.
ngn
true
« first day (591 days earlier)
← previous day
next day →
last day (944 days later) »
all rooms
Transcript for
Oct
18
Oct '20
19
Oct
20
the k tree
app.element.io/#/room/#ngnk:matrix.org
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile