jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.15.0 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 246 seconds]
elia has quit [Quit: Computer has gone to sleep.]
umurgdk has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
mgarciaisaia1 has joined #crystal-lang
umurgdk has quit [Ping timeout: 250 seconds]
mgarciaisaia has joined #crystal-lang
mgarciaisaia1 has quit [Read error: Connection reset by peer]
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia1 has quit [Read error: Connection reset by peer]
mgarciaisaia has quit [Read error: Connection reset by peer]
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia1 has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 268 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
mgarciaisaia has joined #crystal-lang
<travis-ci> MakeNowJust/crystal#6bb9885 (master - Added String#insert. Fixes #2409): The build passed. https://travis-ci.org/MakeNowJust/crystal/builds/120782876
ozra_ is now known as ozra
Philpax has joined #crystal-lang
mgarciaisaia has quit [Remote host closed the connection]
Philpax has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
Cidan has joined #crystal-lang
tony_ has joined #crystal-lang
soveran has joined #crystal-lang
tony_ has quit [Quit: Lost terminal]
soveran has quit [Ping timeout: 250 seconds]
umurgdk has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
umurgdk has quit [Ping timeout: 276 seconds]
mverzilli has joined #crystal-lang
pawnbox has joined #crystal-lang
mverzilli has quit [Client Quit]
Philpax has quit [Ping timeout: 260 seconds]
<crystal-gh> [crystal] waj pushed 1 new commit to master: https://git.io/vVuQH
<crystal-gh> crystal/master 8e31380 Juan Wajnerman: Use `IO#read_bytes` and `IO#write_bytes` in `SignalHandler` (instead of slices with pointers)
Philpax has joined #crystal-lang
<travis-ci> crystal-lang/crystal#8e31380 (master - Use `IO#read_bytes` and `IO#write_bytes` in `SignalHandler` (instead of slices with pointers)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/120797515
ozra has quit [Ping timeout: 244 seconds]
zeno_ has joined #crystal-lang
zeno_ has quit [Client Quit]
Philpax has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
umurgdk has joined #crystal-lang
matp has quit [Remote host closed the connection]
umurgdk has quit [Ping timeout: 240 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 264 seconds]
willl has quit [Quit: Connection closed for inactivity]
matp has joined #crystal-lang
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 264 seconds]
soveran has joined #crystal-lang
trapped has joined #crystal-lang
mark2 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
<crystal-gh> [crystal] MakeNowJust opened pull request #2414: Block arg '&' dose not always follow no whitespace (master...fix/block-args-ampersand-not-following-no-whitespace-always) https://git.io/vVztH
Philpax has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
globalkeith has joined #crystal-lang
umurgdk has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
umurgdk_ has joined #crystal-lang
umurgdk has quit [Read error: Connection reset by peer]
alsm has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
umurgdk_ has quit [Remote host closed the connection]
elia has joined #crystal-lang
umurgdk has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
umurgdk has quit [Ping timeout: 246 seconds]
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
umurgdk has joined #crystal-lang
Rinkana has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
alsm has quit [Remote host closed the connection]
<travis-ci> Seachaos/crystal#3cd0abe (master - Added present? and blank?): The build was canceled. https://travis-ci.org/Seachaos/crystal/builds/120692320
<travis-ci> Seachaos/crystal#3cd0abe (master - Added present? and blank?): The build was canceled. https://travis-ci.org/Seachaos/crystal/builds/120692320
<travis-ci> Seachaos/crystal#3cd0abe (master - Added present? and blank?): The build was canceled. https://travis-ci.org/Seachaos/crystal/builds/120692320
<travis-ci> Seachaos/crystal#6bb9885 (master - Added String#insert. Fixes #2409): The build passed. https://travis-ci.org/Seachaos/crystal/builds/120847247
<travis-ci> Seachaos/crystal#b000010 (dev/present - let ci build dev/present): The build failed. https://travis-ci.org/Seachaos/crystal/builds/120848068
Philpax has quit [Read error: Connection reset by peer]
soveran has quit [Remote host closed the connection]
umurgdk has quit [Remote host closed the connection]
teukka has quit [Ping timeout: 240 seconds]
umurgdk has joined #crystal-lang
teukka has joined #crystal-lang
umurgdk has quit [Ping timeout: 244 seconds]
umurgdk has joined #crystal-lang
Philpax has joined #crystal-lang
luislavena has joined #crystal-lang
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/vVzyN
<crystal-gh> crystal/master 5b410a9 Jonne Haß: Fix reference in HTTP::Server::Context doc
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
<travis-ci> crystal-lang/crystal#5b410a9 (master - Fix reference in HTTP::Server::Context doc): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/120862945
<crystal-gh> [crystal] jhass closed pull request #2138: Cookies some fixes (master...cookies_fix) https://git.io/vVzHb
<travis-ci> crystal-lang/crystal#b12e09e (master - Merge pull request #2138 from kostya/cookies_fix): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/120865729
ozra has joined #crystal-lang
<crystal-gh> [crystal] jhass opened pull request #2415: Reintroduce convenience API for cookie handling in HTTP responses (master...response_cookies) https://git.io/vVzAF
umurgdk has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 276 seconds]
umurgdk has joined #crystal-lang
tilpner has quit [Ping timeout: 252 seconds]
bam0 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
tilpner has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
rmosolgo has joined #crystal-lang
iamstef_ has joined #crystal-lang
ozra_ has joined #crystal-lang
pawnbox_ has joined #crystal-lang
mjblack- has joined #crystal-lang
ozra has quit [*.net *.split]
mjblack has quit [*.net *.split]
iamstef has quit [*.net *.split]
pawnbox has quit [*.net *.split]
soveran has quit [*.net *.split]
ylluminate has quit [*.net *.split]
Veejay has quit [*.net *.split]
jwaldrip has quit [*.net *.split]
jokke has quit [*.net *.split]
aemadrid has quit [*.net *.split]
mjblack- is now known as mjblack
soveran has joined #crystal-lang
aemadrid has joined #crystal-lang
jwaldrip has joined #crystal-lang
ylluminate has joined #crystal-lang
jokke has joined #crystal-lang
Veejay has joined #crystal-lang
iamstef_ is now known as iamstef
umurgdk has quit [Remote host closed the connection]
<jokke> jhass: yay! ready!
<jokke> turned in the thesis today
<jokke> so glad it's finally over :D
umurgdk has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
ylluminate has quit [Quit: Textual IRC Client: www.textualapp.com]
rmosolgo has quit [Remote host closed the connection]
<crystal-gh> [crystal] asterite pushed 4 new commits to master: https://git.io/vVgE9
<crystal-gh> crystal/master 61a0280 Ary Borenszweig: Parser: disallow `foo.!`, `foo.&&` and `foo.||` as they are not methods
<crystal-gh> crystal/master 870e41b Ary Borenszweig: Added `Time::EpochConverter` and `Time::EpochMillisConverter`. Related to #2399
<crystal-gh> crystal/master 85de22b Ary Borenszweig: Added some docs for `Time` and `Time::Format`
<crystal-gh> [crystal] asterite closed pull request #2399: .to_json for Time, specs for Time and Time::Format (master...master) https://git.io/vV80n
umurgdk has joined #crystal-lang
pawnbox__ has joined #crystal-lang
pawnbox_ has quit [Ping timeout: 248 seconds]
<travis-ci> crystal-lang/crystal#dd1503e (master - Added `%s` (epoch) directive to `Time::Format`. Fixes ##2399. Fixes #2406.): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/120903149
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vVg2a
<crystal-gh> crystal/master c474cff Ary Borenszweig: Time: make sure to use UTC in specs for testing `%s`
Philpax has quit [Ping timeout: 244 seconds]
<crystal-gh> [crystal] jhass closed pull request #2415: Reintroduce convenience API for cookie handling in HTTP responses (master...response_cookies) https://git.io/vVzAF
rmosolgo has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#c474cff (master - Time: make sure to use UTC in specs for testing `%s`): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/120906899
<crystal-gh> [crystal] asterite closed pull request #1896: Enumerable improvements (master...enumerable_improvements) https://git.io/vVgo0
Rinkana has quit [Quit: Page closed]
<travis-ci> crystal-lang/crystal#063b3c4 (master - Merge pull request #2415 from jhass/response_cookies): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/120907744
mgarciaisaia has joined #crystal-lang
umurgdk has joined #crystal-lang
mark2 has quit [Quit: Leaving.]
mgarciaisaia has left #crystal-lang [#crystal-lang]
<jeromegn> jokke: congrats :)
soveran has quit [Remote host closed the connection]
<asterite> jokke: your thesis uses crystal?
pawnbox__ has quit [Ping timeout: 244 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
dsounded has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
pleiosaur has quit [Remote host closed the connection]
pleiosaur has joined #crystal-lang
bam0 has quit [Ping timeout: 246 seconds]
dsounded has quit [Quit: Page closed]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
rmosolgo has quit [Remote host closed the connection]
<jokke> asterite: yeah in large parts
<jokke> jeromegn: thanks :)
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
tomchapin has joined #crystal-lang
rmosolgo has joined #crystal-lang
rmosolgo has quit [Remote host closed the connection]
<crystal-gh> [crystal] marceloboeira opened pull request #2418: Add documentation for the http client response `success?` method (master...response-doc) https://git.io/vV22z
rmosolgo has joined #crystal-lang
willl has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
rmosolgo has quit []
ozra_ is now known as ozra
pawnbox has joined #crystal-lang
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
umurgdk has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
trapped_ has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
trapped_ is now known as trapped
pawnbox has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
soveran has quit [Remote host closed the connection]
LastWhisper____ has joined #crystal-lang
ozra has quit [Ping timeout: 264 seconds]
ozra has joined #crystal-lang
LastWhisper____ has quit [Ping timeout: 244 seconds]
luislavena has quit [Quit: Leaving]
nwmcsween has joined #crystal-lang
<nwmcsween> so a complaint, why isn't there a size_t type?
<BlaXpirit> >> LibC::SizeT # nwmcsween,
<DeBot> BlaXpirit: # => UInt32 - https://carc.in/#/r/w51
<BlaXpirit> (64 on 64bit systems)
<nwmcsween> no I mean as a native type
<BlaXpirit> nwmcsween, what would that be
<BlaXpirit> crystal doesn't have platform-dependent-size types
<BlaXpirit> oh wait, it does, it's the Pointer
<nwmcsween> yes it has to
<BlaXpirit> nwmcsween, what are you looking to achieve?
<nwmcsween> not having a to make a preamble to pick a platform specific size
<nwmcsween> e.g #if UINTPTR_MAX > 0xffffffff UIntM = UInt64....
<nwmcsween> of course whatever that translates to in crystal
Philpax has joined #crystal-lang
<BlaXpirit> nwmcsween, what are you looking to achieve?
<nwmcsween> to understand why
<nwmcsween> it's just something I consider a wart
<nwmcsween> or even better move away from type width mixed with type representation
<BlaXpirit> nwmcsween, I have no idea what you're talking about. there is no actual problem here.
<BlaXpirit> size-dependent types are silly in the first place (other than pointer, of course)
<nwmcsween> how does crystal handle over flowing?
<nwmcsween> what about performance of using a UInt64 on a 32 bit machine
<BlaXpirit> nwmcsween, what about it? it's OK but normally you use Int32 which is good on both types of cpu
<nwmcsween> no it's not
<BlaXpirit> >> a = 2**30; a += 2**30
<DeBot> BlaXpirit: # => 2.14748e+09 - https://carc.in/#/r/w52
<BlaXpirit> woops, that's a floating point number
<nwmcsween> think of a function taking n Uint64's
<BlaXpirit> nwmcsween, a function takes a Int
<BlaXpirit> >> a = 1<<30; a += 1<<30
<DeBot> BlaXpirit: # => -2147483648 - https://carc.in/#/r/w53
<BlaXpirit> overflow is handled by wraparound
soveran has joined #crystal-lang
<nwmcsween> yes 2's compliment
<nwmcsween> which in the case of signed types is dangerous
<BlaXpirit> nwmcsween, same as in all other compiled languages
<nwmcsween> but there is no machine type so I overflow faster...
<nwmcsween> assuming I don't want to spill everything by making all args UInt64's
<BlaXpirit> nwmcsween, what's the problem. do you want your program to fail specifically on 32 bit processors? I don't get it
<BlaXpirit> if you really need the 64 bits, you use the 64 bits
<BlaXpirit> also note that 32bit processors are a very rare corner case
<BlaXpirit> slow 64bit performance wouldn't be the number one problem anyway
<nwmcsween> the issue is crystal either leaves me with spilling registers on 32 bit or overflowing on 64 bit both of which are bad
x0f has joined #crystal-lang
<nwmcsween> assuming I use UInt64 on 32 bit and Int on 64 bit
Philpax has quit [Ping timeout: 244 seconds]
soveran has quit [Ping timeout: 244 seconds]
<nwmcsween> or Int32 or whatever it is in crystal
<BlaXpirit> nwmcsween, alright, if you insist, you can use LibC::SizeT
<nwmcsween> that's not a native type
<BlaXpirit> so..........?
<nwmcsween> does crystal depend on libc?
<BlaXpirit> yes
<BlaXpirit> but this definition just happens to be in that namespace,you can't actually take type definitions from libc
<BlaXpirit> >> LibC::SizeT.new(8589934592)
<DeBot> BlaXpirit: # => 0 - https://carc.in/#/r/w54
<BlaXpirit> there, it overflows on a 32 bit machine, are you happy?
trapped has quit [Read error: Connection reset by peer]
<BlaXpirit> >> LibC::SizeT.new(8589934599)
<DeBot> BlaXpirit: # => 7 - https://carc.in/#/r/w55
<BlaXpirit> nwmcsween, please do note that a function doesn't have to force the type of its arguments
<nwmcsween> hmm so def foo(bar, baz) is parametric wrt types?
<BlaXpirit> nwmcsween, yes
<BlaXpirit> >> def add(a : Int, b : Int); a+b; end; puts "#{typeof(add(1, 1))}, #{typeof(add(8589934599, 1))}" # nwmcsween
<DeBot> BlaXpirit: Int32, Int64 - more at https://carc.in/#/r/w56
<BlaXpirit> >> def add(a, b); a+b; end; puts "#{typeof(add(1.0, 1))}, #{typeof(add(8589934599, 1))}" # nwmcsween
<DeBot> BlaXpirit: Float64, Int64 - more at https://carc.in/#/r/w57
<nwmcsween> oh so it does this at runtime then
<BlaXpirit> nwmcsween, no, a function is generated for each type of argument that it's used with
<BlaXpirit> like template in c++
<BlaXpirit> these typeof are compile-time constructs, by the way. it's all known in advance, no runtime check
<BlaXpirit> 8589934599 just happens to be an Int64 literal, while 123123 is an Int32 literal
<nwmcsween> ok so say I have a 'public' api that is generic, crystal with generate n! interfaces?
<BlaXpirit> nwmcsween, it will generate only those interfaces that are used
<BlaXpirit> this kind of generic function can't be put into a dynamically linked library, if that's what you're asking
<nwmcsween> yes
<nwmcsween> otherwise it would have to generate n! interfaces
<BlaXpirit> crystal has global type inference, it looks at all the source code during compilation
<BlaXpirit> though this will be made less lenient for performance
<nwmcsween> can you create a shared lib with crystal?
<BlaXpirit> nwmcsween, this is not a well-researched topic. If I remember correctly, you can, if you set fixed types for the functions
<BlaXpirit> I'd try searching, but I need to sleep. but you can try searching as well.
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 248 seconds]
kfpratt has quit []