Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions example/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/go-scikit/go-scikit.github.io/example
go 1.27.3

require (
github.com/go-ndarray/ndarray v0.46.0
github.com/go-ndarray/ndarray v0.47.0
github.com/go-statistics/stats v0.1.1
)

Expand All @@ -12,10 +12,10 @@ require (
github.com/go-blas/blas v0.4.0 // indirect
github.com/go-embedded-c/c v0.2.1 // indirect
github.com/go-embedded-fortran/fortran v0.30.0 // indirect
github.com/go-embedded-julia/julia v0.25.0 // indirect
github.com/go-embedded-julia/julia v0.26.0 // indirect
github.com/go-embedded-r/r v0.22.0 // indirect
github.com/go-notebook/notebook v0.24.0 // indirect
github.com/go-numerics/optimize v0.6.0 // indirect
github.com/go-notebook/notebook v0.25.0 // indirect
github.com/go-numerics/optimize v0.16.0 // indirect
github.com/go-numerics/special v0.5.3 // indirect
github.com/go-opentype/opentype v0.16.1 // indirect
github.com/go-regexp/engine v0.4.2 // indirect
Expand All @@ -24,7 +24,7 @@ require (
github.com/go-ruby-parser/parser v0.14.0 // indirect
github.com/go-ruby-regexp/regexp v0.2.1 // indirect
github.com/go-ruby-reline/reline v0.1.0 // indirect
github.com/go-simd/floats v0.26.0 // indirect
github.com/go-simd/floats v0.42.0 // indirect
github.com/go-sparse/sparse v0.3.0 // indirect
github.com/go-tex/math v0.50.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
Expand Down
20 changes: 10 additions & 10 deletions example/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ github.com/go-embedded-c/c v0.2.1 h1:LCNcLHJ1T3Ry0adJwO+jK9RnoFwrMd6yR/0bb0muHIc
github.com/go-embedded-c/c v0.2.1/go.mod h1:MhuXRqUtTZTUnm/3fVjho1HiL6QCFylChzOQ+Tu9eiQ=
github.com/go-embedded-fortran/fortran v0.30.0 h1:istuoEzsA+a1NEkl6LwOmgx1Sh4CdYmpEWjPSf8XmNs=
github.com/go-embedded-fortran/fortran v0.30.0/go.mod h1:UUtUFdyuO7fWnDoBjbjGZNGXg7bH2fW2DLp1D4QOAkg=
github.com/go-embedded-julia/julia v0.25.0 h1:F/jsSizq2auKsCpZYLSIcIxYjZXbV+7j7wA7bSTAOwc=
github.com/go-embedded-julia/julia v0.25.0/go.mod h1:hylaxwsK4EPrDCme5FkZpnmsToxnzroHzY6yS0MTP50=
github.com/go-embedded-julia/julia v0.26.0 h1:DddScj4XX+O9u0WNRn5wfM+tRPLzWFr8Ik6msAfPsy4=
github.com/go-embedded-julia/julia v0.26.0/go.mod h1:hylaxwsK4EPrDCme5FkZpnmsToxnzroHzY6yS0MTP50=
github.com/go-embedded-r/r v0.22.0 h1:hq6WHM/6mD6EPHS0xQfpxX9cWRF8Z7VIdttrT8wggQo=
github.com/go-embedded-r/r v0.22.0/go.mod h1:BTArmDboiqM4eMHnw1YSt84+z8wTG7+gVvmE51tarEI=
github.com/go-ndarray/ndarray v0.46.0 h1:yKAaV7P2ZyzAL68wRGMbcGbXbwNicE4od7RejluQ088=
github.com/go-ndarray/ndarray v0.46.0/go.mod h1:RwzukOi5C/TwFEKjZfQ56S8duTpiFDWVfw9QqrzUdZo=
github.com/go-notebook/notebook v0.24.0 h1:0O8le0PC+drAZp5U1NzgjBPvyYWMhAgGDFO6sCFOWO4=
github.com/go-notebook/notebook v0.24.0/go.mod h1:kBbUIToiwu4/lc/oyzMBdY9lWfru22IQH6Qi0a8OEUM=
github.com/go-numerics/optimize v0.6.0 h1:7QjTy+M+PclufHFwIo5PrxReU397BvX0ys/ZIJ+kkSo=
github.com/go-numerics/optimize v0.6.0/go.mod h1:b5Fg+NuuCKViOXQLzfgBhxd0thmAjt6lREE8EDFVyQ8=
github.com/go-ndarray/ndarray v0.47.0 h1:Vn71wPK+t3y2a6sY6fn+AMyyvlWevUIGvGpBUNzGDFk=
github.com/go-ndarray/ndarray v0.47.0/go.mod h1:UzXTCjZhxaqvoGdTb3tuXBmn3f+bWY3ISLcvbmOrqbM=
github.com/go-notebook/notebook v0.25.0 h1:As96/c/8CJ0meBBOu8mzBQ95qOFPkBuhdfYFCT3e07g=
github.com/go-notebook/notebook v0.25.0/go.mod h1:6GIHGvjqsnhr2zxMuTnEE16i5hHMwLSI52SQIpwt2VU=
github.com/go-numerics/optimize v0.16.0 h1:xKR/ysRR9TSyetzLnmwDpd3+XbmGG5veavFp/JAEb70=
github.com/go-numerics/optimize v0.16.0/go.mod h1:1b4w9cvXIawVwC/0lxyKFDYjlsQWvGuM2KmOrp5GwvM=
github.com/go-numerics/special v0.5.3 h1:sTZ4hbZE7XsDmMM0AclR0dQFFe9+mIjstxECvaMEOsU=
github.com/go-numerics/special v0.5.3/go.mod h1:A4gX/e2znfRvkjSDMmMaFomZVeD9rDMeMlAILQLtoIA=
github.com/go-opentype/opentype v0.16.1 h1:Hu2RKinqbd/WVSpRz6VrdKUPZUwPTZ4F9yx2HjZ5oCI=
Expand All @@ -33,8 +33,8 @@ github.com/go-ruby-regexp/regexp v0.2.1 h1:hzcRVdV91IMMn57owxxp3y6kcBWduJE5fXYoG
github.com/go-ruby-regexp/regexp v0.2.1/go.mod h1:Wa6vJhr6UR5wZuWtuJEEHZBI3rqYX5q1bj7TzUWIAXA=
github.com/go-ruby-reline/reline v0.1.0 h1:KtpazqY8oEZB1+jn94ItAS9JKPylurgF51bvMfl4WrM=
github.com/go-ruby-reline/reline v0.1.0/go.mod h1:0LGioiV81zcYhSZFQLfyDPyZxb2n4E6tjliKVT42j4I=
github.com/go-simd/floats v0.26.0 h1:IovUqTYY7U+CPDh/4JJMoCGBzuYK6zpSOzuWg/tn4Ks=
github.com/go-simd/floats v0.26.0/go.mod h1:Aq5a6oY5pUqm9Hpi+iV2nrNmaaUb0rwHvUHIerXWSvA=
github.com/go-simd/floats v0.42.0 h1:DYzJXKO2nFJuixbUvcJVEmNluBQJi2mDLg4zEJkJSxU=
github.com/go-simd/floats v0.42.0/go.mod h1:Aq5a6oY5pUqm9Hpi+iV2nrNmaaUb0rwHvUHIerXWSvA=
github.com/go-sparse/sparse v0.3.0 h1:y++tCTIdQsGwUavxCHKfDt4AX8T2zUnwyDQ3Vix3uP8=
github.com/go-sparse/sparse v0.3.0/go.mod h1:Ds5+sYeB78IUtIe83Xi3km+wMbD7sW2u1q64eLS8bhI=
github.com/go-statistics/stats v0.1.1 h1:41gSX4+rAc7BeOXUXZ+TsNU5rIUMkNmkeeETNXn9lUM=
Expand Down
10 changes: 5 additions & 5 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404']
layer = 0
short = "arrays, numpy.linalg, numpy.random"
lib = "ndarray"
state = "ndarray v0.46.0"
state = "ndarray v0.47.0"
live = true
brand = true
blurb = "N-dimensional arrays in 13 dtypes with NumPy 2 promotion, broadcasting, strided views and reductions, multicore and SIMD. Package <code>linalg</code> is <code>numpy.linalg</code>, <code>fft</code> is <code>numpy.fft</code>, and <code>random</code> is <code>numpy.random</code> with NumPy's numbers for the same seed."
Expand All @@ -61,7 +61,7 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404']
layer = 0
short = "numpy.fft, scipy.fft"
lib = "fft"
state = "fft v0.49.0"
state = "fft v0.51.0"
live = true
brand = true
blurb = "The <code>numpy.fft</code> / <code>scipy.fft</code> equivalent: complex and real transforms of any length, N-D, the DCT and DST, single precision, windows, with no dependency on FFTW. AVX2 and AVX-512 kernels on amd64, NEON on arm64, bit-identical to the Go code."
Expand All @@ -71,7 +71,7 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404']
layer = 1
short = "optimize, integrate, special"
lib = "optimize"
state = "optimize v0.9.0, integrate v0.3.0, special v0.22.0"
state = "optimize v0.16.0, integrate v0.5.1, special v0.23.0"
live = true
brand = true
blurb = "Numerical methods ported statement by statement from their reference algorithms: minimisation, roots, least squares and linear programming (<code>optimize</code>); QUADPACK quadrature and ODE solvers (<code>integrate</code>); gamma, beta, error, Bessel and zeta functions measured against mpmath (<code>special</code>)."
Expand Down Expand Up @@ -109,11 +109,11 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404']
layer = 2
short = "compiled, reactive notebooks"
lib = "notebook"
state = "notebook v0.24.0"
state = "notebook v0.25.0"
live = true
playground = "https://go-notebook.github.io/playground/"
brand = true
blurb = "A notebook is a Markdown file whose <code>go</code> and <code>ruby</code> blocks are cells. The kernel compiles it into a real Go program, orders the cells of both languages by what they use, and runs only what changed, keeping values across runs. Ruby cells run on go-embedded-ruby, with the go-scikit bindings."
blurb = "A notebook is a Markdown file whose <code>go</code>, <code>ruby</code> and <code>julia</code> blocks are cells that share variables (<code>r</code> and <code>fortran</code> blocks run too, <code>c</code> blocks are checked). The kernel compiles it into a real Go program, orders the cells by what they use, and runs only what changed, keeping values across runs. Ruby cells run on go-embedded-ruby, with the go-scikit bindings."
[[params.orgs]]
name = "go-bignum"
layer = 1
Expand Down
8 changes: 4 additions & 4 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
<h1 class="head">Science in Go,<br>{{/* The sheet's .accent paints with --grad, base to deep: on a dark page
this logo's dark slate stops would vanish. --accent and --accent-deep
are the same two in light and the bright stop in dark. */}}<span class="accent" style="background:linear-gradient(135deg,var(--accent),var(--accent-deep));-webkit-background-clip:text;background-clip:text">all the way down.</span></h1>
<p class="sub">go-scikit is the umbrella over <b>{{ len $orgs }} organisations</b> that together cover what a Python notebook reaches for in NumPy, SciPy, pandas and matplotlib: <b>arrays</b>, <b>FFTs</b>, <b>numerical methods</b>, <b>statistics</b>, <b>labelled tables</b>, <b>figures</b> and <b>notebooks</b>, and, on the way to parity with MATLAB and Mathematica, <b>sparse matrices</b>, <b>interpolation</b>, <b>signal processing</b> and <b>arbitrary precision</b>.{{ if not (partial "mantra-on.html" .) }} Pure Go, CGO=0,{{ end }} Each library is measured against its reference, with the documents that say where it is slower or less accurate. A notebook's cells can be <b>Go</b> or <b>Ruby</b>, one cell reading what the other computed. <code>julia</code> cells are <b>planned</b> on <a href="https://go-embedded-julia.github.io/">go-embedded-julia</a> (<a href="https://github.com/go-scikit/roadmap/blob/main/bib/julia.md">plan</a>).</p>
<p class="sub">go-scikit is the umbrella over <b>{{ len $orgs }} organisations</b> that together cover what a Python notebook reaches for in NumPy, SciPy, pandas and matplotlib: <b>arrays</b>, <b>FFTs</b>, <b>numerical methods</b>, <b>statistics</b>, <b>labelled tables</b>, <b>figures</b> and <b>notebooks</b>, and, on the way to parity with MATLAB and Mathematica, <b>sparse matrices</b>, <b>interpolation</b>, <b>signal processing</b> and <b>arbitrary precision</b>.{{ if not (partial "mantra-on.html" .) }} Pure Go, CGO=0,{{ end }} Each library is measured against its reference, with the documents that say where it is slower or less accurate. A notebook's cells can be <b>Go</b>, <b>Ruby</b> or <b>Julia</b>, one cell reading what the other computed; <b>R</b> and <b>Fortran</b> cells run too, each keeping its variables, and <b>C</b> cells are checked, not run. More Julia types across cells, and Julia cells in the browser playground, are <b>planned</b> on <a href="https://go-embedded-julia.github.io/">go-embedded-julia</a> (<a href="https://github.com/go-scikit/roadmap/blob/main/bib/julia.md">plan</a>).</p>
{{/* [[params.cta]] in hugo.toml: the kit renders the row */}}
{{ partial "cta.html" . }}
<div class="trust"><span><b>{{ len $orgs }}</b> organisations</span><span><b>Go</b> and <b>Ruby</b> cells</span>{{ if not (partial "mantra-on.html" .) }}<span><b>CGO=0</b> everywhere</span><span><b>BSD-3-Clause</b></span>{{ end }}</div>
<div class="trust"><span><b>{{ len $orgs }}</b> organisations</span><span><b>Go</b>, <b>Ruby</b>, <b>Julia</b>, <b>R</b>, <b>Fortran</b> cells</span>{{ if not (partial "mantra-on.html" .) }}<span><b>CGO=0</b> everywhere</span><span><b>BSD-3-Clause</b></span>{{ end }}</div>
</div>
<div class="term" style="min-width:0">
<div class="bar"><i style="background:#ff5f57"></i><i style="background:#febc2e"></i><i style="background:#28c840"></i><span class="t">first.md</span></div>
Expand Down Expand Up @@ -100,7 +100,7 @@ <h2>{{ len .Site.Params.claims }} claims, each <i>with its evidence</i>.</h2>
<section id="roadmap" style="padding-top:10px"><div class="wrap">
<span class="eyebrow">Roadmap</span>
<h2>Parity with MATLAB and Mathematica, <i>in four waves</i>.</h2>
<p class="lead">The goal is feature parity with MATLAB (base and toolboxes) and Mathematica, in pure Go (CGO=0), each piece validated against the reference tools of its domain. The plan, the home of each domain and the order of the work are in the <a href="https://github.com/go-scikit/roadmap"><u>roadmap repository</u></a>: <a href="https://github.com/go-scikit/roadmap/blob/main/PLAN.md"><u>PLAN.md</u></a>, <a href="https://github.com/go-scikit/roadmap/blob/main/STATUS.md"><u>STATUS.md</u></a> and the <a href="https://github.com/go-scikit/roadmap/tree/main/bib"><u>bibliography</u></a>. Five packages of the new organisations have been released: <a href="https://github.com/go-approx/interp"><u>go-approx/interp</u></a> v0.2.1 (speed comparison in its <a href="https://github.com/go-approx/interp/blob/main/docs/perf.md"><u>docs/perf.md</u></a>), <a href="https://github.com/go-approx/poly"><u>go-approx/poly</u></a>, <a href="https://github.com/go-dsp/signal"><u>go-dsp/signal</u></a> and <a href="https://github.com/go-sparse/sparse"><u>go-sparse/sparse</u></a> v0.1.0, each at or below its reference's time on every case measured, and <a href="https://github.com/go-bignum/bigfloat"><u>go-bignum/bigfloat</u></a> v0.1.0, at or below mpmath's time on every function (<a href="https://github.com/go-bignum/bigfloat/blob/v0.1.0/docs/perf.md"><u>docs/perf.md</u></a>). The vector-update kernels <code>Axpy</code>, <code>Xpby</code>, <code>AxpyDot</code> and <code>Scale</code> shipped in go-simd/floats v0.4.0. Speed claims are being brought under one rule, set out in the <a href="https://github.com/go-scikit/roadmap/blob/main/docs/performance-campaign.md"><u>performance campaign</u></a>: against the reference, on one core, in interleaved rounds, only when the host's load is under 8. The shared tool, <a href="https://github.com/go-scikit/refbench"><u>go-scikit/refbench</u></a> v0.1.0, is released; no repository has migrated to it yet.</p>
<p class="lead">The goal is feature parity with MATLAB (base and toolboxes) and Mathematica, in pure Go (CGO=0), each piece validated against the reference tools of its domain. The plan, the home of each domain and the order of the work are in the <a href="https://github.com/go-scikit/roadmap"><u>roadmap repository</u></a>: <a href="https://github.com/go-scikit/roadmap/blob/main/PLAN.md"><u>PLAN.md</u></a>, <a href="https://github.com/go-scikit/roadmap/blob/main/STATUS.md"><u>STATUS.md</u></a> and the <a href="https://github.com/go-scikit/roadmap/tree/main/bib"><u>bibliography</u></a>. Five packages of the new organisations have been released: <a href="https://github.com/go-approx/interp"><u>go-approx/interp</u></a> v0.2.2 (speed comparison in its <a href="https://github.com/go-approx/interp/blob/main/docs/perf.md"><u>docs/perf.md</u></a>), <a href="https://github.com/go-approx/poly"><u>go-approx/poly</u></a> v0.1.1, <a href="https://github.com/go-dsp/signal"><u>go-dsp/signal</u></a> v0.2.0, <a href="https://github.com/go-sparse/sparse"><u>go-sparse/sparse</u></a> v0.3.2 and <a href="https://github.com/go-bignum/bigfloat"><u>go-bignum/bigfloat</u></a> v0.2.0, each timed against its reference (see its <code>docs/perf.md</code>; the roadmap's <a href="https://github.com/go-scikit/roadmap/blob/main/STATUS.md"><u>STATUS.md</u></a> says which rows are current). The vector-update kernels <code>Axpy</code>, <code>Xpby</code>, <code>AxpyDot</code> and <code>Scale</code> are in go-simd/floats (latest v0.44.0). Speed claims are being brought under one rule, set out in the <a href="https://github.com/go-scikit/roadmap/blob/main/docs/performance-campaign.md"><u>performance campaign</u></a>: against the reference, on one core, in interleaved rounds, only when the host's load is under 8. The shared tool, <a href="https://github.com/go-scikit/refbench"><u>go-scikit/refbench</u></a> v0.4.1, is released.</p>
<div class="grid">
{{ range .Site.Params.waves }}
<div class="card"><h3>{{ .name }}</h3><p>{{ .what | safeHTML }}</p><p style="margin-top:12px;color:var(--slate);font-size:13.5px">Homes: {{ .homes }}</p></div>
Expand All @@ -124,7 +124,7 @@ <h2>A first notebook, <i>in four commands</i>.</h2>
# notebook serve first.md the same, live in the browser, editable</span></pre>
</div>
<p class="lead">Run it again and every cell is <i>kept</i>: a cell whose code and inputs did not change is not run again, across runs. The <a href="https://go-notebook.github.io/docs/"><u>go-notebook documentation</u></a> gives the cell rules; to try the arrays and the transforms without installing anything, the <a href="https://go-ndarray.github.io/playground/"><u>go-ndarray</u></a> and <a href="https://go-fft.github.io/playground/"><u>go-fft</u></a> playgrounds run them compiled to WebAssembly in the browser, and the <a href="https://go-notebook.github.io/playground/"><u>go-notebook</u></a>, <a href="https://go-statistics.github.io/playground/"><u>go-statistics</u></a> and <a href="https://go-numerics.github.io/playground/"><u>go-numerics</u></a> playgrounds run whole notebooks there, Go and Ruby cells alike: edit the cells, run them, see the figures.</p>
<p class="lead">A <code>ruby</code> cell runs on <a href="https://github.com/go-embedded-ruby"><u>go-embedded-ruby</u></a>, a Ruby written in Go, so the notebook stays one Go program with no Ruby to install. It sees the values the Go cells above it defined (here <code>x</code>, a Go <code>[]float64</code>), and the Go cells below it see what it defines; the kernel orders and re-runs cells of both languages by what they use. From Ruby, the stack is reached through <a href="https://github.com/go-scikit/ruby"><u>go-scikit/ruby</u></a>, which the kernel adds by itself: <code>Stats</code>, <code>Special</code>, <code>Optimize</code>, <code>Integrate</code>, <code>DataFrame</code> and <code>Plot</code> call the same Go functions, with the same answers. The <a href="https://go-notebook.github.io/docs/latest/ruby/"><u>Ruby cells page</u></a> gives the rules, and the <code>-timeout</code> and <code>-memory</code> limits that stop a runaway cell. <code>julia</code> cells are planned on <a href="https://go-embedded-julia.github.io/"><u>go-embedded-julia</u></a>, a Julia interpreter in Go that is in development (milestones M0 and M1); the plan is <a href="https://github.com/go-scikit/roadmap/blob/main/bib/julia.md"><u>bib/julia.md</u></a> in the roadmap.</p>
<p class="lead">A <code>ruby</code> cell runs on <a href="https://github.com/go-embedded-ruby"><u>go-embedded-ruby</u></a>, a Ruby written in Go, so the notebook stays one Go program with no Ruby to install. It sees the values the Go cells above it defined (here <code>x</code>, a Go <code>[]float64</code>), and the Go cells below it see what it defines; the kernel orders and re-runs cells of both languages by what they use. From Ruby, the stack is reached through <a href="https://github.com/go-scikit/ruby"><u>go-scikit/ruby</u></a>, which the kernel adds by itself: <code>Stats</code>, <code>Special</code>, <code>Optimize</code>, <code>Integrate</code>, <code>DataFrame</code> and <code>Plot</code> call the same Go functions, with the same answers. The <a href="https://go-notebook.github.io/docs/latest/ruby/"><u>Ruby cells page</u></a> gives the rules, and the <code>-timeout</code> and <code>-memory</code> limits that stop a runaway cell. <code>julia</code> cells run on <a href="https://go-embedded-julia.github.io/"><u>go-embedded-julia</u></a> (v0.26.0 in notebook v0.25.0), a Julia interpreter in Go. Julia numbers, strings, vectors and matrices already cross to the Go and Ruby cells; more types, and Julia cells in the browser playground, are still planned. The plan is <a href="https://github.com/go-scikit/roadmap/blob/main/bib/julia.md"><u>bib/julia.md</u></a> in the roadmap.</p>
</div></section>

<section id="repos" style="padding-top:10px"><div class="wrap">
Expand Down