黒木玄 Gen Kuroki
- いいね数 389,756/311,170
- フォロー 995 フォロワー 14,556 ツイート 293,980
- 現在地 (^-^)/
- Web https://genkuroki.github.io/documents/
- 自己紹介 私については https://twilog.org/genkuroki と https://genkuroki.github.io と https://github.com/genkuroki と https://github.com/genkuroki/public を見て下さい。
2021年05月14日(金)

New post: Learn With Me: Julia - Introduction (#1) - www.juliabloggers.com/learn-with-me-... #julialang pic.twitter.com/EbtKJfXQXq
タグ: julialang
posted at 00:01:11

#Julia言語 x |> f の定義は f(x) なので、これだけだと不十分です。だからパイプのためのパッケージが複数あります。
Juliaの言語使用で足りない部分はユーザー側がマクロを書いてある程度補完できる。
github.com/JuliaLang/juli... pic.twitter.com/2lsQxXWUab
タグ: Julia言語
posted at 00:07:36

#Julia言語 マクロを使わなくても
(1, 2, 3) |>
(((a, b, c),) -> a + b + c) |>
println
とか
(1, 2, 3) |>
((a, b, c),) -> a + b + c |>
println
とは書けます。
f((a, b, c)) = a + b + c
t = (1, 2, 3)
f(t)
→6
のようなこともできる。 twitter.com/_dsudo/status/... pic.twitter.com/DLAmAtqvwZ
タグ: Julia言語
posted at 00:42:03



すごい不思議なんだけど全員の布団を自由に選べる状態で最終的に一番寝相が悪いんじゃないかと思われるチビのところに移動して好んで寝る pic.twitter.com/npHJWe5lXM
タグ:
posted at 00:46:24

You can now upload video for easier GitHub collaboration! 📽️ Reproducing a bug? Sharing a demo? Drop a comment below to let us know how you're using it.👇
github.blog/2021-05-13-vid... pic.twitter.com/tG5BYlVHR1
タグ:
posted at 01:52:04

One Fractal Every No @ComplexFractal
z->c*sin(z+k)
k = [0,2π]
Notice how changing k alternates between the sin and cosine fractal.
Also, here's the parameterization for k: www.desmos.com/calculator/xot...
It gives k some time to stabilize at intervals of π/2 to show the sin and cos fractals.
タグ:
posted at 02:12:56

Bay Area Julia Users @BayAreaJulia
@alexip See”The unreasonable effectiveness of multiple dispatch” from @StefanKarpinski for Julia’s answer to OOP m.youtube.com/watch?v=kc9Hws...
タグ:
posted at 04:15:30

@BayAreaJulia @StefanKarpinski Thanks a lot
Didn’t understand everything but I get the point
Very excited to experiment with multiple dispatch
タグ:
posted at 04:57:20

#Julia言語
以前の大量の特殊函数がらみのコードが base/special/*.jl にあったのですが、SpecialFunctions.jl に追い出しました。
特殊函数のコードの改善は専門家がやるべき大変なことなので、これで正解だと思います。
pkg> add SpecialFunctions
julia> using SpecialFunctions
でOK. twitter.com/minami_suiha/s...
タグ: Julia言語
posted at 07:50:28

#Julia言語
t = (1, 2, 3)
のとき
f((a, b, c)) = a + b + c
f(t)
(((a, b, c),) -> a + b + c)(t)
とできる。
v1.7(nightly build)以上では
u = (a = 0, x = 1, y = 2, z = 2)
のとき
g((; x, y, z)) = muladd(x, y, z)
g(u)
(((; x, y, z),) -> muladd(x, y, z))(u)
とできる。 pic.twitter.com/qXMDsPTiqq
タグ: Julia言語
posted at 08:08:17

同意です。しかも、ユーザにとって #Julia言語 のパッケージ管理とても楽ですしね。 twitter.com/genkuroki/stat...
タグ: Julia言語
posted at 08:08:23

Having fun watching the development of JuliaTutor from @HumansOfJulia and Casey Kneale!
It's a REPL tool for helping new #JuliaLang programmers #learn Julia through #interactive lessons.
I would love to see this idea adapted for other domains!
Link: github.com/Humans-of-Juli... pic.twitter.com/hogaXY94uo
タグ: interactive JuliaLang learn
posted at 08:17:38

#Julia言語 v1.7(nightly build)以上限定
NamedTupleではなくstructでも h((; x, y, z)) = ~ を使えます。
しかし、デバッグのし易さを考えれば「できるだけ複数行に分ける」とした方が良い場合が多いと思う。
gist.github.com/genkuroki/a291... pic.twitter.com/57RIYfH1V4
タグ: Julia言語
posted at 08:20:38




#Julia言語 Juliaで書かれたerfinv 函数(正規分布の統計学で必須の特殊函数の1つ)はFortranで書かれたライブラリよりも2~3倍速いそうです。
この動画を見ると、Juliaの高速計算はこういう超専門家の数学的力で支えられていることがよく分かります。
youtu.be/mSgXWpvQEHE の23:00付近 pic.twitter.com/hRAP971KhS
タグ: Julia言語
posted at 08:50:11


確率変数としての標本平均については次を書いてみて個人的には納得できました。もっと例の必要性を感じますが…とりあえず参考までに。
nbviewer.jupyter.org/gist/kagaya/49...
タグ:
posted at 11:43:48


非公開
タグ:
posted at xx:xx:xx

「藤井マジック」85飛を徹底解説!(第80期B級1組順位戦 藤井聡太二冠 VS 三浦弘行九段) 主催:毎日新聞社、朝日新聞社、日本将棋連盟 youtu.be/2T-U8yyIefc @YouTubeより
タグ:
posted at 12:12:33

ナゾロジー@科学ニュースメディア @NazologyInfo
アイシングは筋肉損傷の「回復を遅らせる」ことが明らかに
nazology.net/archives/88896
常識が覆りました。神戸大によると筋損傷を冷やすことで筋組織の再生が遅延すると判明。損傷後の炎症反応は筋肉回復に必要なプロセスで、冷やすと炎症を起こすマクロファージが集まりにくくなるそう。 pic.twitter.com/U2FzxZq7A7
タグ:
posted at 12:13:09


Masayoshi Takahashi @takahashim
日経Linux5月号のまつもとさんの連載はRuby 3.0の静的型検査についてで、3.0で導入しなかったこととその理由・意図が書かれていて、将来貴重な一次資料になりそうと思いました info.nikkeibp.co.jp/media/LIN/atcl...
タグ:
posted at 12:19:28

この手の現象はpet-directed speechといって赤ちゃん向け言語(infant-directed speech, motherese)と同様の現象だけどわかりやすい名前はないみたい nature.berkeley.edu/garbelottoat/w... twitter.com/yukihiro_matz/...
タグ:
posted at 12:28:23

掛け算の順序問題、そろそろ本格的に取り締まらないと脳死立式小学生多発しない?プログラミング教育の前にやることあるでしょ。 twitter.com/casolot_/statu...
タグ:
posted at 12:31:07

犬に向けたしゃべり方を doggerel と呼んでいる文献があるけど一般的じゃないみたい(本当の doggerel は詩のリズム用語) www.cambridge.org/core/journals/...
タグ:
posted at 12:31:55


Masayoshi Takahashi @takahashim
ちなみに導入したことについては『WEB+DB PRESS Vol.121』が詳しいです(と連載記事にも書いてあった)gihyo.jp/magazine/wdpre...
タグ:
posted at 12:32:39



@NazologyInfo 現場レベルでは認識されています。冷却の重要な意味は「損傷部位の止血」。冷却によって血管を収縮させ止血し血腫や浮腫を最小限に抑えることを目的に行っている。止血できれば速やかに血行改善にシフトします。
タグ:
posted at 14:20:19

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx


@aoziru2010 いやあってますよ
他の人も書いてますけど
そもそも今の医療でも慢性期回復期は温めるふうになってます
受傷直後(いわゆる急性期)は組織の再生より、応急処置や苦痛の緩和、再生するための下準備(例えば骨をつなぐ、皮膚を縫うとか)を冷やして行ってる感じですね
それとこれは別に考えないと
タグ:
posted at 16:43:08


juliaのllvmcallみたいに、インラインで書いたLLVM IRを関数として括り出して、LLVM IR(.ll)を生成した後に文字列として結合してしまえばいい
タグ:
posted at 18:31:54

#Julia言語
Juliaでも object.method() スタイルが可能です。
添付画像では長方形のオブジェクト R について、メソッド R.height(), R.width(), R.area() を実行しています。
しかし、このスタイルはJulia的には有害になります。続く pic.twitter.com/p51j1rcN11
タグ: Julia言語
posted at 18:32:32

#Julia言語 モジュールAの作者に別に人が、モジュールAへの正方形の型 Square と面積を倍にするメソッド double の追加を頼んだけど、断られたとしましょう。
そこでその人はモジュールBの中でそれを添付画像のように実現しました。object.method()スタイルが保たれています。
続く pic.twitter.com/1fDBzDzz4m
タグ: Julia言語
posted at 18:32:34

#Julia言語 その後、モジュールAの作者はモジュールAに正方形の型Squareと(面積ではなく)長さを倍にするメソッドdoubleを追加しました。
モジュールBの作者は、型Squareの追加は歓迎しましたが、doubleというメソッド名の衝突には困ってしまった。解決策はあるが面倒。 pic.twitter.com/mg40BQhjRp
タグ: Julia言語
posted at 18:32:37

#Julia言語 object.method()スタイルをやめて、Juliaの通常のやり方に従えば、長さを倍にするメソッドと面積を倍にするメソッドは A.double(x) と B.double(x) で区別され、以上の問題は発生しません。 pic.twitter.com/j1NoFto0vG
タグ: Julia言語
posted at 18:32:40


#Julia言語 ソースコード
nbviewer.jupyter.org/gist/genkuroki...
Juliaがどうしてobject.method()スタイルを使わないのか?
タグ: Julia言語
posted at 18:33:25

記事を書きました。
いぶし銀の名棋士・桐山清澄九段(73)竜王戦5組残留を決め現役続行決定! 通算996勝達成!(松本博文) - Y!ニュース news.yahoo.co.jp/byline/matsumo...
タグ:
posted at 18:36:24

New post: The hardest part of DataFrames.jl development process - www.juliabloggers.com/the-hardest-pa... #julialang
タグ: julialang
posted at 18:42:09

New post: The hardest part of DataFrames.jl development process - www.juliabloggers.com/the-hardest-pa... #julialang
タグ: julialang
posted at 18:42:14

DataFrames.jl: why do we have both subset and filter functions? | Blog by Bogumił Kamiński bkamins.github.io/julialang/2021... DataFrame.jl v1.1からsubset関数が追加。もうBase.filterに引きずられずに済むな!嬉しい!
タグ:
posted at 18:57:15


The Mediterranean Sea is definitely bigger than we think it is [source: buff.ly/2EwcE8h] pic.twitter.com/8ac9OIHU0d
タグ:
posted at 19:30:00

@sekibunnteisuu @jinkei4413 小学校レベルの国語ができないほど頭の悪いせいで、かけ算順序指導が国語的にも有害だから非難されていることを理解できないのだと思います。
何年も前から、我々は、ある種の理系高学歴者がこの件で国語的に問題のある算数の教え方を擁護してドツボにハマる傾向があることに気付いている。 #超算数
タグ: 超算数
posted at 20:00:28

@HW_a_pythonista ありがとうございます.そのようです.ただ,オリジナルの論文とは計算方法が違うような気もします.julia化するの大変そうです..mlg.postech.ac.kr/~seungjin/publ...
タグ:
posted at 20:03:20

@hanshu_function @numachi11111 例えば、4P2は樹形図で書くと4つから3つずつ枝分かれしますが、
「枝が3本ついた木が4本あるから3×4」
と考えただろうなという子はいますね。
タグ:
posted at 20:09:58

Check out "Rapid Commercialization of Drone Autonomy using Julia"
presented by Kerry Snyder at JuliaCon 2020
www.youtube.com/watch?v=nKRIAb...
#JuliaLang #Coding #Opensource #UAV
タグ: Coding JuliaLang Opensource UAV
posted at 22:19:00

@asato_aki @24_6_8_10 twitter.com/24_6_8_10/stat...
失礼します。
二城八斗🦋一文字組民ぁ🍊
@24_6_8_10 さんの一連の認識はどこで得たものなのでしょうか?
>「2×3=6 答え6箱」と回答してしまう子も珍しくない。
「3×2=6 答え6箱」とする子はめったにいないのでしょうか?
タグ:
posted at 22:26:30

OKUMURA, Akira(奥村 曉) @AkiraOkumura
色々と調査したけど、Google Docs みたいに同時編集可能な、ROOT もいける Jupyter 環境は今のところなさそうということが分かった。もしかしたら CoCalc の有料版だとできるのかもしれないけど試していない。
タグ:
posted at 22:34:27

So glad that the little package I started in 2019 - ShortStrings.jl - is having such positive impacts on real-life workloads!
#julialang pic.twitter.com/gjr1dqPMAR
タグ: julialang
posted at 23:10:42

用 #julialang 折腾出一条 3D Hilbert space filling curve. pic.twitter.com/qtvmbwv5ZX
タグ: julialang
posted at 23:15:28

Gabriel D Weymouth @gabrielweymouth
Ascii visualization of running simulation in the terminal! Stole a few lines of code from VideoInTerminal.jl and got a loop written in just a few minutes. Fun stuff! @JuliaLanguage twitter.com/gabrielweymout... pic.twitter.com/n7g3O2Euw0
タグ:
posted at 23:38:47
