kparc / kcc Goto Github PK
View Code? Open in Web Editor NEWk crash course
Home Page: https://hackmd.io/BLKPyDRiSfiVTH7g6Jq1sw?edit
License: MIT License
k crash course
Home Page: https://hackmd.io/BLKPyDRiSfiVTH7g6Jq1sw?edit
License: MIT License
01001000 01000001 01010000 01010000 01011001 00100000 01000010 01001001 01010010 01010100 01001000 01000100 01000001 01011001 00101110 00100000 01001011 01000101 01000101 01010000 00100000 01000011 01001111 01000100 01001001 01001110 01000111 00100001
Instantly reactive to change:
https://blog.klipse.tech/lambda/2016/08/10/pure-y-combinator-javascript.html
x*y /product is pairwise too
0 2 4 9 16
should be
x*y /product is pairwise too
0 1 4 9 16
Saw in another issue that this guide is made for K7, explaining the errors from running npm install and begs the question, why are we absorbing K7 while learning fundamentals? Perhaps there's a good reason, else as this is a guide for newcomers, it's sensible to align with K9. Please consider addressing the differences or fork for an updated doc. Continuity is benign.
Near the end of the quicksort demonstration, there are a couple of links to quicksort implementations in other languages, to compare. These links go to assorted github gists. Why not link to rosetta code, whose purpose is to show the same algorithm in many different languages?
Don't know if that is appropriate topic here,
just wonder if there is another way to try shakti
without downloading Anaconda?
Hello,
I noticed the type "j" is missing from the types table.
This could be useful to avoid "strange" result (it's not strange because we're dealing with int)
fact:{*/1+!x}
fact 20
-2102132736
while
fact:{*/1j+!x}
fact 20
2432902008176640000j
More intuitive if the code was s.h'd.
Similarly, please link how to setup a terminal-based runtime with s.h
npm i @kparc/k -g
fails on Ubuntu 20.04.
Environment:
greg ~$ node --version
v15.4.0
greg ~$ volta --version
0.9.2
https://docs.volta.sh/guide/
replaces NPM, so it is possible that this is a volta problem, but unlikely.
greg ~$ npm i @kparc/k -g
npm ERR! code 1
npm ERR! path /home/greg/.volta/tmp/.tmp2kkWyp/lib/node_modules/@kparc/k
npm ERR! command failed
npm ERR! command sh -c ./get.sh
npm ERR! 'TypeError: JSON.parse(...).filter is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! /home/greg/.npm/_logs/2020-12-18T14_22_52_201Z-debug.log
0 verbose cli [
0 verbose cli '/home/greg/.volta/tools/image/node/15.4.0/bin/node',
0 verbose cli '/home/greg/.volta/tools/image/node/15.4.0/bin/npm',
0 verbose cli 'i',
0 verbose cli '-g',
0 verbose cli '@kparc/k'
0 verbose cli ]
1 info using [email protected]
2 info using [email protected]
3 timing config:load:defaults Completed in 2ms
4 timing config:load:file:/home/greg/.volta/tools/image/node/15.4.0/lib/node_modules/npm/npmrc Completed in 0ms
5 timing config:load:builtin Completed in 0ms
6 timing config:load:cli Completed in 2ms
7 timing config:load:env Completed in 1ms
8 timing config:load:project Completed in 0ms
9 timing config:load:file:/home/greg/.npmrc Completed in 0ms
10 timing config:load:user Completed in 0ms
11 timing config:load:file:/home/greg/.volta/tmp/.tmp8DVkrU/etc/npmrc Completed in 1ms
12 timing config:load:global Completed in 1ms
13 timing config:load:cafile Completed in 0ms
14 timing config:load:validate Completed in 0ms
15 timing config:load:setUserAgent Completed in 0ms
16 timing config:load:setEnvs Completed in 0ms
17 timing config:load Completed in 7ms
18 verbose npm-session 164ca95cd9e06a77
19 timing npm:load Completed in 14ms
20 timing arborist:ctor Completed in 1ms
21 timing idealTree:init Completed in 7ms
22 timing idealTree:userRequests Completed in 2ms
23 silly idealTree buildDeps
24 silly fetch manifest @kparc/k@*
25 http fetch GET 304 https://registry.npmjs.org/@kparc%2fk 447ms (from cache)
26 silly placeDep ROOT @kparc/[email protected] OK for: want: *
27 timing idealTree:#root Completed in 463ms
28 timing idealTree:node_modules/@kparc/k Completed in 0ms
29 timing idealTree:buildDeps Completed in 465ms
30 timing idealTree:fixDepFlags Completed in 2ms
31 timing idealTree Completed in 477ms
32 timing reify:loadTrees Completed in 482ms
33 timing reify:diffTrees Completed in 1ms
34 silly reify moves {}
35 timing reify:retireShallow Completed in 1ms
36 timing reify:createSparse Completed in 2ms
37 timing reify:loadBundles Completed in 0ms
38 timing reifyNode:node_modules/@kparc/k Completed in 21ms
39 timing reify:unpack Completed in 21ms
40 timing reify:unretire Completed in 1ms
41 timing build:queue Completed in 2ms
42 info run @kparc/[email protected] preinstall node_modules/@kparc/k ./get.sh
43 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 150ms
44 timing auditReport:getReport Completed in 152ms
45 timing auditReport:init Completed in 0ms
46 timing reify:audit Completed in 153ms
47 info run @kparc/[email protected] preinstall { code: 1, signal: null }
48 timing reify:rollback:createSparse Completed in 0ms
49 timing reify:rollback:retireShallow Completed in 0ms
50 timing command:install Completed in 1453ms
51 verbose stack Error: command failed
51 verbose stack at ChildProcess.<anonymous> (/home/greg/.volta/tools/image/node/15.4.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
51 verbose stack at ChildProcess.emit (node:events:376:20)
51 verbose stack at maybeClose (node:internal/child_process:1063:16)
51 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:295:5)
52 verbose pkgid @kparc/[email protected]
53 verbose cwd /home/greg
54 verbose Linux 5.4.0-58-generic
55 verbose argv "/home/greg/.volta/tools/image/node/15.4.0/bin/node" "/home/greg/.volta/tools/image/node/15.4.0/bin/npm" "i" "-g" "@kparc/k"
56 verbose node v15.4.0
57 verbose npm v7.0.15
58 error code 1
59 error path /home/greg/.volta/tmp/.tmp8DVkrU/lib/node_modules/@kparc/k
60 error command failed
61 error command sh -c ./get.sh
62 error 'TypeError: JSON.parse(...).filter is not a function
63 verbose exit 1
Both of the links under https://github.com/kparc/kcc#run seem to be broken.
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.