Skip to content

Commit

Permalink
Deploying to gh-pages from @ 3dd6102 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Jul 28, 2024
1 parent a34d659 commit de3bb88
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 17 deletions.
3 changes: 2 additions & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ <h1><a href="/">MoJuWo</a></h1>
<li class="menu-list-item"><a href="/writing/#editor" class="menu-list-link">Editor</a>
<li class="menu-list-item"><a href="/writing/#running_code" class="menu-list-link">Running code</a>
<li class="menu-list-item"><a href="/writing/#notebooks" class="menu-list-link">Notebooks</a>
<li class="menu-list-item"><a href="/writing/#environments" class="menu-list-link">Environments</a>
<li class="menu-list-item"><a href="/writing/#local_packages" class="menu-list-link">Local packages</a>
<li class="menu-list-item"><a href="/writing/#development_workflow" class="menu-list-link">Development workflow</a>
<li class="menu-list-item"><a href="/writing/#configuration" class="menu-list-link">Configuration</a>
Expand Down Expand Up @@ -138,7 +139,7 @@ <h1><a href="/">MoJuWo</a></h1>

</div>
<div class="page-foot">
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 25, 2024. </br>
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 28, 2024. </br>
Website built with <a href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a> and the <a href="https://julialang.org">Julia programming language</a>.
</div>

Expand Down
2 changes: 1 addition & 1 deletion MyAwesomePackage/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "MyAwesomePackage"
uuid = "a641fa07-57fb-421d-be68-e24b2b39979b"
uuid = "a9332672-0808-4fe8-b18b-d62614c97a01"
authors = ["myusername <myusername@modernjuliaworkflows.github> and contributors"]
version = "1.0.0-DEV"

Expand Down
2 changes: 1 addition & 1 deletion MyPackage/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "MyPackage"
uuid = "f1960e38-ed8a-4b4e-a379-9cf8cd4c442d"
uuid = "71ee03f9-8741-41a1-b375-ceb4321b322b"
authors = ["myusername <myusername@modernjuliaworkflows.github>"]
version = "0.1.0"
3 changes: 2 additions & 1 deletion further/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ <h1><a href="/">MoJuWo</a></h1>
<li class="menu-list-item"><a href="/writing/#editor" class="menu-list-link">Editor</a>
<li class="menu-list-item"><a href="/writing/#running_code" class="menu-list-link">Running code</a>
<li class="menu-list-item"><a href="/writing/#notebooks" class="menu-list-link">Notebooks</a>
<li class="menu-list-item"><a href="/writing/#environments" class="menu-list-link">Environments</a>
<li class="menu-list-item"><a href="/writing/#local_packages" class="menu-list-link">Local packages</a>
<li class="menu-list-item"><a href="/writing/#development_workflow" class="menu-list-link">Development workflow</a>
<li class="menu-list-item"><a href="/writing/#configuration" class="menu-list-link">Configuration</a>
Expand Down Expand Up @@ -158,7 +159,7 @@ <h2 id="lore" ><a href="#lore"> Lore</a></h2><ul>
</ul>

<div class="page-foot">
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 25, 2024. </br>
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 28, 2024. </br>
Website built with <a href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a> and the <a href="https://julialang.org">Julia programming language</a>.
</div>

Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ <h1><a href="/">MoJuWo</a></h1>
<li class="menu-list-item"><a href="/writing/#editor" class="menu-list-link">Editor</a>
<li class="menu-list-item"><a href="/writing/#running_code" class="menu-list-link">Running code</a>
<li class="menu-list-item"><a href="/writing/#notebooks" class="menu-list-link">Notebooks</a>
<li class="menu-list-item"><a href="/writing/#environments" class="menu-list-link">Environments</a>
<li class="menu-list-item"><a href="/writing/#local_packages" class="menu-list-link">Local packages</a>
<li class="menu-list-item"><a href="/writing/#development_workflow" class="menu-list-link">Development workflow</a>
<li class="menu-list-item"><a href="/writing/#configuration" class="menu-list-link">Configuration</a>
Expand Down Expand Up @@ -136,7 +137,7 @@ <h2 id="before_you_start" ><a href="#before_you_start"> Before you start</a></h2
You can usually find more thorough documentation by looking for a blue badge called <a href="https://img.shields.io/badge/docs-stable-blue.svg"><code>docs|stable</code></a> at the top of the page.</p>

<div class="page-foot">
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 25, 2024. </br>
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 28, 2024. </br>
Website built with <a href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a> and the <a href="https://julialang.org">Julia programming language</a>.
</div>

Expand Down
13 changes: 7 additions & 6 deletions optimizing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ <h1><a href="/">MoJuWo</a></h1>
<li class="menu-list-item"><a href="/writing/#editor" class="menu-list-link">Editor</a>
<li class="menu-list-item"><a href="/writing/#running_code" class="menu-list-link">Running code</a>
<li class="menu-list-item"><a href="/writing/#notebooks" class="menu-list-link">Notebooks</a>
<li class="menu-list-item"><a href="/writing/#environments" class="menu-list-link">Environments</a>
<li class="menu-list-item"><a href="/writing/#local_packages" class="menu-list-link">Local packages</a>
<li class="menu-list-item"><a href="/writing/#development_workflow" class="menu-list-link">Development workflow</a>
<li class="menu-list-item"><a href="/writing/#configuration" class="menu-list-link">Configuration</a>
Expand Down Expand Up @@ -143,10 +144,10 @@ <h2 id="measurements" ><a href="#measurements"> Measurements</a></h2><div class=
<span class="sgr32"><span class="sgr1">julia&gt;</span></span> using BenchmarkTools

<span class="sgr32"><span class="sgr1">julia&gt;</span></span> @time sum_abs(v); # Inaccurate, note the &gt;99% compilation time
0.026858 seconds (48.49 k allocations: 3.214 MiB, 99.95% compilation time)
0.028674 seconds (48.49 k allocations: 3.214 MiB, 99.96% compilation time)

<span class="sgr32"><span class="sgr1">julia&gt;</span></span> @time sum_abs(v); # Accurate
0.000004 seconds (1 allocation: 16 bytes)
0.000003 seconds (1 allocation: 16 bytes)
</code></pre>
<p>Using <code>@time</code> is quick but it has flaws, because your function is only measured once.
That measurement might have been influenced by other things going on in your computer at the same time.
Expand All @@ -157,10 +158,10 @@ <h3 id="benchmarktools" ><a href="#benchmarktools"> BenchmarkTools</a></h3><p><a
<pre><code class="julia-repl"><span class="sgr32"><span class="sgr1">julia&gt;</span></span> using BenchmarkTools

<span class="sgr32"><span class="sgr1">julia&gt;</span></span> @btime sum_abs(v);
95.642 ns (1 allocation: 16 bytes)
95.653 ns (1 allocation: 16 bytes)

<span class="sgr32"><span class="sgr1">julia&gt;</span></span> @btime sum_abs($v);
60.775 ns (0 allocations: 0 bytes)
60.766 ns (0 allocations: 0 bytes)
</code></pre>
<p>In more complex settings, you might need to construct variables in a <a href="https://juliaci.github.io/BenchmarkTools.jl/stable/manual/#Setup-and-teardown-phases">setup phase</a> that is run before each sample.
This can be useful to generate a new random input every time, instead of always using the same input.</p>
Expand All @@ -170,7 +171,7 @@ <h3 id="benchmarktools" ><a href="#benchmarktools"> BenchmarkTools</a></h3><p><a
A = rand(1000, 1000); # use semi-colons between setup lines
b = rand(1000)
);
146.454 μs (1 allocation: 7.94 KiB)
151.102 μs (1 allocation: 7.94 KiB)
</code></pre>
<p>For better visualization, the <code>@benchmark</code> macro shows performance histograms:</p>
<div class="advanced"><p><strong>Advanced</strong>: Certain computations may be <a href="(https://juliaci.github.io/BenchmarkTools.jl/stable/manual/#Understanding-compiler-optimizations)">optimized away by the compiler</a> before the benchmark takes place.
Expand Down Expand Up @@ -449,7 +450,7 @@ <h3 id="classic_data_structures" ><a href="#classic_data_structures"> Classic da
Iteration and memoization utilities are also provided by packages like <a href="https://github.com/JuliaCollections/IterTools.jl">IterTools.jl</a> and <a href="https://github.com/JuliaCollections/Memoize.jl">Memoize.jl</a>.</p>

<div class="page-foot">
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 25, 2024. </br>
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 28, 2024. </br>
Website built with <a href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a> and the <a href="https://julialang.org">Julia programming language</a>.
</div>

Expand Down
11 changes: 6 additions & 5 deletions sharing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ <h1><a href="/">MoJuWo</a></h1>
<li class="menu-list-item"><a href="/writing/#editor" class="menu-list-link">Editor</a>
<li class="menu-list-item"><a href="/writing/#running_code" class="menu-list-link">Running code</a>
<li class="menu-list-item"><a href="/writing/#notebooks" class="menu-list-link">Notebooks</a>
<li class="menu-list-item"><a href="/writing/#environments" class="menu-list-link">Environments</a>
<li class="menu-list-item"><a href="/writing/#local_packages" class="menu-list-link">Local packages</a>
<li class="menu-list-item"><a href="/writing/#development_workflow" class="menu-list-link">Development workflow</a>
<li class="menu-list-item"><a href="/writing/#configuration" class="menu-list-link">Configuration</a>
Expand Down Expand Up @@ -159,9 +160,9 @@ <h1 id="sharing_your_code" ><a href="#sharing_your_code"> Sharing your code</a><
<span class="sgr32"><span class="sgr1">julia&gt;</span></span> Pkg.develop(path=sitepath(&quot;MyAwesomePackage&quot;)) # ignore sitepath
<span class="sgr32"><span class="sgr1"> Resolving</span></span> package versions...
<span class="sgr32"><span class="sgr1"> Updating</span></span> `~/work/modernjuliaworkflows.github.io/modernjuliaworkflows.github.io/sharing/Project.toml`
<span class="sgr90">[a641fa07] </span><span class="sgr92">+ MyAwesomePackage v1.0.0-DEV `~/work/modernjuliaworkflows.github.io/modernjuliaworkflows.github.io/__site/MyAwesomePackage`</span>
<span class="sgr90">[a9332672] </span><span class="sgr92">+ MyAwesomePackage v1.0.0-DEV `~/work/modernjuliaworkflows.github.io/modernjuliaworkflows.github.io/__site/MyAwesomePackage`</span>
<span class="sgr32"><span class="sgr1"> Updating</span></span> `~/work/modernjuliaworkflows.github.io/modernjuliaworkflows.github.io/sharing/Manifest.toml`
<span class="sgr90">[a641fa07] </span><span class="sgr92">+ MyAwesomePackage v1.0.0-DEV `~/work/modernjuliaworkflows.github.io/modernjuliaworkflows.github.io/__site/MyAwesomePackage`</span>
<span class="sgr90">[a9332672] </span><span class="sgr92">+ MyAwesomePackage v1.0.0-DEV `~/work/modernjuliaworkflows.github.io/modernjuliaworkflows.github.io/__site/MyAwesomePackage`</span>

<span class="sgr32"><span class="sgr1">julia&gt;</span></span> using MyAwesomePackage
</code></pre>
Expand Down Expand Up @@ -238,8 +239,8 @@ <h2 id="style" ><a href="#style"> Style</a></h2><p>To make your code easy to rea
<span class="sgr32"><span class="sgr1">julia&gt;</span></span> JET.report_package(MyAwesomePackage)
[toplevel-info] virtualized the context of Main (took 0.012 sec)
[toplevel-info] entered into /home/runner/work/modernjuliaworkflows.github.io/modernjuliaworkflows.github.io/__site/MyAwesomePackage/src/MyAwesomePackage.jl
[toplevel-info] exited from /home/runner/work/modernjuliaworkflows.github.io/modernjuliaworkflows.github.io/__site/MyAwesomePackage/src/MyAwesomePackage.jl (took 0.009 sec)
[toplevel-info] analyzed 0 top-level definitions (took 0.005 sec)
[toplevel-info] exited from /home/runner/work/modernjuliaworkflows.github.io/modernjuliaworkflows.github.io/__site/MyAwesomePackage/src/MyAwesomePackage.jl (took 0.01 sec)
[toplevel-info] analyzed 0 top-level definitions (took 0.006 sec)
JET.JETToplevelResult{JET.JETAnalyzer{JET.BasicPass}, Base.Pairs{Symbol, Any, NTuple{4, Symbol}, @NamedTuple{concretization_patterns::Vector{Symbol}, analyze_from_definitions::Bool, toplevel_logger::IOContext{Base.PipeEndpoint}, ignore_missing_comparison::Bool}}}(JET.JETAnalyzer{JET.BasicPass}(JET.AnalyzerState(0x0000000000007b80, Core.Compiler.InferenceResult[], Core.Compiler.InferenceParams(3, 4, 8, 32, 3, true, true, false, true, false), Core.Compiler.OptimizationParams(true, 100, 1000, 250, 20, 32, true, false, false), IdDict{Core.Compiler.InferenceResult, Union{JET.AnalysisResult, JET.CachedAnalysisResult}}(), JET.InferenceErrorReport[], nothing, Bool[], JET.__toplevelmod__, Dict{Int64, Symbol}(), nothing, 0), JET.AnalysisCache(IdDict{Core.MethodInstance, Core.CodeInstance}()), JET.BasicPass(), Core.Compiler.CachedMethodTable{Core.Compiler.OverlayMethodTable}(Core.Compiler.IdDict{Core.Compiler.MethodMatchKey, Union{Nothing, Core.Compiler.MethodMatchResult}}(Any[#undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef, #undef], 0, 0), Core.Compiler.OverlayMethodTable(0x0000000000007b80, # 1 method for callable object:
[1] iterate(::Tuple{}, ::Int64)
@ ~/.julia/packages/JET/Ws3Qi/src/analyzers/jetanalyzer.jl:177)), JET.JETAnalyzerConfig(true)), JET.VirtualProcessResult(Set([&quot;/home/runner/work/modernjuliaworkflows.github.io/modernjuliaworkflows.github.io/__site/MyAwesomePackage/src/MyAwesomePackage.jl&quot;]), String[], Set(Module[Main.var&quot;##JETVirtualModule#225&quot;, Main.var&quot;##JETVirtualModule#225&quot;.MyAwesomePackage]), JET.ToplevelErrorReport[], JET.InferenceErrorReport[], Type[], Main =&gt; Main.var&quot;##JETVirtualModule#225&quot;), &quot;JETAnalyzer: \&quot;/home/runner/work/modernjuliaworkflows.github.io/modernjuliaworkflows.github.io/__site/MyAwesomePackage/src/MyAwesomePackage.jl\&quot;&quot;, Base.Pairs{Symbol, Any, NTuple{4, Symbol}, @NamedTuple{concretization_patterns::Vector{Symbol}, analyze_from_definitions::Bool, toplevel_logger::IOContext{Base.PipeEndpoint}, ignore_missing_comparison::Bool}}(:concretization_patterns =&gt; [:x_], :analyze_from_definitions =&gt; true, :toplevel_logger =&gt; IOContext(Base.PipeEndpoint(RawFD(4294967295) closed, 0 bytes waiting)), :ignore_missing_comparison =&gt; true))
Expand Down Expand Up @@ -336,7 +337,7 @@ <h2 id="interoperability" ><a href="#interoperability"> Interoperability</a></h2
Of course, collaboration goes both ways: if you find a Julia package you really like, you are more than welcome to <a href="https://julialang.org/contribute/">contribute</a> as well, for example by opening issues or submitting pull requests.</p>

<div class="page-foot">
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 25, 2024. </br>
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 28, 2024. </br>
Website built with <a href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a> and the <a href="https://julialang.org">Julia programming language</a>.
</div>

Expand Down
3 changes: 2 additions & 1 deletion writing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ <h1><a href="/">MoJuWo</a></h1>
<li class="menu-list-item"><a href="/writing/#editor" class="menu-list-link">Editor</a>
<li class="menu-list-item"><a href="/writing/#running_code" class="menu-list-link">Running code</a>
<li class="menu-list-item"><a href="/writing/#notebooks" class="menu-list-link">Notebooks</a>
<li class="menu-list-item"><a href="/writing/#environments" class="menu-list-link">Environments</a>
<li class="menu-list-item"><a href="/writing/#local_packages" class="menu-list-link">Local packages</a>
<li class="menu-list-item"><a href="/writing/#development_workflow" class="menu-list-link">Development workflow</a>
<li class="menu-list-item"><a href="/writing/#configuration" class="menu-list-link">Configuration</a>
Expand Down Expand Up @@ -590,7 +591,7 @@ <h3 id="debugger.jl" ><a href="#debugger.jl"> Debugger.jl</a></h3><p><a href="ht
It is often easiest to start by adding <code>ALL_MODULES_EXCEPT_MAIN</code> to the compiled list, and then selectively remove the modules you need to have interpreted.</p>
</div>
<div class="page-foot">
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 25, 2024. </br>
<a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> G. Dalle, J. Smit, A. Hill. Last modified: July 28, 2024. </br>
Website built with <a href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a> and the <a href="https://julialang.org">Julia programming language</a>.
</div>

Expand Down

0 comments on commit de3bb88

Please sign in to comment.