Julia Juno Jupyter part1 [無断転載禁止]©2ch.net (745レス)
Julia Juno Jupyter part1 [無断転載禁止]©2ch.net http://mevius.5ch.net/test/read.cgi/tech/1455271513/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
81: デフォルトの名無しさん [sage] 2016/06/13(月) 14:44:15.88 ID:zgrawcOE 本家も放置? http://mevius.5ch.net/test/read.cgi/tech/1455271513/81
82: デフォルトの名無しさん [] 2016/07/04(月) 12:10:46.03 ID:bmDp8Deu 相変わらずだな 514 デフォルトの名無しさん sage 2016/07/04(月) 01:22:47.14 a5Gl8mUE Juliaの開発、俺が引き受けるから科研費くれ という主張をしてみるか悩んでる 515 デフォルトの名無しさん sage 2016/07/04(月) 01:35:22.05 WZmggq2i Julia で検索したら、AV 動画見たばかりでワロタ w 516 デフォルトの名無しさん sage 2016/07/04(月) 01:36:38.53 WZmggq2i ありゃ、 AV 動画ばかりって書きたかったの… 517 デフォルトの名無しさん sage 2016/07/04(月) 01:44:34.13 Jqw/8rJ7 私も今まさにそれ思ってた>AVばっかり http://mevius.5ch.net/test/read.cgi/tech/1455271513/82
83: デフォルトの名無しさん [sage] 2016/07/05(火) 13:25:11.27 ID:3gyxqmIo Juliaってデータ分析というより数値計算じゃないの 全部インメモリの固定長配列にブチ込んでループぶん回す昔ながらのやつだよね http://mevius.5ch.net/test/read.cgi/tech/1455271513/83
84: デフォルトの名無しさん [sage] 2016/07/06(水) 12:37:52.43 ID:T23wVNy/ 別にデータ分析以外の数値計算が出来ないと言っている訳じゃないし 昔ながらのやつを現代的に書けるというだけでも有意義だろう http://mevius.5ch.net/test/read.cgi/tech/1455271513/84
85: デフォルトの名無しさん [sage] 2016/07/06(水) 14:28:27.41 ID:X105+0ra なんで >>83 へのレスが >>84 みたいなことになるんだろ 文盲かな? http://mevius.5ch.net/test/read.cgi/tech/1455271513/85
86: デフォルトの名無しさん [sage] 2016/07/07(木) 11:04:48.07 ID:bjxB4lA1 なんで >>84 へのレスが >>85 みたいなことになるんだろ 文盲かな? http://mevius.5ch.net/test/read.cgi/tech/1455271513/86
87: デフォルトの名無しさん [] 2016/07/13(水) 17:16:46.46 ID:Zm0ukFfg 文盲乙 A Summary of Features https://www.youtube.com/watch?v=B9moDuSYzGo Calling C Code http://docs.julialang.org/en/release-0.4/manual/calling-c-and-fortran-code/ http://mevius.5ch.net/test/read.cgi/tech/1455271513/87
88: デフォルトの名無しさん [] 2016/07/15(金) 17:01:44.97 ID:8P+uiz2j 誤解されてるようなので >実際コード書いてても Python や C++ と比べて julia のコードって汚いんだよな 特定の条件がそろったときだけど 綺麗に描けることもある http://mevius.5ch.net/test/read.cgi/tech/1455271513/88
89: デフォルトの名無しさん [sage] 2016/07/15(金) 22:38:04.14 ID:3IYjBgbR 誤爆か 言語内DSLを別言語とみなすなら C++で綺麗に書けるものがjuliaで書くと汚いってことは考えにくいんだが? C++は数値を表す抽象型が標準にないのが致命的 そのくせ最近までサイズ固定の整数型がなかった pythonについてはラムダ式が好きになれない(汚いとは別だが) まぁjuliaに求めるものは綺麗さじゃなく実用性なんだ おっぱい的な意味で http://mevius.5ch.net/test/read.cgi/tech/1455271513/89
90: デフォルトの名無しさん [] 2016/07/18(月) 12:18:17.33 ID:DeXLreOM やっと気付いた 漏れはきっと end が嫌いなんだ http://mevius.5ch.net/test/read.cgi/tech/1455271513/90
91: デフォルトの名無しさん [] 2016/07/19(火) 12:43:59.43 ID:3sf6xm4M julia> reinterpret(Bool, 1) true julia> reinterpret(Bool, 2) false julia> reinterpret(Bool, 3) true julia> reinterpret(Bool, 4) false julia> reinterpret(Bool, 0) false julia> reinterpret(Bool, -1) true julia> reinterpret(Bool, -2) false ワロス http://mevius.5ch.net/test/read.cgi/tech/1455271513/91
92: デフォルトの名無しさん [sage] 2016/07/20(水) 12:33:08.99 ID:IKGpFUMW 笑いどころがわからない 配列用でないreinterpretはconvertと違って慎重に使うべきもの julia> reinterpret(Bool, 256) false これは気持ち悪い ……と開発者も思ったらしくv0.5ではエラーになる見込み http://mevius.5ch.net/test/read.cgi/tech/1455271513/92
93: デフォルトの名無しさん [sage] 2016/07/20(水) 21:10:41.79 ID:AXsJLLhK 間にscheme入ってるならpythonに近い文法に変換するのも簡単に出来るのでは? http://mevius.5ch.net/test/read.cgi/tech/1455271513/93
94: デフォルトの名無しさん [sage] 2016/07/20(水) 22:23:38.39 ID:IKGpFUMW pythonに近い文法を求めているならpython使えばいいんでは? てかschemeに何の関係が? http://mevius.5ch.net/test/read.cgi/tech/1455271513/94
95: デフォルトの名無しさん [] 2016/07/21(木) 18:47:37.68 ID:Vj/xPVWN S式でなんでもできるのは面白いな http://mevius.5ch.net/test/read.cgi/tech/1455271513/95
96: デフォルトの名無しさん [sage] 2016/07/21(木) 18:53:51.10 ID:IyjPITzN マクロで真っ黒 http://mevius.5ch.net/test/read.cgi/tech/1455271513/96
97: デフォルトの名無しさん [sage] 2016/07/22(金) 11:45:49.87 ID:f6dSUOKk >>7-11 >>25 >>28 >>30-32 定義はmacro使うと楽 macro c(restype, fnc, argtypes) local args = [symbol("a", n) for n in 1:length(argtypes.args)] quote $(esc(fnc))($(args...)) = ccall($(string(fnc)), $restype, $argtypes, $(args...)) end end @c UInt32 printf (Ptr{Cchar},) @c UInt32 printf (Ptr{Cchar}, UInt32,) printf(pointer(Array{UInt8,1}([65,66,0,67,68,0,0]))) printf("%s\n", pointer(Array{UInt8,1}([65,66,0,67,68,0,0]))) macro m(lib, restype, fnc, argtypes) local args = [symbol("a", n) for n in 1:length(argtypes.args)] quote $(esc(fnc))($(args...)) = ccall(($(string(fnc)), $(Expr(:quote, lib))), $restype, $argtypes, $(args...)) end end @m libcurl Cint curl_free (Ptr{Void},) @m libcurl Ptr{Cchar} curl_getenv (Ptr{Cchar},) @m libcurl Ptr{Cchar} curl_version () v = curl_getenv("TZ") printf(v) curl_free(v) printf(curl_version()) http://mevius.5ch.net/test/read.cgi/tech/1455271513/97
98: デフォルトの名無しさん [sage] 2016/07/22(金) 11:49:20.02 ID:f6dSUOKk >>9 macro w(lib, restype, fnc, argtypes) local args = [symbol("a", n) for n in 1:length(argtypes.args)] quote $(esc(fnc))($(args...)) = ccall(($(string(fnc)), $(Expr(:quote, lib))), stdcall, $restype, $argtypes, $(args...)) end end @w user32 UInt32 MessageBoxA (UInt32, Ptr{Cchar}, Ptr{Cchar}, UInt32,) MessageBoxA(C_NULL, "hage", "title", 1) http://mevius.5ch.net/test/read.cgi/tech/1455271513/98
99: デフォルトの名無しさん [] 2016/07/22(金) 13:42:42.08 ID:hQsD+JBa >>97-98 32bit 限定のコードを書くべきじゃないな http://mevius.5ch.net/test/read.cgi/tech/1455271513/99
100: デフォルトの名無しさん [sage] 2016/07/22(金) 15:31:36.78 ID:TotCshYe 呼び出すライブラリの仕様は確定しているのだから実用上問題ないのでは? http://mevius.5ch.net/test/read.cgi/tech/1455271513/100
101: デフォルトの名無しさん [sage] 2016/07/23(土) 10:27:35.38 ID:6lYjBmg5 ヒ素2さんかな(ヒソヒソ) http://mevius.5ch.net/test/read.cgi/tech/1455271513/101
102: デフォルトの名無しさん [] 2016/07/23(土) 11:05:54.45 ID:+Jc7SqHC x = UInt32(0x12345678) a = pointer_to_array(convert(Ptr{UInt8}, pointer_from_objref(x)), 4) a[2] = 51 println(@sprintf "%08X" x) # 0x12343378 http://mevius.5ch.net/test/read.cgi/tech/1455271513/102
103: デフォルトの名無しさん [] 2016/07/23(土) 11:07:52.09 ID:+Jc7SqHC immutable TT a::UInt16 b::UInt16 end x = UInt32(0x12345678) a = pointer_to_array(convert(Ptr{TT}, pointer_from_objref(x)), 1) println(a) # [TT(0x5678,0x1234)] a[].a = 0xaabb # ERROR: type TT is immutable http://mevius.5ch.net/test/read.cgi/tech/1455271513/103
104: デフォルトの名無しさん [] 2016/07/23(土) 11:12:28.69 ID:+Jc7SqHC type XX a::UInt16 b::UInt16 end x = UInt32(0x12345678) # ↑ここまでは動く a = pointer_to_array(convert(Ptr{XX}, pointer_from_objref(x)), 1) # ↑インタプリタ環境だとこれを実行した時点で環境ごと落ちる (下へ行くケースあり) println("reach here") println(a) # インタプリタの外から julia hoge.jl で実行したときは println(a) まで実行すると落ちる http://mevius.5ch.net/test/read.cgi/tech/1455271513/104
105: デフォルトの名無しさん [] 2016/07/23(土) 11:13:02.17 ID:+Jc7SqHC なぜでしょう?(unsafeなことしてるのは判ってるのですが・・・) http://mevius.5ch.net/test/read.cgi/tech/1455271513/105
106: デフォルトの名無しさん [sage] 2016/07/23(土) 12:22:24.60 ID:lFeXmVIf なぜって自分でbitstypeでもimmutableでもないって分かっている書きぶりじゃん その上で聞いているならソース読め http://mevius.5ch.net/test/read.cgi/tech/1455271513/106
107: デフォルトの名無しさん [sage] 2016/07/23(土) 17:00:36.64 ID:6lYjBmg5 へー Julia ってこういう壊れ方するのかー julia> n = UInt32(3) 0x00000003 julia> p = Ptr{UInt32}(pointer_from_objref(n)) Ptr{UInt32} @0x06e474f0 julia> pointer_to_array(p, 1) 1-element Array{UInt32,1}: 0x00000003 julia> UInt32(3) 0x00000003 julia> pointer_to_array(p, 1)[] = 9 9 julia> UInt32(3) 0x00000009 http://mevius.5ch.net/test/read.cgi/tech/1455271513/107
108: デフォルトの名無しさん [sage] 2016/07/23(土) 17:11:02.05 ID:6lYjBmg5 こうなってるのかー 気付かんかったわー julia> e = UInt32(11) 0x0000000b julia> f = UInt32(11) 0x0000000b julia> p = Ptr{UInt32}(pointer_from_objref(e)) Ptr{UInt32} @0x06e47770 julia> pointer_to_array(p, 1) 1-element Array{UInt32,1}: 0x0000000b julia> UInt32(11) 0x0000000b julia> pointer_to_array(p, 1)[] = 17 17 julia> UInt32(11) 0x00000011 julia> f 0x00000011 http://mevius.5ch.net/test/read.cgi/tech/1455271513/108
109: デフォルトの名無しさん [sage] 2016/07/24(日) 09:37:49.42 ID:wdZTIji9 インタラクティブシェルのヒストリーってどうやったら消せるん? http://mevius.5ch.net/test/read.cgi/tech/1455271513/109
110: デフォルトの名無しさん [sage] 2016/07/24(日) 09:48:14.01 ID:wdZTIji9 ~/.julia_history 消したら解決しました! http://mevius.5ch.net/test/read.cgi/tech/1455271513/110
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 635 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.019s