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 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.27.2'
go-version: '1.27.3'
- run: go version
# Not on Windows: its checkout converts line endings to CRLF.
- name: gofmt
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.27.2'
go-version: '1.27.3'
- name: govulncheck
run: go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
- name: Fuzz the binding arguments for 60 s
Expand All @@ -73,7 +73,7 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.27.2'
go-version: '1.27.3'
- run: go vet ./... && go test ./... && go test -tags rbgo_core ./...

arch-qemu:
Expand All @@ -91,7 +91,7 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.27.2'
go-version: '1.27.3'
- run: sudo apt-get update && sudo apt-get install -y qemu-user-static
- name: Vet + test under qemu (${{ matrix.goarch }})
run: |
Expand All @@ -105,7 +105,7 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.27.2'
go-version: '1.27.3'
- name: go test -c for each target, both builds
shell: bash
run: |
Expand Down
37 changes: 28 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,17 +419,36 @@ parameters as readers.

`a` `cdf` `entropy` `inspect` `interval` `isf` `kurtosis` `loc` `logcdf` `logpmf` `logsf` `mean` `median` `moment` `pmf` `ppf` `rvs` `sf` `skew` `std` `support` `to_h` `validate` `var` `new`


--- PASS: TestPrintBindings (0.02s)
PASS
ok github.com/go-scikit/ruby 1.227s
## Notebooks

Package [cells](cells/) runs the Ruby cells of a
[go-notebook](https://github.com/go-notebook/notebook) notebook: one
interpreter per worker, whose top-level locals persist from cell to cell, and
the exchange of variables with the Go cells. Its documentation states the
conversion rules both ways; a notebook links it, you do not call it.
These bindings are what a ` ```ruby ` cell of a
[go-notebook](https://github.com/go-notebook/notebook) notebook (v0.3.0 and
later) runs on. A notebook can mix Go and Ruby cells, and their variables
cross both ways:

````markdown
```go
xs := []float64{2.1, 3.4, 1.9, 5.6, 4.4, 3.3, 2.8, 4.9}
```

```ruby
fit = Stats::Normal.fit(xs) # xs is a Ruby Array of Floats here
loc, scale = fit.loc, fit.scale
```

```go
import "fmt"

fmt.Printf("loc %.3f, scale %.3f\n", loc, scale) // float64s here
```
````

Package [cells](cells/) runs those cells: one interpreter per worker, whose
top-level locals persist from cell to cell, and the exchange of variables with
the Go cells. Its documentation states the conversion rules both ways; a
notebook links it, you do not call it. The notebook's kernel requires this
module in its work module by itself, so a notebook's own `go.mod` only needs
go-notebook.

## Build tags

Expand Down
Loading