Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed May 6, 2024
1 parent 3c52bb6 commit c324d24
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8be4ad91
a3c7109f
56 changes: 28 additions & 28 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link href="index_files/libs/quarto-html/light-border.css" rel="stylesheet">
<link href="index_files/libs/quarto-html/quarto-html.min.css" rel="stylesheet" data-mode="light">
<link href="index_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles"><meta charset="utf-8">
<meta name="generator" content="quarto-1.4.553">
<meta name="generator" content="quarto-1.4.554">

<meta name="author" content="Jose Storopoli, PhD">
<title>Why Julia?</title>
Expand Down Expand Up @@ -481,7 +481,7 @@ <h2>Benchmarking — Data Wrangling</h2>
</section>
<section id="benchmarking-data-wrangling-python" class="slide level2">
<h2>Benchmarking — Data Wrangling (Python)</h2>
<div id="fada806a" class="cell" data-execution_count="2">
<div id="47b1acb0" class="cell" data-execution_count="2">
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode numberSource julia number-lines code-with-copy"><code class="sourceCode julia"><span id="cb1-1"><a href=""></a><span class="im">using</span> <span class="bu">BenchmarkTools</span></span>
<span id="cb1-2"><a href=""></a>py<span class="st">"""</span></span>
<span id="cb1-3"><a href=""></a><span class="st">import pandas as pd</span></span>
Expand All @@ -495,13 +495,13 @@ <h2>Benchmarking — Data Wrangling (Python)</h2>
<span id="cb1-11"><a href=""></a><span class="st">"""</span></span>
<span id="cb1-12"><a href=""></a><span class="pp">@btime</span> py<span class="st">"df.groupby('x').agg({'y': 'median', 'z': 'mean'})"</span>;</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code> 1.476 ms (3 allocations: 144 bytes)</code></pre>
<pre><code> 1.435 ms (3 allocations: 144 bytes)</code></pre>
</div>
</div>
</section>
<section id="benchmarking-data-wrangling-julia" class="slide level2">
<h2>Benchmarking — Data Wrangling (Julia)</h2>
<div id="9748ce49" class="cell" data-execution_count="3">
<div id="7bcfc92a" class="cell" data-execution_count="3">
<div class="sourceCode cell-code" id="cb3"><pre class="sourceCode numberSource julia number-lines code-with-copy"><code class="sourceCode julia"><span id="cb3-1"><a href=""></a><span class="im">using</span> <span class="bu">Random</span></span>
<span id="cb3-2"><a href=""></a><span class="im">using</span> <span class="bu">DataFrames</span></span>
<span id="cb3-3"><a href=""></a><span class="im">using</span> <span class="bu">BenchmarkTools</span></span>
Expand All @@ -521,7 +521,7 @@ <h2>Benchmarking — Data Wrangling (Julia)</h2>
<span id="cb3-17"><a href=""></a> <span class="fu">combine</span>(<span class="op">:</span>y <span class="op">=&gt;</span> median, <span class="op">:</span>z <span class="op">=&gt;</span> mean)</span>
<span id="cb3-18"><a href=""></a><span class="cf">end</span>;</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code> 274.033 μs (433 allocations: 540.63 KiB)</code></pre>
<pre><code> 277.088 μs (433 allocations: 540.63 KiB)</code></pre>
</div>
</div>
</section>
Expand All @@ -543,7 +543,7 @@ <h2>Benchmarking — ODE Solver</h2>
</section>
<section id="benchmarking-ode-solver-julia" class="slide level2">
<h2>Benchmarking — ODE Solver (Julia)</h2>
<div id="8806e721" class="cell" data-execution_count="4">
<div id="c0f110c1" class="cell" data-execution_count="4">
<div class="sourceCode cell-code" id="cb5"><pre class="sourceCode numberSource julia number-lines code-with-copy"><code class="sourceCode julia"><span id="cb5-1"><a href=""></a><span class="im">using</span> <span class="bu">DifferentialEquations</span></span>
<span id="cb5-2"><a href=""></a></span>
<span id="cb5-3"><a href=""></a><span class="co"># Constants</span></span>
Expand All @@ -566,13 +566,13 @@ <h2>Benchmarking — ODE Solver (Julia)</h2>
<span id="cb5-20"><a href=""></a><span class="co"># RK 4/5th order solver (Tsitouras)</span></span>
<span id="cb5-21"><a href=""></a><span class="pp">@btime</span> <span class="fu">solve</span>(prob, <span class="fu">Tsit5</span>(); saveat<span class="op">=</span><span class="fu">range</span>(tspan<span class="op">...</span>; length<span class="op">=</span><span class="fl">1_000</span>));</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code> 153.527 μs (1840 allocations: 139.64 KiB)</code></pre>
<pre><code> 165.100 μs (1840 allocations: 139.64 KiB)</code></pre>
</div>
</div>
</section>
<section id="benchmarking-ode-solver-python" class="slide level2">
<h2>Benchmarking — ODE Solver (Python)</h2>
<div id="7c64e604" class="cell" data-execution_count="5">
<div id="0bc84aab" class="cell" data-execution_count="5">
<div class="sourceCode cell-code" id="cb7"><pre class="sourceCode numberSource julia number-lines code-with-copy"><code class="sourceCode julia"><span id="cb7-1"><a href=""></a>py<span class="st">"""</span></span>
<span id="cb7-2"><a href=""></a><span class="st">import numpy as np</span></span>
<span id="cb7-3"><a href=""></a><span class="st">from scipy.integrate import odeint</span></span>
Expand All @@ -594,7 +594,7 @@ <h2>Benchmarking — ODE Solver (Python)</h2>
<span id="cb7-19"><a href=""></a><span class="co"># RK 4/5th order solver (Dormand-Prince)</span></span>
<span id="cb7-20"><a href=""></a><span class="pp">@btime</span> py<span class="st">"odeint(simplependulum, u0, tspan, args=(g, L))"</span>;</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code> 1.491 ms (29 allocations: 17.05 KiB)</code></pre>
<pre><code> 1.506 ms (29 allocations: 17.05 KiB)</code></pre>
</div>
</div>
</section>
Expand All @@ -612,7 +612,7 @@ <h2>Why Julia is so Fast?</h2>
</section>
<section id="why-julia-is-so-fast-llvm-code" class="slide level2 scrollable">
<h2>Why Julia is so Fast? — LLVM code</h2>
<div id="bba703c7" class="cell" data-execution_count="6">
<div id="80c7d8de" class="cell" data-execution_count="6">
<div class="sourceCode cell-code" id="cb9"><pre class="sourceCode numberSource julia number-lines code-with-copy"><code class="sourceCode julia"><span id="cb9-1"><a href=""></a><span class="im">using</span> <span class="bu">Statistics</span>: mean</span>
<span id="cb9-2"><a href=""></a><span class="pp">@code_llvm</span> <span class="fu">mean</span>(<span class="fl">1</span><span class="op">:</span><span class="fl">10</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
Expand All @@ -623,10 +623,10 @@ <h2>Why Julia is so Fast? — LLVM code</h2>
</section>
<section id="why-julia-is-so-fast-llvm-code-output" class="slide level2 scrollable output-location-slide"><h2>Why Julia is so Fast? — LLVM code</h2><div class="cell output-location-slide" data-execution_count="6">
<div class="cell-output cell-output-stdout">
<pre><code>; @ /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Statistics/src/Statistics.jl:195 within `mean`
<pre><code>; @ /opt/hostedtoolcache/julia/1.10.3/x64/share/julia/stdlib/v1.10/Statistics/src/Statistics.jl:195 within `mean`
define double @julia_mean_2080([2 x i64]* nocapture noundef nonnull readonly align 8 dereferenceable(16) %0) #0 {
top:
; @ /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Statistics/src/Statistics.jl:196 within `mean`
; @ /opt/hostedtoolcache/julia/1.10.3/x64/share/julia/stdlib/v1.10/Statistics/src/Statistics.jl:196 within `mean`
; ┌ @ range.jl:672 within `isempty`
; │┌ @ range.jl:834 within `first`
; ││┌ @ Base.jl:37 within `getproperty`
Expand All @@ -646,7 +646,7 @@ <h2>Why Julia is so Fast? — LLVM code</h2>
%4 = sitofp i64 %3 to double
%5 = fmul double %4, 5.000000e-01
%common.ret.op = select i1 %.not, double 0x7FF8000000000000, double %5
; @ /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Statistics/src/Statistics.jl within `mean`
; @ /opt/hostedtoolcache/julia/1.10.3/x64/share/julia/stdlib/v1.10/Statistics/src/Statistics.jl within `mean`
ret double %common.ret.op
}</code></pre>
</div>
Expand Down Expand Up @@ -676,7 +676,7 @@ <h2>It’s Julia all the way down</h2>
<p>If you need to find something just use the <code>@which</code> macro on a type or a function signature.</p>
<p><br></p>
<div class="fragment">
<div id="39cc33df" class="cell" data-execution_count="7">
<div id="8aaa5506" class="cell" data-execution_count="7">
<div class="sourceCode cell-code" id="cb13"><pre class="sourceCode numberSource julia number-lines code-with-copy"><code class="sourceCode julia"><span id="cb13-1"><a href=""></a><span class="pp">@which</span> DataFrame <span class="co"># type</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="8">
<pre><code>DataFrames</code></pre>
Expand All @@ -685,10 +685,10 @@ <h2>It’s Julia all the way down</h2>
</div>
<div class="fragment">
<p><br></p>
<div id="5d543728" class="cell" data-execution_count="8">
<div id="538409b4" class="cell" data-execution_count="8">
<div class="sourceCode cell-code" id="cb15"><pre class="sourceCode numberSource julia number-lines code-with-copy"><code class="sourceCode julia"><span id="cb15-1"><a href=""></a><span class="pp">@which</span> <span class="fu">mean</span>(<span class="fl">1</span><span class="op">:</span><span class="fl">10</span>) <span class="co"># function signature.</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="9">
mean(r::<b>AbstractRange{&lt;:Real}</b>) in Statistics at <a href="file:///opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Statistics/src/Statistics.jl" target="_blank">/opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Statistics/src/Statistics.jl:195</a>
mean(r::<b>AbstractRange{&lt;:Real}</b>) in Statistics at <a href="file:///opt/hostedtoolcache/julia/1.10.3/x64/share/julia/stdlib/v1.10/Statistics/src/Statistics.jl" target="_blank">/opt/hostedtoolcache/julia/1.10.3/x64/share/julia/stdlib/v1.10/Statistics/src/Statistics.jl:195</a>
</div>
</div>
</div>
Expand All @@ -705,7 +705,7 @@ <h2>Composability</h2>
</section>
<section id="composability-example-with-point" class="slide level2">
<h2>Composability — Example with <code>Point</code></h2>
<div id="23891693" class="cell" data-execution_count="9">
<div id="1a3d504d" class="cell" data-execution_count="9">
<div class="sourceCode cell-code" id="cb16"><pre class="sourceCode numberSource julia number-lines code-with-copy"><code class="sourceCode julia"><span id="cb16-1"><a href=""></a><span class="kw">struct</span> Point</span>
<span id="cb16-2"><a href=""></a> x<span class="op">::</span><span class="dt">Float64</span></span>
<span id="cb16-3"><a href=""></a> y<span class="op">::</span><span class="dt">Float64</span></span>
Expand All @@ -722,15 +722,15 @@ <h2>Composability — Example with <code>Point</code></h2>
<span id="cb16-14"><a href=""></a>p1 <span class="op">=</span> <span class="fu">Point</span>(<span class="fl">1</span>, <span class="fl">1</span>); p2 <span class="op">=</span> <span class="fu">Point</span>(<span class="fl">2</span>, <span class="fl">2</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div class="fragment">
<div id="14b45b33" class="cell" data-execution_count="10">
<div id="6c42e016" class="cell" data-execution_count="10">
<div class="sourceCode cell-code" id="cb17"><pre class="sourceCode numberSource julia number-lines code-with-copy"><code class="sourceCode julia"><span id="cb17-1"><a href=""></a>p1 <span class="op">+</span> p2</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="11">
<pre><code>Point(3.0, 3.0)</code></pre>
</div>
</div>
</div>
<div class="fragment">
<div id="54a742bc" class="cell" data-execution_count="11">
<div id="fca2f31f" class="cell" data-execution_count="11">
<div class="sourceCode cell-code" id="cb19"><pre class="sourceCode numberSource julia number-lines code-with-copy"><code class="sourceCode julia"><span id="cb19-1"><a href=""></a><span class="fu">distance</span>(p1, p2)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="12">
<pre><code>1.4142135623730951</code></pre>
Expand Down Expand Up @@ -864,9 +864,9 @@ <h2>Conclusions</h2>
<h2>Packages Used</h2>
<div class="columns">
<div class="column" style="width:50%;">
<div id="99ce5453" class="cell" data-execution_count="12">
<div id="763deabd" class="cell" data-execution_count="12">
<div class="cell-output cell-output-stdout">
<pre><code>Julia: 1.10.2
<pre><code>Julia: 1.10.3
BenchmarkTools 1.5.0
Chain 0.6.0
DataFrames 1.6.1
Expand All @@ -878,23 +878,23 @@ <h2>Packages Used</h2>
</div>
</div>
</div><div class="column" style="width:50%;">
<div id="fdb74bbf" class="cell" data-execution_count="13">
<div id="5fe72b2c" class="cell" data-execution_count="13">
<div class="cell-output cell-output-stdout">
<pre><code>Python: 3.12.2 (main, Feb 7 2024, 16:26:19) [GCC 11.4.0]
<pre><code>Python: 3.12.3 (main, Apr 10 2024, 03:36:41) [GCC 11.4.0]
numpy: 1.26.4
scipy: 1.13.0
pandas: 2.2.1</code></pre>
pandas: 2.2.2</code></pre>
</div>
</div>
</div>
</div>
</section>
<section id="system-information" class="slide level2">
<h2>System Information</h2>
<div id="3232f020" class="cell" data-execution_count="14">
<div id="6773235b" class="cell" data-execution_count="14">
<div class="cell-output cell-output-stdout">
<pre><code>Julia Version 1.10.2
Commit bd47eca2c8a (2024-03-01 10:14 UTC)
<pre><code>Julia Version 1.10.3
Commit 0b4590a5507 (2024-04-30 10:59 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
Expand All @@ -906,7 +906,7 @@ <h2>System Information</h2>
Threads: 4 default, 0 interactive, 2 GC (on 4 virtual cores)
Environment:
JULIA_NUM_THREADS = auto
LD_LIBRARY_PATH = /opt/hostedtoolcache/Python/3.12.2/x64/lib</code></pre>
LD_LIBRARY_PATH = /opt/hostedtoolcache/Python/3.12.3/x64/lib</code></pre>
</div>
</div>
<div class="quarto-auto-generated-content">
Expand Down

0 comments on commit c324d24

Please sign in to comment.