Parallella Lispを試した。(2020年)
僕はUbuntu 16.04にしたParallellaを一台持っている。
Parallella Lisp (plisp)をgithubからダウンロードしてビルドしたので、試しにHello Worldをやった。
以下はその結果だ。
> ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 0 ) processor id: 0 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 1 ) processor id: 1 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 2 ) processor id: 2 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 3 ) processor id: 3 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 4 ) processor id: 4 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 5 ) processor id: 5 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 6 ) processor id: 6 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 7 ) processor id: 7 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 8 ) processor id: 8 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 9 ) processor id: 9 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 10 ) processor id: 10 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 11 ) processor id: 11 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 12 ) processor id: 12 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 13 ) processor id: 13 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 14 ) processor id: 14 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally! > ( block ( quote hello )( quote world )( quote from )( quote core )( id ) ) ( hello world from core 15 ) processor id: 15 memory: 11700480 node size: 16 nnodes: 258 nodemem: 4128 nnames: 69 namemem: 2760 nstrings: 0 stringmem: 0 setflag message: Exited normally!
Question Permutation Study
#Question Permutation study on 2/9/2020 19:16PM #(C)Tsubasa Kato #Referenced: https://www.geeksforgeeks.org/permutation-and-combination-in-python/ #And: https://www.codespeedy.com/get-first-n-items-from-a-list-in-python/ from itertools import permutations perm = permutations([1,2,3,4]) print ("start!") for i in list(perm): print (i) if (i == (1,2,3,4)): print ("yay") for y in range(2): #Making some random questions prev_y = i[y] - 1 if (prev_y == 3 and i[y] == 4): print ("What is") elif (prev_y == 2 and i[y] == 3): print ("When is") elif (prev_y == 1 and i[y] == 2): print ("When will")
秋月電子で買った NanoPi NEO 2で遊んでる
秋月電子で買った NanoPi NEO 2で遊んでる。
最初に焼いたイメージでは、ボードがmicro SDHCから起動しなかったので、違うイメージを試してみてる。もし今日違うイメージでも起動しなかったら、WindowsのノートパソコンでWiki通りの方法で焼く。
Macbook Pro 2017 + Etcherでもできるはずだから、ちょっと意地でやって見る。。