How to sleep / wait for one second? Best I could find was something like this (in iex): IO.puts "foo" ; :timer.sleep(1); IO.puts "bar" But both of my puts happen with no delay.
はじめに 皆さん、おはこんばんちは。 年の瀬です。 コミケの入稿割引が減っていきます。 第2回 企業対抗トーナメントも大晦日に、あります。ギルティです。 正直色々忙しいですね。分かります。だって師走だもの。 そんな時は肩の力をいったん抜いて、Elixir on Phoenix、入門していきましょう。 CentOS + Erlang + Elixir + PhoenixのDockerイメージで今日から始めるElixir on Phoenix入門 【中級編】drone.io + exrmで今日から始めるElixir on Phoenixホットデプロイ入門 前回、前々回に引き続き、Elixir/Phoenixの入門記事中級編です。 Phoenixを使った時のサーバーサイドの開発は今年一年を通して色々とナレッジも溜まってきたと思うんですが、 フロントサイドのベストプラクティスが欲しいなあというのを
The next three chapters of the tutorial are online: Modules, Syntax in Functions and Types (or lack thereof). We'll see how to write modules and the functions that go in them, compile our code for the Erlang VM. Then functions are pushed a bit further: we explore more pattern matching, define what guards are, learn to write conditional expressions and to convert types.
Is there any portable format for elixir code? Other than the obvious tar. For example, if I wanted to provide one or more modules to a client or fellow developers on another team (without the use of github). How would I do that? The answer in some other familiar languages are: Ruby - gem, Java - jar, Python - egg, ect.
What's the difference between use and import? use is a simple mechanism for using a given module into the current context https://hexdocs.pm/elixir/Kernel.SpecialForms.html#import/2 Imports function and macros from other modules Looks like one difference is import let's you pick out the specific functions/macros whereas use brings everything in. Are there other differences? When would you use one
Release Handling PrinciplesAn important feature of the Erlang programming language is the ability to change module code at runtime, code replacement, as described in Code Replacement in the Erlang Reference Manual. Based on this feature, the OTP application SASL provides a framework for upgrading and downgrading between different versions of an entire release in runtime. This is called release han
IntroductionThe external term format is mainly used in the distribution mechanism of Erlang. As Erlang has a fixed number of types, there is no need for a programmer to define a specification for the external format used within some application. All Erlang terms have an external representation and the interpretation of the different terms is application-specific. In Erlang the BIF erlang:term_to_b
We build transformative solutions for the world’s most ambitious companies. By providing user-focused consultancy, high tech capabilities and connection to diverse communities. We’re the world-leading experts at building massively scalable distributed systems. We have over 20 years of experience building critical digital infrastructure that scales to billions of users without error. We create a re
Phoenix Framework は Rails 風なリッチなフレームワークである割にデフォルトでもそこそこ速いことが知られています.例えば次のようなベンチマークがあります. しかし,それよりも私がおもしろいと思った特長に,リアルタイム通信機能がフレームワークに統合されている点があります.しかしまだ日本ではあまり知られておりません.そこで Phoenix Framework の最新版である v0.17.0 における wiki にある Channel の記事を日本語へと翻訳しました. 翻訳や内容におかしなところがあれば指摘お待ちしております チャンネルはフェニックスの本当に刺激的で強力な部分で,アプリケーションへ簡単にソフトリアルタイムな特徴を追加することができるようになります.チャンネルは簡単なアイディア - メッセージを送る,受けとる に基づいています.送信者はトピックスに関するメッセ
Erlang/Elixir Syntax: A Crash Course This is a quick introduction to the Elixir syntax for Erlang developers and vice-versa. It is the absolute minimum amount of knowledge you need in order to understand Elixir/Erlang code, support interoperability, read the docs, sample code, etc. Running code Erlang The fastest way to run some code is to launch the Erlang shell – erl. Many code snippets on this
Phoenix is the most loved web framework for the third year in a row. See results → Peace of mind from prototype to production Build rich, interactive web applications quickly, with less code and fewer moving parts. Join our growing community of developers using Phoenix to craft APIs, HTML5 apps and more, for fun or at scale. defmodule TimelineLive do use Phoenix.LiveView def render(assigns) do ~H"
All Elixir code runs inside lightweight threads of execution (called processes) that are isolated and exchange information via messages: current_process = self() # Spawn an Elixir process (not an operating system one!) spawn_link(fn -> send(current_process, {:msg, "hello world"}) end) # Block until the message is received receive do {:msg, contents} -> IO.puts(contents) end Due to their lightweigh
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く