jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.16.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
Raimondi has quit [Quit: The road to wisdom?—Well, it's plain and simple to express: Err and err and err again, but less and less and less. — Piet Hein]
Philpax has joined #crystal-lang
Raimondi has joined #crystal-lang
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
|2701 has quit [Quit: Connection closed for inactivity]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox 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]
pawnbox has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
willl has joined #crystal-lang
<emancu> asterite: I wonder, if Hash-oriented programming is something that it doesn't work, how can I instantiate a new object from the results of a Crystal-DB-based adapter ?
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
trapped has joined #crystal-lang
soveran has quit [Remote host closed the connection]
txdv_ is now known as txdv
trapped has quit [Read error: Connection reset by peer]
Philpax has quit [Ping timeout: 276 seconds]
milad has joined #crystal-lang
<milad> Hi, is there any way to run crystal code from crystal code!? I want to get the advantage of compiling but need to load some plugins(scripts) when I need them. Is it possible?
mark_66 has joined #crystal-lang
globalkeith has joined #crystal-lang
globalkeith has quit [Client Quit]
schpn has joined #crystal-lang
schpn has quit [Client Quit]
globalkeith has joined #crystal-lang
soveran has joined #crystal-lang
kulelu88 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox 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]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
sdogruyol has joined #crystal-lang
<sdogruyol> milad: it’s possible in theory
<BlaXpirit> milad, you can run an external process and get its output
<BlaXpirit> ecr is implemented like this, i think
<BlaXpirit> but it's a pity there is no compile time code
Guest92641 has joined #crystal-lang
<Guest92641> Thanks
* Guest92641 used to be milad
Guest92641 is now known as slashmili
milad has quit [Ping timeout: 246 seconds]
slashmili is now known as milad
milad has quit [Remote host closed the connection]
A124 has quit [Read error: Connection reset by peer]
A124 has joined #crystal-lang
Philpax has joined #crystal-lang
_jungh4ns has quit [Read error: Connection reset by peer]
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
trapped has joined #crystal-lang
smarr has left #crystal-lang [#crystal-lang]
|2701 has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
|2701 has joined #crystal-lang
|2701 has quit [Changing host]
|2701 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
miketheman is now known as miketheman_
fryguy9 has joined #crystal-lang
Philpax has quit [Ping timeout: 252 seconds]
emancu has quit [Remote host closed the connection]
emancu has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
Oliphaunte has joined #crystal-lang
miketheman_ is now known as miketheman
smarr has joined #crystal-lang
slash_nick is now known as slash_me
jwaldrip has quit [Ping timeout: 260 seconds]
jwaldrip has joined #crystal-lang
txdv_ has joined #crystal-lang
txdv has quit [Ping timeout: 246 seconds]
bougyman has quit [Ping timeout: 276 seconds]
bougyman has joined #crystal-lang
txdv_ is now known as txdv
emancu has quit [Remote host closed the connection]
emancu has joined #crystal-lang
globalkeith has quit [Read error: Connection reset by peer]
globalkeith has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
tomchapin has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapin has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
mark_66 has quit [Remote host closed the connection]
fryguy91 has joined #crystal-lang
fryguy9 has quit [Ping timeout: 240 seconds]
fryguy9 has joined #crystal-lang
fryguy91 has quit [Ping timeout: 276 seconds]
fryguy9 has quit [Quit: Leaving.]
fryguy9 has joined #crystal-lang
bougyman has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
Oliphaunte has quit [Remote host closed the connection]
pawnbox_ has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 250 seconds]
Oliphaunte has joined #crystal-lang
willl has quit [Quit: Connection closed for inactivity]
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
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
Ven has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
Ven has quit [Read error: Connection reset by peer]
mjblack has quit [Quit: ZNC - http://znc.in]
Raimondii has joined #crystal-lang
mjblack has joined #crystal-lang
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brunto has joined #crystal-lang
tomchapin has joined #crystal-lang
Raimondi has quit [Ping timeout: 265 seconds]
Raimondii is now known as Raimondi
brunto has quit [Ping timeout: 250 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A124 has quit [Quit: '']
A124 has joined #crystal-lang
Raimondii has joined #crystal-lang
tomchapin has joined #crystal-lang
Raimondi has quit [Ping timeout: 265 seconds]
Raimondii is now known as Raimondi
trapped has quit [Read error: Connection reset by peer]
soveran has joined #crystal-lang
icezimm has joined #crystal-lang
sebasr has joined #crystal-lang
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<icezimm> hi ppl, I'm totally new to crystal, my first play is to port Uber ruby lib to crystal… I'm trying to make this test pass: https://github.com/fernandes/uber.cr/blob/master/spec/uber/builder_spec.cr#L37
<icezimm> if someone could give me some tips
<emancu> icezimm: and what do you have ?
<emancu> or where is it failing
<emancu> use https://carc.in/
<icezimm> emancu: thank you for your reply https://carc.in/#/r/ymh (latest code on my machine)
<icezimm> I was checking https://github.com/waterlink/spec2.cr to get some ideas
<emancu> do you need more complex framework ?
<emancu> * a more complex test framework?
soveran has quit [Read error: Connection reset by peer]
soveran has joined #crystal-lang
<emancu> you are calling the builds method with a Hash(String, Bool)
<icezimm> no… my idea is `include Uber::Builder` then use builds method to instantiate a specific class, based on options hash
<emancu> BuilderTest::Song.build({evergreen: true})
<emancu> you are actually doing it
<emancu> icezimm: I had the same issue and didn't find a nice solution
<icezimm> exactly.. this is the first case of Uber ruby lib https://github.com/apotonick/uber/blob/master/test/builder_test.rb#L25
<emancu> well.. I did but i'm not sure yet
<icezimm> the test is red, I'm just trying to make it green heheheh
<emancu> tell me something, does your class needs to have its own instance variables ? or you can just keep a hash as instance variable and access its values ?
<emancu> I don;t understand why are you doing that
<emancu> try to change
<emancu> def builds(&block : Hash(Symbol, String) -> _) into def builds(&block : Hash(Symbol, K) -> _)
<icezimm> in ./src/uber/builder.cr:23: undefined constant K
<icezimm> is there any place I can read more about generics / macros instead of docs itself?
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
<icezimm> emancu: I think I need a better understand of generics / macros before keep working on this
<emancu> you mean besides the docs ?
<icezimm> yes
<emancu> no that I know
<emancu> let me think about it
<emancu> i think you can do an alias
<icezimm> I'm feeling I'm doing just trial and error heheh
<emancu> sometimes it works :P
<emancu> look, I replaced your Hash(Symbol, String) type by Hash(Symbol, Bool)
<emancu> which is what you are actually using
<icezimm> emancu: is there any way to store Proc in a variable to call later?
<icezimm> now I need to store it in a var and call from class builder heheheh
<icezimm> emancu: need to go out for a while, brb.. thank you for your attention
|2701 has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
Oliphaunte has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Oliphaunte has quit [Ping timeout: 250 seconds]
Philpax has quit [Ping timeout: 252 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
Philpax has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrcmw
<crystal-gh> crystal/master 380d4ea Ary Borenszweig: Fixed #2597: Compiler Error on assigning a class or some subclass to a field, regression from <0.16
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrcmo
<crystal-gh> crystal/master 8027c8d Ary Borenszweig: Merge pull request #2592 from crystal-lang/feature/external_args_names...
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrcYs
<crystal-gh> crystal/master c0b0e3f Ary Borenszweig: Hash: forward initial_capacity to initialize. Fixes #2586 . Fixes #2588
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrcOs
<crystal-gh> crystal/master e61eba2 Ary Borenszweig: Float: use `as` in constants...
<travis-ci> crystal-lang/crystal#380d4ea (master - Fixed #2597: Compiler Error on assigning a class or some subclass to a field, regression from <0.16): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130704909
mjblack has quit [Ping timeout: 260 seconds]
<icezimm> emancu: ohhh thank you for the link, I'm gonna read
mjblack has joined #crystal-lang
<travis-ci> crystal-lang/crystal#8027c8d (master - Merge pull request #2592 from crystal-lang/feature/external_args_names): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130704977
<travis-ci> crystal-lang/crystal#c0b0e3f (master - Hash: forward initial_capacity to initialize. Fixes #2586 . Fixes #2588): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130705834
<travis-ci> crystal-lang/crystal#e61eba2 (master - Float: use `as` in constants): The build has errored. https://travis-ci.org/crystal-lang/crystal/builds/130707533