estradajke / k9-simples Goto Github PK
View Code? Open in Web Editor NEWk9 simples
k9 simples
Hi,
Thank you for this tutorial. Very interesting and beginner friendly.
I have shakti free version from 2021 and found two sections in this tutorial that are for enterprise version:
11.1.6 read data ⇒ 2: x
11.1.7 write data ⇒ x 2: y
I found that http/s is also for enterprise but with \curl I can make a workaround.
Is there any workaround for above sections that can be used in free version?
If any Could you please include them in the tutorial?
Thank you
In the intro, -1#+\q
gives the wrong output format with k 2020.06.11.
Expected intput/output (the numbers themselves don't matter; I'm only showing this for the formatting):
-1#+\q
a b c
--- --- --
-68 117 73
Observed input/output (note different format of output compared to expected):
-1#+\q
[[]a:,-14;b:,-64;c:,-45]
The code {(+/m*m:x-avg x)%#x}'+q
from the intro doesn't work with k 2020.06.11.
Expected input/output:
{(+/m*m:x-avg x)%#x}'+q
a|0.6601538
b|0.6629631
c|0.6708467
Observed input/output:
{(+/m*m:x-avg x)%#x}'+q
{(+/m*m:x-avg x)%#x}'+q
^
!parse
Similar to the previous issue, I see an error trying to count unique combinations:
> k
l2020.12.20 7GB 6core (c)shakti 2.0
n:10000 / n data points
s:`a`b`c / data for symbols a, b, and c
q:+s!(-1+n?3;-1+n?3;-1+n?3) / table of returns (-1,0,1) for each symbol
#'=+(+q)[] / count each unique a/b/c combination
fky
#'=+(+q)[] / count each unique a/b/c combination
^
!nyi
The line of code #'=q
in the intro gives the error !nyi
under k 2020.06.11.
Hi,
First of all, thank for putting this doc together, very useful!
In 11. chapter you write cond (
Regards,
Andras
The table is supposed to include the values -1, 0, and 1, but I've tried a few times, and I don't see any 1s in there:
2020.06.11 16GB (c) shakti
n:10000
s:`a`b`c
q:+s!(-1+n?2;-1+n?2;-1+n?2)
q
a b c
-- -- --
-1 0 0
-1 -1 -1
-1 0 -1
-1 0 -1
-1 -1 -1
0 0 0
0 -1 -1
-1 -1 0
0 0 0
0 0 -1
0 0 0
0 -1 -1
0 0 -1
-1 -1 -1
0 -1 0
0 0 -1
0 0 0
0 0 0
..
Thanks for putting together the tutorial. Unfortunately I am seeing errors running the first examples to reproduce the db benchmark on my machine. Here is what I see with a recent shakti release:
> k
l2020.12.20 7GB 6core (c)shakti 2.0
nf:d+*|d:(|-d),d:683 954 997 1000;
T:^`t ?[;_8.64e7]@
B:100++\1e-2*-3+nf bin/:?[;*|nf]@
S:?[;1e-2*2,2,8#1]@
L:{select t,b,a:b+s from +`t`b`s!(T;B;S)@'x}
q:`eurusd`usdjpy`usdchf!L'60e6 20e6 20e6
{select t,b,a:b+s from +`t`b`s!(T;B;S)@'x}
^
!class
>`q 2:q
`q 2:q
^
!value
I will try to figure out what is wrong as I learn more about k. For now the error is pretty forbidding!
Thank you for the tutorial! I think there's a typo here. On section 2.25 "[f]cut ⇒ x^y" the code is 3^101+!20 / 3 rows, given the output it should be 3^101+!18
Your document is great! Can you create a section near 4.33 that describes the different types of rands?
eg.
5?0a
181997966 1766800925 1527163350 1528744538 1926857488
5?0b
00000b
5?0c
87879518 1893379807 482693011 1702298524 1215456181
5?0d
^0 2 2 2 4d
5?0e
0. 0. 0. 0. 0.
5?0f
0. 0. 0. 0. 0.
5?0g
221 45 225 15 203
5?0h
12035 52023 62339 32672 40448
5?0i
547190726 924849954 99349345 31887227 931271307
5?0j
5256785715952467465 7960654020936294374 7060561257844673622 7504660024989211339 4809681053323853382
5?0k
uuid uuid uuid uuid uuid
5?0l
2083632368 828538470 466893136 217704295 1691644614
The intro has this typo twice: 'calulate' (should be 'calculate').
In 1.8.8, consider using a different example as each is unnecessary in 3 >' 0 1 2 3 4 5
. Maybe 1 2 ~/: (1 2;3 4 5)
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.