2017-01-01から1年間の記事一覧

postgresql10をcentos7にインストール

# yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm # yum install postgresql10-devel postgresql10-contrib # /usr/pgsql-10/bin/postgresql-10-setup initdb postgres=# create role u…

elixirでマルチコアCPUプログラミング

プログラミングErlangのマルチコアCPUプログラミングの章にあるpmapのコードをelixirで書いた https://github.com/iyoo14/map_utilgithub.com結果 100個のリストの各数値の フィボナッチ数の計算 は非効率な再帰版の場合は並列の方が早いが 効率のよい末尾再…

elixirインストール

# cd /usr/local/src/ # wget http://erlang.org/download/otp_src_20.0.tar.gz # tar xfzv otp_src_20.0.tar.gz # cd otp_src_20.0 # ./configure # make # make install# cd /usr/local/lib # git clone https://github.com/elixir-lang/elixir.git # cd …