<FromGitter>
<rishavs> how would I accept a file as a command line parameter for my crystal executable? ⏎ I looked at options parser but it seems to be more about flags and such
<FromGitter>
<kalinon> tried a bunch of different ways to do the same thing... but no dice. keeps getting stuck on main
notzmv has quit [Ping timeout: 250 seconds]
<FromGitter>
<Blacksmoke16> theres a built in discriminator feature btw, would that fix the problem?
<FromGitter>
<kalinon> unfortunatly it based on 1 field. Kubernetes API models are based on 2. `apiVersion` and `kind`
<FromGitter>
<kalinon> ive based my code off that.
<FromGitter>
<Blacksmoke16> ah hmm
<FromGitter>
<kalinon> yeah, trying to debug what issue is. It seems to freeze on compile only when i add the initialization (`.new`). If i just return the class and print it, it compiles fine.
<FromGitter>
<kalinon> granted its about 200 classes >.< in that `REGISTRY`
<FromGitter>
<Blacksmoke16> oof
<FromGitter>
<kalinon> yeah. lots of classes in kubernetes
<FromGitter>
<naqvis> might worth trying with limited class size and incrementally increasing the count to see if that's causing the freeze
<FromGitter>
<kalinon> @naqvis good call. let me do that
<FromGitter>
<naqvis> 👍
<FromGitter>
<naqvis> iirc, there is known bug where having bigger static array will cause longer compilation time, due to llvm multiple `alloca` instructions