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]
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
<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]
<crystal-gh>
[crystal] asterite closed pull request #2522: Fix comment about how the initialize method is generated (master...patch-2) https://git.io/vwaFG
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.
<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