Skip to content

Commit

Permalink
new post
Browse files Browse the repository at this point in the history
  • Loading branch information
alfaromartino committed Aug 1, 2023
1 parent bfa9e25 commit f4aeb68
Show file tree
Hide file tree
Showing 11 changed files with 2,963 additions and 33 deletions.
16 changes: 9 additions & 7 deletions PAGES/01_packageUpdate/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
}


.name_format a { color: white; }
.name_format a { color:rgba(183, 219, 255, 0.8); }
.name_format a:hover {
color: rgb(212, 212, 212);
color: rgb(214, 227, 240)
Expand Down Expand Up @@ -1317,8 +1317,10 @@ <h1>Conflicting Packages Preventing Updating</h1>

<div class="name_format">
<a href="https://alfaromartino.github.io/" target="_blank" rel="noopener noreferrer">Martin Alfaro</a>
<span style="font-size:70%; vertical-align:0.05em;">- PhD in Economics</span>
</div>
<div class="phd_format">PhD in Economics</div>
<div class="phd_format">June 2, 2023</div>




Expand Down Expand Up @@ -1659,7 +1661,7 @@ <h2> NOTATION AND KEYBOARD SHORTCUTS</h2>


<div class="franklin-content">
<section id="description_of_the_issue_covered" class="scrollspy">
<section id="description_of_the_issue_covered" class="scrollspy section-bg-color">
<div class="container">
<div class="row">
<div class="col-lg- mx-auto">
Expand All @@ -1676,7 +1678,7 @@ <h2>Description of the Issue Covered</h2></p>
</div>
</div>
</section>
<section id="miscellaneous_optional" class="scrollspy section-bg-color">
<section id="miscellaneous_optional" class="scrollspy">
<div class="container">
<div class="row">
<div class="col-lg- mx-auto">
Expand Down Expand Up @@ -1716,7 +1718,7 @@ <h2>Miscellaneous (OPTIONAL)</h2></p>
</div>
</div>
</section>
<section id="conclusion" class="scrollspy">
<section id="conclusion" class="scrollspy section-bg-color">
<div class="container">
<div class="row">
<div class="col-lg- mx-auto">
Expand All @@ -1742,11 +1744,11 @@ <h2>Conclusion</h2></p>
<footer class="py-1">
<!-- <p class="m-0"> -->
<div class="container">
<span class="left-text"><a href="/blog/PAGES\06_preAllocations" class="prevPage"><img src="/blog/assets/icons/prev-page.png"
<span class="left-text"><a href="/blog/PAGES\07_AIcoding" class="prevPage"><img src="/blog/assets/icons/prev-page.png"
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"> Previous Post</a></span>
<span class="right-text"><a href="/blog/PAGES\02_worldHeatmaps" class="nextPage">Next Post <img src="/blog/assets/icons/next-page.png"
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"></a> </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 3, 2023 </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 31, 2023 </span>
</div>
<!-- </p> -->
</footer>
Expand Down
8 changes: 5 additions & 3 deletions PAGES/02_worldHeatmaps/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
}


.name_format a { color: white; }
.name_format a { color:rgba(183, 219, 255, 0.8); }
.name_format a:hover {
color: rgb(212, 212, 212);
color: rgb(214, 227, 240)
Expand Down Expand Up @@ -1317,8 +1317,10 @@ <h1>World Heatmaps in Julia</h1>

<div class="name_format">
<a href="https://alfaromartino.github.io/" target="_blank" rel="noopener noreferrer">Martin Alfaro</a>
<span style="font-size:70%; vertical-align:0.05em;">- PhD in Economics</span>
</div>
<div class="phd_format">PhD in Economics</div>
<div class="phd_format">June 12, 2023</div>




Expand Down Expand Up @@ -1696,7 +1698,7 @@ <h2>Summary</h2></p>
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"> Previous Post</a></span>
<span class="right-text"><a href="/blog/PAGES\03_LazyArrays" class="nextPage">Next Post <img src="/blog/assets/icons/next-page.png"
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"></a> </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 3, 2023 </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 31, 2023 </span>
</div>
<!-- </p> -->
</footer>
Expand Down
10 changes: 6 additions & 4 deletions PAGES/03_LazyArrays/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@
}


.name_format a { color: white; }
.name_format a { color:rgba(183, 219, 255, 0.8); }
.name_format a:hover {
color: rgb(212, 212, 212);
color: rgb(214, 227, 240)
Expand Down Expand Up @@ -1325,8 +1325,10 @@ <h1>Performance Improvements in Julia (Part 1): Lazy Broadcasting</h1>

<div class="name_format">
<a href="https://alfaromartino.github.io/" target="_blank" rel="noopener noreferrer">Martin Alfaro</a>
<span style="font-size:70%; vertical-align:0.05em;">- PhD in Economics</span>
</div>
<div class="phd_format">PhD in Economics</div>
<div class="phd_format">June 12, 2023</div>




Expand Down Expand Up @@ -1669,7 +1671,7 @@ <h2> NOTATION AND KEYBOARD SHORTCUTS</h2>
<div class="franklin-content">
<div class=note> <div class=title> <span class="note_title" style="font-weight:500;">
<img src="/blog/assets/icons/exclamation.png" style="width:auto; height:30px;opacity:0.99;padding-bottom:4px; margin-left:-4px;">
Remark </span> </div> <div class=content> The <strong> script used in this post</strong> can be found <a href="https://github.com/alfaromartino/blog/tree/main//assets/PAGES/03_LazyArrays/codeDownload"><strong>here</strong></a> under the name <code>allCode.jl</code>. To replicate the code with the same package versions I used, download <code>allCode_withPkg.jl</code> instead, along with <code>Project.toml</code> and <code>Manifest.toml</code>.<br/><br/> The benchmarks in this post wrap each variable into the function <code>ref&#40;x&#41; &#61; &#40;Ref&#40;x&#41;&#41;&#91;&#93;</code>. This prevents the computer from realizing that we&#39;re repeating the same calculation. Otherwise, <code>@btime</code> ends up repeating the result after a few iterations, without performing any computation. We also interpolate the variables with <code>&#36;</code> to avoid a function&#39;s arguments being interpreted as a global variable.<br/><br/> The code has been tested under <code>Julia 1.9</code>. </div> </div>
Remark </span> </div> <div class=content> The script in this post is available <a href="https://github.com/alfaromartino/blog/tree/main//assets/PAGES/03_LazyArrays/codeDownload"><strong>here</strong></a> under the name <code>allCode.jl</code>. It&#39;s been tested under <code>Julia 1.9</code>.<br/><br/> For more accurate benchmarks, each variable is wrapped in <code>ref&#40;x&#41; &#61; &#40;Ref&#40;x&#41;&#41;&#91;&#93;</code> and interpolated through <code>&#36;</code>. </div> </div>
<section id="introduction" class="scrollspy section-bg-color">
<div class="container">
<div class="row">
Expand Down Expand Up @@ -1874,7 +1876,7 @@ <h2>When to Use Lazy Broadcasts?</h2> </p>
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"> Previous Post</a></span>
<span class="right-text"><a href="/blog/PAGES\04_staticVectors" class="nextPage">Next Post <img src="/blog/assets/icons/next-page.png"
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"></a> </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 3, 2023 </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 31, 2023 </span>
</div>
<!-- </p> -->
</footer>
Expand Down
10 changes: 6 additions & 4 deletions PAGES/04_staticVectors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
}


.name_format a { color: white; }
.name_format a { color:rgba(183, 219, 255, 0.8); }
.name_format a:hover {
color: rgb(212, 212, 212);
color: rgb(214, 227, 240)
Expand Down Expand Up @@ -1317,8 +1317,10 @@ <h1>Performance Improvements in Julia (Part 2): Tuples and Static Arrays</h1>

<div class="name_format">
<a href="https://alfaromartino.github.io/" target="_blank" rel="noopener noreferrer">Martin Alfaro</a>
<span style="font-size:70%; vertical-align:0.05em;">- PhD in Economics</span>
</div>
<div class="phd_format">PhD in Economics</div>
<div class="phd_format">June 19, 2023</div>




Expand Down Expand Up @@ -1661,7 +1663,7 @@ <h2> NOTATION AND KEYBOARD SHORTCUTS</h2>
<div class="franklin-content">
<div class=note> <div class=title> <span class="note_title" style="font-weight:500;">
<img src="/blog/assets/icons/exclamation.png" style="width:auto; height:30px;opacity:0.99;padding-bottom:4px; margin-left:-4px;">
Remark </span> </div> <div class=content> The <strong> script used in this post</strong> can be found <a href="https://github.com/alfaromartino/blog/tree/main//assets/PAGES/04_staticVectors/codeDownload"><strong>here</strong></a> under the name <code>allCode.jl</code>. To replicate the code with the same package versions I used, download <code>allCode_withPkg.jl</code> instead, along with <code>Project.toml</code> and <code>Manifest.toml</code>.<br/><br/> The benchmarks in this post wrap each variable into the function <code>ref&#40;x&#41; &#61; &#40;Ref&#40;x&#41;&#41;&#91;&#93;</code>. This prevents the computer from realizing that we&#39;re repeating the same calculation. Otherwise, <code>@btime</code> ends up repeating the result after a few iterations, without performing any computation. We also interpolate the variables with <code>&#36;</code> to avoid a function&#39;s arguments being interpreted as a global variable.<br/><br/> The code has been tested under <code>Julia 1.9</code>. </div> </div>
Remark </span> </div> <div class=content> The script in this post is available <a href="https://github.com/alfaromartino/blog/tree/main//assets/PAGES/04_staticVectors/codeDownload"><strong>here</strong></a> under the name <code>allCode.jl</code>. It&#39;s been tested under <code>Julia 1.9</code>.<br/><br/> For more accurate benchmarks, each variable is wrapped in <code>ref&#40;x&#41; &#61; &#40;Ref&#40;x&#41;&#41;&#91;&#93;</code> and interpolated through <code>&#36;</code>. </div> </div>
<section id="introduction" class="scrollspy section-bg-color">
<div class="container">
<div class="row">
Expand Down Expand Up @@ -1920,7 +1922,7 @@ <h2>Static Vectors</h2></p>
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"> Previous Post</a></span>
<span class="right-text"><a href="/blog/PAGES\05_allocations" class="nextPage">Next Post <img src="/blog/assets/icons/next-page.png"
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"></a> </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 3, 2023 </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 31, 2023 </span>
</div>
<!-- </p> -->
</footer>
Expand Down
10 changes: 6 additions & 4 deletions PAGES/05_allocations/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
}


.name_format a { color: white; }
.name_format a { color:rgba(183, 219, 255, 0.8); }
.name_format a:hover {
color: rgb(212, 212, 212);
color: rgb(214, 227, 240)
Expand Down Expand Up @@ -1317,8 +1317,10 @@ <h1>Performance Improvements in Julia (Part 3): Reducing Allocations from Slices

<div class="name_format">
<a href="https://alfaromartino.github.io/" target="_blank" rel="noopener noreferrer">Martin Alfaro</a>
<span style="font-size:70%; vertical-align:0.05em;">- PhD in Economics</span>
</div>
<div class="phd_format">PhD in Economics</div>
<div class="phd_format">June 25, 2023</div>




Expand Down Expand Up @@ -1661,7 +1663,7 @@ <h2> NOTATION AND KEYBOARD SHORTCUTS</h2>
<div class="franklin-content">
<div class=note> <div class=title> <span class="note_title" style="font-weight:500;">
<img src="/blog/assets/icons/exclamation.png" style="width:auto; height:30px;opacity:0.99;padding-bottom:4px; margin-left:-4px;">
Remark </span> </div> <div class=content> The <strong> script used in this post</strong> can be found <a href="https://github.com/alfaromartino/blog/tree/main//assets/PAGES/05_allocations/codeDownload"><strong>here</strong></a> under the name <code>allCode.jl</code>. To replicate the code with the same package versions I used, download <code>allCode_withPkg.jl</code> instead, along with <code>Project.toml</code> and <code>Manifest.toml</code>.<br/><br/> The benchmarks in this post wrap each variable into the function <code>ref&#40;x&#41; &#61; &#40;Ref&#40;x&#41;&#41;&#91;&#93;</code>. This prevents the computer from realizing that we&#39;re repeating the same calculation. Otherwise, <code>@btime</code> ends up repeating the result after a few iterations, without performing any computation. We also interpolate the variables with <code>&#36;</code> to avoid a function&#39;s arguments being interpreted as a global variable.<br/><br/> The code has been tested under <code>Julia 1.9</code>. </div> </div>
Remark </span> </div> <div class=content> The script in this post is available <a href="https://github.com/alfaromartino/blog/tree/main//assets/PAGES/05_allocations/codeDownload"><strong>here</strong></a> under the name <code>allCode.jl</code>. It&#39;s been tested under <code>Julia 1.9</code>.<br/><br/> For more accurate benchmarks, each variable is wrapped in <code>ref&#40;x&#41; &#61; &#40;Ref&#40;x&#41;&#41;&#91;&#93;</code> and interpolated through <code>&#36;</code>. </div> </div>
<section id="introduction" class="scrollspy">
<div class="container">
<div class="row">
Expand Down Expand Up @@ -1895,7 +1897,7 @@ <h2>Why not Static Vectors?</h2></p>
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"> Previous Post</a></span>
<span class="right-text"><a href="/blog/PAGES\06_preAllocations" class="nextPage">Next Post <img src="/blog/assets/icons/next-page.png"
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"></a> </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 3, 2023 </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 31, 2023 </span>
</div>
<!-- </p> -->
</footer>
Expand Down
12 changes: 7 additions & 5 deletions PAGES/06_preAllocations/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
}


.name_format a { color: white; }
.name_format a { color:rgba(183, 219, 255, 0.8); }
.name_format a:hover {
color: rgb(212, 212, 212);
color: rgb(214, 227, 240)
Expand Down Expand Up @@ -1317,8 +1317,10 @@ <h1>Performance Improvements in Julia (Part 4): Pre-Allocations</h1>

<div class="name_format">
<a href="https://alfaromartino.github.io/" target="_blank" rel="noopener noreferrer">Martin Alfaro</a>
<span style="font-size:70%; vertical-align:0.05em;">- PhD in Economics</span>
</div>
<div class="phd_format">PhD in Economics</div>
<div class="phd_format">July 3, 2023</div>




Expand Down Expand Up @@ -1661,7 +1663,7 @@ <h2> NOTATION AND KEYBOARD SHORTCUTS</h2>
<div class="franklin-content">
<div class=note> <div class=title> <span class="note_title" style="font-weight:500;">
<img src="/blog/assets/icons/exclamation.png" style="width:auto; height:30px;opacity:0.99;padding-bottom:4px; margin-left:-4px;">
Remark </span> </div> <div class=content> The <strong> script used in this post</strong> can be found <a href="https://github.com/alfaromartino/blog/tree/main//assets/PAGES/06_preAllocations/codeDownload"><strong>here</strong></a> under the name <code>allCode.jl</code>. To replicate the code with the same package versions I used, download <code>allCode_withPkg.jl</code> instead, along with <code>Project.toml</code> and <code>Manifest.toml</code>.<br/><br/> The benchmarks in this post wrap each variable into the function <code>ref&#40;x&#41; &#61; &#40;Ref&#40;x&#41;&#41;&#91;&#93;</code>. This prevents the computer from realizing that we&#39;re repeating the same calculation. Otherwise, <code>@btime</code> ends up repeating the result after a few iterations, without performing any computation. We also interpolate the variables with <code>&#36;</code> to avoid a function&#39;s arguments being interpreted as a global variable.<br/><br/> The code has been tested under <code>Julia 1.9</code>. </div> </div>
Remark </span> </div> <div class=content> The script in this post is available <a href="https://github.com/alfaromartino/blog/tree/main//assets/PAGES/06_preAllocations/codeDownload"><strong>here</strong></a> under the name <code>allCode.jl</code>. It&#39;s been tested under <code>Julia 1.9</code>.<br/><br/> For more accurate benchmarks, each variable is wrapped in <code>ref&#40;x&#41; &#61; &#40;Ref&#40;x&#41;&#41;&#91;&#93;</code> and interpolated through <code>&#36;</code>. </div> </div>
<section id="introduction" class="scrollspy section-bg-color">
<div class="container">
<div class="row">
Expand Down Expand Up @@ -1908,9 +1910,9 @@ <h2>Some Conclusions</h2></p>
<div class="container">
<span class="left-text"><a href="/blog/PAGES\05_allocations" class="prevPage"><img src="/blog/assets/icons/prev-page.png"
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"> Previous Post</a></span>
<span class="right-text"><a href="/blog/PAGES\01_packageUpdate" class="nextPage">Next Post <img src="/blog/assets/icons/next-page.png"
<span class="right-text"><a href="/blog/PAGES\07_AIcoding" class="nextPage">Next Post <img src="/blog/assets/icons/next-page.png"
style="width:40px; height:auto;opacity:0.9;padding-bottom:5px;"></a> </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 3, 2023 </span>
<span class="center-text"> © Martin Alfaro <br>Website Last Modified on July 31, 2023 </span>
</div>
<!-- </p> -->
</footer>
Expand Down
Loading

0 comments on commit f4aeb68

Please sign in to comment.