jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.1 | 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
datanoise has joined #crystal-lang
willlll has quit [Quit: willlll]
vikaton has joined #crystal-lang
Cidan is now known as zz_Cidan
tmoore has joined #crystal-lang
havenwood has quit []
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
DerisiveLogic has joined #crystal-lang
waterlink1 has joined #crystal-lang
waterlink has quit [Ping timeout: 272 seconds]
bcardiff has quit [Quit: Leaving.]
kulelu88 has quit [Quit: Leaving]
vikaton has quit []
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
Dreamer3 has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 272 seconds]
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
Dreamer3 has joined #crystal-lang
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 258 seconds]
zz_Cidan is now known as Cidan
Excureo has quit [Ping timeout: 264 seconds]
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 256 seconds]
JBat has joined #crystal-lang
havenwood has joined #crystal-lang
tmoore has quit [Quit: Connection closed for inactivity]
willlll has joined #crystal-lang
willlll has quit [Client Quit]
willlll has joined #crystal-lang
willlll has quit [Client Quit]
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 255 seconds]
strcmp1 has quit [Ping timeout: 245 seconds]
HakanD__ has joined #crystal-lang
datanoise has joined #crystal-lang
strcmp1 has joined #crystal-lang
BlaXpirit has joined #crystal-lang
willlll has joined #crystal-lang
willlll has quit [Client Quit]
datanoise has quit [Ping timeout: 256 seconds]
havenwood has quit [Ping timeout: 245 seconds]
HakanD___ has joined #crystal-lang
HakanD__ has quit [Read error: Connection reset by peer]
HakanD___ has quit [Read error: Connection reset by peer]
ponga has joined #crystal-lang
HakanD___ has joined #crystal-lang
DerisiveLogic has quit [Ping timeout: 256 seconds]
HakanD___ has quit [Read error: Connection reset by peer]
bcardiff has joined #crystal-lang
HakanD___ has joined #crystal-lang
ponga has quit [Client Quit]
willlll has joined #crystal-lang
ponga has joined #crystal-lang
JBat has quit [Quit: Computer has gone to sleep.]
bcardiff has quit [Quit: Leaving.]
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
bcardiff has joined #crystal-lang
willlll has quit [Quit: willlll]
bcardiff has quit [Client Quit]
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
datanoise has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
datanoise has quit [Ping timeout: 245 seconds]
HakanD___ has quit [Ping timeout: 272 seconds]
HakanD___ has joined #crystal-lang
Cidan is now known as zz_Cidan
JBat has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
ponga has quit [Quit: Leaving...]
leafybasil has joined #crystal-lang
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 258 seconds]
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 272 seconds]
JBat has quit [Quit: Computer has gone to sleep.]
BlaXpirit has joined #crystal-lang
DerisiveLogic has joined #crystal-lang
kulelu88 has joined #crystal-lang
DerisiveLogic has quit [Ping timeout: 250 seconds]
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 264 seconds]
HakanD___ has quit [Quit: Be back later ...]
bcardiff has joined #crystal-lang
havenwood has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
harisamin has joined #crystal-lang
kulelu88 has quit [Ping timeout: 258 seconds]
JBat has joined #crystal-lang
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 246 seconds]
bcardiff has joined #crystal-lang
kulelu88 has joined #crystal-lang
kulelu88 is now known as kulelu88_away
asterite has joined #crystal-lang
<asterite> jhass: question, if you build DeBot with VERIFY=1, do you get an error?
<jhass> I never noticed that's a thing :P
<asterite> If the env var VERIFY is 1, we do llvm verification... this is slow and we have that flag in true for the specs, but in regular code we don't do that
<ddfreyne> gem up
<ddfreyne> Wrong window.
<asterite> :-)
<jhass> but yeah, 0.6.1 & 0.7.1 dump LL
<asterite> Good :-)
<jhass> head head throws undefined constant JSON::Value for some reason
<asterite> It's not a real issue, but I'll improve the compiler to give a proper error
<asterite> Ah, yes... I noticed that too, but it's because there's no JSON::Value
<jhass> ah, right, lol
<asterite> now the compiler detects that... previously it marked that (wrongly!) as a free var
<asterite> ;-)
<jhass> I can never remember the name :P
<asterite> Well, the llvm dump is because you redefine pthread_mutex_init
<asterite> with other types
<asterite> but in the end there can only be one pthread_mutext_init function with that name
<asterite> so the Mutex code breaks
<asterite> The solution would be to detect these inconsistencies and give a compile time error, which I'll do
<asterite> but I'd also like to bring your changes to master
<asterite> but I don't know what pthread_mutexattr_t is... in your code you just treat it as Void* and somehow it works
<jhass> it's some struct
<jhass> iirc
<jhass> I don't need to allocate it, so
<asterite> I just checked, here its 16 bytes
<asterite> So I guess we'll need to define that struct and then use your code
<jhass> btw if you want to add a Queue, a double linked list or stack implementation would probably be better
datanoise has joined #crystal-lang
<asterite> could you check the size of pthread_mutexattr_t in linux 64 bits and 32 bits, since you have access to them?
<asterite> jhass: I think those things won't be that useful with lightweight processes, but I'm not sure
<jhass> yeah, probably should just extract the whole thing to crystal-pthread
<jhass> pthread_mutexattr_t is 4 bytes on my system
<jhass> I'd just keep it at Void*
datanoise has quit [Ping timeout: 255 seconds]
<asterite> but in once place you use `out @attr`, so the compiler has to know the size
<jhass> it's a pointer
datanoise has joined #crystal-lang
Sadin has joined #crystal-lang
Sadin is now known as Sadin
Sadin has quit [Remote host closed the connection]
Sadin has joined #crystal-lang
<asterite> Strange, it seems its 4 bytes in 32 bits and 64 bits linux, but 16 bytes in mac
<crystal-gh> [crystal] asterite pushed 6 new commits to master: http://git.io/vU91A
<crystal-gh> crystal/master 61edd8c Ary Borenszweig: Improved HTTP::Headers#to_s
<crystal-gh> crystal/master 9f1f8ed Ary Borenszweig: Small refactor
<crystal-gh> crystal/master c22e1ef Ary Borenszweig: Fixed bug related to unconditionall return
waterlink1 has quit [Quit: Leaving.]
<travis-ci> manastech/crystal#2339 (master - 6f05cdc : Ary Borenszweig): The build is still failing.
waterlink has joined #crystal-lang
kulelu88_away has quit [Ping timeout: 264 seconds]
shama has joined #crystal-lang
waterlink1 has joined #crystal-lang
asterite has quit [Quit: Page closed]
waterlink has quit [Ping timeout: 252 seconds]
kulelu88 has joined #crystal-lang
asterite has joined #crystal-lang
willlll has joined #crystal-lang
<asterite> jhass: He, I now think JSON::Value makes more sense than JSON::Type... because it's a value, not a type
<jhass> :D
<jhass> if you want to tinker with json stuff, a "root_key" parameter for json_mapping would be handy
<asterite> what's that?
<jhass> let's say you have {"foo": {"id": 1, "bar": "quux"}} and json_mapping({id: Int32, bar: String})
<asterite> Oh, you mean, a json that always has an object with a single key?
<jhass> yeah
<asterite> is that common?
<jhass> many APIs do that, Githubs for example
<asterite> Slack does something similar: https://api.slack.com/methods/users.list
<asterite> but they have an "ok" property, if it's false than an "errors" property come instead
<asterite> but it's bad that you have to know json's pull parser API to know how to do that...
<jhass> yeah
<jhass> and sometimes I was lazy and just did Foo.from_json JSON.parse(json)["foo"].to_json
<asterite> too bad they don't use http codes for errors :(
<asterite> hehe
asterite has quit [Quit: Page closed]
zz_Cidan is now known as Cidan
harisamin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybas_ has joined #crystal-lang
leafybasil has quit [Ping timeout: 256 seconds]
bcardiff1 has joined #crystal-lang
bcardiff has quit [Ping timeout: 265 seconds]
DerisiveLogic has joined #crystal-lang
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
harisami_ has joined #crystal-lang
leafybas_ has quit [Read error: Connection reset by peer]
leafybasil has joined #crystal-lang
Sadin has quit [Quit: Leaving]
willlll has quit [Quit: willlll]
datanoise has quit [Ping timeout: 264 seconds]
bcardiff has joined #crystal-lang
bcardiff1 has quit [Ping timeout: 272 seconds]
DerisiveLogic has quit [Ping timeout: 250 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
datanoise has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
bcardiff has quit [Quit: Leaving.]
willlll has joined #crystal-lang
JBat has quit [Quit: Computer has gone to sleep.]
leafybasil has joined #crystal-lang
Dreamer3 has joined #crystal-lang
Dreamer3 has quit [Ping timeout: 265 seconds]
Dreamer3_ has joined #crystal-lang
vikaton has joined #crystal-lang
Dreamer3_ has quit [Quit: Computer has gone to sleep.]
Dreamer3 has joined #crystal-lang
Dreamer3 has quit [Client Quit]
datanoise has quit [Ping timeout: 258 seconds]
datanoise has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
<vikaton> what's the point of String initializers
<vikaton> if they dont work properly?
<notfowl> Loaded question alert
<notfowl> :p
harisami_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<vikaton> hm?
vikaton has quit []
bcardiff has joined #crystal-lang
bcardiff has quit [Ping timeout: 264 seconds]
bcardiff has joined #crystal-lang
neovintage has joined #crystal-lang
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
Sadin has joined #crystal-lang