Skip to content
Snippets Groups Projects
Commit c038bc0f authored by Andrew E. Torda's avatar Andrew E. Torda
Browse files

Checked that it works with fyne 2.5 (which should handle wasm). The

plot library also seems to have been updated.
parent d1f5aa90
Branches devel
No related tags found
No related merge requests found
...@@ -9,17 +9,24 @@ GOFMT=gofmt ...@@ -9,17 +9,24 @@ GOFMT=gofmt
# The lint target only makes sense for Andrew's setup. # The lint target only makes sense for Andrew's setup.
LINTER=~/go/bin/linux_amd64/golangci-lint LINTER=~/go/bin/linux_amd64/golangci-lint
WASM_EXE=bin/ackley_wasm.exe
all: all: $(WASM_EXE)
GOOS=linux GOARCH=amd64 $(GO) build -o bin/ . GOOS=linux GOARCH=amd64 $(GO) build -o bin/ .
GOOS=linux GOARCH=amd64 $(GO) build -o bin/ackley_nogfx -tags no_gfx -- . GOOS=linux GOARCH=amd64 $(GO) build -o bin/ackley_nogfx -tags no_gfx -- .
GOOS=darwin GOARCH=amd64 $(GO) build -o bin/ackley_darwinamd64_nogfx -tags no_gfx -- . GOOS=darwin GOARCH=amd64 $(GO) build -o bin/ackley_darwinamd64_nogfx -tags no_gfx -- .
GOOS=darwin GOARCH=arm64 $(GO) build -o bin/ackley_darwinarm64_nogfx -tags no_gfx -- . GOOS=darwin GOARCH=arm64 $(GO) build -o bin/ackley_darwinarm64_nogfx -tags no_gfx -- .
GOOS=windows GOARCH=amd64 $(GO) build -o bin/ackley_nogfx.exe -tags no_gfx -- . GOOS=windows GOARCH=amd64 $(GO) build -o bin/ackley_nogfx.exe -tags no_gfx -- .
win: win:
GOOS=windows GOARCH=amd64 $(GO) build -o bin -- . GOOS=windows GOARCH=amd64 $(GO) build -o bin -- .
# This is not finished, but eventually, we have to play with a webassembly
# version.
$(WASM_EXE):
GOOS=js GOARCH=wasm $(GO) build -o bin/ackley_wasm.exe -- .
test: test:
$(GO) test ./... $(GO) test ./...
$(GO) test -tags no_gfx ./... $(GO) test -tags no_gfx ./...
......
No preview for this file type
No preview for this file type
No preview for this file type
module example.com/ackley_mc module example.com/ackley_mc
go 1.17 go 1.21.5
require ( require (
fyne.io/fyne/v2 v2.2.3 fyne.io/fyne/v2 v2.5.0
github.com/wcharczuk/go-chart/v2 v2.1.0 github.com/wcharczuk/go-chart/v2 v2.1.1
gitlab.rrz.uni-hamburg.de/Bae5157/axticks v0.0.0-20220120103412-d663ebb46145 gitlab.rrz.uni-hamburg.de/Bae5157/axticks v0.0.0-20220120103412-d663ebb46145
) )
require ( require (
fyne.io/systray v1.10.1-0.20220621085403-9a2652634e93 // indirect fyne.io/systray v1.11.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect github.com/BurntSushi/toml v1.4.0 // indirect
github.com/fredbi/uri v0.0.0-20181227131451-3dcfdacbaaf3 // indirect github.com/fredbi/uri v1.1.0 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/fyne-io/gl-js v0.0.0-20220119005834-d2da28d9ccfe // indirect
github.com/fyne-io/glfw-js v0.0.0-20220120001248-ee7290d23504 // indirect
github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 // indirect github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 // indirect
github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20211213063430-748e38ca8aec // indirect github.com/go-gl/glfw/v3.3/glfw v0.0.0-20240506104042-037f3cc74f2a // indirect
github.com/go-text/render v0.1.0 // indirect
github.com/go-text/typesetting v0.1.0 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/goki/freetype v0.0.0-20181231101311-fa8a33aabaff // indirect
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
github.com/gopherjs/gopherjs v1.17.2 // indirect github.com/jeandeaual/go-locale v0.0.0-20240223122105-ce5225dcaa49 // indirect
github.com/jsummers/gobmp v0.0.0-20151104160322-e2ba15ffa76e // indirect github.com/jsummers/gobmp v0.0.0-20151104160322-e2ba15ffa76e // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect github.com/nicksnyder/go-i18n/v2 v2.4.0 // indirect
github.com/srwiley/oksvg v0.0.0-20200311192757-870daf9aa564 // indirect github.com/rymdport/portal v0.2.2 // indirect
github.com/srwiley/rasterx v0.0.0-20200120212402-85cb7272f5e9 // indirect github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c // indirect
github.com/stretchr/testify v1.7.2 // indirect github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef // indirect
github.com/tevino/abool v1.2.0 // indirect github.com/yuin/goldmark v1.7.1 // indirect
github.com/yuin/goldmark v1.4.0 // indirect golang.org/x/image v0.18.0 // indirect
golang.org/x/image v0.0.0-20220601225756-64ec528b34cd // indirect golang.org/x/net v0.25.0 // indirect
golang.org/x/mobile v0.0.0-20211207041440-4e6c2922fdee // indirect golang.org/x/sys v0.20.0 // indirect
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect golang.org/x/text v0.16.0 // indirect
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect
golang.org/x/text v0.3.7 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
honnef.co/go/js/dom v0.0.0-20210725211120-f030747120f2 // indirect
) )
This diff is collapsed.
// Aug 2021 // Aug 2021
//go:build !no_gfx //go:build !no_gfx
// +build !no_gfx
// Ackley_mc is for playing with Monte Carlo or simulated annealing on the // Ackley_mc is for playing with Monte Carlo or simulated annealing on the
// ackley function in N dimensions. // ackley function in N dimensions.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment