HackerTrans
トップ新着トレンドコメント過去質問紹介求人

alophawen

no profile record

コメント

alophawen
·4 年前·議論
It saddened me to learn recently that Quantic Dream seems to be giving up on their own stuff and now is working on Star Wars IP.

https://www.starwarseclipse.com/
alophawen
·4 年前·議論
> At the risk of being pedantic. No, these are not the same.

Absolutely agree and that was my point in the comment you replied to.

If you want to measure elapsed time you should not involve absolute time measures because then you will not need to think about leap seconds or DST changes.
alophawen
·4 年前·議論
Measuring elapsed time in golang is as easy as:

    start := time.Now()
    // Code to measure
    duration := time.Since(start)
See the docs for a good write-up: https://pkg.go.dev/time#hdr-Monotonic_Clocks

In rust you use https://doc.rust-lang.org/std/time/struct.Instant.html
alophawen
·4 年前·議論
In the context of discussion about permanent DST, then the solution would be permanent DST rather than change the clock or adjust time in your head for 6 months.
alophawen
·4 年前·議論
That's just a workaround.
alophawen
·4 年前·議論
Not necessarily, just track elapsed time and ignore absolute measures.
alophawen
·4 年前·議論
Nobody said it would be easy, but it is already happening.

https://medium.com/@tinocaer/how-microsoft-is-adopting-rust-...

https://preettheman.medium.com/this-is-what-apple-uses-rust-...
alophawen
·4 年前·議論
Pool's closed!

But that's Anonymous, not SA.