Coder Social home page Coder Social logo

k9-simples's People

Contributors

chrispsn avatar dennisshasha avatar estradajke avatar kelas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

k9-simples's Issues

A workaround for Enterprise version functionality

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

`-1#+\q` in intro gives differently-formatted output with k 2020.06.11

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]

Introduction: count unique error

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

$[x;y;z] is not a function

Hi,

First of all, thank for putting this doc together, very useful!
In 11. chapter you write cond ($[x;y;z]) is a function. Actually, it is a (lazy) language construct, the y or z expression is evaluated based on x. You can easily verify this by running $[0;a:10;b:20] and checking a and b.

Regards,
Andras

First table in 1.4 (simple example) doesn't work under k 2020.06.11

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
..

Introduction: code to generate sample db errors

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!

Section 2.25 typo

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

Feature Request: describe ?0. (rand) a bit more

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

Grammar example

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)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.