Bug: Go codegen missing std/math function definitions
Error:
sim_gen/bridge.go:75:27: undefined: PI
sim_gen/bridge.go:106:25: undefined: Sin
sim_gen/bridge.go:117:27: undefined: PI
sim_gen/bridge.go:149:26: undefined: Cos
Context: AILANG type-checks successfully. Go codegen runs successfully. But generated Go code references PI, Sin, Cos which aren't defined in runtime.go.
Expected: Go codegen should emit math.Pi, math.Sin, math.Cos (from Go's math package) or define wrappers in runtime.go.
AILANG version: v0.5.8-16-g0989e8c8-dirty
Reported by: cli via ailang messages
Bug: Go codegen missing std/math function definitions
Error:
Context: AILANG type-checks successfully. Go codegen runs successfully. But generated Go code references
PI,Sin,Coswhich aren't defined in runtime.go.Expected: Go codegen should emit math.Pi, math.Sin, math.Cos (from Go's math package) or define wrappers in runtime.go.
AILANG version: v0.5.8-16-g0989e8c8-dirty
Reported by: cli via ailang messages