RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.25.0 | 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
greengriminal has quit [Quit: Leaving]
moei has quit [Quit: Leaving...]
zachk has quit [Quit: Leaving]
duane has joined #crystal-lang
hightower2 has quit [Ping timeout: 260 seconds]
snsei_ has joined #crystal-lang
snsei_ has quit [Ping timeout: 260 seconds]
moei has joined #crystal-lang
maxpowa has joined #crystal-lang
<FromGitter> <trans> Could someone give me some direction. I created a project called "crystal-cli" (https://gitlab.com/transfire/crystal-cli), and it uses the namespace `CLI` from a file to be required at `src/cli.cr`. But when I go to use this lib in another project by adding a shard dependency I run into some problems.
<FromGitter> <trans> First I put this, because I expected that would work just fine: ⏎ ⏎ ```dependencies: ⏎ cli: ⏎ gitlab: transfire/crystal-cli``` ⏎ ⏎ But when I did `shards install`, shards spat an error: `Error shard name (crystal-cli) doesn't match dependency name (cli)` [https://gitter.im/crystal-lang/crystal?at=5b35a08772b31d3691fce3e6]
greengriminal has joined #crystal-lang
<FromGitter> <trans> So I changed it too: ⏎ ⏎ ```dependencies: ⏎ crystal-cli: ⏎ gitlab: transfire/crystal-cli``` ⏎ ⏎ That allowed it to install, and it placed it in `lib/crystal-cli`, but when I compile crystal says `while requiring "cli": can't find file 'cli'` [https://gitter.im/crystal-lang/crystal?at=5b35a17aa288503b3de88ddd]
<FromGitter> <trans> What am I missing?
<FromGitter> <trans> Hmm... just notice Shards docs says the name field `should not contain crystal.` Well, that's just fine and dandy except I use multiple languages and I can't exactly have a Gitlab repo just called `cli` b/c I may have a port of the project for other languages, e.g. Ruby. The lib is so simple, it's just a macro called `cli`, so I don't really want to give it some foo-foo name (I considered KissCLI).
<FromGitter> <trans> So unless there is a way around this shards limitation, the only other possible option I can think of is moving all my Crystal projects into a "crystal" group. I think that could work, but only b/c Gitlab can do that, Github can't. Just so happened, I decided to give Gitlab a try for the first time with this project.
greengriminal has quit [Quit: This computer has gone to sleep]
rohitpaulk has joined #crystal-lang
snsei_ has joined #crystal-lang
snsei_ has quit [Ping timeout: 260 seconds]
<FromGitter> <rishavs> How do I get the params from a POST call to my Http::Server? the context object doesn't seems to have my params data.
DTZUZO has joined #crystal-lang
<FromGitter> <rishavs> How do I get the params from a POST call (generated by a HTML form action) to my Http::Server? the context object doesn't seems to have my params data. ⏎ _
<FromGitter> <reiswindy> @trans It could be because of a mismatch between the filename inside src (`cli`), the name used in your `shard.yml` file (`crystal-cli`) and the value you're requiring (`cli`). I tried adding `crystal-cli` as dependency and using `require "crystal-cli/cli"` and the file compiled without issues. Trying to use the example code in the Usage section of the README fails to compile though.
<FromGitter> <reiswindy> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b35c52859799e70174b7db3]
cyberarm has quit [Ping timeout: 265 seconds]
cyberarm has joined #crystal-lang
<FromGitter> <reiswindy> @rishavs You have to use `HTTP::FormData` to parse the request. There's an example here https://crystal-lang.org/api/0.25.0/HTTP/FormData.html
<FromGitter> <rishavs> Thanks @reiswindy !! 👏
snsei_ has joined #crystal-lang
snsei_ has quit [Ping timeout: 260 seconds]
snsei_ has joined #crystal-lang
snsei_ has quit [Client Quit]
Yxhuvud has quit [Read error: Connection reset by peer]
Yxhuvud has joined #crystal-lang
<FromGitter> <rishavs> @reiswindy I am still confused. My browser sends the post data for username and password as `application/x-www-form-urlencoded`. In my route, I tried; ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ Isn't the request.body generally where we have the params in the `x=y&a=b` format? [https://gitter.im/crystal-lang/crystal?at=5b35deed5862c35f47d1fdd9]
<crystal-gh> [crystal] bcardiff closed pull request #6287: Fix libyaml 0.2.1 incompatibility (master...jm/fix/libyaml-0.2.1) https://git.io/f4bcf
maxpowa has quit [Ping timeout: 256 seconds]
maxpowa has joined #crystal-lang
<FromGitter> <straight-shoota> @reiswindy yes. But `HTTP::FixedLengthContent#to_s` returns a string representation of the object, not the body content itself. You could use `#gets_to_end`.
<FromGitter> <rishavs> @straight-shoota ⏎ How should I do that in my router? just using it in place `to_s` throws error. ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b35e955aeb8fa0c074c40aa]
<travis-ci> crystal-lang/crystal#9418892 (master - Fix libyaml 0.2.1 incompatibility (#6287)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/398131804
<DeBot> https://github.com/crystal-lang/crystal/pull/6287 (Fix libyaml 0.2.1 incompatibility)
<FromGitter> <codenoid> ```code paste, see link``` ⏎ ⏎ stuck when CTRL+C [https://gitter.im/crystal-lang/crystal?at=5b35ec5072b31d3691fd7d2a]
<FromGitter> <r00ster91> yea because you are never breaking out of the loop
<FromGitter> <straight-shoota> @rishavs Just add `.not_nil!` (or a more sophisticated conditional check)
<FromGitter> <rishavs> Thanks. I got it to work just now. I used; ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b35ed2259799e70174be563]
<FromGitter> <Daniel-Worrall> Rx14: haven't had time yet to check that Windows things yet. Will get a dump either tonight or next week
<FromGitter> <j8r> @rishavs syntax wise, note you can also use an overload ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b35ed950168e70c08f96683]
<FromGitter> <codenoid> no, ,i won't break
<FromGitter> <codenoid> i won't exit
<FromGitter> <codenoid> unless real user `kill` me
<FromGitter> <rishavs> Thanks @j8r and @straight-shoota , coming from a language like JS, my type-foo is pretty weak. 😄
<FromGitter> <j8r> @codenoid are you in a fiber?
<FromGitter> <codenoid> nope
<FromGitter> <j8r> `gets` should block
<FromGitter> <j8r> I've no problem in my side, the problem can comes from `require "./bash/*"`
<FromGitter> <codenoid> require "./bash/*" is nothing
<FromGitter> <codenoid> just VERSION = 0.1.0
<FromGitter> <j8r> you are on which OS? Linux/macOS?
<FromGitter> <codenoid> ubuntu
<FromGitter> <codenoid> linux
<FromGitter> <r00ster91> WSL?
<FromGitter> <codenoid> no
<FromGitter> <j8r> I can't reproduce it on Lubuntu 18.10 in QTerminal :|
lvmbdv has joined #crystal-lang
<FromGitter> <codenoid> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b35f0eb7d3bca737a13e5c2]
<FromGitter> <MrSorcus> https://play.crystal-lang.org/#/r/4f7i ⏎ There is no way to merge two hash with difference types?
rohitpaulk has quit [Ping timeout: 260 seconds]
<FromGitter> <j8r> I think you can
<FromGitter> <MrSorcus> Hm. I understand now why there is error.
<FromGitter> <j8r> You need to create a third with which includes the union of both types
<FromGitter> <codenoid> how to install crystal in freebsd ?
<FromGitter> <MrSorcus> > You need to create a third with which includes the union of both types ⏎ ⏎ Yeap, you right. Thank you. 😄 👍
<FromGitter> <j8r> Or maybe you can create one which includes both types, and merge the other in to it
<FromGitter> <MrSorcus> > Or maybe you can create one which includes both types, and merge the other in to it ⏎ ⏎ Ok, thank you so much 👍
<FromGitter> <j8r> np problem :)
<FromGitter> <trans> @reiswindy Thanks. Guess I could do it that way then, but I suppose I should probably follow Shards' guidelines and rename the project.
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
<travis-ci> crystal-lang/crystal#663a8cc (ci/osx-0.25.1-10.11 - Attempt to build using MACOSX_DEPLOYMENT_TARGET=10.11): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/398165356
early has quit [Quit: Leaving]
early has joined #crystal-lang
lvmbdv has quit [Quit: Leaving.]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 265 seconds]
greengriminal has joined #crystal-lang
<FromGitter> <vectorselector> i'm kinda losing my mind here... how is one supposed to check for nil if not_nil! assert fails?
<FromGitter> <vectorselector> for example array(JSON::Any) | Nil and i only want the docs if they are not nil
rohitpaulk has joined #crystal-lang
<RX14> @trans you can name the repo whatever you want, but the name inside the shards.yml is the require name
<RX14> @trans if you had src/cli.cr with name: crystal-cli in the shard.yml, wou could require "crystal-cli/cli"
<RX14> but if you changed the shards name you could just require "cli"
bazaar has quit [Ping timeout: 260 seconds]
bazaar has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter> <vectorselector> rather, i see that [field]?.try is suggested, but i'm not sure what it wants inside the block, as i have a sequence of statements to make if the value exists, and i've only used blocks with map and other enumerable/iterator kind of things where one has {|thing| thing["field"] == "bob"} or something
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
rohitpaulk has joined #crystal-lang
alex`` has joined #crystal-lang
duane has quit [Ping timeout: 248 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
duane has joined #crystal-lang
jeet has joined #crystal-lang
<FromGitter> <plainas> hey everyone... does anyone know if this is usable? https://github.com/drujensen/h5cr
<FromGitter> <plainas> or if there are alternatives for HDF5 files in crystal?
rohitpaulk has quit [Ping timeout: 256 seconds]
<FromGitter> <fridgerator> I would ask @drujensen
<FromGitter> <fridgerator> I wrote a netcdf lib, not the same as hdf5 though
<FromGitter> <j8r> @vectorselector you have to find from where the nil come
<FromGitter> <trans> @RX14 Ah.... that's the trick. Thank you!!!
greengriminal has joined #crystal-lang
<FromGitter> <cserb> Is `crystal tools implementations` still developed? It's not working for me for very simple use cases
<FromGitter> <cserb> I have something like this ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b363a19b9c2fb2557163329]
<FromGitter> <cserb> and it's not able to jump um to the definition of bar
<FromGitter> <cserb> I also tried it in the console and it doesn't find the definition
<FromGitter> <plainas> @fridgerator does he hang out in this chatroom?
<FromGitter> <giuseongit> Hi, what's the difference between a crystal library and a crystal project? I can't find it on the docs :C
<FromGitter> <fridgerator> @plainas yeah sometimes, but from looking at the code it looks like its mostly just the c lib definition and not helper / wrapper functions
<FromGitter> <fridgerator> last commit was in January so he may not be actively working on it
<FromGitter> <j8r> @giuseongit what do you mean?
<FromGitter> <vectorselector> @j8r thank you for your response and help, any additional advice appreciated of course :)
<crystal-gh> [crystal] asterite opened pull request #6292: Don't find unbound type parameter in main code inside generic type (master...bug/6168-dont-find-generic-type-parameter-in-main) https://git.io/f4NKb
<FromGitter> <giuseongit> @j8r in the docs (https://crystal-lang.org/docs/using_the_compiler/) there's a paragraph titled 'Creating a project or library'. Also, in the help for the `crystal init` command there's a `TYPE` that could be `app` or `lib`. What are the differences between the two?
<FromGitter> <asterite> @cserb spawn is a macro and `bar` is just an identifier being passed to it, there's no way to relate that to the method (that means, crystal tool implementations will never work for such case)
<FromGitter> <asterite> @giuseongit I think the only difference is that shards.lock gets to be in .gitignore in one case and not in the other (I can't remember which one)
<FromGitter> <cserb> @asterite I also have something like this: ⏎ ⏎ ```class Foo ⏎ def self.bar ⏎ ...``` [https://gitter.im/crystal-lang/crystal?at=5b363dc9b086c90e8d02105a]
<FromGitter> <cserb> also doesn't fint bar
<FromGitter> <asterite> That works for me
<FromGitter> <asterite> Remove `...`
<FromGitter> <asterite> I pass this: `crystal tool implementations bar.cr -c bar.cr:6:6`
<FromGitter> <asterite> ```1 implementation found ⏎ /Users/asterite/Projects/crystal/bar.cr:2:3``` [https://gitter.im/crystal-lang/crystal?at=5b363ef3be98b1422413c7f5]
<FromGitter> <cserb> sorry, true it works
<FromGitter> <cserb> but not if it is in a required file
<FromGitter> <cserb> if `class Foo` comes from a required file it's not working
<FromGitter> <cserb> wrong again... sorry
<FromGitter> <cserb> I must have messed up something before
<FromGitter> <cserb> this works
<FromGitter> <asterite> 🎉
<crystal-gh> [crystal] AlexWayfer opened pull request #6293: Add Indexable#fetch (master...stdlib/add/Indexable#fetch) https://git.io/f4Ni8
<FromGitter> <yxhuvud> well, the argument must be a file that actually require the implementation. the ui for that is not totally obvious
jeet has quit [Ping timeout: 265 seconds]
<FromGitter> <jspillers> hey creators, just wanted to say I am super excited about crystal! I fell in love with Ruby over 10 years ago and the excitement of using crystal reminds me of those early days. This team seems to have really nailed the balance of dev friendliness and performance. I think crystal has a super bright future - keep it up!
jeet has joined #crystal-lang
<FromGitter> <hmans> Congratulations on the 0.25.1 release! \o/
<FromGitter> <reiswindy> @giuseongit Also, when creating an app, a "target" gets added to your shards.yml (libs don't have this): ⏎ ⏎ ```targets: ⏎ your_app: ⏎ main: src/your_app.cr``` [https://gitter.im/crystal-lang/crystal?at=5b3647ddbe98b1422413e411]
emilsp has quit [Ping timeout: 612 seconds]
emilsp has joined #crystal-lang
<FromGitter> <codenoid> hi
<FromGitter> <codenoid> how to encrypt a file with crystal
<FromGitter> <j8r> how? symetric, asymetric? You can use `LibCrypto`
<FromGitter> <codenoid> symetric
<FromGitter> <codenoid> for decrypt too
<FromGitter> <j8r> read the file, encrypt the string, then write
<FromGitter> <codenoid> yeah
<FromGitter> <j8r> You can use SHA2, or SHA3 if available
<FromGitter> <codenoid> read the file, decrypt, then write
<FromGitter> <j8r> Or if this is passwords, bcrypt or even better, argon2 (there is https://github.com/abidon/libargon2.cr but haven't tested)
<FromGitter> <j8r> wait sorry `libcrypto` is the low level API
<crystal-gh> [crystal] asterite opened pull request #6295: Fix: rebind while condition variables after while body (master...bug/6158-while-rebind-cond-var-after-body) https://git.io/f4NSD
<FromGitter> <j8r> and not sha256, better to use `aes256` that is perfectly fitted
<crystal-gh> [crystal] AlexWayfer closed pull request #6293: Add Indexable#fetch (master...stdlib/add/Indexable#fetch) https://git.io/f4Ni8
<crystal-gh> [crystal] AlexWayfer opened pull request #6296: Replace `Indexable#at` with `#fetch` (master...stdlib/replace/Indexable#at/#fetch) https://git.io/f4N9n
<FromGitter> <vladfaust> Hey @faustinoaq you recently got so much drive for Sublime-Crystal, come on, there are a few PRs left ✋
<FromGitter> <fridgerator> @jspillers I also got the same excitement, and have heard others describe this same feeling as well 👍 🔥
<FromGitter> <jspillers> yeah Ruby is always my go to "get stuff done quick" language and crystal already feels equally immediate and efficient - oh and its about 90000000000000X faster? soon i will have no reason to use Ruby and every reason to just use crystal
<FromGitter> <j8r> Furthermore you have the static typing safety net
<FromGitter> <jspillers> absolutely love that
<FromGitter> <jspillers> didn't used to, but i have really come to see its value
<FromGitter> <j8r> Good Bye to all this runtime type errors 😄
<FromGitter> <jspillers> catch em early, catch em often
<crystal-gh> [crystal] Sija opened pull request #6297: Remove :nodoc: from singular method aliases, add Int#microsecond alias (master...singular-aliases) https://git.io/f4N7C
<FromGitter> <codenoid> i'm confused to use bcrypt in crystal :(
<FromGitter> <bcardiff> FYI I'm doing some test in CircleCI, you might see some OSX jobs cancelled for an hour or so.
fifr[m] has quit [*.net *.split]
Liothen has quit [*.net *.split]
Totoro has quit [*.net *.split]
greengriminal has quit [Ping timeout: 255 seconds]
greengriminal has joined #crystal-lang
graphene has joined #crystal-lang
graphene has quit [Remote host closed the connection]
Liothen has joined #crystal-lang
fifr[m] has joined #crystal-lang
Totoro has joined #crystal-lang
alex`` has quit [Quit: WeeChat 2.1]
graphene has joined #crystal-lang
Liothen has quit [Max SendQ exceeded]
Liothen has joined #crystal-lang
Liothen has joined #crystal-lang
graphene has quit [Remote host closed the connection]
graphene has joined #crystal-lang
cptaffe has quit [Ping timeout: 240 seconds]
olbat[m] has quit [Ping timeout: 245 seconds]
fifr[m] has quit [Ping timeout: 240 seconds]
kp666[m] has quit [Ping timeout: 240 seconds]
byteflame has quit [Ping timeout: 260 seconds]
f1refly has quit [Ping timeout: 240 seconds]
Renich has quit [Ping timeout: 255 seconds]
braidn[m] has quit [Ping timeout: 247 seconds]
kixune[m] has quit [Ping timeout: 256 seconds]
graphene has quit [Remote host closed the connection]
f1refly has joined #crystal-lang
<travis-ci> crystal-lang/crystal#0808ce0 (ci/osx-0.25.1-10.11 - Force MACOSX_DEPLOYMENT_TARGET in distribution-scripts): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/398308901
alex`` has joined #crystal-lang
snsei has quit [Ping timeout: 256 seconds]
graphene has joined #crystal-lang
graphene has quit [Remote host closed the connection]
graphene has joined #crystal-lang
graphene has quit [Remote host closed the connection]
graphene has joined #crystal-lang
graphene has quit [Remote host closed the connection]
graphene has joined #crystal-lang
wontruefree has joined #crystal-lang
graphene has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#f86c9b9 (ci/osx-0.25.1-10.11 - Attempt libevent configured with --disable-clock-gettime): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/398317454
mfurkandemir has joined #crystal-lang
graphene has joined #crystal-lang
graphene has quit [Remote host closed the connection]
olbat[m] has joined #crystal-lang
graphene has joined #crystal-lang
graphene has quit [Remote host closed the connection]
graphene has joined #crystal-lang
graphene has quit [Remote host closed the connection]
graphene has joined #crystal-lang
graphene has quit [Remote host closed the connection]
wontruefree has quit [Quit: bye]
duane has quit [Ping timeout: 256 seconds]
duane has joined #crystal-lang
<crystal-gh> [crystal] sdogruyol closed pull request #6282: Correctly parse \A (and others) inside %r{...} inside macros (master...bug/6180-regex-inside-macro) https://git.io/f4dNS
wontruefree has joined #crystal-lang
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/f4Nha
<crystal-gh> crystal/master 3696bb1 Felix Bünemann: Extend XML::Reader with more LibXML methods (#5740)...
byteflame has joined #crystal-lang
Renich has joined #crystal-lang
fifr[m] has joined #crystal-lang
cptaffe has joined #crystal-lang
braidn[m] has joined #crystal-lang
kp666[m] has joined #crystal-lang
kixune[m] has joined #crystal-lang
snsei has joined #crystal-lang
<FromGitter> <sdogruyol> @jspillers thanks a lot for the motivation 👍
<travis-ci> crystal-lang/crystal#89b3867 (master - Correctly parse \A (and others) inside %r{...} inside macros (#6282)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/398350349
<DeBot> https://github.com/crystal-lang/crystal/pull/6282 (Correctly parse \A (and others) inside %r{...} inside macros)
<travis-ci> crystal-lang/crystal#3696bb1 (master - Extend XML::Reader with more LibXML methods (#5740)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/398350844
<DeBot> https://github.com/crystal-lang/crystal/pull/5740 (Extend XML::Reader with more LibXML methods)
greengriminal has quit [Quit: This computer has gone to sleep]
zachk has joined #crystal-lang
zachk has joined #crystal-lang
greengriminal has joined #crystal-lang
snsei has quit [Ping timeout: 245 seconds]
<FromGitter> <bendietze_twitter> Oh, half day not online ... 0.25.1 ?? 😁🎉
snsei has joined #crystal-lang
<FromGitter> <fridgerator> Bazinga
<FromGitter> <bendietze_twitter> @jspillers 90000000000000X 😁😁
alex`` has quit [Quit: WeeChat 2.1]
<FromGitter> <bendietze_twitter> 🚀
alex`` has joined #crystal-lang
<FromGitter> <sdogruyol> it's over 9000 :metal:
<FromGitter> <rishavs> Hi guys. I am trying to implement a bare bone router. How can I implement a redirect function ? any ideas? While i can simply render the new page, the url in the addressbar remains unchanged.
<FromGitter> <fridgerator> lookat how others do it
<FromGitter> <rishavs> i am actually checking out that very page right now.
<FromGitter> <paulcsmith> @RX14 Nice comments on the hacker news thread. Really appreciate your positive and thorough responses
<FromGitter> <paulcsmith> Also excited to try out static linking with Alpine. That could be pretty dang cool
<robacarp> Warning: Bottle installation failed: building from source.
<robacarp> github must be having troubles today
<FromGitter> <jspillers> must have moved their servers to azure 😄
<FromGitter> <rishavs> I am not really able to grasp it. @sdogruyol is just setting a new header "location" and then setting up the status code. How is that driving the redirect? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b368e50960fcd4eb92ee1e9]
<FromGitter> <paulcsmith> @jwoertink Wrote a great article on moving from Ruby to Crystal https://dev.to/jwoertink/my-journey-in-to-crystal-from-ruby-3bmm
<robacarp> @paulcsmith what's crystal-loot? I think I missed the discussion about that
<FromGitter> <asterite> @rishavs redirect response code should be 302, not 200
<FromGitter> <asterite> @rishavs check this: https://tools.ietf.org/html/rfc2616#section-10.3.3
<FromGitter> <rishavs> Damn, that worked! thanks @asterite
<FromGitter> <rishavs> We take so much as granted when we use frameworks. I never even knew that 302 allows for a redirect. IN the last 3-4 days I have learned so much.
<FromGitter> <fridgerator> 👍
<FromGitter> <paulcsmith> @robacarp It's a place where Amber/Lucky will be putting libs that can be shared :) I decided to extract some work @faustinoaq so it could be used by Lucky and others
<FromGitter> <paulcsmith> We're also going to work together to come up with a comparison of the frameworks to help people decide which one they'd like to try: https://github.com/crystal-loot/web-framework-comparison/issues/1 is the start of that discussion
<robacarp> oh, I did see this conversation a couple days ago. Stuff was flying past very quickly
<FromGitter> <asterite> wow: https://github.com/crystal-loot/exception_page . It's amazing how much all of you are doing with Crystal!
<robacarp> I'm confused, didn't `require "./**/*"` used to work
ua_ has joined #crystal-lang
<FromGitter> <asterite> I don't think so, `*` or `**` are only allowed at the end of a require string
ua has quit [Ping timeout: 260 seconds]
<robacarp> even require "./**" complains, I guess you can't target cwd with the glob
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal has joined #crystal-lang
greengriminal has quit [Client Quit]
greengriminal has joined #crystal-lang
wontruef_ has joined #crystal-lang
wontruefree has quit [Ping timeout: 245 seconds]
<FromGitter> <adamgotterer_twitter> Is there an easy way to access the request object from inside a websocket handler? I can't find an obvious way other then to write my own handler.
<FromGitter> <j8r> Why there is `lchop`/`rchop` for `String`, and `shift`/`pop` for `Array`?
Jenz has joined #crystal-lang
<Jenz> Where should I read if I am interested in the low-level elements of Crystal?
<FromGitter> <adamgotterer_twitter> And I just figured it out! handler = HTTP::WebSocketHandler.new do |socket, context|
<robacarp> @j8r I don't understand the question
<robacarp> Jenz: it depends on which low level elements
<Jenz> Stack and such
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/f4As6
<crystal-gh> crystal/master bfd9e6d joshua stein: Spec: silence errors from system_spec on BSD platforms (#6289)
<Jenz> Please tag me if anyone knows
<Jenz> And why is there no macro: `LibNode` or similar
<Jenz> I mean of course macro types not 'macro', i.e. ASTNodes
greengriminal has quit [Quit: This computer has gone to sleep]
<FromGitter> <sam0x17> has anyone attempted to get crystal binaries to run in some capacity on android and/or IOS via NDK etc? I know there is ARM support so this should be theoretically possible right?
duane has quit [Ping timeout: 276 seconds]
<travis-ci> crystal-lang/crystal#bfd9e6d (master - Spec: silence errors from system_spec on BSD platforms (#6289)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/398415691
<DeBot> https://github.com/crystal-lang/crystal/pull/6289 (Spec: silence errors from system_spec on BSD platforms)
lvmbdv has joined #crystal-lang
<FromGitter> <asterite> https://github.com/ysbaddaden/java.cr and https://github.com/ysbaddaden/android.cr (probably just proof of concepts)
greengriminal has joined #crystal-lang
<Jenz> There's some really nice crystal PoCs
<FromGitter> <sam0x17> thanks!
<FromGitter> <confact> Any easy way to check if a string includes any string in a array of strings without || or loop?
<oprypin> Enumerable#any?
<FromGitter> <confact> ah, thanks. Didn't find any :)
<FromGitter> <confact> I feel stupid. thanks.
Jenz has quit [Quit: Lost terminal]
wontruef_ has quit [Quit: bye]
cyberarm has quit [Ping timeout: 260 seconds]
wontruefree has joined #crystal-lang
<FromGitter> <j8r> @robacarp pop & shift and rchop & lchop does more or less the same, cut the first/last value
<FromGitter> <robacarp> Right, but are you asking why these methods exist?
<Groogy> hmmm
<Groogy> is there an upper cap on how much memory a slice can allocate? I am loading the pixels from an image and it seems to be too big for it?
<Groogy> 7405568 bytes doesn't seem like that much though, it's not that big of an image, it's only 512x452 pixels big
<Groogy> yeah seems to be something inside slice that breaks if it needs to copy too much from another pointer
<Groogy> if I just size down the picture it works perfectly fine
wontruefree has quit [Quit: bye]
wontruefree has joined #crystal-lang
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/f4A4q
<crystal-gh> crystal/master 2bbf72f Ary Borenszweig: Don't find unbound type parameter in main code inside generic type (#6292)
wontruefree has quit [Quit: bye]
<Groogy> aaaand now it works? must been something wonky with how gimp saved the image
cyberarm has joined #crystal-lang
<FromGitter> <confact> Does it exist an library for action cable client for rails in crystal?
duane has joined #crystal-lang
<travis-ci> crystal-lang/crystal#2bbf72f (master - Don't find unbound type parameter in main code inside generic type (#6292)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/398450379
<DeBot> https://github.com/crystal-lang/crystal/pull/6292 (Don't find unbound type parameter in main code inside generic type)
greengriminal has quit [Quit: This computer has gone to sleep]