帰ってきたウルトラマン!!! twitter.com/masa_jzz30/sta…
— Sim (@Sim0000) 2017年5月9日 - 00:04
@OuchOuchOuch @YahooNewsTopics なんか最近存在感薄いし、ここぞとアピールって感じですかね。
— Sim (@Sim0000) 2017年5月9日 - 00:11
ていうか、こんなことより先にもっとすることがいっぱいあるだろ、ってグーで突っ込みたくなりますwww
100万までの素数を求めるプログラム。Pythonで普通にプログラム書いたら0.173秒だった。PythonってGo言語より3000倍も高速なのかwww twitter.com/ponnkotsu/stat…
— Sim (@Sim0000) 2017年5月9日 - 00:53
書いたコードはこんな感じ。
— Sim (@Sim0000) 2017年5月9日 - 01:01
元のコード読んでないけど、すごく効率悪いんだと思うw pic.twitter.com/Q78LwZqayZ
ideoneだと0.127秒だった。100万までの素数の個数は78498なのでチェック用に出力するようにしておいた。
— Sim (@Sim0000) 2017年5月9日 - 01:10
ideone.com/S7YHXF
Java版も書いてみた。10ミリ秒というか0.01秒。Pythonより13倍くいら速い。
— Sim (@Sim0000) 2017年5月9日 - 01:25
Go言語(541.38秒)より5万4000倍速いwww
ideone.com/orMPQM
C版も書いてみた。3.418ミリ秒。Javaより3倍くらい早い。というか、このくらいになると測定誤差w元のGo言語(541.38秒)より15万8000倍高速www
— Sim (@Sim0000) 2017年5月9日 - 01:34
ideone.com/LsbblP
緩募、Go言語で書いてくれる人。
— Sim (@Sim0000) 2017年5月9日 - 01:44
ここでGo言語でも書いてみたいところだけど、名前くらいしか知らないので書けなかったり^^
初めてGo言語を使ってみた。7.6ミリ秒くらいかな。CとJavaの間くらい。
— Sim (@Sim0000) 2017年5月9日 - 02:19
単純に移植するだけだと速度でないと思う。並列性をいかしてループを分解したりするともっと速くなるはず。
ideone.com/KwB1iq
まとめ。100万までの素数を求めるプログラム
— Sim (@Sim0000) 2017年5月9日 - 02:22
C 3.418ミリ秒
Go 7.6ミリ秒
Java 10ミリ秒
Python 127ミリ秒
Go言語の配列の宣言がよく分からなくて
— Sim (@Sim0000) 2017年5月9日 - 02:24
p := make([]byte, 1000000)
とか書いたけど、もっと別な書き方があるのかな
それあるなあ。TLには神ばかりいる。
— Sim (@Sim0000) 2017年5月9日 - 02:26
ヒトは自分だけかwww
The Dodo 6502 Retro Gaming System #TindieBlog blog.tindie.com/2017/05/dodo-6… pic.twitter.com/XItkEfem8M
— Tindie (@tindie) 2017年5月9日 - 01:10
var p[1000000] byteでいいみたい
— Sim (@Sim0000) 2017年5月9日 - 04:05
どんな物でもタッチセンサーにしてしまう伝導性の塗装技術がCMUに誕生 | TechCrunch Japan jp.techcrunch.com/2017/05/09/201… @jptechcrunchさんから
— 安倍吉俊/CC福岡5/21 R7a,b (@abfly) 2017年5月9日 - 11:13
電通大の中にマルツがオープン! pic.twitter.com/uCoCm38buF
— Naoya KOIZUMI / 小泉直也 (@kizm_naoya) 2017年5月9日 - 09:00
カーネギーメロン大学、スプレー塗料を吹きかけた物体をタッチパッドにする低コストの技術を発表。ほぼ全ての形状/表面のオブジェクトが変換可能。ギター、ステアリング、スマートフォンの裏など shiropen.com/2017/05/09/247… pic.twitter.com/pzaZBT3xEJ
— Seamless (@shiropen2) 2017年5月9日 - 08:04
基板警察、出動!!! twitter.com/NHK_PR/status/…
— Sim (@Sim0000) 2017年5月9日 - 13:02
「はずる」の新作、「キャストドット CAST DOT」です。 pic.twitter.com/yqkReHr4KP
— はずる(キャストパズル改め) (@hanayama_puzzle) 2017年5月9日 - 13:13
よく知らないで言ってるけど、そんなに昔だとゲルマニウムトランジスタだったんじゃないのかな。
— Sim (@Sim0000) 2017年5月9日 - 13:36
恥ずかしい pic.twitter.com/mltFculgRV
— 上尾沿線 (@HKT48_train_AOI) 2017年5月8日 - 08:58
javascript (node.js)でも書いてみた。26.961ミリ秒。思ってたのより、ずっと速い。
— Sim (@Sim0000) 2017年5月9日 - 16:28
ideone.com/CYaD13
Pythonのコードをいじってみた。127ミリ秒→78ミリ秒くらいに高速化できた。
— Sim (@Sim0000) 2017年5月9日 - 16:50
基本、配列みたいなのが苦手みたい。NumPyにすればいいのかな。
ideone.com/yOPiXk
【告知】今週末13日13時よりマルツ金沢店で、電子部品で作る、電子部品を作る、電子パーツクラフトイベントを開催します。
— 五味 (@GomiHgy) 2017年5月9日 - 19:24
ひとまず自分は日々の感謝を込めて大きいフルカラーLEDでも作ろう。… twitter.com/i/web/status/8…
— サンマーお™ (@xeye_) 2017年5月9日 - 23:03
Goのコードいじってみた。1.8ミリ秒くらいに縮んだ。あれ? C(3.4ミリ秒)より速いwww
— Sim (@Sim0000) 2017年5月9日 - 23:39
ideone.com/TPlmTC