« first day (739 days earlier)      last day (796 days later) » 

11:44
how do sockets work in ngn/k
12:28
how come (:)[1;2] errors? ('cpl)
 
4 hours later…
16:43
@ngn i love these recursive owls
{(o;o)}[]
({(o;o)};{(o;o)})
 
4 hours later…
ngn
ngn
20:15
@rak1507 you open a "file" with the name "host:port". currently only client sockets. example: start a tcp server by typing nc -l -p 1234 in the shell (requires a package usually called netcat). in another terminal start k and type:
 fd:<`"127.0.0.1:1234"
 fd 0: "hello" /write
 0: fd /read
,"world"
":port" can be used as shorthand for "127.0.0.1:port"
@rak1507 (:)[1;2] parses to the same ast as (1):2, so the compiler thinks you're trying to assign to the constant 1. however, in isolation, : is "right" (aka "dex") - a function that returns its right argument.
 f:(:);f[1;2]
2
got it, thank you
y comb
noice
20:37
@ngn in the realm of fuzz testing, I'm noticing some strange behavior with _ drop and characters/strings. e.g. "A"_!89, ""_2 3, or "abc"_!100
while it would be neat if "d"_x saved some bytes, I think it's equivalent in length to 100_x lol
ngn
ngn
20:50
@coltim chars are treated as their ascii codes in contexts were a number is expected
are you suggesting changing that?
21:30
@ngn hmm, when you put it that way... I guess there are times where characters are treated as integers (versus other instances where they are treated differently). I guess it boils down to some qualitative "how much sense does it make" question for that first category

« first day (739 days earlier)      last day (796 days later) »