Skip to content

Commit

Permalink
deploy: 20dfdd8
Browse files Browse the repository at this point in the history
  • Loading branch information
tassiluca committed Mar 4, 2024
1 parent 0f739b8 commit 8bff636
Show file tree
Hide file tree
Showing 14 changed files with 88 additions and 71 deletions.
4 changes: 2 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<link rel="manifest" href="/PPS-22-direct-style-experiments/manifest.json">
<link rel="icon" href="/PPS-22-direct-style-experiments/favicon.png" >
<link rel="canonical" href="https://tassiluca.github.io/PPS-22-direct-style-experiments/404.html">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.3079c33e46bf5b308bdbfa938bf6043ba270f82b73e2ada92c1da0aacca6df5c.css" integrity="sha256-MHnDPka/WzCL2/qTi/YEO6Jw&#43;Ctz4q2pLB2gqsym31w=" crossorigin="anonymous">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.42504dd4648e8da78376617fd32b73c3ae6afbe9f805c36868bc831b07002332.css" integrity="sha256-QlBN1GSOjaeDdmF/0ytzw65q&#43;&#43;n4BcNoaLyDGwcAIzI=" crossorigin="anonymous">
<script defer src="/PPS-22-direct-style-experiments/flexsearch.min.js"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.7a116cc67b7551be7d8aef10321ace3563e766b49af7377987d400daa542b9aa.js" integrity="sha256-ehFsxnt1Ub59iu8QMhrONWPnZrSa9zd5h9QA2qVCuao=" crossorigin="anonymous"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.19d8f85e12429745e6f1107a6dff3b5cfe2a5c515d78e329be453ad6790c6ab3.js" integrity="sha256-Gdj4XhJCl0Xm8RB6bf87XP4qXFFdeOMpvkU61nkMarM=" crossorigin="anonymous"></script>
<!--
Made with Book Theme
https://github.com/alex-shpak/hugo-book
Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<link rel="manifest" href="/PPS-22-direct-style-experiments/manifest.json">
<link rel="icon" href="/PPS-22-direct-style-experiments/favicon.png" >
<link rel="canonical" href="https://tassiluca.github.io/PPS-22-direct-style-experiments/categories/">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.3079c33e46bf5b308bdbfa938bf6043ba270f82b73e2ada92c1da0aacca6df5c.css" integrity="sha256-MHnDPka/WzCL2/qTi/YEO6Jw&#43;Ctz4q2pLB2gqsym31w=" crossorigin="anonymous">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.42504dd4648e8da78376617fd32b73c3ae6afbe9f805c36868bc831b07002332.css" integrity="sha256-QlBN1GSOjaeDdmF/0ytzw65q&#43;&#43;n4BcNoaLyDGwcAIzI=" crossorigin="anonymous">
<script defer src="/PPS-22-direct-style-experiments/flexsearch.min.js"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.7a116cc67b7551be7d8aef10321ace3563e766b49af7377987d400daa542b9aa.js" integrity="sha256-ehFsxnt1Ub59iu8QMhrONWPnZrSa9zd5h9QA2qVCuao=" crossorigin="anonymous"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.19d8f85e12429745e6f1107a6dff3b5cfe2a5c515d78e329be453ad6790c6ab3.js" integrity="sha256-Gdj4XhJCl0Xm8RB6bf87XP4qXFFdeOMpvkU61nkMarM=" crossorigin="anonymous"></script>
<link rel="alternate" type="application/rss+xml" href="https://tassiluca.github.io/PPS-22-direct-style-experiments/categories/index.xml" title="PPS-22-direct-style-experiments" />
<!--
Made with Book Theme
Expand Down
18 changes: 8 additions & 10 deletions docs/01-boundaries/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
<meta property="og:type" content="article" />
<meta property="og:url" content="https://tassiluca.github.io/PPS-22-direct-style-experiments/docs/01-boundaries/" /><meta property="article:section" content="docs" />

<meta property="article:modified_time" content="2024-03-04T18:57:39+01:00" />
<meta property="article:modified_time" content="2024-03-04T20:10:46+01:00" />

<title>01 Boundaries | PPS-22-direct-style-experiments</title>
<link rel="manifest" href="/PPS-22-direct-style-experiments/manifest.json">
<link rel="icon" href="/PPS-22-direct-style-experiments/favicon.png" >
<link rel="canonical" href="https://tassiluca.github.io/PPS-22-direct-style-experiments/docs/01-boundaries/">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.3079c33e46bf5b308bdbfa938bf6043ba270f82b73e2ada92c1da0aacca6df5c.css" integrity="sha256-MHnDPka/WzCL2/qTi/YEO6Jw&#43;Ctz4q2pLB2gqsym31w=" crossorigin="anonymous">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.42504dd4648e8da78376617fd32b73c3ae6afbe9f805c36868bc831b07002332.css" integrity="sha256-QlBN1GSOjaeDdmF/0ytzw65q&#43;&#43;n4BcNoaLyDGwcAIzI=" crossorigin="anonymous">
<script defer src="/PPS-22-direct-style-experiments/flexsearch.min.js"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.7a116cc67b7551be7d8aef10321ace3563e766b49af7377987d400daa542b9aa.js" integrity="sha256-ehFsxnt1Ub59iu8QMhrONWPnZrSa9zd5h9QA2qVCuao=" crossorigin="anonymous"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.19d8f85e12429745e6f1107a6dff3b5cfe2a5c515d78e329be453ad6790c6ab3.js" integrity="sha256-Gdj4XhJCl0Xm8RB6bf87XP4qXFFdeOMpvkU61nkMarM=" crossorigin="anonymous"></script>
<!--
Made with Book Theme
https://github.com/alex-shpak/hugo-book
Expand Down Expand Up @@ -291,22 +291,20 @@ <h3 id="optional">








<a href="https://tassiluca.github.io/PPS-22-direct-style-experiments/PPS-22-direct-style-experiments/" target="_blank" rel="noopener" class="book-btn">
<a href="/PPS-22-direct-style-experiments/" class="book-btn">
<strong>Home</strong>
</a>









<a href="https://tassiluca.github.io/PPS-22-direct-style-experiments/PPS-22-direct-style-experiments/docs/02-basics/" target="_blank" rel="noopener" class="book-btn">
<a href="/PPS-22-direct-style-experiments/docs/02-basics/" class="book-btn">
<strong>Next</strong>: Basic asynchronous constructs
</a>

Expand All @@ -319,7 +317,7 @@ <h3 id="optional">
<div class="flex flex-wrap justify-between">


<div><a class="flex align-center" href="https://github.com/tassiLuca/PPS-22-direct-style-experiments/commit/7a77702ad9fad2340a958cd8ad5a89c99bfc5294" title='Last modified by Luca Tassinari | March 4, 2024' target="_blank" rel="noopener">
<div><a class="flex align-center" href="https://github.com/tassiLuca/PPS-22-direct-style-experiments/commit/20dfdd862e74d2235aaa27918880138a43b71025" title='Last modified by Luca Tassinari | March 4, 2024' target="_blank" rel="noopener">
<img src="/PPS-22-direct-style-experiments/svg/calendar.svg" class="book-icon" alt="Calendar" />
<span>March 4, 2024</span>
</a>
Expand Down
18 changes: 8 additions & 10 deletions docs/02-basics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
<meta property="og:type" content="article" />
<meta property="og:url" content="https://tassiluca.github.io/PPS-22-direct-style-experiments/docs/02-basics/" /><meta property="article:section" content="docs" />

<meta property="article:modified_time" content="2024-03-04T18:57:39+01:00" />
<meta property="article:modified_time" content="2024-03-04T20:10:46+01:00" />

<title>02 Basics | PPS-22-direct-style-experiments</title>
<link rel="manifest" href="/PPS-22-direct-style-experiments/manifest.json">
<link rel="icon" href="/PPS-22-direct-style-experiments/favicon.png" >
<link rel="canonical" href="https://tassiluca.github.io/PPS-22-direct-style-experiments/docs/02-basics/">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.3079c33e46bf5b308bdbfa938bf6043ba270f82b73e2ada92c1da0aacca6df5c.css" integrity="sha256-MHnDPka/WzCL2/qTi/YEO6Jw&#43;Ctz4q2pLB2gqsym31w=" crossorigin="anonymous">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.42504dd4648e8da78376617fd32b73c3ae6afbe9f805c36868bc831b07002332.css" integrity="sha256-QlBN1GSOjaeDdmF/0ytzw65q&#43;&#43;n4BcNoaLyDGwcAIzI=" crossorigin="anonymous">
<script defer src="/PPS-22-direct-style-experiments/flexsearch.min.js"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.7a116cc67b7551be7d8aef10321ace3563e766b49af7377987d400daa542b9aa.js" integrity="sha256-ehFsxnt1Ub59iu8QMhrONWPnZrSa9zd5h9QA2qVCuao=" crossorigin="anonymous"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.19d8f85e12429745e6f1107a6dff3b5cfe2a5c515d78e329be453ad6790c6ab3.js" integrity="sha256-Gdj4XhJCl0Xm8RB6bf87XP4qXFFdeOMpvkU61nkMarM=" crossorigin="anonymous"></script>
<!--
Made with Book Theme
https://github.com/alex-shpak/hugo-book
Expand Down Expand Up @@ -794,22 +794,20 @@ <h2 id="takeaways">








<a href="https://tassiluca.github.io/PPS-22-direct-style-experiments/PPS-22-direct-style-experiments/docs/01-boundaries" target="_blank" rel="noopener" class="book-btn">
<a href="/PPS-22-direct-style-experiments/docs/01-boundaries/" class="book-btn">
<strong>Previous</strong>: boundary &amp; break
</a>









<a href="https://tassiluca.github.io/PPS-22-direct-style-experiments/PPS-22-direct-style-experiments/docs/03-channels/" target="_blank" rel="noopener" class="book-btn">
<a href="/PPS-22-direct-style-experiments/docs/03-channels/" class="book-btn">
<strong>Next</strong>: Channels as a communication primitive
</a>

Expand All @@ -822,7 +820,7 @@ <h2 id="takeaways">
<div class="flex flex-wrap justify-between">


<div><a class="flex align-center" href="https://github.com/tassiLuca/PPS-22-direct-style-experiments/commit/7a77702ad9fad2340a958cd8ad5a89c99bfc5294" title='Last modified by Luca Tassinari | March 4, 2024' target="_blank" rel="noopener">
<div><a class="flex align-center" href="https://github.com/tassiLuca/PPS-22-direct-style-experiments/commit/20dfdd862e74d2235aaa27918880138a43b71025" title='Last modified by Luca Tassinari | March 4, 2024' target="_blank" rel="noopener">
<img src="/PPS-22-direct-style-experiments/svg/calendar.svg" class="book-icon" alt="Calendar" />
<span>March 4, 2024</span>
</a>
Expand Down
18 changes: 8 additions & 10 deletions docs/03-channels/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<meta property="og:type" content="article" />
<meta property="og:url" content="https://tassiluca.github.io/PPS-22-direct-style-experiments/docs/03-channels/" /><meta property="article:section" content="docs" />

<meta property="article:modified_time" content="2024-03-04T18:57:39+01:00" />
<meta property="article:modified_time" content="2024-03-04T20:10:46+01:00" />

<title>03 Channels | PPS-22-direct-style-experiments</title>
<link rel="manifest" href="/PPS-22-direct-style-experiments/manifest.json">
<link rel="icon" href="/PPS-22-direct-style-experiments/favicon.png" >
<link rel="canonical" href="https://tassiluca.github.io/PPS-22-direct-style-experiments/docs/03-channels/">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.3079c33e46bf5b308bdbfa938bf6043ba270f82b73e2ada92c1da0aacca6df5c.css" integrity="sha256-MHnDPka/WzCL2/qTi/YEO6Jw&#43;Ctz4q2pLB2gqsym31w=" crossorigin="anonymous">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.42504dd4648e8da78376617fd32b73c3ae6afbe9f805c36868bc831b07002332.css" integrity="sha256-QlBN1GSOjaeDdmF/0ytzw65q&#43;&#43;n4BcNoaLyDGwcAIzI=" crossorigin="anonymous">
<script defer src="/PPS-22-direct-style-experiments/flexsearch.min.js"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.7a116cc67b7551be7d8aef10321ace3563e766b49af7377987d400daa542b9aa.js" integrity="sha256-ehFsxnt1Ub59iu8QMhrONWPnZrSa9zd5h9QA2qVCuao=" crossorigin="anonymous"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.19d8f85e12429745e6f1107a6dff3b5cfe2a5c515d78e329be453ad6790c6ab3.js" integrity="sha256-Gdj4XhJCl0Xm8RB6bf87XP4qXFFdeOMpvkU61nkMarM=" crossorigin="anonymous"></script>
<!--
Made with Book Theme
https://github.com/alex-shpak/hugo-book
Expand Down Expand Up @@ -940,22 +940,20 @@ <h2 id="takeaways">








<a href="https://tassiluca.github.io/PPS-22-direct-style-experiments/PPS-22-direct-style-experiments/docs/02-basics" target="_blank" rel="noopener" class="book-btn">
<a href="/PPS-22-direct-style-experiments/docs/02-basics/" class="book-btn">
<strong>Previous</strong>: Basic asynchronous constructs
</a>









<a href="https://tassiluca.github.io/PPS-22-direct-style-experiments/PPS-22-direct-style-experiments/docs/04-rears" target="_blank" rel="noopener" class="book-btn">
<a href="/PPS-22-direct-style-experiments/docs/04-rears/" class="book-btn">
<strong>Next</strong>: Reactivity in direct style
</a>

Expand All @@ -968,7 +966,7 @@ <h2 id="takeaways">
<div class="flex flex-wrap justify-between">


<div><a class="flex align-center" href="https://github.com/tassiLuca/PPS-22-direct-style-experiments/commit/7a77702ad9fad2340a958cd8ad5a89c99bfc5294" title='Last modified by Luca Tassinari | March 4, 2024' target="_blank" rel="noopener">
<div><a class="flex align-center" href="https://github.com/tassiLuca/PPS-22-direct-style-experiments/commit/20dfdd862e74d2235aaa27918880138a43b71025" title='Last modified by Luca Tassinari | March 4, 2024' target="_blank" rel="noopener">
<img src="/PPS-22-direct-style-experiments/svg/calendar.svg" class="book-icon" alt="Calendar" />
<span>March 4, 2024</span>
</a>
Expand Down
23 changes: 11 additions & 12 deletions docs/04-rears/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
<meta property="og:type" content="article" />
<meta property="og:url" content="https://tassiluca.github.io/PPS-22-direct-style-experiments/docs/04-rears/" /><meta property="article:section" content="docs" />

<meta property="article:modified_time" content="2024-03-04T18:57:39+01:00" />
<meta property="article:modified_time" content="2024-03-04T20:10:46+01:00" />

<title>04 Rears | PPS-22-direct-style-experiments</title>
<link rel="manifest" href="/PPS-22-direct-style-experiments/manifest.json">
<link rel="icon" href="/PPS-22-direct-style-experiments/favicon.png" >
<link rel="canonical" href="https://tassiluca.github.io/PPS-22-direct-style-experiments/docs/04-rears/">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.3079c33e46bf5b308bdbfa938bf6043ba270f82b73e2ada92c1da0aacca6df5c.css" integrity="sha256-MHnDPka/WzCL2/qTi/YEO6Jw&#43;Ctz4q2pLB2gqsym31w=" crossorigin="anonymous">
<link rel="stylesheet" href="/PPS-22-direct-style-experiments/book.min.42504dd4648e8da78376617fd32b73c3ae6afbe9f805c36868bc831b07002332.css" integrity="sha256-QlBN1GSOjaeDdmF/0ytzw65q&#43;&#43;n4BcNoaLyDGwcAIzI=" crossorigin="anonymous">
<script defer src="/PPS-22-direct-style-experiments/flexsearch.min.js"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.7a116cc67b7551be7d8aef10321ace3563e766b49af7377987d400daa542b9aa.js" integrity="sha256-ehFsxnt1Ub59iu8QMhrONWPnZrSa9zd5h9QA2qVCuao=" crossorigin="anonymous"></script>
<script defer src="/PPS-22-direct-style-experiments/en.search.min.19d8f85e12429745e6f1107a6dff3b5cfe2a5c515d78e329be453ad6790c6ab3.js" integrity="sha256-Gdj4XhJCl0Xm8RB6bf87XP4qXFFdeOMpvkU61nkMarM=" crossorigin="anonymous"></script>
<!--
Made with Book Theme
https://github.com/alex-shpak/hugo-book
Expand Down Expand Up @@ -348,7 +348,7 @@ <h3 id="scala-gears-version">
<li>A <code>Consumer</code> is a runnable entity devoted to consuming data from a channel, exposed by the <code>listeningChannel</code> method which returns a <code>SendableChannel</code> to send items to.
<ul>
<li>It can be made stateful by mixing it with the <code>State</code> trait, allowing it to keep track of its state, which is updated every time with the result of the <code>react</code>ion (i.e. its return type).</li>
<li><strong>Warning</strong>: like in an event-loop, the <code>react</code>ion logic should not perform long-lasting blocking operation, otherwise, the whole system will not react to new events.</li>
<li><strong>Warning</strong> Like in an event-loop, the <code>react</code>ion logic should not perform long-lasting blocking operation, otherwise, the whole system will not react to new events: the <code>Async</code> capability is though needed if you want to give the client the ability to invoke <code>Future</code>s within this block; otherwise, another option (alternative to the following) would be to encapsulate the reaction behavior within a <code>Task</code> and run it at every received data. However, race conditions could take place in this last case.</li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -644,6 +644,7 @@ <h4 id="filter">
</span></span><span style="display:flex;"><span> <span style="color:#04a5e5;font-weight:bold">).</span>run
</span></span></code></pre></div></li>
</ul>
<hr>
<p>To produce a testable version of this example, a simulated source of sensor data has been created, backed to a GUI, through which the user can simulate the behavior of the sensors.
The example is runnable via:</p>
<div class="highlight"><pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>./gradlew smart-hub-direct:run
Expand All @@ -653,6 +654,7 @@ <h4 id="filter">
alt="Smart Hub application" width="90%"/>
</figure>

<hr>
<h3 id="kotlin-coroutines-version">
Kotlin Coroutines version
<a class="anchor" href="#kotlin-coroutines-version">#</a>
Expand Down Expand Up @@ -722,27 +724,24 @@ <h3 id="kotlin-coroutines-version">
</h2>
<ul>
<li>Channels in Scala Gears are fine to model flow of data <strong>that exist without application&rsquo;s request from them</strong>: incoming network connections, event streams, etc&hellip;</li>
<li></li>
</ul>








<a href="https://tassiluca.github.io/PPS-22-direct-style-experiments/PPS-22-direct-style-experiments/docs/03-channels" target="_blank" rel="noopener" class="book-btn">
<a href="/PPS-22-direct-style-experiments/docs/03-channels/" class="book-btn">
<strong>Previous</strong>: Channels as a communication primitive
</a>









<a href="https://tassiluca.github.io/PPS-22-direct-style-experiments/PPS-22-direct-style-experiments/docs/05-conclusions" target="_blank" rel="noopener" class="book-btn">
<a href="/PPS-22-direct-style-experiments/docs/05-conclusions/" class="book-btn">
<strong>Next</strong>: Conclusions
</a>

Expand All @@ -755,7 +754,7 @@ <h3 id="kotlin-coroutines-version">
<div class="flex flex-wrap justify-between">


<div><a class="flex align-center" href="https://github.com/tassiLuca/PPS-22-direct-style-experiments/commit/7a77702ad9fad2340a958cd8ad5a89c99bfc5294" title='Last modified by Luca Tassinari | March 4, 2024' target="_blank" rel="noopener">
<div><a class="flex align-center" href="https://github.com/tassiLuca/PPS-22-direct-style-experiments/commit/20dfdd862e74d2235aaa27918880138a43b71025" title='Last modified by Luca Tassinari | March 4, 2024' target="_blank" rel="noopener">
<img src="/PPS-22-direct-style-experiments/svg/calendar.svg" class="book-icon" alt="Calendar" />
<span>March 4, 2024</span>
</a>
Expand Down
Loading

0 comments on commit 8bff636

Please sign in to comment.