ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.32.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
DTZUZU has joined #crystal-lang
return0e_ has quit [Remote host closed the connection]
return0e has joined #crystal-lang
<FromGitter> <dscottboggs_gitlab> Does anyone run crystal on arch/manjaro? I'm getting the error ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ which makes sense because I only have llvm7 installed... [https://gitter.im/crystal-lang/crystal?at=5e03fedb8897197969fa717e]
<FromGitter> <lbarasti> @mattrberry so happy to see lbarasti/dataclass#1, will look into it tomorrow 👌
<FromGitter> <ImAHopelessDev_gitlab> @watzon specs? What are those
<FromGitter> <randiaz95> guys, I am dieing here lol
<FromGitter> <Blacksmoke16> @dscottboggs_gitlab I installed llvm via snap
<FromGitter> <Blacksmoke16> And didn't have an issue
<FromGitter> <randiaz95> I found a bug I have been working on fixing for 2 whole days :(
<FromGitter> <Blacksmoke16> Rip
<FromGitter> <randiaz95> it wasn't Crystal's problem after all
<FromGitter> <randiaz95> it was that I was writing client code in python with the requests library
<FromGitter> <randiaz95> and I wasn't using request`.text` attribute
<FromGitter> <randiaz95> I couldn't figure out why I wasn't returning a string
<FromGitter> <dscottboggs_gitlab> omg
<FromGitter> <dscottboggs_gitlab> I feel so bad for you @randiaz95
<FromGitter> <dscottboggs_gitlab> @Blacksmoke16 you installed llvm 8 on arch with snapd? ugh I don't wanna install snapd...
<FromGitter> <Blacksmoke16> It installed 9
<FromGitter> <Blacksmoke16> Manjaro
<FromGitter> <Blacksmoke16> I use snap for most of my stuff so figured why not
<FromGitter> <dscottboggs_gitlab> oh, so it'll work with 9? I'll try that, thanks
<FromGitter> <dscottboggs_gitlab> > figured why not ⏎ ⏎ 😬 I have not had great experience with snaps. TBH I'd rather a wrapper script around docker containers than some from-scratch solution
<FromGitter> <Blacksmoke16> oh? how so?
<FromGitter> <dscottboggs_gitlab> I don't remember all of them, I think something just didn't work, but I've had permissions frustrations...plus that issue where the fonts wouldn't load in firefox
<FromGitter> <Blacksmoke16> hm, fair enough
<FromGitter> <dscottboggs_gitlab> Idk I mean don't get me wrong it's not *awful* I use it sometimes, but I go for native first, then aur, then docker, *then* snaps lol
dwdv has quit [Ping timeout: 240 seconds]
<FromGitter> <smprather> I spent a whole day finding this: "%0.2f" % some_float_var.to_s (feeding a string to the format instead of a float)
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 260 seconds]
Flipez4 has joined #crystal-lang
Flipez has quit [Quit: Ping timeout (120 seconds)]
<FromGitter> <pmags_gitlab> Can the property macro be used with hash instance variables? This syntax ` property dict : {} of String => String` doesn't seem to work.
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
<FromGitter> <stnluu_twitter> Hi all!
<FromGitter> <stnluu_twitter> I'm trying to call Path.info(p), where p is a Path variable and the compilation is failing because it's trying to call `inspect_unquoted`
<FromGitter> <stnluu_twitter> this function right here: https://crystal-lang.org/api/0.32.1/File.html#info(path:Path%7CString,follow_symlinks=true):Info-class-method
<FromGitter> <stnluu_twitter> it works with string, but fails to compile with path
_whitelogger has joined #crystal-lang
<FromGitter> <stnluu_twitter> it's this line
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
yukai has quit [Ping timeout: 258 seconds]
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
DTZUZO has quit [Ping timeout: 258 seconds]
<FromGitter> <TheOnlyArtz> let's say I have a struct with the ability to take a Hash and assign it's properties accordingly. ⏎ I will provide an example with rethinkDB but really it can happen with every database library out there. ⏎ ⏎ When querying the database the result of the query is of a type called `RethinkDB::QueryResult` which is really just an alias for many primitives available in Crystal. ⏎ On the other hand I
<FromGitter> ... got a struct which looks like: ... [https://gitter.im/crystal-lang/crystal?at=5e047ca3c0c8ef301b170c32]
dwdv has joined #crystal-lang
<FromGitter> <TheOnlyArtz> let's say I have a struct with the ability to take a Hash and assign it's properties accordingly. ⏎ I will provide an example with rethinkDB but really it can happen with every database library out there. ⏎ ⏎ When querying the database the result of the query is of a type called `RethinkDB::QueryResult` which is really just an alias for many primitives available in Crystal. ⏎ On the other hand I
<FromGitter> ... got a struct which looks like: ... [https://gitter.im/crystal-lang/crystal?at=5e048455b1701e50ca8ae3e8]
_whitelogger has joined #crystal-lang
f1reflyylmao has quit [Quit: bye fags]
<FromGitter> <recepaltas_gitlab> @recepaltas_gitlab ⏎ Hi How can i receive results from mysql query as an array ⏎ sonuc = db.query "select * from *istekler where istek*email=?", args: [user] ⏎ like this ⏎ but i can not access sonuc [https://gitter.im/crystal-lang/crystal?at=5e0499ff8897197969fe606c]
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
HumanG33k has joined #crystal-lang
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 258 seconds]
<FromGitter> <lbarasti> Just released `dataclass` v1.1.0 🎉 https://github.com/lbarasti/dataclass/releases/tag/v1.1.0 ⏎ @mattrberry Is it ok if I add you to the `contributors` section?
<FromGitter> <firejox> +
<FromGitter> <Blacksmoke16> @pmags_gitlab yes but have to use the literal version when typing it `Hash(String, String)`
<FromGitter> <Blacksmoke16> or skip the type and just do `property dict = {} of String => String`
<FromGitter> <Blacksmoke16> @recepaltas_gitlab check out the api docs http://crystal-lang.github.io/crystal-db/api/0.8.0/DB/QueryMethods.html#query(query,*args_,args:Array?=nil,&)-instance-method
<FromGitter> <Blacksmoke16> would have to iterate over the resultSet
duane has joined #crystal-lang
<foxxx0> hey, how do i access object properties via a variable? e.g. i have a custom class with properties "foo" and "bar" and now i don't want to do myobject.foo and myobject.bar but instead %w[foo bar].each { |i| myobject.send(i) } or similar.
_whitelogger has joined #crystal-lang
<foxxx0> nvm, managed to solve it using templating and {{i.id}} :)
<FromGitter> <Blacksmoke16> would have to have a method that internally uses like `case` to call the correct value
<FromGitter> <Blacksmoke16> method*
_whitelogger has joined #crystal-lang
DTZUZO has joined #crystal-lang
gangstacat has quit [Ping timeout: 248 seconds]
FromGitter has quit [Read error: Connection reset by peer]
lunarkitty has joined #crystal-lang
<lunarkitty> Are there any shards or gems for crystal <> ruby binding/communication?
yukai has joined #crystal-lang