asterite changed the topic of #crystal-lang to: #crystal-lang The Crystal programming language | http://crystal-lang.org | Crystal 0.6.0 | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ - API: http://crystal-lang.org/api/ - Logs: http://irclog.whitequark.org/crystal-lang
asterite1 has joined #crystal-lang
asterite has quit [Ping timeout: 256 seconds]
asterite has joined #crystal-lang
asterite1 has quit [Ping timeout: 264 seconds]
asterite has quit [Ping timeout: 246 seconds]
asterite has joined #crystal-lang
asterite1 has joined #crystal-lang
asterite has quit [Ping timeout: 252 seconds]
asterite has joined #crystal-lang
asterite1 has quit [Ping timeout: 255 seconds]
asterite has quit [Ping timeout: 245 seconds]
asterite has joined #crystal-lang
asterite1 has joined #crystal-lang
asterite1 has quit [Ping timeout: 252 seconds]
asterite has quit [Ping timeout: 265 seconds]
waj has joined #crystal-lang
asterite has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
asterite1 has joined #crystal-lang
asterite has quit [Ping timeout: 272 seconds]
asterite has joined #crystal-lang
<jhass> asterite: did you use the tagged version now to build it or the one two commits later?
<asterite> I moved the tag (blush)
<jhass> oh, interesting, github didn't seem to have registered that as an event
<jhass> and git fetch doesn't update it either :/
<asterite> Mmm... strange. I know I shouldn't have done that, sorry, but I tagged the version before I knew we were going to implement MD5 in crystal
<jhass> git fetch -t does, mh
<asterite> You'll make the arch linux package?
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/xQMk
<crystal-gh> crystal/master 1ca8dfd Ary Borenszweig: Show exception class name on handled exceptions
<jhass> ^yeah
<jhass> already built the 32bit binary, which is why asked whether I have to rebuilt :P
<asterite> Ah :)
<travis-ci> manastech/crystal#2078 (master - 1ca8dfd : Ary Borenszweig): The build passed.
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/xQpC
<crystal-gh> crystal/master 20c8570 Ary Borenszweig: Fixed a couple of bugs in String#split and String#scan
jhass has quit [Ping timeout: 250 seconds]
jhass has joined #crystal-lang
asterite has quit [Quit: Page closed]
waj has quit [Quit: Leaving.]
bcardiff has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
asterite has joined #crystal-lang
weskinner_mac has joined #crystal-lang
weskinner_mac has quit [Client Quit]
bcardiff has joined #crystal-lang
bcardiff1 has joined #crystal-lang
bcardiff has quit [Ping timeout: 265 seconds]
asterite has quit [Ping timeout: 252 seconds]
havenwood has joined #crystal-lang
ismaelga has joined #crystal-lang
weskinner_work has joined #crystal-lang
waj has joined #crystal-lang
havenwood has quit [Remote host closed the connection]
ismaelga has quit [Remote host closed the connection]
havenwood has joined #crystal-lang
weskinner_work has quit [Ping timeout: 240 seconds]
ismaelga has joined #crystal-lang
waj has quit [Read error: Connection reset by peer]
waj has joined #crystal-lang
<ponga> hi all
<jhass> hi
weskinner_work has joined #crystal-lang
<ponga> hi weskinner_work
<ponga> irc at work lol
ismaelga has quit [Remote host closed the connection]
weskinner_work has quit [Ping timeout: 272 seconds]
weskinner_mac has joined #crystal-lang
weskinner_mac has quit [Client Quit]
weskinner_work has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
<ponga> weskinner_work: it was you who watched my project ;) thanks
<ponga> im working hard!
<weskinner_work> :)
<ponga> writing guide book in gitbook now
bcardiff1 has quit [Quit: Leaving.]
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
leafybasil has joined #crystal-lang
shama has joined #crystal-lang
<ponga> finished writing first chapter!
havenn has joined #crystal-lang
havenwood has quit [Ping timeout: 244 seconds]
<ponga> jhass: do you have any idea why my gitbook isn't being updated despite i press save button ;( ...
<ponga> does it take some time to be there?
<jhass> never used gitbook
<jhass> where did you press save?
<ponga> jhass: save button on top left
<ponga> apparently its having a cup of tea to get there ;p
<jhass> okay, no idea what you're using :)
<jhass> "save button on top left" means nothing to me
<ponga> oh its giving error.. i read the history
<ponga> ah hah i see
<ponga> empty line error
<ponga> XD
<ponga> weskinner_work: hey are you there ?
<ponga> jhass: apparently i had one empty line in a code when there should be no empty line..
<ponga> im too used to ruby to have not thought about that XD
ismaelga has joined #crystal-lang
<jhass> huh, what language does care about such stuff?
<ponga> jhass: the github summary section code
<ponga> ;p
<ponga> no i mean *gitbook
<ponga> damn
<jhass> weird
<ponga> gitbook has this summary.md file that contains entries you see on the left side
<jhass> mmh
<jhass> still weird
<ponga> anyway i finished writing first chapter, its gratifying
<jhass> markdown makes a paragraph if you have an empty new line between two text blocks
<jhass> but whether that's one or one hundred....
<ponga> oh true
<ponga> its weird
havenn is now known as havenwood
waj1 has joined #crystal-lang
waj has quit [Read error: Connection reset by peer]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/xAJ3
<crystal-gh> crystal/master f58dece Ary Borenszweig: Fixed a bug related to fun arguments with generic types that should have virtual types
<crystal-gh> crystal/master a03c7c2 Ary Borenszweig: Fixed and enhancements to block args, and added some comments to Call#match_block_arg which was getting hard to understand
<ponga> what time is it there jhass
<jhass> where?
<ponga> where you live, if its not offending
<ponga> its 7 in the morning
<ponga> here
<jhass> UTC+1, 22:56
<ponga> ok
<ytti> time remind me, Time.monotonic would be great
<ponga> ytti: what would that method do
<jhass> ytti: tbh I'd hope somebody would sit down and redesign that shit from ground up, we shouldn't adopt Rubys API
<ytti> ruby doesn't have it
<jhass> yeah, I mean in general
<ponga> ytti: can you dumb it down
<ponga> please
<ytti> ponga, when you cound progression of time, you usually use wall clock, which is always broken
<ytti> because wall clock does not move monotonically forward
<ponga> I'm going to build Time#weekend?
<ponga> yay
<ytti> so if you do
<ytti> start = Time.now
<ytti> do_stuff
<ytti> duration = Time.now-start
<ponga> what's wrong with that
<ytti> this is not going to work correctly
<ponga> ?!
<ponga> ho..how?!
<ponga> why
* ponga is confused
<ytti> because system might randomly move wall clock backwards
<ytti> or even correctly configured system experiences leap second
<ponga> uh by wall clock do you mean system clock
<ytti> yeah
<ytti> more practical example
<ponga> oh ok so you are saying the system clock is crap and we need monotonic procedure
<ponga> second by second
<ytti> lets say we have loop, which we want to take 60s
<ytti> and we have task which takes somethng less than 60s
<ytti> so we do
<ytti> loop do
<ytti> start = Time.now
<ytti> do_stuff
<ytti> duration = Time.now-start
<ytti> sleep = 60-duration
<ytti> end
<ytti> we might sleep forever
<ytti> or at least A Very Long Time
<ytti> s/sleep =/sleep/
<ponga> how? can sleep go beyond 60
<ytti> or actually if we contract it to
<ytti> duration = 60-(Time.now-start)
<ytti> because Time.now-start may return large negative number
<ponga> ah
<waj1> how do you get a monotonic time? using system ticks?
<waj1> erlang has it, btw…
<ponga> ok i see the possible problem there
<ytti> it's OS dependent
<ponga> but how do we do tick tick tick
<ytti> rust has this
<ytti> waj1, my coworker worked the ruby issue patch (after very fugly version from me)
<waj1> I see.. that patch should be super easy to port to Crystal
<ytti> the rust docs are not good, they don't mention that precise time is monotonic, but it is
<ytti> i think #monotonic would be much more obvious name for this
<ytti> hopefully in ~5 years time UTC will be monotonic
<ytti> GPS time and TAI time are both
<ytti> but even then, wall clock will still be affected by NTP corrections
<jhass> UTC will never be monotonic
<ytti> so i think Time.monotonic should almost always be used when programmer needs to measure duration
<jhass> that's not what it is for
<waj1> yup, or by the user ;)
<ytti> jhass, why not?
<jhass> it's for human time, there's atomic time (IT something I think?) that's monotonic
<ytti> TAI
<jhass> right
<ytti> there is strong support to make UTC monotonic
<jhass> really? I think that would be a very bad move
<ytti> if i was a betting man, i'd bet that UTC will be monotonic in 5 years time
<ytti> i think it's obviously correct move
<ytti> leap seconds were very bad idea
<jhass> no, you won't change all the country level timezones
<ytti> timezones don't affect this
<ytti> only thing that makes UTC inherently non-monotonic is leap seconds
<waj1> monotonic is not necessarily precise, so maybe is not a good name either
<waj1> I was just checking how erlang gets monotonic timestamps and it's not precise
<ytti> i think they made trade off for portability
<ytti> rather than relying on per-os implementation
<ytti> i would clock_gettime style implementation
<ponga> hey guys what if we all lost track of our precise time, literally everyone, is the precise time then forever-lost? or is it recoverable by math
<ponga> just wonderin
<ytti> definitely not recovable
<ytti> it's entirely made up
<ponga> cos time is subjective aye?
<ytti> aye
<ytti> we need to send new time to GPS satellites many times a day
<ytti> because their second lasts different duration to ours
<waj1> isn't something that can be astronomically determined?
<ytti> were we not to do this, GPS would be just trash in few weeks
<ponga> ah yeah
<ponga> astrophysics?
<ytti> waj1, date could be recovered
<ytti> but not precise time
<ytti> precise time isn't even same in every country
<ponga> ytti: by recovering date can we not set another 00:00 in upcoming day
<ponga> now i wonder how they kept precise time before computer came
<ytti> i guess you can measure the osciallations of Cs133 without semiconductors
weskinner_work has quit [Ping timeout: 264 seconds]
<ytti> it's funny how we still define second as 9billion something oscillations of Cs133, while we have sources which much shorter frequencies, which could define second to a smaller tolerance
<ytti> and consequently we'd defien most other SI units more accurately
<travis-ci> manastech/crystal#2080 (master - a03c7c2 : Ary Borenszweig): The build passed.
orliesaurus has left #crystal-lang [#crystal-lang]
waj1 has quit [Quit: Leaving.]
<ponga> use sqlite in crystal ?
<jhass> mmh, don't think anyone wrote a binding for it yet
<jhass> shouldn't be too hard though :)
<ponga> ok
<jhass> we're here to help after all!
<jhass> try to find a C hello world and port it
<ponga> haha thanks
<ponga> i was thinking if i could add Time#weekday? Time#weekend? in crystal
<ponga> in its library
<ytti> good luck, you'll need locale support first :)
<ponga> ya..
<ytti> saturday and sunday aren't universally eekend
<ponga> tru
<ponga> not in japan
<ytti> or in middle east?
<ponga> i should get back to my project hehe
<ponga> locale support will be hella fuss
weskinner_work has joined #crystal-lang
weskinner_work has quit [Quit: weskinner_work]
weskinner_work has joined #crystal-lang
<ponga> hi weskinner_work
<ponga> you seem to work for a long time
weskinner_mac has joined #crystal-lang
<ponga> hm
<ponga> hi weskinner
weskinner_mac has quit [Quit: weskinner_mac]
<ponga> oops
waj has joined #crystal-lang
asterite has joined #crystal-lang
asterite_ has joined #crystal-lang