Skip to content

Commit

Permalink
minor corrections to the presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JPenuchot committed Sep 23, 2024
1 parent 9c4cdfb commit 093d8a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions soutenance.html
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ <h2 id="compile-time-regular-expressions-ctre">Compile Time Regular Expressions
</foreignObject></svg><svg data-marpit-svg="" viewBox="0 0 1920 1080"><foreignObject width="1920" height="1080"><section id="28" data-paginate="true" data-theme="rr6kptsrhp795yzikaal4pbo9vy8q3ukdozyork2y" lang="en-US" data-marpit-pagination="27" style="--paginate:true;--theme:rr6kptsrhp795yzikaal4pbo9vy8q3ukdozyork2y;" data-marpit-pagination-total="46">
<h2 id="vers-des-compilateurs-embarqu%C3%A9s-constexpr">Vers des compilateurs embarqués constexpr</h2>
<ul>
<li><strong>constexpr</strong>: permet d'exécuter des fonctions à la compilation</li>
<li><strong>constexpr</strong>: rend des fonctions exécutables à la compilation</li>
<li>Nouvelles fonctionnalités constexpr:
<ul>
<li>Allocation dynamique</li>
Expand Down Expand Up @@ -675,7 +675,7 @@ <h2 id="g%C3%A9n%C3%A9ration-de-programmes-brainfuck">Génération de programmes
</ul>
</li>
</ul>
<pre><code class="language-cpp"><span class="hljs-function"><span class="hljs-keyword">constexpr</span> std::vector&lt;<span class="hljs-type">int</span>&gt; <span class="hljs-title">foo</span><span class="hljs-params">()</span> </span>{ {<span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>}; }
<pre><code class="language-cpp"><span class="hljs-function"><span class="hljs-keyword">constexpr</span> std::vector&lt;<span class="hljs-type">int</span>&gt; <span class="hljs-title">foo</span><span class="hljs-params">()</span> </span>{ <span class="hljs-keyword">return</span> {<span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>}; }

<span class="hljs-keyword">template</span> &lt;<span class="hljs-keyword">auto</span> Value&gt; <span class="hljs-keyword">struct</span> <span class="hljs-title class_">my_type</span> {};

Expand Down Expand Up @@ -1002,7 +1002,7 @@ <h2 id="perspectives">Perspectives</h2>
<p><em>Proposer un modèle de métaprogrammation plus direct:</em></p>
<ul>
<li>Mémoire dynamique en paramètre de templates</li>
<li>réflexion + réification</li>
<li>Réflexion + réification</li>
</ul>
</li>
<li>
Expand Down
6 changes: 3 additions & 3 deletions soutenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ CTRE utilise un **parser d'expressions PCRE** à la compilation
## Vers des compilateurs embarqués constexpr
- **constexpr**: permet d'exécuter des fonctions à la compilation
- **constexpr**: rend des fonctions exécutables à la compilation
- Nouvelles fonctionnalités constexpr:
- Allocation dynamique
- Support de la bibliothèque standard (std::vector, std::unique_ptr...)
Expand Down Expand Up @@ -631,7 +631,7 @@ parse_block(token_vec_t::const_iterator parse_begin,
- On passe pas les noeuds, on passe leurs **fonctions génératrices**

```cpp
constexpr std::vector<int> foo() { {0, 1, 2, 3}; }
constexpr std::vector<int> foo() { return {0, 1, 2, 3}; }

template <auto Value> struct my_type {};

Expand Down Expand Up @@ -872,7 +872,7 @@ Nouvelle méthodologie pour le benchmarking des temps de compilation-->
- *Proposer un modèle de métaprogrammation plus direct:*
- Mémoire dynamique en paramètre de templates
- réflexion + réification
- Réflexion + réification
- *Amélioration des DSELs en C++23:*
Expand Down
Binary file modified soutenance.pdf
Binary file not shown.

0 comments on commit 093d8a5

Please sign in to comment.