RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.26.1 | 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
lvmbdv has quit [Ping timeout: 272 seconds]
DTZUZO has joined #crystal-lang
<FromGitter> <fridgerator> lol
woodruffw has quit [*.net *.split]
jsn- has quit [*.net *.split]
swav has quit [*.net *.split]
mjblack has quit [*.net *.split]
mjblack has joined #crystal-lang
woodruffw has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 252 seconds]
robacarp has quit [*.net *.split]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 272 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
lagbox has joined #crystal-lang
rohitpaulk has joined #crystal-lang
lvmbdv has joined #crystal-lang
flaviodesousa has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 252 seconds]
DTZUZO has quit [Ping timeout: 245 seconds]
lvmbdv has quit [Quit: WeeChat 2.2]
ashirase has quit [Ping timeout: 250 seconds]
ashirase has joined #crystal-lang
<FromGitter> <j8r> @oprypin Even https://en.wikipedia.org/wiki/Ascii85, for now I'll use Base64
Groogy1 has quit [Ping timeout: 240 seconds]
return0e has quit [Quit: Leaving]
Groogy1 has joined #crystal-lang
<FromGitter> <bew> @TeddyDD :D :D :D
return0e has joined #crystal-lang
DTZUZO has joined #crystal-lang
JesseH has quit [Remote host closed the connection]
flaviodesousa has quit [Remote host closed the connection]
<FromGitter> <sdogruyol> Hey everyone 👋 It's been a while
<FromGitter> <codenoid> hi
<Groogy1> Yo @sdogruyol! o/
<FromGitter> <sdogruyol> Hey Groogy long time no see how's it going
<FromGitter> <proyb6> Saw your slides on Crystal is nice done, I'm admire of your talk @sdogruyol
<FromGitter> <sdogruyol> Thank you very much @proyb6 that means a lot
davic has joined #crystal-lang
<livcd> what slides ?
<FromGitter> <proyb6> Does Crystal have non-blocking API for process, mysql or postgres where Swoole (PHP) is fast in Single Query? https://www.techempower.com/benchmarks/#section=test&runid=a1843d12-6091-4780-92a6-a747fab77cb1&hw=ph&test=db
<FromGitter> <proyb6> @livcd https://slides.com/sdogruyol
Groogy1 has quit [Ping timeout: 272 seconds]
snapcase has quit [Ping timeout: 272 seconds]
sagax has quit [Ping timeout: 272 seconds]
Groogy1 has joined #crystal-lang
<FromGitter> <bajro17> @sdogruyol Welcome :) we all miss you
srm` has joined #crystal-lang
<FromGitter> <epergo> 👋 @sdogruyol
sagax has joined #crystal-lang
wontruefree has joined #crystal-lang
DTZUZO has quit [Ping timeout: 245 seconds]
<FromGitter> <eliasjpr> if there a way to get all the class attributes after intialization?
<FromGitter> <eliasjpr> I looked at the object class but doesnt seem to have anything like it
<FromGitter> <bew> What do you mean "get"?
return0e has quit [Remote host closed the connection]
<FromGitter> <eliasjpr> for instance get an array of all the properties of a class
<FromGitter> <bew> An array of what? The names of the ivars? For what?
<FromGitter> <eliasjpr> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b9be9d8f7e1580625cf4a9b]
<FromGitter> <eliasjpr> yes! `ivars`
<FromGitter> <bew> You'll need macros to do that
<FromGitter> <eliasjpr> is that it?
<FromGitter> <eliasjpr> okay
<FromGitter> <bew> In the do_something method
<FromGitter> <eliasjpr> cook
<FromGitter> <eliasjpr> ` {{ @type.instance_vars.map &.name.stringify }}`
<FromGitter> <eliasjpr> ?
<FromGitter> <bew> https://carc.in/#/r/4zp7
<FromGitter> <bew> kindof
<FromGitter> <bew> but yeah you use `@type.instance_vars` to a get an array of something representing an ivar in macros
return0e has joined #crystal-lang
<FromGitter> <eliasjpr> got it. thanks so much!
<FromGitter> <bew> then for each, use `.name` on it to get its name
<FromGitter> <bew> https://crystal-lang.org/api/0.26.1/Crystal/Macros/TypeNode.html#instance_vars%3ACrystal%3A%3AMacros%3A%3AArrayLiteral(MetaVar)-instance-method
<FromGitter> <eliasjpr> is there a place where I can find documentation about the methods available?
<FromGitter> <eliasjpr> :)
<FromGitter> <bew> ☝️
<FromGitter> <eliasjpr> thanks! y
<FromGitter> <eliasjpr> u
<FromGitter> <eliasjpr> o
<FromGitter> <bew> :p
<FromGitter> <eliasjpr> sweet!
robacarp has joined #crystal-lang
<FromGitter> <codenoid> hi all
<FromGitter> <bew> Hey @codenoid
<FromGitter> <mikejohnduran> Has anyone used Hoop from the CrystalShards repository? (to create OSX apps). I was curious on trying to use crystal for a native desktop app
<FromGitter> <fridgerator> @paulcsmith http://bikeshed.fm/170 👍
return0e has quit [Remote host closed the connection]
return0e has joined #crystal-lang
<FromGitter> <bew> Cool 'll listen to that later!
<FromGitter> <fridgerator> I was under the impression that crystal could only bind to c libs, but then there is this: https://github.com/Papierkorb/bindgen
francisl has joined #crystal-lang
<FromGitter> <paulcsmith> @fridgerator Thanks! I'm glad you liked it :D
francisl has quit [Quit: francisl]
<FromGitter> <eliasjpr> dumb question. If have a `@var : Array(Int32)` is there a way to get the `type` of the array values out of `typeof(Array(Int32).value)`
<oprypin> fridgerator, yep, that makes a C lib and binds it
<FromGitter> <fridgerator> ah ok
<oprypin> eliasjpr, are you looking for typeof(@var.first) ?
<FromGitter> <eliasjpr> yes
<FromGitter> <eliasjpr> got it
<FromGitter> <eliasjpr> that worked neatly
<FromGitter> <eliasjpr> is amazing the things that you can do with macros and the type system :)
francisl has joined #crystal-lang
francisl has quit [Quit: francisl]
wontruefree has quit [Quit: bye]
wontruefree has joined #crystal-lang
<Yxhuvud> @fridgerator: hmm, that bikeshed episode has pretty wonky sound.
<FromGitter> <fridgerator> I didn't notice
<Yxhuvud> no? Strange. I have some static and stuff
<Yxhuvud> strangely enough, the static is distributed in a way so that both sounds like they have a cold
wontruefree has quit [Quit: bye]
wontruefree has joined #crystal-lang