jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.18.7 | 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
Philpax has joined #crystal-lang
mkl0501 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 252 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
DeBot has quit [Ping timeout: 260 seconds]
jhass has quit [Ping timeout: 250 seconds]
jhass has joined #crystal-lang
daekano has quit [Ping timeout: 250 seconds]
Liothen has quit [Excess Flood]
acangiano has joined #crystal-lang
daekano has joined #crystal-lang
tubbo has quit [Ping timeout: 276 seconds]
maxpowa has quit [Ping timeout: 260 seconds]
Liothen has joined #crystal-lang
tubbo has joined #crystal-lang
maxpowa has joined #crystal-lang
maxpowa has quit [Read error: Connection reset by peer]
maxpowa has joined #crystal-lang
Liothen has quit [Changing host]
Liothen has joined #crystal-lang
Philpax has quit [Ping timeout: 244 seconds]
Philpax has joined #crystal-lang
acangiano has quit [Quit: Page closed]
Philpax has quit [Ping timeout: 244 seconds]
Philpax has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 250 seconds]
onethirtyfive has joined #crystal-lang
Philpax has quit [Ping timeout: 244 seconds]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
jinks7 has joined #crystal-lang
jinks7 has left #crystal-lang [#crystal-lang]
Philpax has joined #crystal-lang
mark_66 has joined #crystal-lang
gewo has joined #crystal-lang
bjz has joined #crystal-lang
bjz has quit [Read error: Connection reset by peer]
bjz has joined #crystal-lang
_whitelogger has joined #crystal-lang
tomchapin has joined #crystal-lang
soveran has joined #crystal-lang
tomchapi_ has quit [Ping timeout: 264 seconds]
xmgx has joined #crystal-lang
matp has joined #crystal-lang
_whitelogger has joined #crystal-lang
matp has quit [Ping timeout: 265 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 258 seconds]
A124 has quit [Quit: '']
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 250 seconds]
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
pawnbox has quit [Ping timeout: 244 seconds]
Oliphaunte has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
mark_66 has quit [Quit: Leaving.]
mark_66 has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
Renich has joined #crystal-lang
jadams has joined #crystal-lang
mjblack has quit [Ping timeout: 244 seconds]
Renich has quit [Ping timeout: 244 seconds]
Renich has joined #crystal-lang
mjblack has joined #crystal-lang
A124 has joined #crystal-lang
Oliphaunte has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Renich has quit [Ping timeout: 240 seconds]
Renich has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
mark_66 has quit [Quit: Leaving.]
mkl0501 has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Philpax has quit [Read error: Network is unreachable]
Philpax has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
Oliphaunte has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
soveran has quit [Remote host closed the connection]
A124 has quit [Quit: '']
A124 has joined #crystal-lang
<BlaXpirit> >> [a = 5]; a
<BlaXpirit> jhass,
<BlaXpirit> anyhow, sucks that this does not work. https://carc.in/#/r/17pb - i wonder why
<BlaXpirit> hash, tuple works this way
<FromGitter> <masukomi> maybe the a was optomized away before it got to the 2nd line
masukomi has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
tomchapi_ has joined #crystal-lang
masukomi has quit [Ping timeout: 252 seconds]
masukomi has joined #crystal-lang
Renich has quit [Ping timeout: 276 seconds]
Oliphaunte has quit [Read error: Connection reset by peer]
Renich has joined #crystal-lang
Oliphaunte has joined #crystal-lang
soveran has joined #crystal-lang
matp has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
masukomi has quit [Quit: masukomi]
masukomi has joined #crystal-lang
A124 has quit [Quit: '']
matp has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Oliphaun_ has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 250 seconds]
Renich has quit [Ping timeout: 244 seconds]
Renich has joined #crystal-lang
Oliphaun_ has quit [Read error: Network is unreachable]
soveran has joined #crystal-lang
masukomi has quit [Quit: masukomi]
soveran has quit [Remote host closed the connection]
sebasr has joined #crystal-lang
masukomi has joined #crystal-lang
masukomi has quit [Client Quit]
srabuini has quit [Ping timeout: 276 seconds]
tomchapi_ has quit [Quit: Textual IRC Client: www.textualapp.com]
masukomi has joined #crystal-lang
ponga has quit [Quit: Connection closed for inactivity]
<BlaXpirit> Module validation failed: Incorrect number of arguments passed to called function! \n %6 = call %"String::Builder.170"* @"*Pointer(Void)@Object::to_s<String::Builder>:String::Builder"(%"String::Builder.170"* %5)
<BlaXpirit> I know this is probably related to my abuse of string interpolation during code generation, but how to debug this?
<BlaXpirit> this comes from LLVM, seemingly at one of the final stages of compilation
Renich has quit [Ping timeout: 276 seconds]
Renich has joined #crystal-lang
soveran has joined #crystal-lang
A124 has joined #crystal-lang
Renich has quit [Ping timeout: 260 seconds]
avdi has quit [Ping timeout: 260 seconds]
danzilio has quit [Ping timeout: 250 seconds]
daemonwrangler has quit [Ping timeout: 250 seconds]
avdi has joined #crystal-lang
xmgx has quit [Remote host closed the connection]
daemonwrangler has joined #crystal-lang
<FromGitter> <crisward> trying to pass a variable into a macro, but it's complaining. Any ideas?
<BlaXpirit> crisward, a good idea would be to provide any kind of information
<FromGitter> <crisward> just check anyone was listening first...
<FromGitter> <crisward> using kemal
<FromGitter> <crisward> need to pass variable into render
<FromGitter> <crisward> the template comes from a database
<FromGitter> <crisward> getting the error `undefined macro method 'Var#split'`
<FromGitter> <crisward> in in macro 'render' /projects/crystal2/libs/kilt/kilt.cr:22, line 2:
danzilio has joined #crystal-lang
<BlaXpirit> crisward, ok, don't pass a variable, it has to be a literal probably
<BlaXpirit> but nah, I'm just guessing, this is still no info
<FromGitter> <crisward> it works with a literal, but how can I create a literal from a variable if that's not a stupid question
<BlaXpirit> crisward, you can't, the point is that it can't be a runtime value, it is baked into an executable
<BlaXpirit> or maybe you're using something wrong but i see no code and no traceback
<BlaXpirit> use a pastebin, like gist.github.com
<FromGitter> <crisward> sorry, just trying to get my head around macros. So macros get build into real code by the compiler and therefore can't do it with code which is not available at compile time?
<BlaXpirit> crisward, yes. macros generate code to be compiled
<FromGitter> <crisward> So if I have a list of templates, at compile time, then use a case statement against my variable, that should work?
<BlaXpirit> i think so
<FromGitter> <crisward> Yep that worked!
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
soveran has quit [Remote host closed the connection]
masukomi has quit [Quit: masukomi]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
<jeromegn> am I guaranteed to always get the same constant values from a C lib bindings?
<jeromegn> they’re defined like "extern ZOOAPI struct ACL_vector ZOO_OPEN_ACL_UNSAFE;” in zookeeper
<jeromegn> I don’t understand how those are mapped in the c bindings. I mean, I’ve defined them as prescribed and it works, but I wonder if their values will change on another computer for instance… or another architecture.
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
<BlaXpirit> jeromegn, did u bind them with a $ ?
<jeromegn> yes
<BlaXpirit> jeromegn, they're set in .c files at runtime
<jeromegn> $open_acl_unsafe = ZOO_OPEN_ACL_UNSAFE : AclVector
<BlaXpirit> these are generally not constants, in fact
<jeromegn> I see
<BlaXpirit> whatever the library puts there at run time will be available to you
<jeromegn> great
<jeromegn> I tried creating an enum from them, but I can’t. like `enum State; Connecting = $connecting_state; end`
<jeromegn> anyway, an enum is not necessary, just syntactic sugar
soveran 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 [Changing host]
soveran has quit [Remote host closed the connection]
avdi has quit [Ping timeout: 255 seconds]
daemonwrangler has quit [Ping timeout: 258 seconds]
danzilio has quit [Ping timeout: 250 seconds]
daemonwrangler has joined #crystal-lang
avdi has joined #crystal-lang
avdi has quit [Remote host closed the connection]
daemonwrangler has quit [Remote host closed the connection]
soveran has joined #crystal-lang
Oliphaunte has joined #crystal-lang