jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.15.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
Philpax has joined #crystal-lang
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 252 seconds]
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 276 seconds]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vwgfx
<crystal-gh> crystal/master 6ccfb69 Ary Borenszweig: Compiler: make sure to first type right-hand side of assignment to ivar/cvar/global
<crystal-gh> crystal/master 007e8d5 Ary Borenszweig: Added some return type annotations in class methods
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
soveran has quit [Ping timeout: 260 seconds]
<travis-ci> crystal-lang/crystal#6ccfb69 (master - Compiler: make sure to first type right-hand side of assignment to ivar/cvar/global): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/125718301
crime has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
Guest58430 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #crystal-lang
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 250 seconds]
Dreamer3 has joined #crystal-lang
Dreamer3 has quit [Remote host closed the connection]
ponga has quit []
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 240 seconds]
willl has quit [Quit: Connection closed for inactivity]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
ome has quit [Quit: Connection closed for inactivity]
soveran has quit [Ping timeout: 260 seconds]
umurgdk has joined #crystal-lang
Philpax_ has quit [Ping timeout: 276 seconds]
umurgdk has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<Guest36091> jhass, what I want is compile time eval
Guest36091 is now known as nwmcsween
<nwmcsween> there seems to be quite a few things I cannot effectively represent in crystal that is relatively simple in other languages, a function pointer (closures are overkill and are heap allocated vs a memory indirection)
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 268 seconds]
Philpax has joined #crystal-lang
<nwmcsween> I could do a struct to hold context but crystal has no way (that I know of) to either do compile time eval or #define a tuple such as c xmacros
<nwmcsween> (so the struct and class methods change when adding or removing a member)
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
trapped 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
trapped has quit [Read error: Connection reset by peer]
rafael has joined #crystal-lang
rafael is now known as Guest21334
Guest21334 has quit [Client Quit]
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 240 seconds]
Philpax has quit [Ping timeout: 250 seconds]
ponga has joined #crystal-lang
mark_66 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
umurgdk has joined #crystal-lang
<jhass> nwmcsween: you can do compile time code generation, to some extend through the macro languages directly in place and through the run macro method you can run arbitrary crystal code or through the ` macro method any command at all. in both cases the stdout of those is then again parsed as crystal code in the context of the current crystal program
<jhass> *language
<jhass> nwmcsween: a proc literal ( -> { }) not referencing any outer variables doesn't have any closure associated and thus no heap allocation
<jhass> nwmcsween: you can get Proc instances pointing to toplevel functions (fun foo), toplevel methods (def foo), class methods (def self.foo inside module/class) or even instance methods with ->name(arg types), see https://carc.in/#/r/xix
<jhass> nwmcsween: don't quite follow what you want on the last one again, a sample would probably help
Philpax 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
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
umurgdk has quit [Remote host closed the connection]
soveran has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 276 seconds]
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 260 seconds]
umurgdk has joined #crystal-lang
Philpax has joined #crystal-lang
trapped has joined #crystal-lang
trapped has quit [Client Quit]
trapped has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
soveran has joined #crystal-lang
umurgdk has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
umurgdk has quit [Ping timeout: 276 seconds]
soveran has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
pawnbox has joined #crystal-lang
TheLemonMan has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 276 seconds]
umurgdk has joined #crystal-lang
soveran has quit [Remote host closed the connection]
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
Nik- has joined #crystal-lang
crime has joined #crystal-lang
Philpax has quit [Ping timeout: 252 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
Nik- has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite opened pull request #2518: Compiler: try to infer types from class method bodies (master...feature/more_inference_methods_body) https://git.io/vw2yc
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vw2HG
<crystal-gh> crystal/master 5d15a38 Ary Borenszweig: LLVM::Target: some fixes
<travis-ci> crystal-lang/crystal#5d15a38 (master - LLVM::Target: some fixes): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/125874107
sandelius has joined #crystal-lang
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 240 seconds]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
mark_66 has left #crystal-lang ["PART #elixir-lang :PART #RubyOnRails :PART #ruby :QUIT :Leaving."]
dome22xl has joined #crystal-lang
ozra_ has joined #crystal-lang
<dome22xl> crystal_lib doesn't seem to like it if you have a * before your function name when generating your bindings ?
jbye has quit [Ping timeout: 260 seconds]
<dome22xl> So how would i convert this function from the .h file mapi_export char *mapi_get_lang(Mapi mid); that has a * before it ?
<dome22xl> fun *mapi_get_lang breaks the build
<BlaXpirit> dome22xl, weird
<BlaXpirit> I think it's more about the mapi_export part
<BlaXpirit> in any case, it should convert to : LibC::Char* at the end
<dome22xl> Well its been fine for all the none stared mapi_export functions https://github.com/puppetpies/crystal-monetdb-libmapi/blob/master/src/monetdb/monetdb_libmapi.cr
<dome22xl> I think i see how to convert them i'll just have to go through manually
<dome22xl> So something like this fun mapi_get_lang(mid : Mapi) : LibC::Char*
<dome22xl> i.e the star ends up at the end.
<BlaXpirit> dome22xl, yes
<dome22xl> ok should be fun
<BlaXpirit> dome22xl, use regex...
<BlaXpirit> and report the bug
<dome22xl> ok will do.
<BlaXpirit> if u have any means to apply a regex, i can help you write one
<dome22xl> I should able to sort that myself but thanks
greengriminal has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
TheLemonMan has joined #crystal-lang
dome22xl has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vwaYD
<crystal-gh> crystal/master cd8f394 Ary Borenszweig: HTTP: fixed wrong parsing of content-type and charset. Fixes #2520
soveran has joined #crystal-lang
<travis-ci> crystal-lang/crystal#cd8f394 (master - HTTP: fixed wrong parsing of content-type and charset. Fixes #2520): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/125907166
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vwaWw
<crystal-gh> crystal/master 7bdd377 Ary Borenszweig: Compiler: implement tuple covariance. Fixes #357
pawnbox has quit [Remote host closed the connection]
<crystal-gh> [crystal] asterite closed pull request #2508: JSON: preserve raw string. Fixes #2506 (master...feature/json_raw) https://git.io/vw0Hq
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vwal9
<crystal-gh> crystal/master 2a7aa1e Ary Borenszweig: File: added `each_line` as iterator. Fixes #2495
crime has quit [Remote host closed the connection]
soveran has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#7bdd377 (master - Compiler: implement tuple covariance. Fixes #357): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/125918906
pawnbox has joined #crystal-lang
<travis-ci> crystal-lang/crystal#a88b484 (master - JSON: preserve raw string for ints and floats, and expose raw value in pull parser. Fixes #2506 (#2508)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/125919841
crime has joined #crystal-lang
<travis-ci> crystal-lang/crystal#2a7aa1e (master - File: added `each_line` as iterator. Fixes #2495): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/125920822
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
nwmcsween_ has joined #crystal-lang
nwmcsween has quit [Ping timeout: 250 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
crime has left #crystal-lang [#crystal-lang]
sandelius has joined #crystal-lang
mark_66 has joined #crystal-lang
<mark_66> Hi guys! Is there a way to list all the methods for an object?
<mark_66> like in ruby: obj.methods
<BlaXpirit> mark_66, inside macros http://crystal-lang.org/api/Macros/TypeNode.html#methods%3AArray%28Def%29-instance-method
<BlaXpirit> mark_66, https://carc.in/#/r/xk8 ...
<BlaXpirit> but normally you should avoid this
<mark_66> It's for learning purposes, I want to see to what methods do I have access
<BlaXpirit> mark_66, documentation is very good for this, otherwise it's tough
<mark_66> I see
<mark_66> The syntax is like ruby, so I thought that may be the same methods :)
<BlaXpirit> mark_66, no, it's dangerous to think about crystal in terms of ruby, because this is a compiled language.
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mark_66> I know, but now I try to understand, and learn it
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
greengriminal has quit [Quit: Leaving]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
willl has joined #crystal-lang
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
soveran has quit [Remote host closed the connection]
<crystal-gh> [crystal] lbguilherme opened pull request #2522: Fix comment about how the initialize method is generated (master...patch-2) https://git.io/vwaFG
trapped has quit [Read error: Connection reset by peer]
<BlaXpirit> asterite, https://twitter.com/CrystalLanguage/status/725056911838699524 the link inside leads to slack-files and says not found, maybe you should check it
<BlaXpirit> probably a permission issue
Philpax has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #2522: Fix comment about how the initialize method is generated (master...patch-2) https://git.io/vwaFG
Philpax has quit [Ping timeout: 252 seconds]
<travis-ci> crystal-lang/crystal#d4276cc (master - Fix comment about how the initialize method is generated (#2522)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/125968336
soveran has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
crime has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
umurgdk has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vwVfz
<crystal-gh> crystal/master ce891c1 Ary Borenszweig: Tools: doc and hierarchy don't need to do full type inference. Also, improved the hierarchy tool output.
<crystal-gh> crystal/master a296526 Ary Borenszweig: Compiler: fixed incorrect cover handling for splats. Fixes #2521
<crime> how long should it take to compile crystal?
<crime> I have crystal installed thru .deb, but when I try to run make on the sources from git, it seems like it just sits there and doesnt do anything
<travis-ci> crystal-lang/crystal#a296526 (master - Compiler: fixed incorrect cover handling for splats. Fixes #2521): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/125974902
soveran has joined #crystal-lang