<jhass>
alex-lairan: have a look at the run macro method, it compiles and runs another crystal program which output is inserted as a result of the macro call
<jhass>
ECR works through it for example
<FromGitter>
<alex-lairan> It's not another crystal file, it's YAML file ^^
<jhass>
yes but you can write a crystal file that reads the yaml file and outputs the code you want to generate from it
<FromGitter>
<alex-lairan> Oh yes *_*
<FromGitter>
<alex-lairan> \*_\*
<FromGitter>
<alex-lairan> That is a realy good idea
<FromGitter>
<alex-lairan> So with my crystal code, I read the file, I generate a big string, and I return it?
<jhass>
just write it to stdout
<FromGitter>
<alex-lairan> I love it :)
<FromGitter>
<alex-lairan> Thank you dude ! :p
ome has quit [Quit: Connection closed for inactivity]
<FromGitter>
<alex-lairan> If i've understand, I can have this part with another language
mark_66 has quit [Read error: Connection reset by peer]
mark_661 has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 250 seconds]
xmgx has joined #crystal-lang
<crystal-gh>
[crystal] lbguilherme opened pull request #3174: Reimplement NamedTuble#fetch(String) using a Trie (master...patch-7) https://git.io/v6XsN
Tuxified has joined #crystal-lang
<FromGitter>
<alex-lairan> Hey guy's ! Stupid question here ! :) Why crystal need a GC ?
<FromGitter>
<alex-lairan> I think RAII like C++ isn't good for langage like crystal?
bjz_ has quit [Ping timeout: 250 seconds]
bjz has joined #crystal-lang
<BlaXpirit>
alex-lairan, have you extensively worked with any language without a GC?
<FromGitter>
<alex-lairan> Yes C++ ^^
<BlaXpirit>
welp i have nothing new to say then
bjz has quit [Client Quit]
bjz has joined #crystal-lang
bjz has quit [Read error: Connection reset by peer]
bjz has joined #crystal-lang
tubbo has joined #crystal-lang
<FromGitter>
<sumproxy> There's some novelty in rustlang meaning GC
Philpax has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Philpax has quit [Ping timeout: 250 seconds]
akwiatkowski has quit [Ping timeout: 244 seconds]
fryguy9 has joined #crystal-lang
fryguy9 has left #crystal-lang [#crystal-lang]
<Yxhuvud>
I imagine the current boehm GC will end up a pain point at some time as global stop the world doesn't hold up that well in threaded environments.
peter_ has joined #crystal-lang
<peter_>
How would one define a hash of hashes? The following code:
<peter_>
h = Hash(String, Hash).new
<peter_>
Gives an error: can't use Hash(K, V) as generic type argument yet, use a more specific type
<tilpner>
I don't think the term "leak" implies anything about constant leakage. You can have one leak of constant size, and it's still a leak.
<RX14>
well leak to me implies constant flow
<RX14>
GC leak to me implies an expansion rate
<tilpner>
Hmm, right, maybe it does imply that.
<RX14>
regardless of the naming it is a problem
<RX14>
but I wouldn't say it's a big problem
<RX14>
it would be nice to get a precise, fast, tailored GC but there's more im[portant things to fix first
<tilpner>
I agree, and I keep repeating that it's not a big problem in practice every time this is brought up.
<tilpner>
The tracing shouldn't be an afterthought though. If it is not kept in mind, switching to precise may require a lot more work than if it had been part of the plan from the very beginning.
<RX14>
well i think LLVM has some GC integration
<RX14>
i have no idea what said integration does
<RX14>
but it might help
Crizkov has joined #crystal-lang
<RX14>
they might just be able to tell llvm to do the tracing stuff