« first day (46 days earlier)      last day (1489 days later) » 

1:01 AM
k7:
f:{,/{(. x)#'!x}0|-/(#:'=:)'(x;y)}
 
ngn
@AlexanderBelopolsky nice! very similar to what i had in mind :)
@AlexanderBelopolsky can you find a better way to do ,/{(. x)#'!x}? ;)
 
I wish we had an x!y to (x;y) primitive (I think we will)
I toyed with the idea that the inverse of !/ should be spelled !\
which would allow for #'/|!\
 
use ¡ :p
 
ngn
1:17 AM
well, that clashes with "scan". one way to avoid this is to reuse the syntax for "repeat" (is that what n f/x is called?) with a negative count: -1(!/)/x in order to express the inverse of !/
but implementing this would probably be too complicated...
apl and j do it (⍣¯1 in apl and ^:_1 in j) but they are more tolerant to bloat
@AlexanderBelopolsky (#:'=:)' -> #:''=:' is a byte shorter
 
I argue that fold and scan are not useful for non-associative dyads and can be given alternative meaning
@ngn - I still like count each group better.
@ngn - -1(!/)/x is way too clever! Would it make sense for anything other than ! ?
 
ngn
@AlexanderBelopolsky -1(`sha@)/x :)
 
@ngn - Nah! That would be `sha?
 
ngn
ah, right... :)
 
ngn
@AlexanderBelopolsky & - exactly! :)
 
 f:{&0|-/(#:'=:)'(x;y)}
 f["seventeen";"there"]
"seevnn"
 
ngn
btw, i still don't understand the need for : in #:'x
my impl doesn't require it
 
 
3 hours later…
4:13 AM
any faq suggestions? k7contrib.gitlab.io/docs/#faq
 
@chrispsn summary of date handling, maybe some crypto examples would be interesting, differences from q (a complex subject)
 
@ThomasLackner thanks!
 
4:40 AM
will probs also include these once we have answers groups.google.com/d/msg/shaktidb/UKZcbwN-qiA/i3LtReSPCwAJ
 
5:04 AM
@chrispsn file and network i/o would be cool too :)
 
@ThomasLackner that and bringing in typed cols from CSVs
what are the columns in trace?
 \u:10000 sum !10000
|n u t
|- - -
152
 
 
5 hours later…
10:10 AM
Any strong views on making this work better on mobile are appreciated but feels like it’ll be a stretch if we continue down the “clickable index” route k7contrib.gitlab.io/docs
q’s docs look great on mobile code.kx.com/q4m3/12_Workspace_Organization
 
 
3 hours later…
12:44 PM
@ThomasLackner done. any idea how to use the two .z functions on the IPC front?
 
 
3 hours later…
3:25 PM
@chrispsn this still seems to work for me (but only with port, not host:port) groups.google.com/forum/…
 
 
6 hours later…
9:54 PM
@chrispsn first of all wanna say im very impressed by your effort on this so far. to your q: long term i think one-page-per-topic with lots of interlinking is the only way to go. should probably generate them with k too. that help splash on the left is kinda puzzling for noobs anyway - maybe best to deemphasize. my two cents
 
 
1 hour later…
11:04 PM
@ngn - how would you create a #'1 2 projection in ngn/k?

In k7,

#'1 2
1 2#'

I tried #'[1 2;] in your k and got
(,::
(::;::))
Also,
#[1 2;]
,(::;::)
2+
+[2]
+[2;]
'typ
+[2;]
^
 
11:22 PM
@ngn - what happens here:

1 2#'
(#[1]
 #[2])
 

« first day (46 days earlier)      last day (1489 days later) »