On JavaScript, effects run on Flick's own small runtime; the Effect adapter is an option, runtime = "effect". What a host gives, the console, the clock, randomness, the environment, the arguments and child processes, is a Host service that the signature names, and a test swaps it like any other.
hypot : Float -> Float -> Float
let hypot a b = Float.sqrt (a * a + b * b)
@native "Math.hypot" when js
@native "math.Hypot" when go
@native gives a function a host's own implementation on one target, over a Flick body that every other target uses. @when "js && !browser" keeps a whole module to the hosts it can run on.
[build]
target = "go" # or --target js
environment = "go/native" # or js/node, js/bun, …
[tools]
"flick/go" = ["go"]
[target.go]
cgo = true # declared by flick/go