Nevkontakte
Nevkontakte
Example: ```go package main import ( "fmt" "reflect" ) type strPtr *string func main() { var s string = "abc" var s1 *string = &s var s2 strPtr = &s...
```go package main import ( "fmt" "math" ) func main() { var f float32 = math.MaxFloat32 fmt.Printf("Hello, playground: %x\n", int64(float32(f))) } ``` Go output: -8000000000000000 GopherJS output: 0 https://gopherjs.github.io/playground/#/2uCovf4ywh https://go.dev/play/p/m7yL_crK_Qb
GopherJS implements a [basic form of DCE](https://github.com/gopherjs/gopherjs/blob/51a54c3702ae057071eaef7d9215566c282a5466/compiler/compiler.go#L204-L258) (dead code elimination), however it is known to be over-conservative. In the recent years a few packages emerged that should be able to...
The GopherJS playground has been doing its job very well, but I think it may be time to give it an overhaul. Here is a list of improvements I would...
Consider the following snippet: ```go package main var ok = false func f() func(int, int) { ok = true return func(int, int) {} } func g() (int, int) { if...
Now that we've released 1.19 support, filing this issue to track work related to [1.20 support](https://go.dev/blog/go1.20). Release notes: https://go.dev/doc/go1.20 Developer guide for new version support in [wiki](https://github.com/gopherjs/gopherjs/wiki/Development:-New-Go-version-support-guide).
Previously GopherJS only emitted mapping between original and generated source locations. With this change it also includes original function names, which fixes #1085. Before: ``` $ go install github.com/gopherjs/gopherjs &&...
The extension has been deprecated for about 3 years (since https://github.com/gopherjs/gopherjs/pull/1111), and has been disabled by default since then. So far I haven't heard of anyone asking to continue supporting...