jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.12.0 | Fund Crystals development: http://is.gd/X7PRtI | 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
_kfpratt has quit []
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vgFWj
<crystal-gh> crystal/master 0469f43 Ary Borenszweig: Updated Changelog
<crystal-gh> crystal/master 9ea4c9c Ary Borenszweig: Fixed #2165: incorrect type of hexadecimal literal
trapped has quit [Read error: Connection reset by peer]
<travis-ci> manastech/crystal#9ea4c9c (master - Fixed #2165: incorrect type of hexadecimal literal): The build passed. https://travis-ci.org/manastech/crystal/builds/109747072
pawnbox has joined #crystal-lang
tomchapin has quit [Ping timeout: 265 seconds]
pawnbox has quit [Ping timeout: 252 seconds]
shama has quit [Remote host closed the connection]
shama has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
shama has quit [Remote host closed the connection]
shama has joined #crystal-lang
tomchapin has joined #crystal-lang
doug___ has joined #crystal-lang
doug___ has quit [Client Quit]
kfpratt has joined #crystal-lang
tomchapin has quit [Ping timeout: 265 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
tomchapin has joined #crystal-lang
tomchapin has quit [Ping timeout: 264 seconds]
tomchapin has joined #crystal-lang
tomchapin has quit [Read error: Connection reset by peer]
Sadin has joined #crystal-lang
_whitelogger_ has quit [Remote host closed the connection]
_whitelogger has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
krtv` has quit [Ping timeout: 260 seconds]
krtv` has joined #crystal-lang
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
Philpax has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
Sadin has quit [Quit: Leaving]
srenatus has joined #crystal-lang
fka has joined #crystal-lang
fka_ has joined #crystal-lang
fka has quit [Read error: Connection reset by peer]
fka has joined #crystal-lang
fka has quit [Client Quit]
fka_ has quit [Ping timeout: 240 seconds]
Ven has joined #crystal-lang
Ven_ has joined #crystal-lang
Ven has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
trapped has joined #crystal-lang
pawnbox has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
trapped has joined #crystal-lang
ssvb has quit [Remote host closed the connection]
<travis-ci> MakeNowJust/crystal#9ea4c9c (master - Fixed #2165: incorrect type of hexadecimal literal): The build passed. https://travis-ci.org/MakeNowJust/crystal/builds/109818805
djellemah has quit [*.net *.split]
braidn has quit [*.net *.split]
buggs has quit [*.net *.split]
dom96 has quit [*.net *.split]
Veejay has quit [*.net *.split]
aemadrid has quit [*.net *.split]
mroth has quit [*.net *.split]
avdi has quit [*.net *.split]
jfontan has quit [*.net *.split]
buggs has joined #crystal-lang
Veejay has joined #crystal-lang
djellemah has joined #crystal-lang
dom96 has joined #crystal-lang
g3funk has joined #crystal-lang
jfontan has joined #crystal-lang
mroth has joined #crystal-lang
_whitelogger has joined #crystal-lang
aemadrid has joined #crystal-lang
toydestroyer has joined #crystal-lang
avdi has joined #crystal-lang
Excureo has quit [*.net *.split]
thor77 has quit [*.net *.split]
onionhammer has quit [*.net *.split]
thor77 has joined #crystal-lang
Excureo has joined #crystal-lang
onionhammer has joined #crystal-lang
mroth has joined #crystal-lang
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
buggs has quit [*.net *.split]
dom96 has quit [*.net *.split]
g3funk has quit [*.net *.split]
guilleiguaran__ has quit [*.net *.split]
Davy_CC has quit [*.net *.split]
emmanueloga has quit [*.net *.split]
nulpunkt has quit [*.net *.split]
joshcarter has quit [*.net *.split]
jhass has quit [*.net *.split]
DeBot has quit [*.net *.split]
ytti has quit [*.net *.split]
tliff has quit [*.net *.split]
CompanionCube has quit [*.net *.split]
salvor has quit [*.net *.split]
Bish has quit [*.net *.split]
nulpunkt has joined #crystal-lang
Davy_CC has joined #crystal-lang
jhass has joined #crystal-lang
DeBot has joined #crystal-lang
buggs has joined #crystal-lang
Bish has joined #crystal-lang
dom96 has joined #crystal-lang
CompanionCube has joined #crystal-lang
CompanionCube has quit [Changing host]
CompanionCube has joined #crystal-lang
tliff has joined #crystal-lang
g3funk has joined #crystal-lang
ytti has joined #crystal-lang
salvor has joined #crystal-lang
joshcarter has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
mroth has quit [*.net *.split]
Excureo has quit [*.net *.split]
avdi has quit [*.net *.split]
srenatus has quit [*.net *.split]
kfpratt has quit [*.net *.split]
Liothen has quit [*.net *.split]
jwaldrip has quit [*.net *.split]
sdogruyol has quit [*.net *.split]
victor_lowther has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
jokke has quit [*.net *.split]
Cyrus has quit [*.net *.split]
bougyman has quit [*.net *.split]
RX14 has quit [*.net *.split]
dzv has quit [*.net *.split]
dzv has joined #crystal-lang
jokke has joined #crystal-lang
kfpratt has joined #crystal-lang
[spoiler] has joined #crystal-lang
Cyrus has joined #crystal-lang
Cyrus is now known as Guest71168
Excureo has joined #crystal-lang
bougyman has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
RX14 has joined #crystal-lang
Liothen has joined #crystal-lang
Papierkorb has quit [Ping timeout: 272 seconds]
Papierkorb has joined #crystal-lang
pawnbox has joined #crystal-lang
sdogruyol has joined #crystal-lang
srenatus has joined #crystal-lang
jwaldrip has joined #crystal-lang
avdi has joined #crystal-lang
victor_lowther has joined #crystal-lang
mroth has joined #crystal-lang
emmanueloga has joined #crystal-lang
trapped has quit [Quit: Textual IRC Client: www.textualapp.com]
trapped has joined #crystal-lang
jfontan has joined #crystal-lang
RX14 has quit [*.net *.split]
salvor has quit [*.net *.split]
havenwood has quit [*.net *.split]
endou has quit [*.net *.split]
wmoxam has quit [*.net *.split]
asterite has quit [*.net *.split]
asterite has joined #crystal-lang
endou has joined #crystal-lang
RX14 has joined #crystal-lang
wmoxam has joined #crystal-lang
havenwood has joined #crystal-lang
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
salvor has joined #crystal-lang
pawnbox has quit [*.net *.split]
kfpratt has quit [*.net *.split]
dzv has quit [*.net *.split]
Davy_CC has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
mjblack has quit [*.net *.split]
adam^ has quit [*.net *.split]
rkeene has quit [*.net *.split]
waj has quit [*.net *.split]
justinmcp has quit [*.net *.split]
acetoxy has quit [*.net *.split]
Davy_CC has joined #crystal-lang
yxhuvud has joined #crystal-lang
adam^ has joined #crystal-lang
pawnbox has joined #crystal-lang
waj has joined #crystal-lang
justinmcp has joined #crystal-lang
kfpratt has joined #crystal-lang
dzv has joined #crystal-lang
kfpratt has quit [*.net *.split]
trapped has quit [*.net *.split]
Guest71168 has quit [*.net *.split]
danzilio has quit [*.net *.split]
A124 has quit [*.net *.split]
BlaXpirit has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
Netfeed has quit [*.net *.split]
badeball has quit [*.net *.split]
Raimondi has quit [*.net *.split]
ldlework has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
djanatyn has quit [*.net *.split]
slash_nick has quit [*.net *.split]
leafybasil has quit [*.net *.split]
jamie_ca has quit [*.net *.split]
badeball has joined #crystal-lang
pleiosaur has joined #crystal-lang
trapped has joined #crystal-lang
djanatyn has joined #crystal-lang
Netfeed has joined #crystal-lang
kfpratt has joined #crystal-lang
Dreamer3 has joined #crystal-lang
Guest71168 has joined #crystal-lang
jamie_ca has joined #crystal-lang
acetoxy has joined #crystal-lang
BlaXpirit has joined #crystal-lang
A124 has joined #crystal-lang
slash_nick has joined #crystal-lang
Raimondi has joined #crystal-lang
BlaXpirit has quit [Max SendQ exceeded]
A124 has quit [Max SendQ exceeded]
ldlework has joined #crystal-lang
A124 has joined #crystal-lang
BlaXpirit has joined #crystal-lang
danzilio has joined #crystal-lang
Raimondi has quit [*.net *.split]
SShrike has joined #crystal-lang
rkeene has joined #crystal-lang
Raimondi has joined #crystal-lang
Netfeed has joined #crystal-lang
Netfeed has quit [Changing host]
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
_whitelogger has joined #crystal-lang
djellemah has joined #crystal-lang
grindhold has joined #crystal-lang
jnylen has joined #crystal-lang
wmoxam has joined #crystal-lang
thor77_ has joined #crystal-lang
emmanueloga has quit [*.net *.split]
mroth has quit [*.net *.split]
victor_lowther has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
buggs has quit [*.net *.split]
thor77 has quit [*.net *.split]
krtv` has quit [*.net *.split]
AckZ has quit [*.net *.split]
Cidan has quit [*.net *.split]
wminor has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
rvchangue has quit [*.net *.split]
matp has quit [*.net *.split]
iamstef has quit [*.net *.split]
robacarp has quit [*.net *.split]
thor77_ is now known as thor77
buggs1 has joined #crystal-lang
krtv` has joined #crystal-lang
shadeslayer has joined #crystal-lang
omninonsense has joined #crystal-lang
matp has joined #crystal-lang
robacarp has joined #crystal-lang
pawnbox_ has quit [Remote host closed the connection]
rvchangue has joined #crystal-lang
Cidan has joined #crystal-lang
joshcarter has joined #crystal-lang
victor_lowther has joined #crystal-lang
wminor has joined #crystal-lang
SShrike has quit [Quit: SShrike]
mroth has joined #crystal-lang
Ven has joined #crystal-lang
pawnbox has joined #crystal-lang
Luk3 has quit [*.net *.split]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
trapped_ has joined #crystal-lang
vifino has quit [*.net *.split]
vifino has joined #crystal-lang
trapped has quit [Ping timeout: 268 seconds]
trapped has joined #crystal-lang
iamstef has joined #crystal-lang
Ven has joined #crystal-lang
trapped_ has quit [Ping timeout: 244 seconds]
trapped_ has joined #crystal-lang
emmanueloga has joined #crystal-lang
AckZ has joined #crystal-lang
trapped has quit [Ping timeout: 248 seconds]
trapped has joined #crystal-lang
trapped_ has quit [Ping timeout: 240 seconds]
trapped_ has joined #crystal-lang
trapped has quit [Ping timeout: 268 seconds]
AckZ has quit [K-Lined]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wminor has quit [Read error: Connection reset by peer]
wminor has joined #crystal-lang
ssvb has joined #crystal-lang
ponga has joined #crystal-lang
Ven has joined #crystal-lang
g3funk is now known as braidn
<jokke> hey
<jokke> i have a question about macros
<jokke> i have an abstract class that provides a macro
<jokke> this macro then defines a method
<jokke> it seems to me, that the method is defined on the abstract class even though called from a class inheriting from it
<asterite> jokke: doesn't look like that: https://play.crystal-lang.org/#/r/sja
<asterite> If you provide your code maybe it's easier to understand your problem
kfpratt has quit [Read error: Network is unreachable]
kfpratt has joined #crystal-lang
jwaldrip has quit [Read error: Connection reset by peer]
<jokke> asterite: yes
jwaldrip has joined #crystal-lang
<asterite> When you create `Bar.new("foo")`, the type of @foo becomes String
<asterite> and String doesn't have a foo method
<jokke> i admit it's very weird doing something like this but i stumbled across this problem writing a serializer
<asterite> Instance variables are inherited, so Foo's @foo gets the type of all subclasses
<jokke> ooh
<jokke> ok
<jokke> that explains it
<jokke> alright, i'll work around it then
<jokke> thanks for clarifying
<jokke> asterite: https://p.jreinert.com/0gSZ/ruby this is what i'm trying to do... :/
<jokke> not sure how i can get past the type inheritance
x0f has quit [Ping timeout: 268 seconds]
<jokke> ah i know
<jokke> i'll just make the class generic
x0f has joined #crystal-lang
<jokke> yup, works like a charm
Papierkorb has left #crystal-lang ["Konversation terminated!"]
slash_nick has joined #crystal-lang
slash_nick has quit [Changing host]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AckZ has joined #crystal-lang
shama has joined #crystal-lang
Excureo has quit [Remote host closed the connection]
Excureo has joined #crystal-lang
<sdogruyol> @jokke you can use a before filter for setting headers e.g
trapped has joined #crystal-lang
trapped_ has quit [Ping timeout: 255 seconds]
jwaldrip has quit [Ping timeout: 240 seconds]
guilleiguaran__ has quit [Read error: Network is unreachable]
ponga has quit [Read error: Connection reset by peer]
avdi has quit [Write error: Connection reset by peer]
omninonsense has quit [Ping timeout: 240 seconds]
CompanionCube has quit [Ping timeout: 240 seconds]
krtv` has quit [Ping timeout: 240 seconds]
buggs1 has quit [Ping timeout: 240 seconds]
buggs1 has joined #crystal-lang
krtv` has joined #crystal-lang
CompanionCube has joined #crystal-lang
CompanionCube has quit [Changing host]
CompanionCube has joined #crystal-lang
[spoiler] has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
avdi has joined #crystal-lang
jwaldrip has joined #crystal-lang
ponga has joined #crystal-lang
Excureo has quit [Remote host closed the connection]
Excureo has joined #crystal-lang
<jeromegn> sdogruyol: I saw you pulled that in this morning (or yesterday)? :P I was wondering if you'd thought about using blocks (like in Grape) to namespace resources? in that case, before and after could be used without a route argument and apply to the whole block
<sdogruyol> i haven’t thought about that jeromegn
<sdogruyol> you are talking about this right? http://www.sinatrarb.com/contrib/namespace.html
<jeromegn> I guess so :)
<jeromegn> I'm thinking in Grape a lot though
<jeromegn> but yes that would work
<jeromegn> maybe we just need a Grape (Krepe?) on top of Kemal
<jeromegn> :)
<sdogruyol> hahah
<sdogruyol> that’d be pretty sweet
ponga has quit [Quit: Connection closed for inactivity]
Liothen has joined #crystal-lang
Liothen has quit [Changing host]
Excureo has quit [Read error: Connection reset by peer]
A124 has quit [Quit: '']
Excureo has joined #crystal-lang
A124 has joined #crystal-lang
srenatus has quit [Quit: Connection closed for inactivity]
A124 has quit [Quit: '']
A124 has joined #crystal-lang
A124 has quit [Quit: '']
A124 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
BlaXpirit has quit [Quit: Bye]
BlaXpirit has joined #crystal-lang
BlaXpirit_ has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vgAor
<crystal-gh> crystal/master 4275ce7 Ary Borenszweig: Fixed #2171: Problems with block passing, inheritance and `with self yield`
BlaXpirit_ has quit [Quit: Konversation]
Ven has joined #crystal-lang
yxhuvud has quit [Ping timeout: 264 seconds]
<travis-ci> manastech/crystal#4275ce7 (master - Fixed #2171: Problems with block passing, inheritance and `with self yield`): The build passed. https://travis-ci.org/manastech/crystal/builds/109961847
<DeBot> https://github.com/manastech/crystal/issues/2171 (Problems with block passing, inheritance and `with self yield`)
<jokke> jeromegn: sdogruyol maybe you'd be interested in contributing: https://github.com/jreinert/crystal-jsonapi
<jeromegn> that's funny, I'm actually working on an HAL+JSON API at work
<jokke> jeromegn: hehe :)
<jokke> i think a good json api serializer would be very nice to have for crystal. even better of course would be indeed something like grape.
<jeromegn> definitely on my list. it wouldn't need to much work considering something like Kemal exists, it could build on top.
<jokke> yes, exactly
<jeromegn> also, if somebody else wants to do it, that would be nice too haha
<jeromegn> also thinking of making a static site compiler
<jeromegn> there's already Kamber which is close.
<jokke> well, anyhow, as of now my lib already emits spec conform and schema-valid json. Nothing fancy yet, relations are a bit cumbersome to define. I think a lot could be made more convenient with some macro wizardry. So if any of you guys can try out the lib and provide me with feedback or even better, improvements, i'd be very happy :)
<jokke> jeromegn: yeah sign me up for the static site compiler! :) I'd love to see one for crystal!
<BlaXpirit> well i don't see much point in it
<jokke> BlaXpirit: in what?
<BlaXpirit> static site compiler. unless i misunderstand what is mean by this
<BlaXpirit> meant
<jokke> BlaXpirit: something like jekyll
<BlaXpirit> ok, sure, that's it then
<BlaXpirit> there are more than enough of these and crystal has no advantage for them
<jokke> BlaXpirit: i think the crystal community profits from any and all projects written in crystal.
<jeromegn> jokke: I agree.
<jokke> i mean thanks to shards <3 it's super easy to ship your little lib so i end up splitting my projects into manageble portions which in turn may profit someone else doing something similar and that's what i'd expect from any larger crystal project
<jokke> so even if a static site compiler isn't on the top of your wishlist there may be other ways you profit from such a process (some libs that were written in the process)
<jokke> *project
<jeromegn> I love shards, but it needs to be a bit more powerful to be considered serious. I mean... I guess go's package management is also a bit freestyle (resolving dependencies, et al.)
yxhuvud has joined #crystal-lang
jbl has joined #crystal-lang
Guest52752 has quit [Client Quit]
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
<jokke> hm i just did a benchmark of my lib
<jokke> and i'm a bit confused about the results
Ven has quit [Client Quit]
<jokke> it seems that no matter how many documents i need to serialize its always done with a speed of 16 times per second
<jokke> and 16 times per second isn't that good..
<jokke> (i'm using /dev/null as io for to_json
<jokke> hm now i use a nop io as io (read and write empty method bodies) and there's not a lot of change. (20 times per second)
<jokke> any hints on where to find the bottleneck would be greatly appreciated
<jokke> here's the benchmark code: https://p.jreinert.com/pcGH/
<jokke> i can't believe that the json serializing itself can be so slow
mjblack has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]