Julia Juno Jupyter part1 [無断転載禁止]©2ch.net (745レス)
Julia Juno Jupyter part1 [無断転載禁止]©2ch.net http://mevius.5ch.net/test/read.cgi/tech/1455271513/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
12: デフォルトの名無しさん [sage] 2016/02/13(土) 10:31:38.04 ID:Qsay8O0p >>8 >OpenSSL/1.0.1e ワロス http://mevius.5ch.net/test/read.cgi/tech/1455271513/12
13: デフォルトの名無しさん [] 2016/02/13(土) 11:59:14.88 ID:3L3e3K/U もう少しちらうら julia> bytes2hex([65,97,66,98,0x5c]) ERROR: MethodError: `bytes2hex` has no method matching bytes2hex(::Array{Int32,1}) julia> bytes2hex(Array{UInt8,1}([65,97,66,98,0x5c])) "416142625c" julia> bytestring(Array{UInt8,1}([65,97,66,98,0x5c])) "AaBb\\" julia> hex2bytes("416142625c") 5-element Array{UInt8,1}: 0x41 0x61 0x42 0x62 0x5c julia> string2bytes("AaBb\\") ERROR: UndefVarError: string2bytes not defined julia> stringbytes("AaBb\\") ERROR: UndefVarError: stringbytes not defined julia> read(IOBuffer("AaBb\\")) ERROR: MethodError: `read` has no method matching read(::Base.AbstractIOBuffer{Array{UInt8,1}}) julia> read(IOBuffer("AaBb\\"), UInt8) 0x41 julia> read(IOBuffer("AaBb\\"), UInt8, length("AaBb\\")) 5-element Array{UInt8,1}: 0x41 0x61 0x42 0x62 0x5c んー マニュアルにはreaddim()があるって書いてあるのに・・・ 何かimport忘れてるとか? length省略できんのもなんだかな 勘違いならいいけど http://mevius.5ch.net/test/read.cgi/tech/1455271513/13
14: デフォルトの名無しさん [sage] 2016/02/13(土) 17:12:04.67 ID:AfSbfh5s ちょっと前から同名のAV女優が出てきて検索がちょっとアレになったよね 運が悪い http://mevius.5ch.net/test/read.cgi/tech/1455271513/14
15: デフォルトの名無しさん [sage] 2016/02/13(土) 17:45:27.64 ID:6qRaMcc6 "どうすればPythonをJuliaと同じくらい速く動かせるのか? : 様々なやり方で計算の高速化を図る" http://postd.cc/python_meets_julia_micro_performance/ http://mevius.5ch.net/test/read.cgi/tech/1455271513/15
16: デフォルトの名無しさん [] 2016/02/13(土) 22:04:46.56 ID:zoieo+tE フォートランっぽい文法狂おしいほど嫌い http://mevius.5ch.net/test/read.cgi/tech/1455271513/16
17: デフォルトの名無しさん [sage] 2016/02/14(日) 11:00:37.07 ID:7sraJ7/r パッケージがおれおれやってみたばっかりで まともなものが少ねーじゃねーか これ PyPI よりひでーぞ github っつーかオプソは害だな http://mevius.5ch.net/test/read.cgi/tech/1455271513/17
18: デフォルトの名無しさん [] 2016/02/14(日) 11:01:38.90 ID:7sraJ7/r >>16 21世紀にもなって添え字が 1 から始まるとかもうね http://mevius.5ch.net/test/read.cgi/tech/1455271513/18
19: デフォルトの名無しさん [sage] 2016/02/14(日) 11:11:08.67 ID:FXwepV/m おまいらなんだかんだ言って みんなそれなりにやってんだな ニヤニヤ http://mevius.5ch.net/test/read.cgi/tech/1455271513/19
20: デフォルトの名無しさん [] 2016/02/14(日) 19:24:28.30 ID:UnbFC5qc >1 乙 >14 前スレで見た覚えがある >16 それな http://mevius.5ch.net/test/read.cgi/tech/1455271513/20
21: デフォルトの名無しさん [] 2016/02/15(月) 10:16:09.06 ID:TvNTryet コンパイル中のエラーよりも実行時の型エラーの方が厄介な言語だなこいつは。 慣れれば問題ないが。 http://mevius.5ch.net/test/read.cgi/tech/1455271513/21
22: デフォルトの名無しさん [] 2016/02/15(月) 10:20:41.18 ID:TvNTryet >>13 非推奨っぽいが、 これでいいらしい。 "AaBb\\".data 代入も出来るようだ。 s = "AaBb\\" s.data[2] = UInt8(64) s http://mevius.5ch.net/test/read.cgi/tech/1455271513/22
23: デフォルトの名無しさん [] 2016/02/15(月) 10:21:13.05 ID:TvNTryet これは割りと嬉しいかも。 julia> @sprintf "ab [%7s]" "xあx" "ab [ xあx]" julia> @sprintf "ab [%-7s]" "xあx" "ab [xあx ]" julia> @sprintf "ab [%7s]" "xxx" "ab [ xxx]" julia> @sprintf "ab [%-7s]" "xxx" "ab [xxx ]" http://mevius.5ch.net/test/read.cgi/tech/1455271513/23
24: デフォルトの名無しさん [] 2016/02/15(月) 10:31:07.93 ID:TvNTryet うむむ julia> @sprintf "ab [%-7s]" bytestring(hex2bytes("")) "ab [ ]" julia> @sprintf "ab [%-7s]" bytestring(hex2bytes("4141E381824141")) "ab [AAあAA ]" julia> @sprintf "ab [%-7s]" bytestring(hex2bytes("4141E981824141")) "ab [AA遂AA ]" julia> @sprintf "ab [%-7s]" bytestring(hex2bytes("4141Ee81824141")) "ab [AA\ue042AA ]" julia> @sprintf "ab [%-7s]" bytestring(hex2bytes("4141Ef81824141")) "ab [AA\uf042AA ]" julia> @sprintf "ab [%-7s]" bytestring(hex2bytes("4141E881824141")) "ab [AA聂AA ]" julia> @sprintf "ab [%-7s]" bytestring(hex2bytes("4141E8e8824141")) "ab [AA騂AA ]" julia> @sprintf "ab [%-7s]" bytestring(hex2bytes("4141E9e8824141")) "ab [AAꨂAA ]" julia> @sprintf "ab [%-7s]" bytestring(hex2bytes("414155aa554141")) ERROR: UnicodeError: invalid character index in next at unicode/utf8.jl:65 in strwidth at strings/basic.jl:205 [inlined code] from printf.jl:159 in anonymous at no file:0 julia> @sprintf "ab [%-7s]" hex2bytes("414155aa554141") "ab [UInt8[0x41,0x41,0x55,0xaa,0x55,0x41,0x41]]" http://mevius.5ch.net/test/read.cgi/tech/1455271513/24
25: デフォルトの名無しさん [sage] 2016/02/15(月) 11:19:37.91 ID:TvNTryet >>11 julia> ccall((:curl_version, :libcurl), Ptr{Cchar}, ()) Ptr{Int8} @0x6b29c060 julia> @sprintf "%s" ccall((:curl_version, :libcurl), Ptr{Cchar}, ()) "Ptr{Int8} @0x6b29c060" んーこれも期待した動作と違うなぁ。 http://mevius.5ch.net/test/read.cgi/tech/1455271513/25
26: デフォルトの名無しさん [sage] 2016/02/15(月) 11:28:27.71 ID:TvNTryet >>16 ifに括弧なしは一見便利だけどend強制されるのはPythonに慣れてるとうざく感じる。 julia> Array{UInt8}([1:n;]) == map(a -> UInt8(a), 1:n) true ちょっと気持ち悪いところもある。 http://mevius.5ch.net/test/read.cgi/tech/1455271513/26
27: デフォルトの名無しさん [sage] 2016/02/15(月) 11:32:12.26 ID:TvNTryet julia> Array{UInt8}([1:n;]) == map(a -> UInt8(a), (1:n)) true julia> Array{UInt8}([1:n]) == map(a -> UInt8(a), (1:n)) 警告出るが true (二回目からは警告出なくなる?) julia> Array{UInt8}((1:n)) == map(a -> UInt8(a), (1:n)) エラー http://mevius.5ch.net/test/read.cgi/tech/1455271513/27
28: デフォルトの名無しさん [sage] 2016/02/15(月) 11:45:55.52 ID:2YjvKDPc >>25 bytestring(ccall((:curl_version, :libcurl), Ptr{Cchar}, ())) http://mevius.5ch.net/test/read.cgi/tech/1455271513/28
29: デフォルトの名無しさん [sage] 2016/02/15(月) 11:49:21.03 ID:TvNTryet >>28 有賀?。 >>24でも書いたけどbytestringってこんなデータ来ると死ぬから使いたくないなぁ。 julia> bytestring(hex2bytes("414155aa554141")) http://mevius.5ch.net/test/read.cgi/tech/1455271513/29
30: デフォルトの名無しさん [sage] 2016/02/15(月) 12:16:36.12 ID:TvNTryet julia> pointer_to_array(ccall((:curl_version, :libcurl), Ptr{Cchar}, ()), n) でnバイト分のArray{Int8}になるみたいだけどなぜかデフォでUInt8じゃないのが気に入らないなぁ。 julia> Array{UInt8}(pointer_to_array(ccall((:curl_version, :libcurl), Ptr{Cchar}, ()), n)) とかいちいち書くの面倒だなぁ。 http://mevius.5ch.net/test/read.cgi/tech/1455271513/30
31: デフォルトの名無しさん [sage] 2016/02/15(月) 12:19:08.24 ID:2YjvKDPc >>30 Cchar == UInt8 # false Cchar == Int8 # true http://mevius.5ch.net/test/read.cgi/tech/1455271513/31
32: デフォルトの名無しさん [sage] 2016/02/15(月) 12:21:09.84 ID:TvNTryet >>31 julia> pointer_to_array(ccall((:curl_version, :libcurl), Ptr{UInt8}, ()), n) できました!! ありがとうございます!!! http://mevius.5ch.net/test/read.cgi/tech/1455271513/32
33: デフォルトの名無しさん [sage] 2016/02/15(月) 18:04:10.07 ID:0lvw83wi 意味わからずbytestring多用するのは危険 http://mevius.5ch.net/test/read.cgi/tech/1455271513/33
34: デフォルトの名無しさん [sage] 2016/02/16(火) 11:03:22.23 ID:OHS4PN3k 今はまだ julia 0.3.2 対応みたいだけど web から試せるよ https://try.jupyter.org/ IJulia をインストールすれば自分のサイトでもできるよ https://github.com/JuliaLang/IJulia.jl http://mevius.5ch.net/test/read.cgi/tech/1455271513/34
35: デフォルトの名無しさん [sage] 2016/02/16(火) 11:49:26.30 ID:kTgVK006 >>14 ちょっと前から声が大きいだけで連投するうざいのが住み着いて2ちゃんはちょっとアレになったよね 筋が悪い http://mevius.5ch.net/test/read.cgi/tech/1455271513/35
36: デフォルトの名無しさん [sage] 2016/02/16(火) 12:08:19.40 ID:OHS4PN3k 日本語サイトしか見ない病だ http://mevius.5ch.net/test/read.cgi/tech/1455271513/36
37: デフォルトの名無しさん [] 2016/02/16(火) 17:07:24.65 ID:ZLhr12yF ツイッターでjulia検索してもひどい 最悪だ http://mevius.5ch.net/test/read.cgi/tech/1455271513/37
38: デフォルトの名無しさん [sage] 2016/02/16(火) 17:38:07.56 ID:3nSqd4oT 英語だが Julia をつかった科学計算を丁寧に解説しているサイト ちなみに著者の一人 Sargent はノーベル経済学賞をとっている http://quant-econ.net/jl/ http://mevius.5ch.net/test/read.cgi/tech/1455271513/38
39: デフォルトの名無しさん [] 2016/02/17(水) 08:55:28.12 ID:onBH4M/w Python版はこちら http://quant-econ.net/py/ http://mevius.5ch.net/test/read.cgi/tech/1455271513/39
40: デフォルトの名無しさん [sage] 2016/02/18(木) 11:45:57.02 ID:S96kZ0X7 >>38 GJ 勉強になります ありがとう http://mevius.5ch.net/test/read.cgi/tech/1455271513/40
41: デフォルトの名無しさん [sage] 2016/02/18(木) 15:58:36.56 ID:HBijeS9p exe 化してみたら dll いっぱい作られて 200MB 超えるな exe なのにロードして実行されるまで時間かかりすぎる 普通に julia --precompiled=yes hoge.jl で実行する方が速かった python の exe 化と大して変わらん http://mevius.5ch.net/test/read.cgi/tech/1455271513/41
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 704 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.010s