RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.27.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
marius has quit [Quit: x]
markoong has quit [Ping timeout: 272 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Remote host closed the connection]
jemc has joined #crystal-lang
sagax has quit [Ping timeout: 246 seconds]
sagax has joined #crystal-lang
jemc has quit [Ping timeout: 250 seconds]
oprypin has quit [Quit: No Ping reply in 180 seconds.]
<FromGitter> <j8r> @dscottboggs_gitlab what favorite?
early has quit [Quit: Leaving]
early has joined #crystal-lang
early has quit [Quit: Leaving]
early has joined #crystal-lang
ashirase has quit [Ping timeout: 272 seconds]
ashirase has joined #crystal-lang
_whitelogger has joined #crystal-lang
markoong has joined #crystal-lang
<jokke> hey there o/
<FromGitter> <girng> what is forth
<FromGitter> <girng> hello jokke
<jokke> any fast parsing libs for crystal?
<jokke> or maybe there already is something that fits my needs. i want to be able to define scopes for authentication that define access to resources in a pretty granular way.
<jokke> e.g. something like posts(author: self):comments.readonly
<mps> girng: forth is programming language made by Chuck More about fourthy years ago and started in control system for telescopes and other fields in astronomy and later in aerospace technology
<mps> it is only high-level language implemented in silicon directly, afaik
jemc has joined #crystal-lang
<FromGitter> <yb66_gitlab> Hello, I'm looking for some help. I just ran `shards install` for the first time (ever) and got this little beauty: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ I'm using the binary install and my libyaml is in /opt/pkg/lib/libyaml-0.2.dylib - anything I should be doing to fix this? [https://gitter.im/crystal-lang/crystal?at=5c64251d80df6804a199edcd]
<FromGitter> <j8r> @PlayLights_twitter I created https://github.com/j8r/crystal-object-send
<FromGitter> <j8r> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5c642ae4adf6cb0b2cb0c197]
<FromGitter> <PlayLights_twitter> Cool, im going to try it this weekend, thanks @j8r
<FromGitter> <j8r> expect it too be buggy - that's a fun experiment after all :)
<jokke> anyone?
<FromGitter> <forkev_twitter> @j8r - crystal-object-send looks pretty sweet, even with it's limitations. very cool.
<FromGitter> <j8r> thanks :) It's a good example to show how powerful Crystal macros can be.
<FromGitter> <j8r> Good, I don't know - I won't recommend to use this library other than edge cases like implementing an interpreter
<FromGitter> <forkev_twitter> I find this valuable not just because of what it can do, but because it's a showcase for the power of macros. with less then 100 lines of code you've set the stage for warping my perspective! i love it.
<FromGitter> <j8r> haha thanks. You use them @forkev_twitter ?
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Remote host closed the connection]
jemc has quit [Ping timeout: 240 seconds]
jemc has joined #crystal-lang
cyberarm has quit [Ping timeout: 272 seconds]
cyberarm has joined #crystal-lang
<FromGitter> <r00ster91> Why does this not return `äb`? ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ It returns `b`. [https://gitter.im/crystal-lang/crystal?at=5c64571128c89123cbc25ec3]
jemc has quit [Ping timeout: 245 seconds]
<FromGitter> <bew> `Char` != `Uint8`
<FromGitter> <bew> You store a small part of the first char to the first byte
<FromGitter> <r00ster91> ah yes I just noticed that. I'd have to iterate over the bytes of `ä`
<FromGitter> <bew> Probably `'ä'.ord` != `'ä'.ord.to_u8`
<FromGitter> <bew> Where is `'ä'` coming from?
<FromGitter> <r00ster91> from my keyboard. Or do you mean something else?
<FromGitter> <bew> In your code, the char is not written literally i think, so it's an input you get from somewhere? Maybe you can avoid concerting it to a Char so you already have it in Bytes (for ex)
<FromGitter> <r00ster91> yes I'm getting it from somewhere. ⏎ I already considered that. I'm getting the data from an array of `Char`s currently. I thought about making it a string maybe since that contains the bytes already so I don't have to convert them to bytes first. But I'm not sure if that will really be faster in my code
<FromGitter> <forkev_twitter> @j8r - i've not used crystal-object-send yet, just admiring the code and possiblities.
<FromGitter> <bararchy> Anyone having issues with HTTP::Client on `ubuntu:latest` docker?
<FromGitter> <j8r> @forkev_twitter i mean you use macros, globally speaking?
DTZUZO has quit [Ping timeout: 245 seconds]
DTZUZO has joined #crystal-lang
<FromGitter> <forkev_twitter> Not yet. I've shyd away from them for likely my bias they could introduce a performance or complexity overhead when debugging.
<FromGitter> <j8r> It may, yes. If you can, better avoiding them.
<FromGitter> <j8r> That's mainly a compile time penality
jemc has joined #crystal-lang
devil_tux has joined #crystal-lang
<devil_tux> this should work, am i right?
<FromGitter> <Sija> @devil_tux nope
<devil_tux> Sija: why?
<FromGitter> <Sija> you create a *local* variable inside of `Spec.before_each` block and then try to access it later on, which is obviously not possible
<FromGitter> <Sija> answering on your (possibly) next question: there's no way to use instance variables in spec too
<devil_tux> ah.. makes sense
<devil_tux> why is that tho?
<devil_tux> and is there alternative?
<FromGitter> <Sija> in general I'd advise against using `Spec.before/after_each` since they're being run for *every* `it` block
<FromGitter> <Sija> atm there's no way to scope it
<FromGitter> <Sija> is there an alternative? that depends on what you want to do
<FromGitter> <Sija> usually there is ;)
<devil_tux> sharing the resource/local variable across multiple spec files without using a single spec store for multiple descriptions
<devil_tux> would fresh variables be of use in that case?
<devil_tux> i'd rather not define those (i.e. `a`) in multiple spec files
<FromGitter> <Sija> fresh variables are to be used exclusively within macros
<devil_tux> :( anything else for above case?
<FromGitter> <Sija> I guess aside of using some kind of a store (class + @@cvars) you can try local variables defined at the top-level scope
<devil_tux> ah understood
<devil_tux> thanks for the help tho @Sija :)
ua has quit [Ping timeout: 240 seconds]
<devil_tux> btw shall we expect local var scope for specs in the future?
ua has joined #crystal-lang
<FromGitter> <Sija> nope, that's not how the language works, local variables are you know… local ;)
<FromGitter> <Sija> but having @ivars support is sth that could work equally well in this case
<FromGitter> <girng> @mps interesting, ty for info
<devil_tux> roger
<mps> girng: imho, programmer have to learn at least five (totally) different programming language to have different point of view when solving problems
<FromGitter> <vladfaust> Hostile working environment!