<FromGitter>
<franciscoadasme> hey, is it possible to know the return type of a given method inside a macro like `method_missing` if the return type is not specified in the method declaration?
<FromGitter>
<Blacksmoke16> I doubt it
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 244 seconds]
alexherbo27 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo27 is now known as alexherbo2
alexherbo2 has quit [Remote host closed the connection]
<FromGitter>
<jasonm23> Hi there, just started playing with Crystal, (currently in-between jobs was until recently the Head of Engineering at Large Insurance Co. Inc in Singapore.) Love Ruby, really enjoying Crystal, and hope to use it in future teams. ⏎ ⏎ My first question is around `crystal spec` and can I add formatters at the cli?
<FromGitter>
<Blacksmoke16> it supports some different ones by default, were you looking for something in specific?
<FromGitter>
<jasonm23> Well, I wanted to do VerboseFormatter sometimes and mostly use the default DotFormatter
<FromGitter>
<Blacksmoke16> i think i like that better
<FromGitter>
<mtsmmp_gitlab> it works
<FromGitter>
<Blacksmoke16> still is a bit weird IMO to have the data class also manage the state of the object but :shrug:
<FromGitter>
<Blacksmoke16> prob not a big deal for what you're doing
<FromGitter>
<mtsmmp_gitlab> but i didnt want to have to create another class just for that
<FromGitter>
<Blacksmoke16> how many db file are there?
<FromGitter>
<mtsmmp_gitlab> > how many db file are there? ⏎ ⏎ its only one tiny file, the reason to pass another file as a parameter is just for testing purposes
<FromGitter>
<Blacksmoke16> oh
<FromGitter>
<mtsmmp_gitlab> its no big deal
<FromGitter>
<mtsmmp_gitlab> the problem is this
<FromGitter>
<Blacksmoke16> in that case id prob just use a class property
<FromGitter>
<Blacksmoke16> which would essentially make the class a singleton, so you dont get a new instance of `DB` every time you call `load`, which is prob better given they all would be saving to the same underlying file
<FromGitter>
<mtsmmp_gitlab> hm
<FromGitter>
<mtsmmp_gitlab> i like it
<FromGitter>
<Blacksmoke16> 👍
<FromGitter>
<mtsmmp_gitlab> thank you very much buddy
<FromGitter>
<mtsmmp_gitlab> always learning new things here :)
<FromGitter>
<Blacksmoke16> np, anyway imma get to bed o/
<FromGitter>
<mtsmmp_gitlab> good night!
postmodern has quit [Quit: Leaving]
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
<FromGitter>
<mixflame> flipflops
<FromGitter>
<mixflame> flip the dinero itself
<FromGitter>
<mixflame> crystal methamphetamine lang
<FromGitter>
<mixflame> type that dont shatter
<FromGitter>
<mixflame> ive had shatter
<FromGitter>
<mixflame> it hits different
<FromGitter>
<mixflame> it would be great if it wasn't called crystal you know
<FromGitter>
<mixflame> crystals shatter at a certain frequency, be a bad thing if we were vulernable to that
<FromGitter>
<mixflame> and also apples go rotten
<FromGitter>
<mixflame> if not moved out in a manner that makes sense it can lead to fake food
<FromGitter>
<mixflame> yes but I'm liable to stay for 6 days and fight a pillow
<FromGitter>
<mixflame> oh sorry, was talking to myself
<FromGitter>
<mixflame> i doing everythng all by myself now you know FUCK IT ILL DO IT MYSELF
<FromGitter>
<mixflame> don't worry about me guys
<FromGitter>
<mixflame> but i'm worried bout the name of this language
<FromGitter>
<mixflame> i feel like it says "the americans won't kick our ass. we're too sneaky"
<FromGitter>
<mixflame> when i truely hate sneakiness
<FromGitter>
<naqvis> i would say naming is kind of personal preference
<FromGitter>
<naqvis> as there are magnitude of languages with weird name but decades of history
<FromGitter>
<mixflame> crystal is a name for methamphetamine
<FromGitter>
<mixflame> ruby is a rock
<FromGitter>
<mixflame> we all hate meth
<FromGitter>
<mixflame> here
<FromGitter>
<naqvis> :P
<FromGitter>
<mixflame> i can could push over a meth addict and kill them
<FromGitter>
<mixflame> they need a taser to fight me
<FromGitter>
<mixflame> or a skateboard
<FromGitter>
<naqvis> but I agree it would be better to have core team post a history/background of why this name was selected
<FromGitter>
<mixflame> agreed, thanks
<FromGitter>
<naqvis> we won't mind if it has same reasoning has "Hadoop" :P
deavmi has quit [Quit: Eish! Load shedding.]
<FromGitter>
<mixflame> hahha
<FromGitter>
<mixflame> as long as I can read something and try to believe this isn't about nazi meth
<FromGitter>
<naqvis> agree
<FromGitter>
<mixflame> i. might feel better
deavmi has joined #crystal-lang
deavmi has quit [Quit: Eish! Load shedding.]
deavmi has joined #crystal-lang
deavmi has quit [Quit: Eish! Load shedding.]
deavmi has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]
<FromGitter>
<Blacksmoke16> er, diff pattern, so no
postmodern has joined #crystal-lang
<FromGitter>
<sam0x17> getting `Error: undefined fun 'clock_gettime' for LibC` suddenly on macos on a project that previously compiled -- any idea how to fix? did LibC change on macos?
<FromGitter>
<Blacksmoke16> did you previously compile it on macos?
<FromGitter>
<Blacksmoke16> current c bindings for libc dont actually include `clock_gettime`
<FromGitter>
<Blacksmoke16> for macos*
<FromGitter>
<Blacksmoke16> prob because that method doesn't actually exist in macos land. Are you using `LibC` directly?
<FromGitter>
<Blacksmoke16> otherwise prob have to build from source?
<FromGitter>
<jwoertink> I wanted to keep using crystal 0.35. I figure I have to build from source, but I was curious if anyone had already done that so I could have a template to look off
<FromGitter>
<Blacksmoke16> think theres a make file, so prob wouldnt be too bad
<FromGitter>
<jwoertink> Probably just run `make && cp bin/shards /usr/local/bin` ?
<FromGitter>
<Blacksmoke16> > You can download a source tarball from the same page (or clone the repository) then run make CRFLAGS=--releaseand copy bin/shards into your PATH. For example /usr/local/bin.
sagax has quit [Remote host closed the connection]
<FromGitter>
<asterite> @sanks64 it's okay but I'm not the one to talk to (I don't make changes in the language anymore)
<FromGitter>
<mwlang> @jwoertink github If you have weird permission issues, there's always sudo, which works in those containers password-less.
<FromGitter>
<jwoertink> Permissions seemed to be ok. What was missing was apparently `source` doesn't exist.... 😒 But I finally got it all running. Thanks for the tip @mwlang