jhass changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Crystal 0.35.1 | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
<oprypin> renich, i dont see any ARGF in the example
<renich> oprypin: You mean I should've given some arg somewhere?... hmm..
<oprypin> renich, nono im jsut surprised why it pops up
<renich> ah, OK.
<oprypin> renich, i *think* it's quite simply that the request doesnt have to have a body
<renich> I was trying to follow this: https://veelenga.github.io/slack-bot-in-crystal/
<renich> oprypin: OK. I'll check that one out.
<oprypin> renich, the type of `body` is `IO | Nil`, why are you performing ["text"] on that
<oprypin> i think this blog post is too old
<renich> oprypin: updated on June 8th
<oprypin> what is going on let me try
<renich> Thanks! ;D
<renich> oprypin: btw, use kemal's master branch, please.
<renich> Otherwise, you will run into the gzip issue
<oprypin> renich, no i have no idea whats going on and what that blog post wants
<renich> oprypin: well, basically, to create a bot for Slack. I just wanted to get the example working... but thank you for looking into it. :D
<renich> oprypin: oh!
<oprypin> what i dont undeerstand is where the recommendation of that blog post came from. i cant find anything remotely similar
<renich> OK, this kind of worked: https://paste.centos.org/view/aa973a3c
<renich> oprypin: I was using keen (staykeen.com) and it found that article for me.
<renich> oprypin: https://staykeen.com/keen/78VRpnaFr7jiwAY0KGTb <- You're there too :D
<renich> And this worked: https://paste.centos.org/view/9d5df057
<renich> OK, example conquered. Man, thanks a lot oprypin.
Elouin7 has joined #crystal-lang
Elouin has quit [Ping timeout: 240 seconds]
Elouin7 is now known as Elouin
<oprypin> renich, aha you understood it! i couldn't. env.params instead of env.request, then
<oprypin> will you comment on the blog post?
_whitelogger has joined #crystal-lang
HumanG33k has joined #crystal-lang
Human_G33k has joined #crystal-lang
Human_G33k has quit [Remote host closed the connection]
HumanG33k has quit [Remote host closed the connection]
Human_G33k has joined #crystal-lang
HumanG33k has joined #crystal-lang
<FromGitter> <grkek> Kemal seems to be not maintained anymore, one would seek out an alternative :)
chachasmooth has quit [Ping timeout: 265 seconds]
chachasmooth has joined #crystal-lang
f1refly has quit [Ping timeout: 244 seconds]
f1refly has joined #crystal-lang
<renich> oprypin: yeah, definitely. I just need to figure out where to paste the solution.
<renich> oprypin: done. Comment added.
avane has quit [Quit: ZNC - https://znc.in]
<renich> hehehe... got marked as SPAM... too many links...
avane has joined #crystal-lang
Liothen has quit [Ping timeout: 244 seconds]
Liothen has joined #crystal-lang
<FromGitter> <vprelovac_gitlab> Hello Crystal community. We are looking for capable and passionate Crystal developers to join a project full time. More information here: https://hackmd.io/@z64/S1nmUmFHD
<FromGitter> <bararchy> @vprelovac_gitlab 🎉 good to see more companies actively hiring crystal devs :)
renich has quit [Quit: Leaving.]
<FromGitter> <vprelovac_gitlab> Thanks, we strongly believe in Crystal and its exciting to write a large scale web application using it :)
<jhass> Blacksmoke16: with run any data passing has to be explicit via arguments and any invocation has to be explicit through some kind of macro call. "I want all of the user code" is a design requiremnt I would get rid of for this approach
deavmi has quit [Quit: Eish! Load shedding.]
deavmi has joined #crystal-lang
yukai has quit [Ping timeout: 246 seconds]
zorp_ has joined #crystal-lang
zorp has quit [Ping timeout: 256 seconds]
<sorcus> Mmm... Job for a crystal devs. Wow. Sad i'm not so good in crystal :-D
deimos_ has quit [Ping timeout: 246 seconds]
deavmi has quit [Remote host closed the connection]
deavmi has joined #crystal-lang
<FromGitter> <Blacksmoke16> jhass: I mean i need their code so that i know what types are annotated and should be added to the container
<FromGitter> <Blacksmoke16> i dont think theres a way around it, not like i can pass that data to the run script
<FromGitter> <Blacksmoke16> so I guess ill just have to wait for the custom macro methods
<jhass> Why can't you pass that data to the run script?
<jhass> just generate a json string or whatever using macros
<jhass> and pass it as an argument
<FromGitter> <Blacksmoke16> because then you lose the ability to also access the dependencies of them
<FromGitter> <j8r> Is there a Tuple literal, like `%w(one two three)`?
<FromGitter> <Blacksmoke16> i suppose i could build out some obj that represents the types, args, etc then pass that as JSON to the run script to deserialize it then do more processing
<FromGitter> <Blacksmoke16> but i dont see that being easy given there isnt a like `.to_json` method in macro land...
<FromGitter> <Blacksmoke16> @j8r not that i know of
<FromGitter> <Blacksmoke16> i still think ideally the `run` script would inherit the scope of the caller
<FromGitter> <Blacksmoke16> then you have access to everything the run call does, without getting into infinite loops
<jhass> I think you're under a misconception of what run does
<jhass> it just compiles the program and inserts it stdout as code
<jhass> what you're suggesting is like a 100x fold increase to its complexity
<FromGitter> <Blacksmoke16> probably, either way idt its the best solution for my use case
<jhass> maybe it could make sense to have something like java annotation processors, some tool that's basically the parser part of the compiler and spits you out the AST with handy query methods for annotations and what not
<jhass> could be build externally to the crystal compiler
<jhass> let's not bloat it for every ever so complex usecase somebody might wanna do
<FromGitter> <Blacksmoke16> yea im all for having some thing more flexible/independent
<FromGitter> <Blacksmoke16> prob just going to punt on this for now and revisit in the future when/if some new lang features get added
<jhass> "I agree to not making the compiler more complex. I'm going to revisit this once the compiler was made more complex." sometimes...
<FromGitter> <Blacksmoke16> :S
v2px__ has joined #crystal-lang
zorp_ has quit [Ping timeout: 246 seconds]
zorp has joined #crystal-lang
v2px__ has quit [Ping timeout: 264 seconds]
yxhuvud has quit [Ping timeout: 260 seconds]
yxhuvud has joined #crystal-lang
<FromGitter> <naqvis> don't know what is causing crystal compiler to not be happy with openssl on my machine ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f905c6298a7774f1b5964a0]
<FromGitter> <naqvis> I followed comments/suggestions in https://github.com/crystal-lang/crystal/issues/9477 but no gain
<FromGitter> <naqvis> reinstalled openssl and crystal via homebrew
<FromGitter> <naqvis> voila, seems setting environment variables doesn't work
<FromGitter> <naqvis> had to create sym links to `libssl` and `libcrypto` in `/usr/local/lib`
<FromGitter> <naqvis> for those who might encounter this issue, here is what i did: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f9065daeb82301c1a3dd3b7]
<FromGitter> <naqvis> and this fixed the problem
oprypin has quit [Read error: Connection reset by peer]
FromGitter has quit [Read error: Connection reset by peer]
oprypin_ has joined #crystal-lang
FromGitter has joined #crystal-lang
zorp has quit [Ping timeout: 272 seconds]
HumanG33k has quit [Ping timeout: 272 seconds]
Human_G33k has quit [Ping timeout: 272 seconds]
Human_G33k has joined #crystal-lang
HumanG33k has joined #crystal-lang
yukai has joined #crystal-lang
Seich has quit [Ping timeout: 260 seconds]
antoszka has quit [Ping timeout: 246 seconds]
antoszka has joined #crystal-lang