reptile.KDB+ 3.1 [test]

I hope I can do this type post.. What is plan? I want check all functions and simple examples. If something is not clear want ask.. why?
2013.11.16

And here is first:
//In qpad
x: 11 12 13 13
y: 13 34 25 46

// Var as namespaces
//clicking var x
(Roundtrip: 000ms)
0Nj, 0Nj, 0Nj, 0Nj

//clicking var y
(Roundtrip: 000ms)
13j, 34j, 25j, 46j

//In console
q)x
0N 0N 0N 0N
q)y
13 34 25 46

  1. Why x is other than I expecting?

you’re missing a semi-colon after the x assignment.
Otherwise you are doing this

q)x: 11 12 13 13 y: 13 34 25 46

q)x

0N 0N 0N 0N

q)y

13 34 25 46

instead of

q)x: 11 12 13 13;y: 13 34 25 46

q)x

11 12 13 13

q)y

13 34 25 46

Yeah, i discavered this after some combinations : )
It’s funny coz I paste this buy midle btn on mouse from notepad to Console and cmd for test and was ok.

x: 10 30 20 40
y: 13 34 25 46;
z: 13 34 25 46

q)x: 10 30 20 40
q)y: 13 34 25 46;
q)z: 13 34 25 46
q)x
10 30 20 40
q)y
13 34 25 46
q)z
13 34 25 46
q)

Other
q)x: 10 30 20 40 y: 13 34 25 46; z: 13 34 25 46
q)x
0N 0N 0N 0N
q)y
13 34 25 46
q)z
13 34 25 46
q)

I need to change my habits. It may be useful for someone.

W dniu sobota, 16 listopada 2013 19:04:56 UTC+1 u?ytkownik Charles Skelton napisa?:

you’re missing a semi-colon after the x assignment.
Otherwise you are doing this

q)x: 11 12 13 13 y: 13 34 25 46

q)x

0N 0N 0N 0N

q)y

13 34 25 46

instead of

q)x: 11 12 13 13;y: 13 34 25 46

q)x

11 12 13 13

q)y

13 34 25 46

1.What is f in 4f?

q)8%2
4f
q)9%2
4.5

//other calcs
q)((8%2)%2)+1
3f

q)((((8%2)%2)+1)*2)+2
8f

float

q)type 8%2

-9h

See also http://code.kx.com/wiki/JB:QforMortals2/atoms#Floating_Point_Data

HTH,

Pawel

2013/11/16 reptile <my.reptile@gmail.com>

1.What is f in 4f?

q)8%2
4f
q)9%2
4.5

//other calcs
q)((8%2)%2)+1
3f

q)((((8%2)%2)+1)*2)+2
8f


Submitted via Google Groups

Thx. Why other maths don’t have any flag?

#3 table questions - it’s normal or some changes here?
http://code.kx.com/wiki/Reference/Table#Creating_Tables

q)t:([name:nms]dob:dob;sal:
sal)
q)t
name | dob sal
-----| ----------------
anne | 1979.06.21 44350
mary | 1947.11.01 63375
david| 1961.05.14 78900
beth | 1976.01.18 36750

//by test

q)t:([name:nms]dob:dob;sal:sal);
'sal
q)t
't

ERROR: 'sal
(attempt to use variable sal without defining/assigning first (or user-defined signal))


q)ww:(name:symbol$();dob:date$();sal:int$())
'assign
(Roundtrip: 000ms)
ERROR: 'assign
(attempt to reuse (assign to a variable named same as) a reserved word)

This is examples from references. They are actual?

#4 Comments.png [img] - oh.. I miss you /* <3 *\
I’m prety sure when CFTC want check HFT algos feal near like UFO evidence :D
http://code.kx.com/wiki/Reference

/abc
abc//no comment /comment \stik comment
/
abc
/abc
/
abc//comment<br>abc
abc//comment\
abc/
abc//comment/
abc/
<br>abc/comment<br>// abc/ abc\ abc abc \ \abc\ \ \ \ \ \ \\ \ \ \ \
/ abc/ abc\ abc abc \ \abc\ \ \ \ \ \ \\ \ \ \ \
/abc/ abc\ abc abc \ \abc\ \ \ \ \ \ \\ \ \ \ \
/
abc

abc/comment<br>abc
abc//comment\
abc/ /comment
abc//comment/
abc/
abc/comment<br>/
abc/comment<br>abc
abc//comment\
abc/
abc//comment/
abc/
abc/comment<br><br>/abc
/ SPACE
abc/ / comment<br>abc
abc/ abc / comment<br>
#5 date value stores the count of days from Jan 1, 2000. Why 2000? Is this have some good pratice?
http://code.kx.com/wiki/JB:QforMortals2/atoms#date
q)int$2000.02.01<br>31i<br>q)int$1999.02.01
-334i

- I expect here this same result as 31i.

q)int$2000.12.31<br>365i<br>q)int$2013.11.17
5069i
int$12:34:56.789<br><br>Time<br>q)int$12:34:56.789
45296789i
q)int$00:00:00.789<br>789i<br>q)int$00:00:01.789
1789i

dt
q)int$2000.01.01T00:00:01.789<br>0i<br>q)int$2000.01.01 00:00:01.789
'2000.01.01


q)float$2000.02.01T12:01:00.000<br>31.50069<br>q)float$2000.01.01T12:01:00.000
0.5006944
q)\P 33
q)float$2000.01.01T12:01:00.000<br>0.50069444444444444<br>q)\P 666<br>q)float$2000.01.01T12:01:00.000
0.50069444444444444
q)d: 1990.12.12T12:12:12.012
q)d
1990.12.12T12:12:12.012
q)float$ d<br>-3306.4915276388888<br><br><br>q)mon:2006.07m<br>q)mon<br>2006.07m<br>q)int$mon
78i
q)int$2000.04m<br>3i<br>q)int$2000.01m
0i
q)int$2000.02m<br>1i<br><br><br>#6 The q)) result and q)\ <br><br>q)fmm:{[x] x.mm}<br>q)fmm 2006.09.15<br>{[x] x.mm}<br>'x.mm<br>q))fmm:{[x] mm$x}
q))fmm 2006.09.15
9i
q))<br>q)<br> fmm:{ `yy$x}

Type q) and I’m back. But whats mind q)) ?

other types do have flags.
e.g. 

q)2h+2h

4i

Comment rules -

/ as first char on line or whitespace followed by / comments to end of that line.

Multiline comment begins with \ as only char on a single line, terminated by / on a single line. 

kdb+ has its date epoch as

q)`date$0

2000.01.01

>q)int$2000.02.01 \>31i \>q)int$1999.02.01
>-334i

I’m sure if you read your post again, it will make sense when you consider 334+31==365

> fmm:{ x.mm}

dot notation does not work inside functions, unless part of a select/exec/update.

> q))

is suspended mode. It has suspended at the point of error. Typing \ returns to the next level of suspension upwards in the stack. See http://code.kx.com/wiki/Startingkdbplus/qlanguage

 Ok, I’ll try more concentrated.I see many errors and mistakes on wiki.
 Maybe I have solution for q examples and learning method for new users : )

#7 Flags http://code.kx.com/wiki/JB:QforMortals2/casting\_and\_enumerations#Creating\_Symbols\_from\_Strings
   5 6 7h$42
42h
42
42j

/by test
q)5 6 7h$42
42h
42i
42

        “i”$0Wh
32767
        “i”$-0Wh
-32767
        “j”$-0W
-2147483647j
        “j”$0W
2147483647j

/by test
q)“i”$0Wh
32767i
q)“i”$-0Wh
-32767i
q)“j”$-0W
-0W
q)“j”$0W
0W

#8 Parsing Journal - Know! D and T.. some other examples as intuition
q)“T”$“23:59:59.999”
23:59:59.999
#just code, but what is small “t” and “d”?
q)“t”$“23:59:59.999”
00:00:00.050 00:00:00.051 00:00:00.058 00:00:00.053 00:00:00.057 00:00:00.058 00:00:00.053 00:00:00.057 00:00:00.046 00:00:00.057 00:00:00.057 00:00:00.057

q)“D”$“2004.04.02T04:02:24.042”
0Nd
q)“d”$“2004.04.02T04:02:24.042”
2000.02.20 2000.02.18 2000.02.18 2000.02.22 2000.02.16 2000.02.18 2000.02.22 2000.02.16 2000.02.18 2000.02.20 2000.03.25 2000.02.18 2000.02.22 2000.02.28 2000.02.18 2000.02.20 2000.02.28 2000.02.20 2000.02.22 2000.02.16 2000.02.18 2000.02.22 2000.02.20
q)“d”$“2004.04.02 04:02:24.042”
2000.02.20 2000.02.18 2000.02.18 2000.02.22 2000.02.16 2000.02.18 2000.02.22 2000.02.16 2000.02.18 2000.02.20 2000.02.02 2000.02.18 2000.02.22 2000.02.28 2000.02.18 2000.02.20 2000.02.28 2000.02.20 2000.02.22 2000.02.16 2000.02.18 2000.02.22 2000.02.20
q)“D”$“2004.04.02 04:02:24.042”
0Nd
q)“D”$“2004.04.02”
2004.04.02
q)“D”$“2007-04-24”
2007.04.24
q)“D”$“12/25/2006”
2006.12.25
q)“D”$“07/04/06”
2006.07.04
q)“D”$“07/04/100”
0Nd
q)“D”$“12/25/1999”
1999.12.25
q)“D”$“1999-04-24”
1999.04.24

q)“D”$“99/04/06”
0Nd
#-hmm

/experiment like t T D d with types : )
q)“M”$“23:59”
0Nm
q)“m”$“23:59”
2004.03 2004.04 2004.11 2004.06 2004.10m
q)“u”$“23:59”
00:50 00:51 00:58 00:53 00:57
q)“M”$“23:59”
0Nm
q)“m”$“23:59”
2004.03 2004.04 2004.11 2004.06 2004.10m
\

q)“D”$“12/25/”
2000.12.25
q)“D”$“25/25/”
0Nd
q)“D”$“1/25/”
2000.01.25
q)“D”$“1/25//”
0Nd
q)“D”$“1.25.”
2000.01.25
q)“D”$“1.25”
0Nd
q)“D”$“1/25”
0Nd

q)“D”$“2007-0424”
0Nd
q)“D”$“2007-04”
0Nd
q)
q)“D”$“2007-04-”
0Nd
q)“D”$“2007-04-00”
0Nd

q)“D”$“07/04/00”
2000.07.04
q)“D”$“07/04/”
2000.07.04

q)“D”$“2007/04/”
0Nd
q)“D”$“2007/04/00”
0Nd
q)“D”$“07/04/2000”
2000.07.04
q)“D”$“07-04-2000”
2000.07.04
q)

both of these are valid.
One represents v2.8, where the default integer was 32 bit.

The other represents v3.x where the default integer is 64 bit.

I guess, on behalf of all other readers of this group,
just do some reading on code.kx

http://code.kx.com/wiki/Reference/Datatypes

#9 Lists from Variables  - question about symbol/char in my q
http://code.kx.com/wiki/JB:QforMortals2/lists
L1:(1;2;100 200)
L2:(1 2 3;‘abc) L6:(L1;L2) L6 1&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 100 200 1 2 3 ab `c

/my q
q)L1:(1;2;100 200)
q)L2:(1 2 3;‘ab`c)
'char
q)L6:(L1;L2)
'L2
q)L6
'L6
q)L2:(1 2 3; 4 5 6)
q)L6:(L1;L2)
q)L6
(1;2;100 200)
(1 2 3;4 5 6)

q)L2:(1 2 3;“ab” “c”)
q)L2
1 2 3
" "

q)L3:(a, b ,c) q)L3 abc
q)L7:(L1;L3)
q)L7
1 2 100 200
a b c

#10 Depth - question about brackets in my q
L2:((1;2;3);(ab;c))
        L2
1 2 3
abc
        count L2
2

  L3:((1;2h;3j);(“a”;bc);(1.23;4.56e)) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; L3 (1;2h;3j) ("a";bc)
(1.23;4.55999994278e)
        count L3
3

/my q
q)L2:((1;2;3);(ab;c))
q)L2
1 2 3
abc

q)L3:((1;2h;3j);(“a”;bc);(1.23;4.56e)) q)L3 (1;2h;3) ("a";bc)
(1.23;4.56e)

q)L2:((1;2;3);(ab;c))
q)L2
1 2 3
abc
q)L2:((1;2;3);(ab;c);(ab;c))
q)L2
1 2 3
abc
abc
q)L2:((1;2;3);(ab;c;`d))
q)L2
1  2 3
ab c d

/## Should be in brakets?
()
()
()

q)L2:((1;2;3);(ab;c;d);(ab;c;d))
q)l2
'l2
q)L2
1  2 3
ab c d
ab c d
q)count L2
3
q)L2:((1;2;3);(ab;c;d);(de;f;ge))
q)L2
1  2 3
ab c d
de f ge
q)L2:((1;2;3);(ab;c;d);("de";f;ge)) q)L2 1&nbsp;&nbsp;&nbsp; 2&nbsp; 3 ab&nbsp;&nbsp; c&nbsp; d "de" f ge q)L2:((1;2;3j);(ab;c;d);(“de”;f;ge))
q)L2
1    2  3
ab   c  d
“de” f ge
q)count L2
3

q)L4:((1;2h;3j),(“a”;bc),(1.23;4.56e)) q)L4 1 2h 3 "a" bc
1.23
4.56e
q)count L4
7

q)L4:((1,2h,3j);(“a”,bc);(1.23,4.56e)) q)L4 (1;2h;3) ("a";bc)
(1.23;4.56e)
q)count L4
3

q)L5:((1,2,3j);(ab,c,d);("de",f,ge)) q)L5 1 2 3 abcd
(“d”;“e”;f;ge)
q)count L5
3

q)L8:(L1,L2,L3,L4,L5,L6,L7)
q)L8
1
2
100 200
1 2 3
abc
(1;2h;3)
(“a”;bc) (1.23;4.56e) (1;2h;3) ("a";bc)
(1.23;4.56e)
1 2 3
abcd ("d";"e";f;ge) (1;2;100 200) (1 2 3;4 5 6) (1;2;100 200) abc
q)count L8
18

q)L9:(L1;L2;L3;L4;L5;L6;L7;L8)
q)L9
(1;2;100 200)
(1 2 3;abc)
((1;2h;3);(“a”;bc);(1.23;4.56e)) ((1;2h;3);("a";bc);(1.23;4.56e))
(1 2 3;abcd;("d";"e";f;ge)) ((1;2;100 200);(1 2 3;4 5 6)) ((1;2;100 200);abc)
(1;2;100 200;1 2 3;abc;(1;2h;3);(“a”;bc);(1.23;4.56e);(1;2h;3);("a";bc);(1.2
3;4.56e);1 2 3;abcd;("d";"e";f;ge);(1;2;100 200);(1 2 3;4 5 6);(1;2;100 200 );abc)
q)count L9
8

/lol
q)L10:(L9,L10)
'L10
q)L10
'L10
q)L11: (1 2 3)
q)L11
1 2 3
q)L10:(L9;L10)
'L10
q)

#11 Count.. Sholud be 0/0N if no exist element?

q)L5:(1;(100;200;(1000,2000,3000,4000)))
q)L5
1
(100;200;1000 2000 3000 4000)
q)count L5
2
q)count L5[1]
3
q)count L5[2]
1
q)count L5[3]
1
q)count L5[4]
1
q)count L5[5]
1
q)count L5[6]
1
q)count L5[7]
1
q)count L5[8]
1
q)

q)L5:(1;(100;200;(1000;2000;3000;4000)))
q)L5
1
(100;200;1000 2000 3000 4000)
q)count L5[0]
1
q)count L5[1]
3
q)count L5[2]
1
q)count L5[3]
1
q)count L5[4]
1
q)count L5[5]
1
q)count L5[6]
1
q)count L5[7]
1
q)count L5[8]
1

q)L5[2]
0N

q)count  L5[1][3]
1
q)count  L5[1][2]
4
q)count  L5[1][1]
1
q)count  L5[1][0]
1
q)count  L5[0][0]
'type
q)count  L5[0][1]
'type
q)count  L5[1][2]
4

q)count L5[1;2]
4
q)count L5[1;5]
1
q)count L5[1,2]
2
q)count L5[1,5]
2
q)count L5[1,1,1]
3
q)count L5[1,1,1,1]
4
q)count L5[1,1,1,1;5]
4

q)L:(1;(100;200;(1000;2000;3000;4000)))
q)L[0]
1
q)L[1]
100
200
1000 2000 3000 4000
q)L[2]
0N
q)L[3]
0N

I have maybe #15-20 basic to meet view for changes and differences in wiki and result what made in my head disonanse. After this backing to silent test and note uknow before read and test all.

#12 Dir
q)\dir.. /show us folders in windows\q like

“2013-11-17  21:06    <DIR>          .”
“2013-11-17  21:06    <DIR>          ..”
“2013-11-16  12:38    <DIR>          config”
“2011-07-25  15:20           141\240097 EURUSD.csv”
“2013-07-18  12:55            18\240427 q.k”
“2013-06-09  11:36             2\240911 README.txt”
“2013-06-09  11:36             4\240247 s.k”
“2013-11-17  21:06    <DIR>          w32”

q)\dir

“2013-11-17  21:06    <DIR>          ..”
“2013-08-16  22:25                15 a.def”
“2013-08-16  22:25                14 bb.def”
“2013-08-16  22:23             7\240168 bb.dll”
“2013-08-16  22:25               158 c.def”
“2013-08-16  22:21            53\240248 c.dll”
“2013-08-16  22:25             6\240786 c.lib”
“2013-08-16  22:25            44\240558 c.obj”
“2013-08-16  22:25            49\240152 cst.dll”
“2013-08-16  22:25             6\240786 cst.lib”
“2013-08-16  22:25            40\240312 cst.obj”
..

my dump : )

  • but I have here 3 folders and 26 elements. Kdb is not dos but how to discovery rest .. ?
    q)\dir /p
    It is posible?
    If I have here q. files ok

q)\dir *.q
“2013-06-09  11:36               821 sp.q”
“2013-06-09  11:36               150 trade.q”

q)\dir my /ok

But are in \my
windows\q\w32\my\
windows\q\my\

\dir and \dir. are this same?

cd\ \my
cd\ \my2
/creating catalogs in main disk

q)\tree
“Zmienna PATH folderu”
“Numer seryjny woluminu: 94CF-xx”
“E:.”
“\303\304\304\304d”
“\263   \303\304\304\304a”
“\263   \300\304\304\304src”
“\303\304\304\304e”
“\300\304\304\304my”
"    \303\304\304\304Analisis"
"    \303\304\304\304datafeed_q"
"    \303\304\304\304db"
"    \303\304\304\304dump"
"    \303\304\304\304games"
"    \303\304\304\304kdb-rmathlib"
"    \303\304\304\304mt4"
"    \303\304\304\304my"
"    \303\304\304\304taq"
..

q)/time /kdb dead

q)\ver
“”
“Microsoft Windows XP [Wersja 5.1.2600]”
q)\vol
" Wolumin w stacji E nie ma etykiety."
" Numer seryjny woluminu: 94CF-xx"
q)\md folder
q)\cls
,“\014”


/I want show comments from q scripts on console like paste to  a: “test” /test comment

q)a: “test” /test comment
q)

/I want type key without Enter (just for fun,like game) + waiting (how many keys in var?)
/Is available dynamic result a:1 2 ab: 1a 2b type “a” see 1 2 ading to a b = ab then dynamic change to 1a 2b
/ function sugestion to use (for example search char for function like help)
/I want turn off q) -if namespace .h) ? Is posible?
/I want turn off logs like n+1 row lines to one “field” or something like cls 1+1 cls 1+2 cls/script
/for example I controling by 5000 port other window 5001 show (just screen “panel/indicator”)
/I want change epoch - it is posible?

http://localhost:5000/ - can we see here namespaces, functions and variables as tables?


http://en.wikipedia.org/wiki/Reflection\_(computer\_programming)
a:“\l load.q”; /Is posbile to do something like this?

On Monday, November 18, 2013 8:25:27 AM UTC+1, reptile wrote:

#9 Lists from Variables  - question about symbol/char in my q

don’t see any questions, trying to guess to the best…

http://code.kx.com/wiki/JB:QforMortals2/lists
L1:(1;2;100 200)
L2:(1 2 3;‘abc) L6:(L1;L2) L6 1&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; 100 200 1 2 3 ab `c

/my q
q)L1:(1;2;100 200)
q)L2:(1 2 3;‘ab`c)
'char

copy/past w/o format? since this error indicates that ’ before ab is not an assic character

q)L6:(L1;L2)
'L2

L2 is not defined because of the 'char error

q)L6
'L6
q)L2:(1 2 3; 4 5 6)
q)L6:(L1;L2)
q)L6
(1;2;100 200)
(1 2 3;4 5 6)

q)L2:(1 2 3;“ab” “c”)

this (“ab” “c”) reads “ab”@“c”, if your purpose is to find problems, good catch! Q is using this as a parser convention, I think it would not be a bad idea to have some fine tuning here, if your purpose is to actual build a list of character lists, you need a semi-colon (“ab”;“c”)

q)L2
1 2 3
" "

q)L3:(a, b ,c) q)L3 abc
q)L7:(L1;L3)
q)L7
1 2 100 200
a b c

cannot guess what could be the question here. but anyway, do you care? 

On Monday, November 18, 2013 12:29:10 AM UTC+1, reptile wrote:

#11 Count.. Sholud be 0/0N if no exist element?

thanks, there IS a question mark. yes, it is 0N(type flag here) if not exist, tests below seemed point another direction though, tying the guess game again

 

q)L5:(1;(100;200;(1000,2000,3000,4000)))
q)L5
1
(100;200;1000 2000 3000 4000)
q)count L5
2
q)count L5[1]
3
q)count L5[2]
1
q)count L5[3]
1
q)count L5[4]
1
q)count L5[5]
1
q)count L5[6]
1
q)count L5[7]
1
q)count L5[8]
1
q)

q)L5:(1;(100;200;(1000,2000,3000,4000)))

q)L5[7]

0N

q)count L5[7]

1

why returning 0N when not exist is a problem? don’t see obvious reasons to have it return () over 0N. (to be honest, I do see a reason and a better example to this point. but that’s out of the scope of this potential question)

 

q)L5:(1;(100;200;(1000;2000;3000;4000)))
q)L5
1
(100;200;1000 2000 3000 4000)
q)count L5[0]
1
q)count L5[1]
3
q)count L5[2]
1
q)count L5[3]
1
q)count L5[4]
1
q)count L5[5]
1
q)count L5[6]
1
q)count L5[7]
1
q)count L5[8]
1

q)L5[2]
0N

q)count L5[1][3]
1
q)count L5[1][2]
4
q)count L5[1][1]
1
q)count L5[1][0]
1
q)count L5[0][0]
'type

L5[0] is not a list 

q)count  L5[0][1]
'type

L5[0] is not a list  

 

q)count  L5[1][2]
4

q)count L5[1;2]
4
q)count L5[1;5]
1
q)count L5[1,2]
2
q)count L5[1,5]
2
q)count L5[1,1,1]
3
q)count L5[1,1,1,1]
4

q)L5[1,1,1,1]

100 200 1000 2000 3000 4000

100 200 1000 2000 3000 4000

100 200 1000 2000 3000 4000

100 200 1000 2000 3000 4000

q)L5[1,1,1,1;5] 

 

q)count L5[1,1,1,1;5]
4

q)L5[1,1,1,1]

100 200 1000 2000 3000 4000

100 200 1000 2000 3000 4000

100 200 1000 2000 3000 4000

100 200 1000 2000 3000 4000

q)L5[1,1,1,1;5] 

0N 0N 0N 0N

I think you know why the result is this, right?

q)L:(1;(100;200;(1000;2000;3000;4000)))
q)L[0]
1
q)L[1]
100
200
1000 2000 3000 4000
q)L[2]
0N

there’re only 2 elements in list L, their types are (j;J), therefore non-exist returns 0N 

q)L[3]
0N

thanks for reading :) 

 

On Monday, November 18, 2013 12:41:11 AM UTC+1, reptile wrote:

I have maybe #15-20 basic to meet view for changes and differences in wiki and result what made in my head disonanse. After this backing to silent test and note uknow before read and test all.

#12 Dir
q)\dir.. /show us folders in windows\q like

“2013-11-17  21:06    <DIR>          .”
“2013-11-17  21:06    <DIR>          ..”
“2013-11-16  12:38    <DIR>          config”
“2011-07-25  15:20           141\240097 EURUSD.csv”
“2013-07-18  12:55            18\240427 q.k”
“2013-06-09  11:36             2\240911 README.txt”
“2013-06-09  11:36             4\240247 s.k”
“2013-11-17  21:06    <DIR>          w32”

q)\dir

“2013-11-17  21:06    <DIR>          ..”
“2013-08-16  22:25                15 a.def”
“2013-08-16  22:25                14 bb.def”
“2013-08-16  22:23             7\240168 bb.dll”
“2013-08-16  22:25               158 c.def”
“2013-08-16  22:21            53\240248 c.dll”
“2013-08-16  22:25             6\240786 c.lib”
“2013-08-16  22:25            44\240558 c.obj”
“2013-08-16  22:25            49\240152 cst.dll”
“2013-08-16  22:25             6\240786 cst.lib”
“2013-08-16  22:25            40\240312 cst.obj”
..

my dump : )

  • but I have here 3 folders and 26 elements. Kdb is not dos but how to discovery rest .. ?
    q)\dir /p
    It is posible?
    If I have here q. files ok

q)\dir *.q
“2013-06-09  11:36               821 sp.q”
“2013-06-09  11:36               150 trade.q”

q)\dir my /ok

But are in \my
windows\q\w32\my\
windows\q\my\

\dir and \dir. are this same?

cd\ \my
cd\ \my2
/creating catalogs in main disk

q)\tree
“Zmienna PATH folderu”
“Numer seryjny woluminu: 94CF-xx”
“E:.”
“\303\304\304\304d”
“\263   \303\304\304\304a”
“\263   \300\304\304\304src”
“\303\304\304\304e”
“\300\304\304\304my”
"    \303\304\304\304Analisis"
"    \303\304\304\304datafeed_q"
"    \303\304\304\304db"
"    \303\304\304\304dump"
"    \303\304\304\304games"
"    \303\304\304\304kdb-rmathlib"
"    \303\304\304\304mt4"
"    \303\304\304\304my"
"    \303\304\304\304taq"
..

q)/time /kdb dead

q)\ver
“”
“Microsoft Windows XP [Wersja 5.1.2600]”
q)\vol
" Wolumin w stacji E nie ma etykiety."
" Numer seryjny woluminu: 94CF-xx"
q)\md folder
q)\cls
,“\014”

system command (i.e. "") returns stdout as a list of character lists, the console truncates the display and please “\c 26 80” to see more but up to 2000x2000. you should see more in qpad if you tried.


/I want show comments from q scripts on console like paste to  a: “test” /test comment

q)a: “test” /test comment
q)

/I want type key without Enter (just for fun,like game) + waiting (how many keys in var?)
/Is available dynamic result a:1 2 ab: 1a 2b type “a” see 1 2 ading to a b = ab then dynamic change to 1a 2b
/ function sugestion to use (for example search char for function like help)
/I want turn off q) -if namespace .h) ? Is posible?
/I want turn off logs like n+1 row lines to one “field” or something like cls 1+1 cls 1+2 cls/script
/for example I controling by 5000 port other window 5001 show (just screen “panel/indicator”)
/I want change epoch - it is posible?

http://localhost:5000/ - can we see here namespaces, functions and variables as tables?


http://en.wikipedia.org/wiki/Reflection_%28computer_programming%29
a:“\l load.q”; /Is posbile to do something like this?

I don’t know enough about reflection, but is this what you’re looking for?

q){-1 x;value x} each read0 `:load.q;

a:til 3;

b:til 5

q)a

0 1 2

q)b

0 1 2 3 4

it takes the null prototype from first element

q)L5:(1;(100;200;(1000,2000,3000,4000)))

q)L5 7

0N

q)L5:(`a;(100;200;(1000,2000,3000,4000)))

q)L5 7

`