jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.17.4 | 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
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 240 seconds]
Philpax has joined #crystal-lang
ssvb has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
dhk has quit [Read error: Connection reset by peer]
dhk has joined #crystal-lang
dhk has quit [Read error: Connection reset by peer]
dhk has joined #crystal-lang
<wmoxam> Is there a way to specify a type and default argument?
<wmoxam> nm, got it
Oliphaunte has quit [Remote host closed the connection]
grios has quit [Ping timeout: 240 seconds]
|meta has quit [Quit: Connection closed for inactivity]
Oliphaunte 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 [Remote host closed the connection]
pawnbox has joined #crystal-lang
dhk has quit [Quit: Leaving]
Oliphaunte has quit [Remote host closed the connection]
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
ome has joined #crystal-lang
Oliphaunte has joined #crystal-lang
bjz has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 260 seconds]
bjz has quit [Max SendQ exceeded]
Philpax has quit [Ping timeout: 240 seconds]
[spoiler] has quit [Quit: Cheers!]
<crystal-gh> [crystal] jhass closed pull request #2228: Add comments in string_pool.cr (master...stringpool) https://git.io/v2EFN
txdv has quit [Ping timeout: 252 seconds]
txdv has joined #crystal-lang
TheLemonMan has joined #crystal-lang
mark_66 has joined #crystal-lang
trapped has joined #crystal-lang
bjz has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
pawnbox_ has quit [Ping timeout: 272 seconds]
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/vrQMZ
<crystal-gh> crystal/master 5213d0b Jonne Haß: format string_pool.cr
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<travis-ci> crystal-lang/crystal#5213d0b (master - format string_pool.cr): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/133869095
Philpax has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 260 seconds]
ome has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 240 seconds]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 244 seconds]
<RX14> is this a bug? https://carc.in/#/r/109i
<jhass> no
<jhass> macros get their own lexical scope
<RX14> it can access a varaible in the method
<RX14> why can't it access the method'a rgs
<RX14> why can't it access the method's args
<RX14> this works
<jhass> mh
<RX14> why is is only block arguments
<jhass> well that's inconsistent, yeah
<RX14> its a bug
<RX14> macros should be able to access the scope of where they are called
<RX14> well if you cripple macros like that i'll just stick to older versions of crystal
<RX14> or start using a preprocessor
<RX14> sometimes you just want to use your macros as code snippets
<RX14> sometimes you want magic
<jhass> I think I'd prefer them isolated, https://carc.in/#/r/109l seems clearer in the long run
<RX14> well I like using it in templates
<RX14> I expand templates in a method
<RX14> and the template can access the method's stuff
<RX14> because with templates there isn't really a good method for passing args
<RX14> you want your template to have acess to the scope of your controller
<RX14> even if you disagree with that the compiler shouldn't forbid it
<jhass> I do like the "run with self being some object" approach a bit more, make the stuff available as methods
<RX14> yes but i don't want to make everything an instance variabvle in my controller
<jhass> your templates should have their own classes
<RX14> sometimes different methods in the controller will have different variables then you have to make everything an instance variable and it's just disgusting
<RX14> jhass, maybe but the compiler shouldn't dictate that
<jhass> you get view models for free basically
<RX14> what if you don't want view models?
<jhass> you should :P
<RX14> i like crystal because it's unrestrictive for a compiled langauge
<RX14> being too restrictive just makes crystal like everything else
<RX14> fine, tell people their macros shouldn't use external scope but allow it in the compiler
<RX14> trust the programmer to make good decisions
<jhass> done too much ruby for that :P
<TheLemonMan> that's a recipe for disaster
<jhass> it's hard to find a good line
<TheLemonMan> most of the times you want your macros to be hygienic
<RX14> and sometimes you don't want that
<RX14> i wouldnt write anything that wasn't internal to be not hygenic
<TheLemonMan> scheme solves the problem by letting the user decide their own fate
<TheLemonMan> so I guess a flag to get unhygienic macros is a nice compromise
<RX14> i wouldn't mind there needing to be extra syntax on the macro definition side to access parent scope
<RX14> but i would hate the option to be taken away
<jhass> anyway, not on me to decide anyhow
<TheLemonMan> this behaviour must be new since the crystal book doesn't mention it
<RX14> which behaviour?
<TheLemonMan> the introduction of a fresh scope
<RX14> macros have been expanded like that for ages
<RX14> they can have return values
<RX14> macros are expanded is if their content is placed inside a begin/end block
<TheLemonMan> hm? the book suggests to prefix the variable with a % to get a fresh unique one
<RX14> yes,
<RX14> thats to stop macros overriding parents scope
<RX14> begin/end blocks work like that
<RX14> but they can return a value https://carc.in/#/r/109p
<RX14> which makes them almost equivalent to how mcros are expanded
<TheLemonMan> oh I see, I misunderstood your problem
<RX14> i need to bookmark that tool which expands crystal programs
<RX14> because ive lost it again
<jhass> crystal tool browser ?
<jhass> oh I guess we dropped that one
<RX14> what did it do?
<jhass> basically open your source in the browser with clickable method names
<jhass> and after expansion
<jhass> oh, didn't see that one
<RX14> why was it removed?
<jhass> dunno
<RX14> ok, finally got template inheritance working using blocks
mark_66 has quit [Remote host closed the connection]
mark_66 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
grios has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 260 seconds]
|meta has joined #crystal-lang
_jungh4ns has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 240 seconds]
Philpax has quit [Ping timeout: 252 seconds]
TheLemonMan has quit [Remote host closed the connection]
TheLemonMan has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 258 seconds]
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
<crystal-gh> [crystal] ysbaddaden closed pull request #2343: OpenSSL additions + HTTP::Client support for more ssl options (master...http-ssl) https://git.io/vayjc
asie has left #crystal-lang ["WeeChat 1.5"]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
<crystal-gh> [crystal] asterite closed 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
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Raimondi has quit [Read error: Connection reset by peer]
Raimondi has joined #crystal-lang
Raimondii has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Raimondi has quit [Ping timeout: 240 seconds]
Oliphaunte has joined #crystal-lang
Raimondii is now known as Raimondi
triangles has joined #crystal-lang
pglombardo has joined #crystal-lang
kulelu88 has joined #crystal-lang
kulelu88 has quit [Changing host]
kulelu88 has joined #crystal-lang
mark_66 has quit [Remote host closed the connection]
Oliphaunte has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
vikaton has joined #crystal-lang
<crystal-gh> [crystal] mirek opened pull request #2691: LLVM intrinsics refactor, adding bitswap. (master...intrinsics) https://git.io/vr7r9
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vr76H
<crystal-gh> crystal/master 4feb758 Ary Borenszweig: Compiler: fixed error message when declaring a variable with a type that's not yet allowed
pglombardo has quit [Ping timeout: 260 seconds]
<travis-ci> crystal-lang/crystal#4feb758 (master - Compiler: fixed error message when declaring a variable with a type that's not yet allowed): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/133969284
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/vr7Pz
<crystal-gh> crystal/master d5fe700 Jonne Haß: Fix OpenSSL::SSL::Socket shutdown logic
<Redfoxmoon> this might be ignorant as fuck; but is there any plans for a gcc target?
<jhass> no
<jhass> we heavily rely on LLVM
<jhass> btw LLVM exists because people got fed up of not being able to reuse gcc parts
<Redfoxmoon> Well, you CAN reuse gcc.
<travis-ci> crystal-lang/crystal#d5fe700 (master - Fix OpenSSL::SSL::Socket shutdown logic): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/133974277
<Redfoxmoon> of course, the GPL license comes along; but, that doesn't really matter?
<jhass> it does for some people
<Redfoxmoon> yeah if you want to have the option to close the source... eh
<jhass> it's more about the infectious part of the GPL
adam12 is now known as adam
<jhass> if we GPL our stdlib for example, since it's recompiled into each program, every crystal program becomes a derivative and must be GPLed
adam is now known as Guest47004
<Redfoxmoon> jhass, well, compiler != standard library.
<jhass> yeah but why risk headaches
<Redfoxmoon> of course you wouldn't GPL the standard library... or provide a linking exception
<Redfoxmoon> how could it become a headache?
<jhass> I just said it's not linked
<Redfoxmoon> o_O
kulelu88 has left #crystal-lang ["Leaving"]
<Redfoxmoon> linked, compiled into
<Redfoxmoon> result is the same
<jhass> if only that were true
<Redfoxmoon> but still; you can have multiple licenses.
<jhass> or one for all and just use LLVM which is just as good for our usecase on the technical level, most likely better by now in fact
<Redfoxmoon> well. last time I checked gcc 6 was faster than llvm :P
<Redfoxmoon> but, alright, I'll hop along
onionhammer has quit [Quit: WeeChat 1.0.1]
onionhammer has joined #crystal-lang
<asterite> I think supporting other targets, maybe even compiling to C, could be done
<asterite> but now it's not a priority
<asterite> (or even in our plans)
<jhass> is it worth the effort though? IMO at least atm definitely not
<jhass> once webassembly spreads and LLVM provides a backend for it, that might be interesting to look into
<wmoxam> it's worth it to whomever would want to attempt it
<crystal-gh> [crystal] asterite pushed 3 new commits to master: https://git.io/vr7Do
<crystal-gh> crystal/master 67844e0 Ary Borenszweig: Compiler: correctly handle Signal::INT when running sub-program
<crystal-gh> crystal/master 7daab73 Ary Borenszweig: Spec: better abort (imeediately quits and prints summary)
<crystal-gh> crystal/master 66f4312 Ary Borenszweig: Compiler: stop tracking whether a type was allocated or not. Fixes #2607...
<travis-ci> crystal-lang/crystal#66f4312 (master - Compiler: stop tracking whether a type was allocated or not. Fixes #2607): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/133984880
|meta has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vr7H4
<crystal-gh> crystal/master b3943d5 Ary Borenszweig: Set Exception's callstack when raising it, not when creating it
<travis-ci> crystal-lang/crystal#b3943d5 (master - Set Exception's callstack when raising it, not when creating it): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/133992944
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #2691: LLVM intrinsics refactor, adding bitswap. (master...intrinsics) https://git.io/vr7r9
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vr776
<crystal-gh> crystal/master d5a2636 Ary Borenszweig: Compiler: improve error message of a failing `as` to include the original type as well as the filename and line number. Fixes #2663
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] jhass pushed 2 new commits to master: https://git.io/vr756
<crystal-gh> crystal/master 171035a Jonne Haß: Add Tuple.from, Tuple#from, NamedTuple.from and NamedTuple#from
<crystal-gh> crystal/master 8fe37c5 Jonne Haß: Merge pull request #1811 from jhass/tuple_new_array...
Oliphaunte has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#8fe37c5 (master - Merge pull request #1811 from jhass/tuple_new_array): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/134006958
<jhass> :o
<jhass> oh
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
<BlaXpirit> what
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/vr7d6
<crystal-gh> crystal/master 477c5d4 Jonne Haß: Fix tuple spec for new TypeCastError wording
<BlaXpirit> wait, make spec eats a ton of memory for me and takes very long. what am I doing wrong?
<jhass> nothing :(
<travis-ci> crystal-lang/crystal#477c5d4 (master - Fix tuple spec for new TypeCastError wording): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/134010033
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 240 seconds]
Oliphaunte has joined #crystal-lang
<crystal-gh> [crystal] asterite opened pull request #2694: Correctly implement dup and clone. Fixes #2627 (master...feature/dup_clone) https://git.io/vr7pT
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Philpax has joined #crystal-lang
ssvb has quit [Remote host closed the connection]
Philpax has quit [Ping timeout: 252 seconds]
<RX14> interesting benchmarks of requests per second/connection for a simple website using postgres https://aww.moe/k0xqm0.png
|meta has joined #crystal-lang
<RX14> i have no idea why it trails off after 10 concurrent connections
<RX14> slightly better chat: https://aww.moe/n9yias.png