This post was adapted from a talk called “String Theory”, which I co-presented with James Edward Gray II at Elixir & Phoenix Conf 2016. My posts on Elixir and Unicode were also part of that talk. It’s been said that “the key to making programs fast is to make them do practically nothing.” Imagine you’re going to write some data to a file, or send a web response to a browser. What’s the minimum amo
This post was adapted from a talk called “String Theory”, which I co-presented with James Edward Gray II at Elixir & Phoenix Conf 2016. My posts on Elixir and Unicode were also part of that talk. IO Lists and Phoenix In my last post, I showed how Elixir’s IO lists enable us to build and write output with minimal work and memory usage. This is nice enough for writing files, but it’s absolutely kill
/Users/niku% iex Interactive Elixir (1.0.0) - press Ctrl+C to exit (type h() ENTER for help) iex(1)> IO.puts "hello" hello :ok iex(2)> 1 + 1 2 以下の説明は,iex を起動して,自分で試しながら読むと習得が早いと思います. NOTE: 入力に失敗してよくわからなくなったとき,Ruby の irb だと Ctrl-C を連打して入力をキャンセルすると思います.一方 Elixir の iex で Ctrl-C を連打すると iex が終了してしまうので,キーボードから #iex:break と打ち込みましょう.これで入力をキャンセルできます.詳しくは IEx の Expressions in IEx に書いてあります. 表示 (IO.write/1, I
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く