RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.25.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
duane_ has joined #crystal-lang
duane has quit [Ping timeout: 260 seconds]
jeet2 has quit [Ping timeout: 264 seconds]
snsei has joined #crystal-lang
<crystal-gh> [crystal] kostya opened pull request #6310: add Set#from_yaml (master...set_from_yaml) https://git.io/f6O2I
lvmbdv has quit [Quit: Leaving.]
rocx` has joined #crystal-lang
rocx has quit [Ping timeout: 260 seconds]
rocx` is now known as rocx
rocx has left #crystal-lang [#crystal-lang]
wontruef_ has quit [Ping timeout: 265 seconds]
wontruefree has joined #crystal-lang
<FromGitter> <valamorgon> @velddev like @j8r said, I downloaded older version and replace it with the existing one at the path, didn't have any issue until now. But you might want to delete /home/yourname/.cache/crystal/ to get everything work
duane_ has quit [Ping timeout: 265 seconds]
<FromGitter> <valamorgon> when I require "xml" I got this error: /usr/bin/x86_64-linux-gnu-ld: cannot find -lxml2 ⏎ I guess there is a missing dependency?
jeet2 has joined #crystal-lang
<FromGitter> <bararchy> @valamorgon apt-get install libxml2-dev
lvmbdv has joined #crystal-lang
lvmbdv has quit [Quit: Leaving.]
wontruefree has quit [Quit: bye]
wontruefree has joined #crystal-lang
jeet2 has quit [Quit: WeeChat 2.1]
wontruefree has quit [Quit: bye]
flaviodesousa has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<FromGitter> <EmilieGliech_twitter> Hello, how to test the JUnit formatter in crystal? I can't find :x
rohitpaulk has quit [Ping timeout: 245 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter> <straight-shoota> @EmilieGliech_twitter `crystal spec -- --junit_output junit-output-path`
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 264 seconds]
Raimondii is now known as Raimondi
<FromGitter> <EmilieGliech_twitter> That's what I did, but I have an error, I have to do `make spec` before but when I do that I get this error "Error: File spec/std/data/compiler_sample does not exist" and I don't understand why. I do have version 0.25.1 of crystal
rohitpaulk has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
<crystal-gh> [crystal] ysbaddaden closed pull request #6307: Fix: missing codegen cast from metaclass union to virtual metaclass (master...bug/6298-cast-metaclass-union-to-virtual-metaclass) https://git.io/fwKnT
<crystal-gh> [crystal] mamantoha opened pull request #6311: added syntax sugar to check if URI is absolute or relative (master...uri-absolute-relative) https://git.io/f1XTY
<FromGitter> <vegai> hello
<FromGitter> <icyleaf> @EmilieGliech_twitter execute `make clean` then try again.
<FromGitter> <bararchy> I'm trying to use JSON::Serilizable with SHAInet to have a network save and load from file.
<FromGitter> <bararchy> I'm having some issues with the `@Logger`
<FromGitter> <bararchy> Is there a way to tell the JSON to not take the logger ?
<FromGitter> <bararchy> And other stuff as well
<FromGitter> <bcardiff> @EmilieGliech_twitter the issue is related to https://github.com/crystal-lang/crystal/pull/5951#issuecomment-400986673 is not about junit formatter but an issue in a recent refactor of the specs that prevent running std_specs and compiler_specs at the same time
<travis-ci> crystal-lang/crystal#b8d64a7 (master - Fix: missing codegen cast from metaclass union to virtual metaclass): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/399059354
<FromGitter> <bararchy> @bcardiff any tip regarding ommiting certain types from the serialization?
<crystal-gh> [crystal] straight-shoota opened pull request #6312: Fix: Rename datapath helper to compiler_datapath for compiler specs (master...jm/feature/specs-tempdir-separate-helper) https://git.io/fMvnr
<FromGitter> <bcardiff> in which scenario @bararchy ?
<FromGitter> <bararchy> I'm trying to use JSON:: Serelizable with a class that has Logger as a instance var, how can I omit it from the .to_json action?
<FromGitter> <bcardiff> `@[JSON::Field(ignore: true)]` ?
lvmbdv has joined #crystal-lang
<FromGitter> <bararchy> Cool, is there documentation on all flag options ?
<FromGitter> <bararchy> I didn't see the ignore option anywhere
rohitpaulk has joined #crystal-lang
<FromGitter> <bcardiff> https://crystal-lang.org/api/0.25.1/JSON/Serializable.html in the Usage section
<crystal-gh> [crystal] bcardiff opened pull request #6313: Update CI to use 0.25.1 (master...ci/update) https://git.io/fMcn0
<FromGitter> <Grabli66> Someone wants to do MsgPack::Serializable?
rohitpaulk has quit [Ping timeout: 268 seconds]
duane has joined #crystal-lang
<travis-ci> crystal-lang/crystal#8260fe6 (ci/update - Update CI to use 0.25.1 and osx 10.11 compatible build scripts): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/399082892
duane has quit [Ping timeout: 245 seconds]
<crystal-gh> [crystal] straight-shoota opened pull request #6314: Human readable formatting for numbers (master...jm/feature/humanize) https://git.io/fMbWU
<FromGitter> <bararchy> @bcardiff Is there a way to overload the `initialize(pull : ::JSON::PullParser, dummy : Nil)` to add some default stuff that can't be Serialized?
<FromGitter> <bararchy> I want to add some instance vars etc.. but don't want to totally overload the method, I want to add only 2,3 things
ua has quit [Quit: Leaving]
<FromGitter> <bararchy> lol no magic solutions hahah ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b3a20113d8f71623d5599c6]
<FromGitter> <bcardiff> @bararchy can't you provide a default value on the ivar?
<crystal-gh> [crystal] maiha opened pull request #6315: fix example codes (2018-06) (master...fix-examples-2018-06) https://git.io/fDmCu
<FromGitter> <bararchy> @bcardiff I did, got it to compile but now I have Invalid mem access
<FromGitter> <bararchy> Not sure what I did wrong
<FromGitter> <vlazar> What is a good way to parse JSON when JSON document structure doesn't match Crystal objects? Say JSON document has data deeply nested and object is not. Or maybe the structure is completely different like parsing something like an array [1, 2] from JSON document to some fields in object like { foo: 1, bar: 2 }
<FromGitter> <bararchy> it seems to compile
duane has joined #crystal-lang
<FromGitter> <asterite> @barachy there's `after_initialize` (which should really be renamed...)
<FromGitter> <bcardiff> Oh, I thought there were no callback (yet)
<FromGitter> <bcardiff> hm, it needs some docs...
<FromGitter> <bararchy> oh cool!
<FromGitter> <bararchy> so it's `def after_initialize` ?
<FromGitter> <asterite> but it really needs to be renamed and documented... before for YAML it's probably also called `after_initialize` and there's a clash there
<FromGitter> <bararchy> hm....
<FromGitter> <bararchy> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b3a27ac60c387078356ac2d]
<FromGitter> <bararchy> So I guess I'm missing something in how to configure the `after_initialize` ?
<FromGitter> <asterite> you have to initialize instance vars in `initialize`
<FromGitter> <asterite> Ummm...
<FromGitter> <asterite> `after_initialize` is invoked after JSON parsing
<FromGitter> <asterite> it's not meant to be invoked by you
<FromGitter> <asterite> I thought you wanted to so some initialization after JSON parsing :-P
<FromGitter> <asterite> now I'm not sure what you want to d
<FromGitter> <bararchy> ok, so this didn't really helped me :) ⏎ What I need is a way to add some stuff to the new initialize made by JSON::Serelizable
<FromGitter> <asterite> what stuff?
<FromGitter> <bararchy> default parameters that can't be saved or loaded into JSON, like Slice, and Pointer, etc..
<FromGitter> <asterite> you want to initialize those, or what?
<FromGitter> <bararchy> I want to initialize those
<FromGitter> <bararchy> but it seems I hacked away using the forbidden `after_initialize` :)
<FromGitter> <mjago> @asterite Does using assert_type produce a better spec than just using `.class.should be` ? I just wondered since the latter runs about 20 times quicker. https://gist.github.com/mjago/1a533fa6638f80ff61cf5addcca5e180
<FromGitter> <Blacksmoke16> anyone know if https://github.com/madeindjs/Crystagiri is still maintained? seems a bit out of date
<FromGitter> <asterite> @mjago assert_type checks that compiling the program will give the expected type. That's testing the *next* compiler. The way you put it is testing the current compiler.
<FromGitter> <mjago> @asterite Ok thanks! The reason I ask is my project is testing the current nightly compiler for regression and performance purposes, and running individual semantic specs is too expensive.
<FromGitter> <bararchy> So @asterite, any clue why I get this? https://gist.github.com/bararchy/e053c742f030adf4d3f4e25eb83e41b2 ⏎ I made sure everything compiles, it seems not to say anything. ⏎ It happens after I call `.to_json` on my class
<FromGitter> <asterite> @mjago yeah, it's slow...
<FromGitter> <asterite> @bararchy no idea
<FromGitter> <gdotdesign> @bararchy any chance you are compiling with the `-d` flag?
<crystal-gh> [crystal] sdogruyol pushed 1 new commit to master: https://git.io/fyJl9
<crystal-gh> crystal/master cb41f96 Johannes Müller: Fix: Rename datapath helper to compiler_datapath for compiler specs (#6312)
alex`` has joined #crystal-lang
<FromGitter> <straight-shoota> @Blacksmoke16 Crystagiri is pretty useless because practically everything is already provided in the stdlib
<FromGitter> <Blacksmoke16> 👍 gotcha htanks
alex`` has quit [Ping timeout: 265 seconds]
ua has joined #crystal-lang
<travis-ci> crystal-lang/crystal#cb41f96 (master - Fix: Rename datapath helper to compiler_datapath for compiler specs (#6312)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/399161442
<DeBot> https://github.com/crystal-lang/crystal/pull/6312 (Fix: Rename datapath helper to compiler_datapath for compiler specs)
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
Liothen has joined #crystal-lang
Liothen has quit [Changing host]
Liothen has joined #crystal-lang
wontruefree has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] bcardiff pushed 1 new commit to master: https://git.io/fypnd
<crystal-gh> crystal/master 63536bd Brian J. Cardiff: Update CI to use 0.25.1 and osx 10.11 compatible build scripts (#6313)...
<crystal-gh> [crystal] benglewis opened pull request #6316: Did you mean flag (master...did-you-mean-flag) https://git.io/fyhDp
akaiiro has joined #crystal-lang
<FromGitter> <valamorgon> @bararchy thank you, libxml was the missing dependency, I should ve guessed it
<travis-ci> crystal-lang/crystal#63536bd (master - Update CI to use 0.25.1 and osx 10.11 compatible build scripts (#6313)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/399212603
<DeBot> https://github.com/crystal-lang/crystal/pull/6313 (Update CI to use 0.25.1)
flaviodesousa has quit [Ping timeout: 256 seconds]
alex`` has joined #crystal-lang
<crystal-gh> [crystal] straight-shoota closed pull request #5870: Add connection metadata to HTTP::Server::Response (master...jm/feature/http-server-response-metadata) https://git.io/vxEgj
<wontruefree> /join #gentoo
lvmbdv has quit [Ping timeout: 240 seconds]
wontruefree has quit [Quit: this is not the client you are looking for]
wontruefree has joined #crystal-lang
wontruefree has quit [Client Quit]
wontruefree has joined #crystal-lang
<wontruefree> has anyone messed around with unikernels before?
<wontruefree> would they be a good solution to distribution or a crystal program
<FromGitter> <drujensen> raspberry
<FromGitter> <drujensen> What is the status of raspberry pi support?
<FromGitter> <drujensen> Does anyone have a guide to get the crystal compiler installed?
<FromGitter> <drujensen> or cross compile?
<wontruefree> I dont know about cross compiling the compiler
<wontruefree> some people have mentioned compiling on alpine linux to statically compile but I have not tried and dont know if that is what you are looking for
<FromGitter> <drujensen> @wontruefree thanks. I was hoping more of a `apt-get install crystal` guide. ;-)
<FromGitter> <drujensen> you need crystal to compile crystal so I’m going to assume I will need to cross compile?
<FromGitter> <drujensen> or does someone have a binary that I can use?
<FromGitter> <j8r> you can build a static arm64 (but not armhf) binary
<wontruefree> drujensen I would check out this then https://crystal-lang.org/docs/installation/on_debian_and_ubuntu.html
<FromGitter> <drujensen> yeah, i tried that but I get an error related to the `armhf` as @j8r mentioned
<wontruefree> looks like there is some arm support
<FromGitter> <drujensen> ok, so crystal on a raspberry pi is not possible today?
<FromGitter> <valamorgon> are we going to have query select on XML::Nodes in the future?
<FromGitter> <straight-shoota> @valamorgon what do you mean with "query select"?
<FromGitter> <valamorgon> you know like in js, after you parse to dom you can simply make dom.querySelectorAll("block")[0].getAttribute("type")
<FromGitter> <valamorgon> some php libraries also support this for xml
<FromGitter> <valamorgon> e.g. dom.querySelectorAll("blocks > block")
<FromGitter> <straight-shoota> ah yes
<FromGitter> <straight-shoota> currently, only xpath queries are supported
<wontruefree> drujensen if you try and install and compile and it fails you could probably open an issue
<FromGitter> <asterite> I think that's what crystagiri is for
<FromGitter> <straight-shoota> Although, I have a wip implementation of a CSS query translator laying around
<FromGitter> <asterite> at least looking at this: https://github.com/madeindjs/Crystagiri/blob/master/src/crystagiri/html.cr
<FromGitter> <straight-shoota> @asterite but it's very poor at that :D
<FromGitter> <asterite> Probably. I just don't think it something that belongs in the std
<FromGitter> <straight-shoota> CSS query or XML parsing in general?
<FromGitter> <asterite> css query
<wontruefree> I would find it helpful
<wontruefree> there is alot of html parsing out there
<FromGitter> <straight-shoota> If we have a XML parser, it should also support CSS query
<FromGitter> <straight-shoota> it's just so much easier than xpath because most people working with XML/HTML DOM know at least basic CSS
<FromGitter> <straight-shoota> remember, Crystal is about making developers happy :D
<FromGitter> <Blacksmoke16> can i make my program for me? that would make me happy
<FromGitter> <Blacksmoke16> ;)
<FromGitter> <valamorgon> is there a way to thumbs up, I want to thumbs up to @straight-shoota. I couldn't have said better myself.
<FromGitter> <Blacksmoke16> : +1 : no spaces should do the trick 👍
<FromGitter> <valamorgon> 👍 @straight-shoota
<FromGitter> <valamorgon> 👍 @Blacksmoke16
<FromGitter> <Blacksmoke16> :P
<FromGitter> <straight-shoota> @Blacksmoke16 then you'd become jobless :D
<FromGitter> <Blacksmoke16> reminds me of this guy
<FromGitter> <straight-shoota> if someone's interested, this is my WIP branch: https://github.com/straight-shoota/crystal/tree/jm/feature/css-selector-translate
<FromGitter> <asterite> @straight-shoota find me some languages with css querying in the standard library, and I might consider it :-P
<FromGitter> <asterite> I mean, it's possible. It's useful. It can be in a shard
<FromGitter> <straight-shoota> JavaScript :P
<FromGitter> <asterite> touché
<FromGitter> <valamorgon> can I call class method from string? I know the class but the method will be dynamic
<wontruefree> I dont know as much about xpath but I have had a some xpaths that behave differently in crystal that in the browser
<wontruefree> if `$x('//foo')` returns one thing and `doc.xpath_nodes("//foo")` returns something different should I open an issue?
<FromGitter> <straight-shoota> wontruefree, Crystal just delegates xpath handling to libxml
<FromGitter> <straight-shoota> can you show a complete example?
zachk has joined #crystal-lang
zachk has quit [Changing host]
zachk has joined #crystal-lang
<wontruefree> I finished working on the scrapper last week but if I ever come across it again I will post it
<FromGitter> <drum445> Anyone mind giving me feedback on my site: izrite.com
<FromGitter> <drum445> Crystal & Kemal Backend
<crystal-gh> [crystal] straight-shoota opened pull request #6317: Flatten project structure created by crystal init (master...jm/feature/crystal-init-remove-version.cr) https://git.io/fSs7A
<wontruefree> drum445 I cannot figure out what the site does without a registration box popping up. I think you need a home page that you can read
<FromGitter> <drum445> Indeed sir, thanks. For now it starts with the login prompt :(
DTZUZU has joined #crystal-lang
duane has quit [Ping timeout: 240 seconds]
<wontruefree> what is the site for?
<FromGitter> <GaryMiller> @drum445 Seems very fast an responsive, I registed logged out and logged back in and it remembered my registration and password. The bright white center panl is pretty bright and tiring for the eye. The top line of test with Guide and Stack is hard to read after looking at the brite white background.
<FromGitter> <GaryMiller> It seems like a program to manage multiple tasklists but it call the the tasklists Boards and then you can add tasks under each board.
<FromGitter> <drum445> Thanks for taking a look @GaryMiller. I don't quite follow your last sentence though?
<FromGitter> <drum445> I will look at making the centre less harsh on the eye, good point thanks
<FromGitter> <drum445> @wontruefree It is a task management site, you can create different boards which contain it's own set of tasks. You can add people to your boards and see real time updates via websockets
sz0 has joined #crystal-lang
duane has joined #crystal-lang
wontruefree has quit [Quit: this is not the client you are looking for]
wontruefree has joined #crystal-lang
<crystal-gh> [crystal] woodruffw opened pull request #6319: random: Implement Random#uuid (master...random-uuid) https://git.io/fSGq7
<woodruffw> neato
<crystal-gh> [crystal] ysbaddaden closed pull request #6319: random: Implement Random#uuid (master...random-uuid) https://git.io/fSGq7