Today we will continue exploring techniques for debugging and tracing Elixir code that are so important for running and understanding production systems. In the past, we have discussed: how to debug your application how to trace systems with Erlyberly how to use the observer to introspect applications. The examples above always connected to systems running locally. Given Elixir’s and the Erlang VM
まっちゃら @ FOLIO @matsu_chara なるほど?akka内部でブロックしたい場合はアクター単位でブロックするのは無理だけど、dispatcherを工夫すればブロックしてもExecutionContext的な物がことなるからThread.sleepをよんでも大丈夫そうという知見を得た 2016-02-27 16:57:40 まっちゃら @ FOLIO @matsu_chara 普通のdispatcherでやると同じdispatcherを共有してる奴も(当たり前だけど)止まってしまうけどPinnedDispatcherを使えば1actor1threadになるから影響を受けなくはなる。 gist.github.com/matsu-chara/33… 2016-02-27 17:00:57
When writing Elixir apps you’ll typically find yourself building up state in a map. Typically these maps contain deep nesting. Updating anything deeply nested means you have to write something like: my_map = %{ foo: %{ bar: %{ baz: "my value" } } } new_bar_map = my_map |> Map.get(:foo) |> Map.get(:bar) |> Map.put(:baz, "new value") new_foo_map = my_map |> Map.get(:foo) |> Map.put(:bar, new_bar_map
Once you’re ready to deploy your Elixir application to multiple servers, you’ll want to take advantage of the distributed features that the runtime offers. For example, if you are using Phoenix channels, you’ll want broadcasts to be sent across the cluster. You can setup your deployment as a cluster in a few simple steps: Start by creating a new sys.config file in your project. We’ll conventionall
robot.ex Adventures in robotics with Lego Mindstorms and Elixir View on GitHub Download .zip Download .tar.gz September 19, 2019 Explore DDD 2019 Once more, I return to the Explore DDD conference. In this third in a trilogy of talks on autonomous robots, I present my latest re-design of a Society of Mind (i.e. multi-actor-based) implementation of Predictive Processing on Lego robots. I completely
First off, the md5 and sha1 cryptographic hash functions should only be used when security is not a requirement or when compatibility with legacy applications is needed. md5 was physically broken a very long time ago, and sha1 was theoretically broken back in 2005. When you need a hash for secure purposes, use a hash from the sha2 set (at least until sha3 starts appearing in libraries). Versioning
Results.md Erlang/OTP 18 RC-1 Elixir 1.1.0-dev new put 100 elements MapSet: 10000000 0.16 µs/op HashSet: 10000000 0.37 µs/op 200 elements MapSet: 10000000 0.16 µs/op HashSet: 10000000 0.42 µs/op 1000 elements MapSet: 10000000 0.21 µs/op HashSet: 10000000 0.51 µs/op 5000 elements MapSet: 10000000 0.26 µs/op HashSet: 10000000 0.60 µs/op delete 100 elements MapSet: 100000000 0.11 µs/op HashSet: 10000
In this post, we’ll cover… Basics of Atom, how to add Packages What packages are there for Elixir? Short review of packages Recommend packages to try Deeper coverage of the recommended packages This is a short guide on getting started with Elixir and setting up a development environment using the Atom Editor. I chose Atom because it is OpenSource, free, cross-platform, highly hackable and pretty d
Using Recursion In Elixir To Break Your OO Brain September 04, 2015 | I have to start out each post this way: I have no idea what I'm doing, but dammit am I having fun. In the fist few posts I ham-handedly threw some code against the wall to see what would ... stick? Anyway It worked, but I realized (as I did with Ruby, wonderfully) that there just has to be a better way. I don't want to diminish
2015/06/02に開催されたElixirの勉強会 Shinjuku.ex #10 の資料。 * イベント情報: http://shinjukuex.connpass.com/event/15229/ * PowerPointのファイルダウンロード: http://bit.ly/perfect_elixir_information_gathering 資料のライセンスはクリエイティブ・コモンズで、自己紹介ページのみBY・ND、それ以外は全てCCゼロ(いかなる権利も保有しない)です。必要に応じて自己紹介ページを取り除き、あとはご自由にご利用下さい。 改版を行った場合は、 http://twitter.com/keithseahus より、 #shinjukuex タグ付きでお知らせします。Read less
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く