Comments (6)
Actually, these are two separate bugs.
- This is because TinyGo uses monotonic time instead of a real timestamp. This should be fixed.
- Apparently I missed a zero/sign extension somewhere.
from tinygo.
The LLVM error you see should be fixed in master. However, time.Now().String()
now panics at runtime because system calls have not yet been implemented.
from tinygo.
So, an update on the various issues reported here, as of v0.8.0:
- TinyGo still uses monotonic time instead of a real timestamp on Linux, so that needs to be addressed.
time.Now().String()
now returns without error:
$ tinygo run demo.go && date +%s
1970-01-04 02:29:33.486739311 +0100 CET m=+264573.486739312
1568879646
So I think that the only remaining issue is the monotonic time.
from tinygo.
Monotonic time is still an issue when running on Linux:
$ tinygo run demo.go
1970-01-02 18:46:00.462465471 +0100 CET m=+150360.462465472
from tinygo.
Here is a fix: #2007
from tinygo.
Released with 0.20.0 so now closing. Thank you!
from tinygo.
Related Issues (20)
- Support for RV32IM HOT 4
- don't allocate closure variables if the closure doesn't escape
- Joystick axes reduced by 2 for values of >2 in range -32767..32767 on Windows HOT 1
- esp8266 wifi support HOT 1
- go install failing in go-llvm HOT 1
- Is there a way to unite exported functions under the same object path? HOT 2
- core: compile failures due to SSA race condition HOT 29
- No space between hexadecimal literal and identifier HOT 1
- feature: add support for esp32c3 supermini board HOT 3
- panic: interp: load out of bounds on unsafe.SliceData of zero cap slice
- Flash error on M2 Mac HOT 4
- memory overflow HOT 3
- tinygo can't compile GO app to wasm file HOT 1
- wasm and wasm-unknown: allocator always allocates 2 pages (2x64k) HOT 7
- tinygo source displeases linters HOT 1
- What happened to `-wasm-abi=generic`? HOT 1
- Enhancing TinyGo Build-Tags with Board-Specific Feature Tags
- latest versioning of compatible matrix of tinygo/go HOT 2
- TinyGo Program blocks forever with os.Pipe, go proc, and a sleep; same program returns as expected with go
- Error to find build id on OpenBSD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinygo.