diff options
author | Loïc Hoguin <[email protected]> | 2017-10-03 13:39:41 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-10-03 13:39:41 +0200 |
commit | b5d4cb91f80c833795a2d87050c3674bb7aecdc5 (patch) | |
tree | 62bf0ad8326006fcd3407fcb7c34c844c0dc0874 /articles/page/2/index.html | |
parent | 1f8d51dd2692fc3978080419987bbe4d49a41a90 (diff) | |
download | ninenines.eu-b5d4cb91f80c833795a2d87050c3674bb7aecdc5.tar.gz ninenines.eu-b5d4cb91f80c833795a2d87050c3674bb7aecdc5.tar.bz2 ninenines.eu-b5d4cb91f80c833795a2d87050c3674bb7aecdc5.zip |
Update Hugo, docs
Diffstat (limited to 'articles/page/2/index.html')
-rw-r--r-- | articles/page/2/index.html | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/articles/page/2/index.html b/articles/page/2/index.html index 6cb50477..75561425 100644 --- a/articles/page/2/index.html +++ b/articles/page/2/index.html @@ -7,7 +7,7 @@ <meta name="description" content=""> <meta name="author" content="Loïc Hoguin based on a design from (Soft10) Pol Cámara"> - <meta name="generator" content="Hugo 0.17" /> + <meta name="generator" content="Hugo 0.26" /> <title>Nine Nines: Articles</title> @@ -79,9 +79,9 @@ </p> </header> - <p>We will be adding atomic integer expressions to our language.
These look as follow in Erlang: -
42.
And the result of this expression is of course 42. -
We will be running this expression at compile time, since we
don’t have the means to run code at runtime yet. This will of
course result in no module being compiled, but that’s OK, it will
allow us to discuss a few important things we’ll have to plan for
later on.</p> + <p>We will be adding atomic integer expressions to our language. These look as follow in Erlang: + 42. And the result of this expression is of course 42. + We will be running this expression at compile time, since we don’t have the means to run code at runtime yet. This will of course result in no module being compiled, but that’s OK, it will allow us to discuss a few important things we’ll have to plan for later on.</p> <p style="text-align:right"> <a class="read_more" href="https://ninenines.eu/articles/xerl-0.3-atomic-expressions/">Read More</a> @@ -98,10 +98,10 @@ </header> <p>Everything is an expression. -
This sentence carries profound meaning. We will invoke it many
times over the course of these articles. -
If everything is an expression, then the language shouldn’t have
any problem with me defining two modules in the same source file. -
mod first_module
begin
end
mod second_module
begin
end
Likewise, it shouldn’t have any problem with me defining a
module inside another module. -
mod out_module
begin
mod in_module
begin
end
end
Of course, in the context of the Erlang VM, these two snippets
are equivalent; there is nothing preventing you from calling the
in_module module from any other module.</p> + This sentence carries profound meaning. We will invoke it many times over the course of these articles. + If everything is an expression, then the language shouldn’t have any problem with me defining two modules in the same source file. + mod first_module begin end mod second_module begin end Likewise, it shouldn’t have any problem with me defining a module inside another module. + mod out_module begin mod in_module begin end end Of course, in the context of the Erlang VM, these two snippets are equivalent; there is nothing preventing you from calling the in_module module from any other module.</p> <p style="text-align:right"> <a class="read_more" href="https://ninenines.eu/articles/xerl-0.2-two-modules/">Read More</a> @@ -117,9 +117,9 @@ </p> </header> - <p>Let’s build a programming language. I call it Xerl: eXtended ERLang.
It’ll be an occasion for us to learn a few things, especially me. -
Unlike in Erlang, in this language, everything is an expression.
This means that modules and functions are expression, and indeed that
you can have more than one module per file. -
We are just starting, so let’s no go ahead of ourselves here. We’ll
begin with writing the code allowing us to compile an empty module.</p> + <p>Let’s build a programming language. I call it Xerl: eXtended ERLang. It’ll be an occasion for us to learn a few things, especially me. + Unlike in Erlang, in this language, everything is an expression. This means that modules and functions are expression, and indeed that you can have more than one module per file. + We are just starting, so let’s no go ahead of ourselves here. We’ll begin with writing the code allowing us to compile an empty module.</p> <p style="text-align:right"> <a class="read_more" href="https://ninenines.eu/articles/xerl-0.1-empty-modules/">Read More</a> @@ -135,8 +135,8 @@ </p> </header> - <p>Last week I was speaking at the
London Erlang Factory Lite
where I presented a live demonstration of building an FTP server using
Ranch.
As there was no slide, you should use this article as a reference instead. -
The goal of this article is to showcase how to use Ranch for writing
a network protocol implementation, how Ranch gets out of the way to let
you write the code that matters, and the common techniques used when
writing servers.</p> + <p>Last week I was speaking at the London Erlang Factory Lite where I presented a live demonstration of building an FTP server using Ranch. As there was no slide, you should use this article as a reference instead. + The goal of this article is to showcase how to use Ranch for writing a network protocol implementation, how Ranch gets out of the way to let you write the code that matters, and the common techniques used when writing servers.</p> <p style="text-align:right"> <a class="read_more" href="https://ninenines.eu/articles/ranch-ftp/">Read More</a> @@ -152,10 +152,10 @@ </p> </header> - <p>Everyone knows Tic Tac Toe,
right? -
Players choose either to be the Xs or the Os, then place their symbol
on a 3x3 board one after another, trying to create a line of 3 of them. -
Writing an algorithm to check for victory sounds easy, right? It’s
easily tested, considering there’s only 8 possible winning rows (3 horizontal,
3 vertical and 2 diagonal). -
In Erlang though, you probably wouldn’t want an algorithm.</p> + <p>Everyone knows Tic Tac Toe, right? + Players choose either to be the Xs or the Os, then place their symbol on a 3x3 board one after another, trying to create a line of 3 of them. + Writing an algorithm to check for victory sounds easy, right? It’s easily tested, considering there’s only 8 possible winning rows (3 horizontal, 3 vertical and 2 diagonal). + In Erlang though, you probably wouldn’t want an algorithm.</p> <p style="text-align:right"> <a class="read_more" href="https://ninenines.eu/articles/tictactoe/">Read More</a> |