jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.28.0 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
moei has quit [Quit: Leaving...]
DTZUZO has quit [Ping timeout: 268 seconds]
alexherbo2 has joined #crystal-lang
alexherbo2 has quit [Client Quit]
alexherbo213 has joined #crystal-lang
alexherbo2 has joined #crystal-lang
alexherbo21 has quit [Ping timeout: 244 seconds]
alexherbo213 has quit [Ping timeout: 255 seconds]
DTZUZO has joined #crystal-lang
<FromGitter> <mavu> I just noticed that I used "fun function_name" as a function declaration *outside* of a lib binding declaration block. ⏎ Does anyone know what "fun" actually means outside of the c-binding block?
<FromGitter> <bew> @mavu make a c like function
<FromGitter> <bew> referencable from the outside (not just crystal)
<FromGitter> <bew> but limited to the type of args it can take iirc
<FromGitter> <mavu> @bew ahh, thats why it works when I give that as a callback. thanks I forgot why I did it that way. :)
sympatico has quit [Quit: ZNC - http://znc.in]
<FromGitter> <MrSorcus> ```code paste, see link``` ⏎ ⏎ Why doesn't work? [https://gitter.im/crystal-lang/crystal?at=5cda92e779d70050996bde6c]
<mps> j8r: straight-shoota: trying to build shards (utility) apk for next stable Alpine, I've got this error: http://tpaste.us/VaV0
alexherbo2 has quit [Read error: Connection reset by peer]
laaron- has quit [Remote host closed the connection]
laaron has joined #crystal-lang
alexherbo2 has joined #crystal-lang
<FromGitter> <j8r> I can report this issue in GH
<FromGitter> <MrSorcus> `Static linking using the --static compiler flag is currently only supported on Alpine Linux.` ⏎ Ohh, sad.
<mps> j8r: thanks, could I remove this test till the next shards is released
<mps> or maybe someone could make patch or give me advice what I can do, I don't want next Alpine to be released without this pkg
<FromGitter> <j8r> what's the version of shards you have tested, and crystal (I guess 0.28.0)?
<FromGitter> <j8r> I will try to reproduce it
<mps> yes, crystal 0.28.0 and shards 0.8.1
<mps> minitestver=0.4.1
<mps> I see https://github.com/ysbaddaden/minitest.cr/releases 0.4.2 but it is not flagged as 'release'
<FromGitter> <j8r> I've it too mps
<mps> j8r: we are on the same side :)
<mps> anyway, I will wait day or two and if no one give patch (solution) I will remove last test (spec) and try to build without it
<FromGitter> <j8r> I don't think it's important, just annoying
<FromGitter> <j8r> You'll have to do a patch because I doubt a release will be out soon
<mps> j8r: I see, thanks
gangstacat has quit [Ping timeout: 258 seconds]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
alexherbo2 has joined #crystal-lang
<FromGitter> <straight-shoota> mps, a new shards release might not be far away. 0.9.0 will bring cool new features and is scheduled to be released soon.
<FromGitter> <straight-shoota> But given the patch is just adding a single dot, you could as well patch it without waiting for shards release
<mps> straight-shoota: yes, I've seen few rc candidates, and had a hope we will not wait a long
<mps> and I can't wait to long for new release because Alpine is now in 'frozen' state to be released at the of the month
<mps> s/at the/at the end/
<FromGitter> <straight-shoota> Yeah, then it's better to patch
<mps> btw, thank you all for fast response
gangstacat has joined #crystal-lang
gangstacat has quit [Ping timeout: 252 seconds]
gangstacat has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
<FromGitter> <pynixwang> @MrSorcus general linux also works, but you need copy static libs to a dir.
<FromGitter> <pynixwang> 1) 28 add a env var CRYSTAL_LIBRARY_PATH
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
<FromGitter> <MrSorcus> > @MrSorcus general linux also works, but you need copy static libs to a dir. ⏎ ⏎ Compiled libs? Or headers only?
<FromGitter> <dscottboggs_gitlab> you need the compiled object files.
moei has joined #crystal-lang
alexherbo2 has joined #crystal-lang
<FromGitter> <wontruefree> is crystal's GC compacting?
<Yxhuvud> wontruefree: No. It is also not generational. If you happen to know someone that is experienced at building GCs, there is an opportunity there :P
<FromGitter> <wontruefree> I dont
<FromGitter> <wontruefree> I didnt realize is was not generational
<FromGitter> <asterite> it seems you can enable generational in boehm gc, maybe it's even enabled by default
<FromGitter> <asterite> nope, it's not enabled... I wonder if something would change if we do
<FromGitter> <asterite> well, at least in mac osx it doesn't work (I think it only works in a few systems)
<Yxhuvud> they have managed generational in a conservative collector? That ain't that common.
<FromGitter> <fridgerator> Is this a bug? https://play.crystal-lang.org/#/r/6x1g
<FromGitter> <fridgerator> Insert a json string into a csv field causes the json to get double quoted
<Yxhuvud> that is how " get quoted in csv.
<FromGitter> <Blacksmoke16> double quotes are escaped with another double quote
<FromGitter> <Blacksmoke16> vs like `\"`
<FromGitter> <fridgerator> Is inserting a JSON string into a csv field not a vald thing to do?
<FromGitter> <fridgerator> valid*
<FromGitter> <Blacksmoke16> that would be a valid string, it just adds the extra quotes to escape the double quotes that are part of the json object
<FromGitter> <Blacksmoke16> since the hold thing has to be a string id imagine
<FromGitter> <watzon> Just had an initial interview with Nicolas from Manas
<FromGitter> <watzon> Went very well :)
<FromGitter> <jwoertink> congrats @watzon
<jokke> hey
<jokke> what c type does Bool map to in crystal?
<FromGitter> <Blacksmoke16> `Bool` id imagine?
<jokke> that's not a c type
<FromGitter> <Blacksmoke16> oh
<FromGitter> <Blacksmoke16> prob just a 1/0 so like UInt8?
<FromGitter> <Blacksmoke16> :shrug:
<FromGitter> <omidathari> Hi all, ⏎ Does any one have example serial port communication in Crystal. ⏎ Thanks
<FromGitter> <straight-shoota> jokke: `typeof(true.to_unsafe) # => Int32`
<FromGitter> <Blacksmoke16> neat
alexherbo2 has quit [Ping timeout: 246 seconds]
moei has quit [Quit: Leaving...]
alexherbo2 has joined #crystal-lang
<FromGitter> <Blacksmoke16> @mwlang Did some more thinking on the DI front
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5cdb4b4e56271260f961a236]
<FromGitter> <Blacksmoke16> is the plan for how to handle services depending on other services, where you pass it a string prepended with a `@`, where the string is the name of the service you want to inject
<FromGitter> <Blacksmoke16> also thinking i could do like `@[Athena::DI::Register("#some_tag")]`
<FromGitter> <Blacksmoke16> where `#` will inject all services with that tag
<FromGitter> <Blacksmoke16> hardest part of all this is making sure the required services are registered before they are needed, if you have any ideas im open to them :)