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
JuanMiguel has joined #crystal-lang
JuanMiguel has quit [Client Quit]
<FromGitter> <Blacksmoke16> not a fan of the `start_document` and `finish` methods but dont have any better ideas atm
<FromGitter> <Blacksmoke16> since that should only run once, but cant couple the navigator with something more specific
<FromGitter> <Blacksmoke16> maybe make it like `prepare` and `finish` and add them to the interface, visitors can use that for whatever initialization/cleanup they need?
sorcus has quit [Ping timeout: 260 seconds]
sorcus has joined #crystal-lang
<FromGitter> <Blacksmoke16> wow, literally took 5min to add yaml support
<FromGitter> <Blacksmoke16> now lets try xml...
<FromGitter> <Blacksmoke16> eh save that for later, be a bit trickier since it doesnt use anonymous elements
_whitelogger has joined #crystal-lang
alexherbo28 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo28 is now known as alexherbo2
alex`` has quit [Ping timeout: 268 seconds]
alex`` has joined #crystal-lang
martinium has joined #crystal-lang
<FromGitter> <grkek> @Blacksmoke16 Updated the framework and it looks a lot less ugly than it was before
<FromGitter> <grkek> https://github.com/grkek/grip
JuanMiguel has joined #crystal-lang
martinium has quit [Quit: Textual IRC Client: www.textualapp.com]
JuanMiguel has quit [Quit: This computer has gone to sleep]
Nicolab has joined #crystal-lang
go|dfish has quit [Ping timeout: 265 seconds]
ht_ has joined #crystal-lang
alexherbo24 has joined #crystal-lang
alex`` has quit [Ping timeout: 272 seconds]
alexherbo2 has quit [Ping timeout: 272 seconds]
alexherbo24 is now known as alexherbo2
alex`` has joined #crystal-lang
sagax has quit [Ping timeout: 265 seconds]
return0__ has joined #crystal-lang
return0e_ has quit [Ping timeout: 268 seconds]
sagax has joined #crystal-lang
alexherbo22 has joined #crystal-lang
Nicolab has quit [Quit: Leaving.]
alexherbo2 has quit [Ping timeout: 260 seconds]
alexherbo22 is now known as alexherbo2
alex`` has quit [Ping timeout: 265 seconds]
alex`` has joined #crystal-lang
repo has quit [Quit: WeeChat 2.7]
repo has joined #crystal-lang
Human_G33k has joined #crystal-lang
HumanG33k has quit [Ping timeout: 268 seconds]
repo has quit [Ping timeout: 272 seconds]
repo has joined #crystal-lang
<FromGitter> <Blacksmoke16> why not use a namedTuple? might be more performant/cleaner still
go|dfish has joined #crystal-lang
JuanMiguel has joined #crystal-lang
<FromGitter> <nothratal> is anyone aware of any possibilities building android apps using crystal? Through ndk maybe...
JuanMiguel has quit [Quit: This computer has gone to sleep]
<FromGitter> <grkek> named tuples hmmm
<FromGitter> <grkek> i really like the =>
<FromGitter> <Blacksmoke16> as you wishs
<FromGitter> <Blacksmoke16> 😬 https://words.steveklabnik.com/a-sad-day-for-rust
<repo> does someone know how to make a _relative_ symlink in crystal?
<repo> i don't see a direct way to do this but maybe there's an easy way to find the relative path from a directory to a path
<FromGitter> <Blacksmoke16> could you use https://crystal-lang.org/api/master/File.html#expand_path(path,dir=nil,*,home=false):String-class-method to get an absolute path from a relative ?
<repo> yeah i guess
<FromGitter> <grkek> hell yes die die rust die
<FromGitter> <grkek> no one likes rust
<Stephie> "no one likes rust" please don't be nasty to other languages
<Stephie> you might not like rust but there's no reason to be mean to rust developers or users
JuanMiguel has joined #crystal-lang
JuanMiguel has quit [Read error: Connection reset by peer]
JuanMiguel has joined #crystal-lang
JuanMiguel has quit [Quit: This computer has gone to sleep]
ur5us has joined #crystal-lang
ur5us has quit [Quit: Leaving]
ur5us has joined #crystal-lang
ur5us has quit [Read error: Connection reset by peer]
renich has joined #crystal-lang
JuanMiguel has joined #crystal-lang
<renich> Hey Crystalians! o/
<FromGitter> <tenebrousedge> yo o/
<renich> Just wanted to say I've updated the requirements for Fedora here: https://github.com/crystal-lang/crystal/wiki/All-required-libraries#fedora
<renich> I tried the build using toolbox. Built 0.32.1
<renich> The thing is I could just edit the wiki... just like that. Is that the intended behavior?
<FromGitter> <tenebrousedge> good question
<renich> Another thing. I ran the tests and got a few failures (4).
<renich> crystal spec spec/std/http/cookie_spec.cr:221 # HTTP::Cookie::Parser expired? not expired
<renich> crystal spec spec/std/socket/tcp_server_spec.cr:55 # TCPServer .new using IPv4 reuse_port raises when not binding with reuse_port
<renich> crystal spec spec/std/socket/tcp_server_spec.cr:55 # TCPServer .new using IPv6 reuse_port raises when not binding with reuse_port
<renich> crystal spec spec/std/xml/xml_spec.cr:160 # XML handles errors
<renich> I could fix the first one by updating the date to 2021
<renich> No idea on the other three.
<FromGitter> <tenebrousedge> 😬
<Yxhuvud> The tcp_server one reminds me of a similar in ubuntu. There is an issue about it somewhere..
<FromGitter> <Blacksmoke16> What's the error on the XML one
<renich> Yxhuvud: oh well, I didn't start looking for issues just yet because I wanted to ask you, people. But it's good to know.
<renich> Blacksmoke16: one second
<renich> Yxhuvud: whoa! Long time since it was reported.
<renich> Blacksmoke16: what do you think? Did I miss some dependency?
<FromGitter> <Blacksmoke16> Possibly diff libxml versions?
<renich> yeah, checking...
<renich> v2.9.10-2 here.
<renich> We have a docker container for crystal, right? Does it run on alpine?
<FromGitter> <straight-shoota> The TCP spec failures are not important. It's just a different error message than expected. This needs to be fixed, but is not to worry
<FromGitter> <straight-shoota> alpine based Docker image is technically only a preview available, but should ship with the next release
<renich> straight-shoota: OK. Figured as much. Same for the xml one?
<renich> straight-shoota: yeah, noticed the `apt-get` commands :S
* renich is not an Unbuntu fan
<renich> I've noticed we have a libxml2-static here. I'll try to build with that one to see if the test passes.
<FromGitter> <straight-shoota> You can use `crystallang/crystal:ci-test-dev-alpine` right now for an alpine based image, or wait for next release
<FromGitter> <straight-shoota> Yes, XML error seems to be a similar issue
<renich> straight-shoota: thanks.
<renich> straight-shoota: yeah, figured as much.
<Yxhuvud> That cookie spec failure seems to happen on ubuntu too, btw.
<renich> Yxhuvud: it's just a matter of updating the test's date to 2021, IMHO
<renich> The purpose of that test is to see if a cookie is expired, right? I dunno why don't they set it to 2100 or something like that. Might have to do something with the unix time or the 2k bug ;D
<renich> man... the crystal wrapper script is longer than I expected...
<FromGitter> <straight-shoota> Cookie spec is fixed in master (#8640)
<DeBot> https://github.com/crystal-lang/crystal/pull/8640 (Remove fixed date in spec)
<renich> :D
<renich> Yeah, better to set it to something like current + 2, eh? ;D
<Yxhuvud> You mean I have to do git pull too! Bah!
ht_ has quit [Remote host closed the connection]
straight-shoota has joined #crystal-lang
straight-shoota has quit [Quit: leaving]
Yxhuvud has quit [Read error: Connection reset by peer]
<FromGitter> <straight-shoota> renich the XML spec fails starting at libxml2 2.9.10. Seems like there was some change in the library, but I can't pin it down.
<renich> straight-shoota: OK. So, it isn't just a message that changed?
<renich> oh well, it's good that you found that one straight-shoota :D
alexherbo20 has joined #crystal-lang
<FromGitter> <straight-shoota> #8699
<DeBot> https://github.com/crystal-lang/crystal/pull/8699 (Fix expected error message in libxml2 error spec)
<FromGitter> <straight-shoota> The library has changed so that in this case a different error is triggered, which means a different error message
alexherbo2 has quit [Ping timeout: 258 seconds]
alex`` has quit [Ping timeout: 258 seconds]
alexherbo20 is now known as alexherbo2
alex`` has joined #crystal-lang
<FromGitter> <Blacksmoke16> is there some function that would return the version of the lib like how we handle YAML?
JuanMiguel has quit [Quit: This computer has gone to sleep]
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #crystal-lang
<FromGitter> <straight-shoota> certainly
FromGitter has quit [Read error: Connection reset by peer]
FromGitter has joined #crystal-lang