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
sardaukar has joined #crystal-lang
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
vikaton has joined #crystal-lang
<vikaton> seems like Crystal has gotten a bit slower in 0.7.1 from 0.6.1
<vikaton> Idk if its benchmarking luck or not, just saw some milisecond increase
waterlink has quit [Ping timeout: 250 seconds]
datanoise has quit [Ping timeout: 264 seconds]
sardaukar has quit [Quit: sardaukar]
willlll has quit [Quit: willlll]
kulelu88 has quit [Quit: Leaving]
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
datanoise has joined #crystal-lang
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
datanoise has quit [Quit: leaving]
datanoise has joined #crystal-lang
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
DerisiveLogic has quit [Ping timeout: 240 seconds]
notfowl has quit [Changing host]
notfowl has joined #crystal-lang
notfowl has quit [Changing host]
notfowl has joined #crystal-lang
willlll has joined #crystal-lang
willlll has quit [Quit: willlll]
vikaton has quit [Quit: Connection closed for inactivity]
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
willlll has joined #crystal-lang
willlll has quit [Client Quit]
willlll has joined #crystal-lang
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
datanoise has quit [Ping timeout: 256 seconds]
datanoise has joined #crystal-lang
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
sardaukar has joined #crystal-lang
sardaukar has left #crystal-lang [#crystal-lang]
Ven has joined #crystal-lang
datanoise has quit [Ping timeout: 264 seconds]
willlll has quit [Quit: willlll]
havenwood has quit [Ping timeout: 240 seconds]
HakanD has joined #crystal-lang
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 256 seconds]
HakanD has quit [Quit: Be back later ...]
DerisiveLogic has joined #crystal-lang
sardaukar has joined #crystal-lang
HakanD has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BlaXpirit has joined #crystal-lang
Cidan is now known as zz_Cidan
leafybasil has quit [Remote host closed the connection]
HakanD_ has joined #crystal-lang
HakanD has quit [Ping timeout: 256 seconds]
leafybasil has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 256 seconds]
HakanD_ has quit [Ping timeout: 250 seconds]
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 245 seconds]
BlaXpirit has quit [Quit: Quit Konversation]
BlaXpirit has joined #crystal-lang
Ven has joined #crystal-lang
<jeromegn> morning
ponga has joined #crystal-lang
<sardaukar> morning :)
datanoise has joined #crystal-lang
havenwood has joined #crystal-lang
datanoise has quit [Ping timeout: 272 seconds]
vikaton has joined #crystal-lang
<vikaton> what's the role of '*' in Crystal with Types?
bcardiff has joined #crystal-lang
waj has joined #crystal-lang
<jeromegn> shortcut for Pointer(Type)
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
datanoise has joined #crystal-lang
waj_ has joined #crystal-lang
<vikaton> o
waj has quit [Ping timeout: 276 seconds]
waj_ is now known as waj
asterite has joined #crystal-lang
asterite has quit [Client Quit]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
leafybas_ has joined #crystal-lang
<jeromegn> I wish I had seen that page before
Ven has quit [Client Quit]
leafybasil has quit [Ping timeout: 252 seconds]
asterite has joined #crystal-lang
<asterite> jeromegn: well, I wrote it 5 minutes ago, so...
asterite has quit [Client Quit]
<jeromegn> haha
jeromegn_ has joined #crystal-lang
jeromegn has quit [Ping timeout: 244 seconds]
jeromegn_ is now known as jeromegn
<jhass> I wonder if having something like https://github.com/tomstuart/monads in stdlib could be useful
sardaukar has quit [Ping timeout: 256 seconds]
ponga has quit [Quit: Connection closed for inactivity]
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
willlll has joined #crystal-lang
havenwood has quit [Ping timeout: 255 seconds]
willlll has quit [Quit: willlll]
havenwood has joined #crystal-lang
<vikaton> >> :a = "h"
<DeBot> vikaton: Syntax error in eval:3: unexpected token: =
<vikaton> >> :a
<DeBot> vikaton: :a
<vikaton> >> a:
<DeBot> vikaton: Syntax error in eval:3: unexpected token: :
<vikaton> def add(x: Int32);end;
<vikaton> >> def add(x: Int32);end;
<DeBot> vikaton: nil
<vikaton> oh..
shama has joined #crystal-lang
vikaton has left #crystal-lang [#crystal-lang]
broz has joined #crystal-lang
zz_Cidan is now known as Cidan
vikaton has joined #crystal-lang
<vikaton> I get an invalid pointer error here: https://gist.github.com/Vikaton/fc4b3575e2351b6a3168
<vikaton> any reasons why?
<vikaton> *** glibc detected *** /tmp/crystal-run-exec.EL9xHF: free(): invalid pointer: 0x0000000001ec8fc0 ***
asterite has joined #crystal-lang
asterite has quit [Client Quit]
<vikaton> :(
<jeromegn> vikaton: not sure, but btw that's already implemented in Crystal. https://github.com/manastech/crystal/blob/ff2b32e2ef2d12eee32286f7c09026027bd11f86/src/gc/null.cr#L26
<jeromegn> GC.free
<jeromegn> LibC is a bit everywhere in the project
<jeromegn> >> x = Pointer(Int32).malloc(10); GC.free(x)
<DeBot> jeromegn: Error in line 3: no overload matches 'GC::free' with types Pointer(Int32)
<jeromegn> oops :P not quite!
drizz has quit [*.net *.split]
ryanf has quit [*.net *.split]
drizz has joined #crystal-lang
ryanf has joined #crystal-lang
willlll has joined #crystal-lang
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
bcardiff1 has joined #crystal-lang
bcardiff has quit [Ping timeout: 265 seconds]
BlaXpirit has quit [Remote host closed the connection]
BlaXpirit has joined #crystal-lang
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
sadin has joined #crystal-lang
<vikaton> hey sadin
datanoise has quit [Quit: Changing server]
datanoise has joined #crystal-lang
bcardiff1 has quit [Quit: Leaving.]
<vikaton> Is it possible to somehow include header files in C libs?
<jhass> no
<vikaton> aw
<vikaton> anywho, Though I know I have GC.free, I still want to know why https://gist.github.com/Vikaton/fc4b3575e2351b6a3168 doesnt work
harisamin has joined #crystal-lang
bcardiff has joined #crystal-lang
<datanoise> i'm sure Pointer#malloc is using LibGC.malloc, and you are trying to free it with LibC. expect some bad things to happen
<vikaton> hmm
<willlll> >> Tuple(Int32)
<DeBot> willlll: collect2: error: ld returned 1 exit status
<vikaton> Is that right? I compiled it and it works fine though I'm not usre it really is allocating and deallocating
<vikaton> since malloc is really a void, but I changed it to fit free's need
<notfowl> They should probably both take Pointer
<vikaton> notfowl: does it make a difference?
<notfowl> I guess you're using it for int* and you don't want to cast, you realize this is suited to your purposes alone
<vikaton> I never thought of casting
<vikaton> notfowl: I just wanna know if what I have works or not, how can I tell?
<notfowl> Try x[0] = 10; p x[0]
leafybasil has quit [Ping timeout: 256 seconds]
<vikaton> after freeing x @ notfowl ?
<notfowl> No
<notfowl> What are you trying to do
bcardiff has quit [Quit: Leaving.]
<vikaton> notfowl: I wanna know if my allocation and deallocation worked in that script
<notfowl> Check if x is nil?
<notfowl> Does the pointer class not work for you?
<vikaton> notfowl: I'm just experimenting
<vikaton> notfowl: doing 'p x' after C.free outputs: Pointer(Int32)@0x24EA400
<jhass> why do you want to free manually? the gc does it for you
<notfowl> It doesn't get set to nil afterwards
<vikaton> I'm just experimenting, Not using this in any real app
<notfowl> Search libc free for docs
leafybasil has joined #crystal-lang
<vikaton> notfowl: hm?
broz has quit [Remote host closed the connection]
waterlink has joined #crystal-lang
<vikaton> notfowl: Yeah it does indeed allocate then dealloc
<crystal-gh> [crystal] asterite pushed 3 new commits to master: http://git.io/vU0hK
<crystal-gh> crystal/master 412b4a8 Ary Borenszweig: Fixed #637: Unsupported restriction: Int32 vs. 128
<crystal-gh> crystal/master b055087 Ary Borenszweig: Fixed: static array restriction where the size was an underscore didn't match
<crystal-gh> crystal/master 966e9dd Ary Borenszweig: Added `private macro` in top-level: they are local to a file (similar to `private def`)
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
harisamin has quit [Quit: Textual IRC Client: www.textualapp.com]
waj has quit [Quit: waj]
vikaton has left #crystal-lang [#crystal-lang]
sadin is now known as Sadin
BlaXpirit has quit [Quit: Quit Konversation]