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

秋葉原でケーブル買って来た。

今日はとある用事の為にロマンスカーに乗って都心に行ったので、秋葉原にも行った。買ったケーブルはType C < - > Type Cと、Type A -> Type C USB 3.1。ツクモで買った。

 

ツクモではPlanet ComputersのGeminiが展示されていたので、触ってみた。正直、画面のヒンジ部分が弱そうな感じがした。でもキーボードはPSION系だなと思った。

Tika初めて使ってみた。

コマンドラインからTikaを初めて使ってみた。ローカルのUbuntu 16.04環境下とサーバーのCentOSで動いた。

Perlスクリプトも書いた。少し難しかったけけど、system関数でうまくいった。
バックティックはなぜかうまくいかず。

この頃気になっている技術。

この頃気になっている技術を羅列する。

まず、7nmプロセスの半導体
次にiPadの最新型。実機をこの前触ったが、結構いい感じだった。

たまにParallellaを触っているのだが、この前HDMI経由でモニターに接続したところちゃんと動いたので、良かった。ただしrepositoryがもうサポートされてないと思う。。

それはさておき、今日を1日楽しく過ごそうと思う。

秋月電子で買った NanoPi NEO 2で遊んでる

秋月電子で買った NanoPi NEO 2で遊んでる。

最初に焼いたイメージでは、ボードがmicro SDHCから起動しなかったので、違うイメージを試してみてる。もし今日違うイメージでも起動しなかったら、WindowsのノートパソコンでWiki通りの方法で焼く。

Macbook Pro 2017 + Etcherでもできるはずだから、ちょっと意地でやって見る。。