ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Fund Crystal's development: | GH: | Docs: | Gitter:
jmdaemon has joined #crystal-lang
Sankalp has quit [Ping timeout: 250 seconds]
Sankalp has joined #crystal-lang
rymiel has quit [Quit: quit]
rymiel has joined #crystal-lang
ur5us has quit [Ping timeout: 264 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 246 seconds]
ur5us has joined #crystal-lang
walez__ has joined #crystal-lang
ur5us has quit [Ping timeout: 264 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 264 seconds]
jmdaemon has quit [Ping timeout: 268 seconds]
walez__ has quit [Ping timeout: 246 seconds]
notzmv has quit [*.net *.split]
antoszka has quit [*.net *.split]
oprypin has quit [*.net *.split]
tsujp has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
ua_ has quit [*.net *.split]
straight-shoota has quit [*.net *.split]
dostoyevsky2 has quit [*.net *.split]
ssw has quit [*.net *.split]
fifr has quit [*.net *.split]
oz has quit [*.net *.split]
rymiel has quit [*.net *.split]
Flipez has quit [*.net *.split]
jhass has quit [*.net *.split]
greenbigfrog has quit [*.net *.split]
ngp has quit [*.net *.split]
Elouin has quit [*.net *.split]
mikko has quit [*.net *.split]
egality has quit [*.net *.split]
DeBot has quit [*.net *.split]
r0bby has quit [*.net *.split]
kiwiroy has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
dannyAAM has quit [*.net *.split]
sagax has quit [*.net *.split]
jhass[m] has quit [*.net *.split]
olbat has quit [*.net *.split]
raph_ael has quit [*.net *.split]
riza has quit [*.net *.split]
miketheman has quit [*.net *.split]
FromGitter has quit [*.net *.split]
HumanG33k has quit [*.net *.split]
mookie has quit [*.net *.split]
Liothen has quit [*.net *.split]
xybre has quit [*.net *.split]
brw has quit [*.net *.split]
Stephie has quit [*.net *.split]
rymiel has joined #crystal-lang
sagax has joined #crystal-lang
notzmv has joined #crystal-lang
antoszka has joined #crystal-lang
oprypin has joined #crystal-lang
tsujp has joined #crystal-lang
yxhuvud has joined #crystal-lang
ua_ has joined #crystal-lang
fifr has joined #crystal-lang
jhass[m] has joined #crystal-lang
ssw has joined #crystal-lang
dostoyevsky2 has joined #crystal-lang
FromGitter has joined #crystal-lang
straight-shoota has joined #crystal-lang
egality has joined #crystal-lang
oz has joined #crystal-lang
HumanG33k has joined #crystal-lang
jhass has joined #crystal-lang
Flipez has joined #crystal-lang
greenbigfrog has joined #crystal-lang
ngp has joined #crystal-lang
mookie has joined #crystal-lang
DeBot has joined #crystal-lang
mikko has joined #crystal-lang
Elouin has joined #crystal-lang
dannyAAM has joined #crystal-lang
markmarkmark has joined #crystal-lang
kiwiroy has joined #crystal-lang
r0bby has joined #crystal-lang
riza has joined #crystal-lang
olbat has joined #crystal-lang
miketheman has joined #crystal-lang
raph_ael has joined #crystal-lang
Stephie has joined #crystal-lang
brw has joined #crystal-lang
xybre has joined #crystal-lang
Liothen has joined #crystal-lang
wolfshappen has quit [Max SendQ exceeded]
wolfshappen has joined #crystal-lang
<FromGitter> <> @mattrberry: no there is no such plan. sure would be nice but what are you supposed to do about all existing macros?
<FromGitter> <> and it is really high up on my personal wishlist, but still
rez has joined #crystal-lang
walez__ has joined #crystal-lang
_ht has joined #crystal-lang
rez has quit [Quit: much snoozes...]
jmdaemon has joined #crystal-lang
ur5us has joined #crystal-lang
_ht has quit [Remote host closed the connection]
rez has joined #crystal-lang
<riza> is there an stdlib way to reverse Time#to_unix_f ?
walez__ has quit [Ping timeout: 265 seconds]
<FromGitter> <Blacksmoke16> prob convert it to an integer first and then use the standard `.unix` constructor
<riza> sure but if I'm going to just chuck the precision out the window I'd just do Time#to_unix in the first place
<FromGitter> <Blacksmoke16> oh new idea
<riza> Time#to_unix_f is useless without the reverse for my use case
<riza> also on 1.5.1 `crystal play` will crash with that snippet
<riza> with over 1k issues i'm sure theres one of them which covers the bug, but i have not yet found it
<riza> hm maybe not
<FromGitter> <Blacksmoke16> sec, getting there
<FromGitter> <Blacksmoke16> might be a better way, but having the nanoseconds be a float really conflicts with everything which expects time
<FromGitter> <Blacksmoke16> related:
<riza> that works for the example you gave, but #remainder starts to dirty the float after 10e-5 or -6
<FromGitter> <Blacksmoke16> close enough? :shrug:
<FromGitter> <Blacksmoke16> could bump that issue with some of these thoughts, as yea. it is kinda annoying
<riza> unfortunately i have a database with millions of rows and i need to select out rows which match a timestamp group down to the nanosecond
<riza> i was able to get a little closer by multiplying by 1M before subtracting off the int
<FromGitter> <Blacksmoke16> `Time.parse now_float.to_s, "%s.%6N", Time::Location::UTC` would think this should work, but seems to drop the nanoseconds. iirc there was a discussion about that somewhere but cant seem to find it :/
<FromGitter> <Blacksmoke16> `"%s.%9N"` rather
<FromGitter> <Blacksmoke16>
<riza> yeah, I tried that route too :)
<riza> thansk for trying
<riza> i think this will require a deeper rework
rez has quit [Quit: much snoozes...]