<FromGitter>
<vprelovac_gitlab> Hello Crystal community. We are looking for capable and passionate Crystal developers to join a project full time. More information here: https://hackmd.io/@z64/S1nmUmFHD
<FromGitter>
<bararchy> @vprelovac_gitlab 🎉 good to see more companies actively hiring crystal devs :)
renich has quit [Quit: Leaving.]
<FromGitter>
<vprelovac_gitlab> Thanks, we strongly believe in Crystal and its exciting to write a large scale web application using it :)
<jhass>
Blacksmoke16: with run any data passing has to be explicit via arguments and any invocation has to be explicit through some kind of macro call. "I want all of the user code" is a design requiremnt I would get rid of for this approach
deavmi has quit [Quit: Eish! Load shedding.]
deavmi has joined #crystal-lang
yukai has quit [Ping timeout: 246 seconds]
zorp_ has joined #crystal-lang
zorp has quit [Ping timeout: 256 seconds]
<sorcus>
Mmm... Job for a crystal devs. Wow. Sad i'm not so good in crystal :-D
deimos_ has quit [Ping timeout: 246 seconds]
deavmi has quit [Remote host closed the connection]
deavmi has joined #crystal-lang
<FromGitter>
<Blacksmoke16> jhass: I mean i need their code so that i know what types are annotated and should be added to the container
<FromGitter>
<Blacksmoke16> i dont think theres a way around it, not like i can pass that data to the run script
<FromGitter>
<Blacksmoke16> so I guess ill just have to wait for the custom macro methods
<jhass>
Why can't you pass that data to the run script?
<jhass>
just generate a json string or whatever using macros
<jhass>
and pass it as an argument
<FromGitter>
<Blacksmoke16> because then you lose the ability to also access the dependencies of them
<FromGitter>
<j8r> Is there a Tuple literal, like `%w(one two three)`?
<FromGitter>
<Blacksmoke16> i suppose i could build out some obj that represents the types, args, etc then pass that as JSON to the run script to deserialize it then do more processing
<FromGitter>
<Blacksmoke16> but i dont see that being easy given there isnt a like `.to_json` method in macro land...
<FromGitter>
<Blacksmoke16> @j8r not that i know of
<FromGitter>
<Blacksmoke16> i still think ideally the `run` script would inherit the scope of the caller
<FromGitter>
<Blacksmoke16> then you have access to everything the run call does, without getting into infinite loops
<jhass>
I think you're under a misconception of what run does
<jhass>
it just compiles the program and inserts it stdout as code
<jhass>
what you're suggesting is like a 100x fold increase to its complexity
<FromGitter>
<Blacksmoke16> probably, either way idt its the best solution for my use case
<jhass>
maybe it could make sense to have something like java annotation processors, some tool that's basically the parser part of the compiler and spits you out the AST with handy query methods for annotations and what not
<jhass>
could be build externally to the crystal compiler
<jhass>
let's not bloat it for every ever so complex usecase somebody might wanna do
<FromGitter>
<Blacksmoke16> yea im all for having some thing more flexible/independent
<FromGitter>
<Blacksmoke16> prob just going to punt on this for now and revisit in the future when/if some new lang features get added
<jhass>
"I agree to not making the compiler more complex. I'm going to revisit this once the compiler was made more complex." sometimes...