From c324d24aa1699245b133659b0ced61f91eddbfe5 Mon Sep 17 00:00:00 2001 From: Quarto GHA Workflow Runner Date: Mon, 6 May 2024 08:25:16 +0000 Subject: [PATCH] Built site for gh-pages --- .nojekyll | 2 +- index.html | 56 +++++++++++++++++++++++++++--------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.nojekyll b/.nojekyll index 413f7f9..46c0300 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -8be4ad91 \ No newline at end of file +a3c7109f \ No newline at end of file diff --git a/index.html b/index.html index a4e558d..53f2ae7 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ - + Why Julia? @@ -481,7 +481,7 @@

Benchmarking — Data Wrangling

Benchmarking — Data Wrangling (Python)

-
+
using BenchmarkTools
 py"""
 import pandas as pd
@@ -495,13 +495,13 @@ 

Benchmarking — Data Wrangling (Python)

""" @btime py"df.groupby('x').agg({'y': 'median', 'z': 'mean'})";
-
  1.476 ms (3 allocations: 144 bytes)
+
  1.435 ms (3 allocations: 144 bytes)

Benchmarking — Data Wrangling (Julia)

-
+
using Random
 using DataFrames
 using BenchmarkTools
@@ -521,7 +521,7 @@ 

Benchmarking — Data Wrangling (Julia)

combine(:y => median, :z => mean) end;
-
  274.033 μs (433 allocations: 540.63 KiB)
+
  277.088 μs (433 allocations: 540.63 KiB)
@@ -543,7 +543,7 @@

Benchmarking — ODE Solver

Benchmarking — ODE Solver (Julia)

-
+
using DifferentialEquations
 
 # Constants
@@ -566,13 +566,13 @@ 

Benchmarking — ODE Solver (Julia)

# RK 4/5th order solver (Tsitouras) @btime solve(prob, Tsit5(); saveat=range(tspan...; length=1_000));
-
  153.527 μs (1840 allocations: 139.64 KiB)
+
  165.100 μs (1840 allocations: 139.64 KiB)

Benchmarking — ODE Solver (Python)

-
+
py"""
 import numpy as np
 from scipy.integrate import odeint
@@ -594,7 +594,7 @@ 

Benchmarking — ODE Solver (Python)

# RK 4/5th order solver (Dormand-Prince) @btime py"odeint(simplependulum, u0, tspan, args=(g, L))";
-
  1.491 ms (29 allocations: 17.05 KiB)
+
  1.506 ms (29 allocations: 17.05 KiB)
@@ -612,7 +612,7 @@

Why Julia is so Fast?

Why Julia is so Fast? — LLVM code

-
+
using Statistics: mean
 @code_llvm mean(1:10)
@@ -623,10 +623,10 @@

Why Julia is so Fast? — LLVM code

Why Julia is so Fast? — LLVM code

-
;  @ /opt/hostedtoolcache/julia/1.10.2/x64/share/julia/stdlib/v1.10/Statistics/src/Statistics.jl:195 within `mean`
+
;  @ /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`
@@ -646,7 +646,7 @@ 

Why Julia is so Fast? — LLVM code

%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 }
@@ -676,7 +676,7 @@

It’s Julia all the way down

If you need to find something just use the @which macro on a type or a function signature.


-
+
@which DataFrame # type
DataFrames
@@ -685,10 +685,10 @@

It’s Julia all the way down


-
+
@which mean(1:10) # function signature.
@@ -705,7 +705,7 @@

Composability

Composability — Example with Point

-
+
struct Point
   x::Float64
   y::Float64
@@ -722,7 +722,7 @@ 

Composability — Example with Point

p1 = Point(1, 1); p2 = Point(2, 2)
-
+
p1 + p2
Point(3.0, 3.0)
@@ -730,7 +730,7 @@

Composability — Example with Point

-
+
distance(p1, p2)
1.4142135623730951
@@ -864,9 +864,9 @@

Conclusions

Packages Used

-
+
-
Julia: 1.10.2
+
Julia: 1.10.3
 BenchmarkTools 1.5.0
 Chain 0.6.0
 DataFrames 1.6.1
@@ -878,12 +878,12 @@ 

Packages Used

-
+
-
Python: 3.12.2 (main, Feb  7 2024, 16:26:19) [GCC 11.4.0]
+
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
+pandas: 2.2.2
@@ -891,10 +891,10 @@

Packages Used

System Information

-
+
-
Julia Version 1.10.2
-Commit bd47eca2c8a (2024-03-01 10:14 UTC)
+
Julia Version 1.10.3
+Commit 0b4590a5507 (2024-04-30 10:59 UTC)
 Build Info:
   Official https://julialang.org/ release
 Platform Info:
@@ -906,7 +906,7 @@ 

System Information

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
+ LD_LIBRARY_PATH = /opt/hostedtoolcache/Python/3.12.3/x64/lib