« first day (73 days earlier)      last day (1462 days later) » 

07:50
rip kelas' tutorial
really enjoyed it though
ngn
ngn
08:05
@dogstar huh what happened?
@ngn to me it looks like it was essentially removed
 
1 hour later…
09:29
The forks of old versions are still around
09:50
yeah, and i downloaded it yesterday anyway
10:13
how do you write to stdout?
` 0: ("abc";"def")
prints an extra ` at the end. Is there another way?
Does it work if you put empty string on the left instead?
@chrispsn then it appends "" to the end...
What about joining the string first with “\n” then using 1: ?
` 1:"alpha" writes alpha`
Maybe it's just a bug..
@ktye (wild guess) empty list? Sorry, I’m not near my computer atm
 
4 hours later…
14:16
is there still an index generator type function in the latest version of k? noticing !10 is not doing what i expect
14:33
@dogstar !10 is right. It's just a compact type to store a range. You can use it, as it was a numeric array, e.g.: 1*!10
@kyte oh neato :) thanks!
 
1 hour later…
ngn
ngn
15:58
next update of ngn/k will have try/catch, aka trap: .[func;args;catch] (with memory leaks, at least until i've gone through all primitives and figured out case by case what objects should be freed on error)
16:38
@ngn do you have a syntax guide for you implementation? I want to get back to golfing in k, it's been a while
ngn
ngn
@J.Sallé it follows k5/k6 (with only a few exceptions), so oK's docs should be fine as a syntax guide
Okay, great. I'll find some challenge to bash heads with
 
1 hour later…
17:57
@ngn what kind of errors will be caught? anything after valid parsing?
ngn
ngn
18:11
@ktye i hope i can make all catchable except "out of memory"
parse errors (eg .[.:;,"(";"err"]) shouldn't be a big problem
@ngn is the syntax new, or has it been used before?
ngn
ngn
@ktye it was used in k4
in apl, i wanted to implement this as:
expr : catch
I wanted the syntax to be lightweight, similar to f=open("file") or ... in some languages
ngn
ngn
@ktye you don't like the way it's done in dfns?
{a:b} is "if a then return b" and {0::b ⋄ a} is "try a, and on error return b"
@ngn is the 0 part of the sytax or an example conditional?
ngn
ngn
18:23
@ktye it's the code of the error being caught. 0 means all
@ktye docs
I never went so far as to make errors to be caught... First I must produce some valid code to start with.
19:24
Wait, so /: cannot insert multi-char separators? E.g. ", " /: ("ab";"cd")"ab, cd"
@Adám do you want to "join"? which k are you trying?
@ktye k7
@Adám it's a little better, if you ommit the space before the slash.
@ktye Wait, what? spaces around adverbs make a difference?
@Adám a function must preceed the adverb directly. no space.
19:33
@ktye Oh. Why why does it say 2 /:?
i get the 10 only without the space...
It could be that chrispsn was wrong, or the language changed since he wrote it.
Can we have a kbot in here?
ngn
ngn
@Adám no
:-(
ngn
ngn
the licence doesn't allow it
(if you mean k7)
19:41
How does escaping work in this chat? Sometimes i have to write \` sometimes not. This time, yes
@ktye You need to unless you use double the outer ticks. Experiment in the sandbox room
ngn
ngn
@ngn info/LICENSE.TXT: "Evaluation Agreement (rev. January 2, 2019) [...] 1. [...] B. Restrictions. Customer shall not [...] (v) make the Software available to any third parties"
@ngn The software (binaries/source) or usage of the software?
ngn
ngn
@Adám ianal but "make available" sounds to me like it's restricting usage, not only binaries
@ngn Also, one could ask for permission. It is after all for educational and promotional purposes with now chance for anyone to use it commercially.
20:07
@ktye sorry, I am wrong, will fix
20:45
@Adám note that space/ starts a comment. That's why 2 /: whatever returns 2 and no error.
21:39
@dogstar he received a negative comment on reddit's r/apljk, maybe cuz of that. hope not
 
1 hour later…
22:56
If you could have another single-character primitive in k7, what would it be? (function and symbol - don’t worry if it takes the symbol of an existing primitive)
It can also be a monadic (x:)

« first day (73 days earlier)      last day (1462 days later) »