Skip to content

Commit 2561fc0

Browse files
committed
readme: "use float64" tip
1 parent dcbab6c commit 2561fc0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ Now you can use `gopherjs build [files]` or `gopherjs install [package]` which
2121

2222
- Use the `-m` command line flag to generate minified code.
2323
- Apply gzip compression (http://en.wikipedia.org/wiki/HTTP_compression).
24-
- Use `int` instead of `(u)int32` or `(u)int64` wherever possible.
24+
- Use `int` instead of `(u)int32` or `(u)int64`.
25+
- Use `float64` instead of `float32`.
2526

2627
### Community
2728
- [Google Group](https://groups.google.com/d/forum/gopherjs)
@@ -62,7 +63,7 @@ For more details see [Jason Stone's blog post](http://legacytotheedge.blogspot.d
6263
### Architecture
6364

6465
#### General
65-
GopherJS emulates a 32-bit environment. This means that `int`, `uint` and `uintptr` have a precision of 32 bits. However, the 64-bit integers `int64` and `uint64` are supported. The `GOARCH` value of GopherJS is "js". You may use it as a build constraint: `// +build js`.
66+
GopherJS emulates a 32-bit environment. This means that `int`, `uint` and `uintptr` have a precision of 32 bits. However, the explicit 64-bit integer types `int64` and `uint64` are supported. The `GOARCH` value of GopherJS is "js". You may use it as a build constraint: `// +build js`.
6667

6768
#### Goroutines
6869
JavaScript has no concept of concurrency (except web workers, but those are too strictly separated to be used for goroutines). Because of that, instructions in JavaScript are never blocking. A blocking call would effectively freeze the responsiveness of your web page, so calls with callback arguments are used instead.

0 commit comments

Comments
 (0)