jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.14.1 | 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
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
_kfpratt has quit [Remote host closed the connection]
kfpratt has joined #crystal-lang
Philpax has quit [Ping timeout: 248 seconds]
kfpratt has quit [Remote host closed the connection]
_whitelogger has joined #crystal-lang
anthony_ has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
sp4rrow has joined #crystal-lang
anthony_ has quit [Ping timeout: 276 seconds]
swav has quit [Ping timeout: 276 seconds]
swav has joined #crystal-lang
leafybasi has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
leafybasi has joined #crystal-lang
sorbo_ has joined #crystal-lang
marcosdsanchez has joined #crystal-lang
anthony_ has joined #crystal-lang
anthony_ has quit [Ping timeout: 250 seconds]
ozra has quit [Ping timeout: 244 seconds]
anthony_ has joined #crystal-lang
sorbo_ has quit [Remote host closed the connection]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sorbo_ has joined #crystal-lang
anthony_ has quit [Ping timeout: 260 seconds]
mgarciaisaia has joined #crystal-lang
anthony_ has joined #crystal-lang
anthony_ has quit [Ping timeout: 246 seconds]
sorbo_ has quit [Remote host closed the connection]
wmoxam_ is now known as wmoxam
wmoxam has quit [Changing host]
wmoxam has joined #crystal-lang
mverzilli has joined #crystal-lang
pawnbox has joined #crystal-lang
mverzilli has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mgarciaisaia has left #crystal-lang [#crystal-lang]
<thelonelyghost> anyone have experience with C bindings here?
<thelonelyghost> I see a bunch of great docs on the crystal site for it, but was wondering if there were any pitfalls I should watch out for.
thelonelyghost has left #crystal-lang [#crystal-lang]
sorbo_ has joined #crystal-lang
Raimondii is now known as Raimondi
sorbo_ has quit [Remote host closed the connection]
sp4rrow has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mverzilli has joined #crystal-lang
mverzilli has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
trapped has joined #crystal-lang
elia has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
onionhammer1 has quit [Ping timeout: 246 seconds]
onionhammer1 has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
Philpax has joined #crystal-lang
zeno_ has joined #crystal-lang
zeno_ has quit [Client Quit]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mark2 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
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
ozra has joined #crystal-lang
rok has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 252 seconds]
rok has quit [Quit: rok]
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
kulelu88 has joined #crystal-lang
kulelu88 has joined #crystal-lang
<jhass> BlaXpirit: thanks, will think about it, though I'm hesitant to include half the compiler in the bot (as it's not sandboxed and has potential compile time code execution through macros), and doing it for every run is a bit overkill (too slow I'd expect)
<tilpner> jhass - Are you running DeBot? I'm curious, do you restart it periodically?
<jhass> tilpner: well, it still crashes sometimes ;)
<tilpner> jhass - Do you notice memory leaks during long uptime (if it doesn't crash)?
<jhass> I didn't watch, but no, nothing severe
<tilpner> Do you know if there are plans to migrate to a precise GC?
<jhass> I don't know of any near term plans to change the GC
<tilpner> Thanks for answering. I might just be overestimating the leaks of a conservative GC in real-word usage.
<jhass> ;)
kulelu88 has left #crystal-lang ["Leaving"]
luislavena has quit [Quit: Leaving]
<BlaXpirit> jhass, just put it in carcin
<BlaXpirit> like a separate language or something
<BlaXpirit> yeah it's gonna introduce many special cases but what can u do
<RX14> BlaXpirit, uhh, you can isolate it properly using containers
<BlaXpirit> uhhhh k
<RX14> pass the source into a crystal binary which compiled and executes the code
<BlaXpirit> jhass, and no, it's not slow at all
<BlaXpirit> like 5% overhead at most
<crystal-gh> [crystal] asterite pushed 3 new commits to master: https://git.io/vVY8o
<crystal-gh> crystal/master 4589140 Ary Borenszweig: Compiler: not (!) has now its definition hardcoded in the compiler
<crystal-gh> crystal/master f1b05c9 Ary Borenszweig: Compiler: not (!) does now type filtering. Fixes #1196...
<crystal-gh> crystal/master a858b06 Ary Borenszweig: `nil?` is now hardcoded to mean `is_a?(Nil)`. Removed `Pointer#nil?` (use `Pointer#null?` instead). Fixes #2387
<Davy_CC> jhass, BlaXpirit: I'm running the user group in Taiwan, and I'm invited to give a talk about Crystal in a university. Do you have any ideas?
hangyas has joined #crystal-lang
mverzilli has joined #crystal-lang
hangyas has quit [Ping timeout: 240 seconds]
hangyas has joined #crystal-lang
marcosdsanchez has left #crystal-lang [#crystal-lang]
pawnbox has quit [Remote host closed the connection]
<asterite> jhass: BlaXpirit: one alternative is to have a mode to instruct the compiler to not give errors if you declare a `def` inside another expression. Of course that would lead to different behaviour than the normal behaviour, but you'll be able to run all code. We have a similar issue in the playground, a macro call can't be instrumented if it expands to a class/def defiinition
<asterite> In fact, I think now I regret that decision. I know it's not good to define a `def` inside an `if`, but if it doesn't error then it allows programs and code to be composable, always, and this is specially useful for tools like carc.in and the playground. And also, it's not like it's common to define a `def` inside an `if`, and if it behaves in an unexpected way... well, nevermind, you shouldn't do that (maybe it could be a warning and we c
<asterite> an have a flag to supress that warning)
<asterite> (I think the warning + flag solution is the one I like most so far)
<travis-ci> crystal-lang/crystal#a858b06 (master - `nil?` is now hardcoded to mean `is_a?(Nil)`. Removed `Pointer#nil?` (use `Pointer#null?` instead). Fixes #2387): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/119509997
<BlaXpirit> > Syntax error in ./samples/2048.cr:226: Bug: self.is_a?(::Nil) should be a call
<BlaXpirit> > empty_cells = @grid.map(&.count &.nil?).sum
<BlaXpirit> good catch, what to say
<asterite> BlaXpirit: yes, fixing it now :-)
pawnbox has joined #crystal-lang
<asterite> We should have more samples :-D
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vVY2X
<crystal-gh> crystal/master e550d0c Ary Borenszweig: Parser: missing handling of `foo &.nil?`
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
elia_ has joined #crystal-lang
rolha has joined #crystal-lang
elia has quit [Ping timeout: 248 seconds]
mgarciaisaia has joined #crystal-lang
trapped_ has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
trapped_ is now known as trapped
mgarciaisaia has left #crystal-lang [#crystal-lang]
<BlaXpirit> i'm making the habit of occasionally running my code on latest(master) crystal, so that's something
bcardiff has joined #crystal-lang
ozra_ has joined #crystal-lang
ozra has quit [Ping timeout: 240 seconds]
<travis-ci> crystal-lang/crystal#e550d0c (master - Parser: missing handling of `foo &.nil?`): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/119522118
AckZ has joined #crystal-lang
<asterite> >> def foo; 1; end; foo
<DeBot> asterite: # => 1 - https://carc.in/#/r/vnq
<asterite> >> foo; def foo; 1; end; foo
<DeBot> asterite: # => 1 - https://carc.in/#/r/vnr
ozra_ is now known as ozra
bcardiff_ has joined #crystal-lang
bcardiff has quit [Ping timeout: 248 seconds]
bcardiff_ is now known as bcardiff
Philpax has quit [Ping timeout: 244 seconds]
luislavena has joined #crystal-lang
Guest36566 is now known as Cyrus
Cyrus has joined #crystal-lang
Cyrus has quit [Changing host]
tony_ has joined #crystal-lang
kfpratt has joined #crystal-lang
mverzilli has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tony_ has quit [Ping timeout: 240 seconds]
marcosdsanchez has joined #crystal-lang
onionhammer1 has quit [Ping timeout: 244 seconds]
tony_ has joined #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]
Raimondi has joined #crystal-lang
sorbo_ 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
onionhammer1 has joined #crystal-lang
sp4rrow has joined #crystal-lang
elia_ has quit [Quit: Computer has gone to sleep.]
sorbo_ has quit [Remote host closed the connection]
Ven has joined #crystal-lang
ozra_ has joined #crystal-lang
Ven has quit [Client Quit]
ozra has quit [Ping timeout: 248 seconds]
zaiste has joined #crystal-lang
zaiste has quit [Quit: Textual IRC Client: www.textualapp.com]
mark2 has quit [Remote host closed the connection]
Ven has joined #crystal-lang
marcosdsanchez has left #crystal-lang [#crystal-lang]
Ven has quit [Client Quit]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
rok has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Client Quit]
mgarciaisaia has joined #crystal-lang
bcardiff_ has joined #crystal-lang
bcardiff has quit [Ping timeout: 252 seconds]
bcardiff_ is now known as bcardiff
rok has quit [Quit: rok]
Ven has joined #crystal-lang
mverzilli has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eserror has joined #crystal-lang
Ven has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
elia has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
tomchapin has joined #crystal-lang
tomchapin has quit [Client Quit]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
eserror has left #crystal-lang [#crystal-lang]
zodiak has quit [Quit: Leaving]
elia has quit [Quit: Computer has gone to sleep.]
mgarciaisaia1 has joined #crystal-lang
sp4rrow has joined #crystal-lang
Ven has joined #crystal-lang
sp4rrow has quit [Ping timeout: 276 seconds]
onionhammer1 is now known as onionhammer
mgarciaisaia1 has quit [Quit: Leaving.]
sp4rrow has joined #crystal-lang
zodiak has joined #crystal-lang
luislavena has quit [Quit: Leaving]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
ozra has joined #crystal-lang
ozra_ has quit [Ping timeout: 276 seconds]
fridgerator has joined #crystal-lang
sp4rrow has quit [Ping timeout: 276 seconds]
vikaton has joined #crystal-lang
fridgera_ has joined #crystal-lang
fridgerator has quit [Ping timeout: 248 seconds]
fridgera_ is now known as fridgerator
mverzilli has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<crystal-gh> [crystal] bcardiff pushed 1 new commit to master: https://git.io/vV33X
<crystal-gh> crystal/master b558867 Brian J. Cardiff: Playground: avoid instrument argless print/puts
splattael has joined #crystal-lang
<crystal-gh> [crystal] bcardiff pushed 1 new commit to master: https://git.io/vV3lk
<crystal-gh> crystal/master ae3873f Brian J. Cardiff: Playground: minor style fix ammed 9864c98
fridgerator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fridgerator has joined #crystal-lang
hangyas has quit [Quit: hangyas]
<travis-ci> crystal-lang/crystal#b558867 (master - Playground: avoid instrument argless print/puts): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/119635448
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vV3BE
<crystal-gh> crystal/master f8e8d2a Ary Borenszweig: Parser: missing location of ternary operator
<crystal-gh> crystal/master 911ed7e Ary Borenszweig: Compiler: fixed lack of type in ReadInstanceVar
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
mgarciaisaia has joined #crystal-lang
<RX14> so
<RX14> I wonder if we even have to bother with windows support at all now
Philpax has joined #crystal-lang
bcardiff has quit [Quit: bcardiff]
mgarciaisaia has left #crystal-lang [#crystal-lang]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
sp4rrow has joined #crystal-lang
<travis-ci> crystal-lang/crystal#ae3873f (master - Playground: minor style fix ammed 9864c98): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/119643856
ozra_ has joined #crystal-lang
ozra has quit [Ping timeout: 244 seconds]
mgarciaisaia1 has joined #crystal-lang
fridgera_ has joined #crystal-lang
<travis-ci> crystal-lang/crystal#f8e8d2a (master - Parser: missing location of ternary operator): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/119648549
fridgera_ is now known as kick
kick is now known as Guest96570
fridgerator is now known as Guest95933
Guest95933 has quit [Ping timeout: 240 seconds]
Guest96570 has quit [Client Quit]
fridgera_ has joined #crystal-lang
fridgera_ has quit [Client Quit]
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
ozra_ has quit [Remote host closed the connection]
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
splattael has quit [Quit: Connection closed for inactivity]
<vikaton> RX14: what if someone wants to write windows apps in Crystal
<RX14> vikaton, GUI apps?
<vikaton> or anything
<RX14> well everything except GUI will work with that
<RX14> and GUI will work if you package a windows-compatible X11 server
<RX14> which do exist
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #crystal-lang
Philpax has quit [Ping timeout: 246 seconds]
trapped has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
marcosdsanchez has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
Excureo has quit [Remote host closed the connection]