HackerTrans
TopNewTrendsCommentsPastAskShowJobs

alophawen

no profile record

comments

alophawen
·4 năm trước·discuss
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 năm trước·discuss
> 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 năm trước·discuss
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 năm trước·discuss
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 năm trước·discuss
That's just a workaround.
alophawen
·4 năm trước·discuss
Not necessarily, just track elapsed time and ignore absolute measures.
alophawen
·4 năm trước·discuss
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 năm trước·discuss
Pool's closed!

But that's Anonymous, not SA.