>>> I don't understand how .u.init function works in tick/u.q. Can someone explain how it works ?
u.q is only a part of the whole tick system. To understand it you also need to study tick.q and r.q.
To start the tick system, here are some examples:
/test
>q tick.q
>q tick/ssl.q
/run
>q tick.q sym . -p 5010 /tick
>q tick/r.q :5010 -p 5011 /rdb
>q sym -p 5012 /hdb
>q tick/ssl.q sym :5010 /feed
>>> What is w ? I thought x y and z would be implicit function arguments ?
These are described in tick.q:
\
globals used
.u.w - dictionary of tables->(handle;syms)
.u.i - msg count in log file
.u.j - total msg count (log file plus those held in buffer)
.u.t - table names
.u.L - tp log filename, e.g. `:./sym2008.09.11
.u.l - handle to tp log file
.u.d - date
>>> Are there 2 functions declared on line 6 ? The two functions are del and .z.pc ? If there are 2 funxtions declared then where is the semi-colon coming from ?
Yes 2 functions are defined and the semicolon is here:
del:{w[x]_:w[x;;0]?y} ; .z.pc:{del[;x]each t};
Btw: FD has a reference manual :
http://www.kx.com/q/d/FD_kdb+_reference_manual_3.0.doc
Perhaps this will help you.
Kim
-----Ursprüngliche Nachricht-----
Von:
personal...@googlegroups.com [mailto:
personal...@googlegroups.com] Im Auftrag von analyst
Gesendet: Freitag, 6. November 2015 06:06
An: Kdb+ Personal Developers
Betreff: [personal kdb+] .u.init in tick/u.q
I don't understand how .u.init function works in tick/u.q. Can someone explain how it works ?
What is w ? I thought x y and z would be implicit function arguments ?
Are there 2 functions declared on line 6 ? The two functions are del and .z.pc ? If there are 2 funxtions declared then where is the semi-colon coming from ?