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
<FromGitter> <ImAHopelessDev_gitlab> what am i looking at
<FromGitter> <ImAHopelessDev_gitlab> tfw you code in crystal for years, look at its source and like WTF
<raz> holy ravioli, youtube is down
<oprypin> ye
<FromGitter> <ImAHopelessDev_gitlab> up 4 me
<FromGitter> <Daniel-Worrall> well it's a global service and it's down in many places in the UK so
<FromGitter> <ImAHopelessDev_gitlab> back to soundcloud it is then
<raz> yup it's up again. twitter is funny tho (#youtubedown made it to top-tag immediately, that's like 100 tweets per second)
<FromGitter> <ImAHopelessDev_gitlab> i want to live in a perfect world w/o yt or twitter
<raz> i like youtube. twitter... i only go there when youtube is down lol
davic has quit [Ping timeout: 246 seconds]
davic has joined #crystal-lang
<FromGitter> <ImAHopelessDev_gitlab> i tried twitter in the game dev and programming communities, def not for me. i'm against the circle jerk and do not fit in at all
alexherbo20 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 244 seconds]
alexherbo20 is now known as alexherbo2
Human_G33k has quit [Quit: Leaving]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 264 seconds]
chachasmooth has quit [Ping timeout: 260 seconds]
chachasmooth has joined #crystal-lang
chachasmooth has quit [Ping timeout: 265 seconds]
chachasmooth has joined #crystal-lang
avane has quit [Quit: ZNC - https://znc.in]
avane has joined #crystal-lang
alexherbo2 has quit [Remote host closed the connection]
Elouin1 is now known as Elouin
Dreamer3 has joined #crystal-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
yukai has quit [Ping timeout: 246 seconds]
f1reflyylmao has quit [Ping timeout: 260 seconds]
f1refly has joined #crystal-lang
early has quit [Quit: Leaving]
early has joined #crystal-lang
<frojnd> What should I do... I thought I could use this shard: https://github.com/PlaceOS/google/issues/11 in order to easily use google translate cloud. As it turns out this shard presumes I also have G-suite business account which is paid... So another option is to authenticate with oauth2 but google suggest to use their official clients
<frojnd> Google cloud translate is also paid, but I will pay like 2$/month at most...
<frojnd> So either I try to reqrite ruby client or I learn how to use oauth 2 with google cloud translate
ua has quit [Ping timeout: 265 seconds]
ua has joined #crystal-lang
<frojnd> And since google ruby is very big and I would have to port all these clients I think I'm stuck with oauth2 implementation
teardown has quit [Ping timeout: 240 seconds]
teardown has joined #crystal-lang
Xeago has quit [Ping timeout: 240 seconds]
Xeago has joined #crystal-lang
<frojnd> However I can just write a bash script with a few lines and call it a day since this is gonna be called only once per day
<FromGitter> <naqvis> +1 for bash script, as needn't to make things that complex for task which will get executed once a day :P
<raz> bash script + jenkins. the backbone of every company
<frojnd> Authentication with google is really hard not sure how I will transfer this to a server. When running gcloud (from command line) It opened my browser so I had to authenticate with my gmail account
chloekek has joined #crystal-lang
chloekek has left #crystal-lang [#crystal-lang]
chloekek has joined #crystal-lang
<FromGitter> <wontruefree> what is the best way to run 1 spec file in the main crystal repo?
<FromGitter> <Blacksmoke16> `./bin/crystal spec spec/path/to/spec/file.cr`
<raz> frojnd: google translate is not very good anyway. have you looked at the deepl api? (might yield better results and be easier to integrate on top)
alexherbo2 has joined #crystal-lang
alexherbo2 has quit [Client Quit]
<FromGitter> <wontruefree> thanks @Blacksmoke16
<FromGitter> <j8r> raz +1 for Deepl
<FromGitter> <j8r> not Google is a plus :)
Dreamer3 has quit [Quit: Leaving...]
<FromGitter> <melopee> Hey, I am new to crystal
<FromGitter> <Blacksmoke16> o/
<FromGitter> <melopee> quick question about the `crystal` command (the compiler): is it normal that some options for the subcommand `run` do not behave the same whether `run` is explicit or not?
<FromGitter> <melopee> the exemple I run into is:
<FromGitter> <melopee> ~$ crystal hello.cr -o hello ⏎ Hello ⏎ ~$ ls ⏎ hello.cr ⏎ ~$ crystal run hello.cr -o hello ... [https://gitter.im/crystal-lang/crystal?at=5fad9f46bf955735eb76a57e]
<FromGitter> <Blacksmoke16> :thinking:
<FromGitter> <melopee> where there is just 'puts "Hello"' in hello.cr
<FromGitter> <Blacksmoke16> what are you trying to do exactly tho? just run that file, or build a binary based on that file?
<FromGitter> <melopee> I want to run the file, and output the binary with -o
<FromGitter> <Blacksmoke16> `crystal build hello.cr`
<FromGitter> <Blacksmoke16> wait, run and build the file at the same time?
<FromGitter> <melopee> thanks, I know `build`, I was just pointing this inconsistency
<FromGitter> <Blacksmoke16> prob an edge case in handling non `run` based args? :shrug:
<FromGitter> <melopee> if `run` is the default, the two commands that I have used should be equivalent, shouldn't they?
<FromGitter> <Blacksmoke16> looks like they differ slightly, sec
<FromGitter> <Blacksmoke16> https://github.com/crystal-lang/crystal/pull/9171 prob related
<FromGitter> <melopee> yeah this is the same, without run, every argument after the first file is passed to the program, not the compiler
<FromGitter> <melopee> $ echo 'puts ARGV[0]; puts ARGV[1]' > hello.cr ⏎ $ crystal hello.cr -o hello ⏎ -o ⏎ hello ⏎ $ [https://gitter.im/crystal-lang/crystal?at=5fada3f28d286f2076a6a5da]
DTZUZU has quit [Ping timeout: 264 seconds]
<FromGitter> <Blacksmoke16> rgr
<FromGitter> <j8r> this `crystal` command is not that great
<FromGitter> <j8r> if you have a file named `run` or `build`... great
<FromGitter> <j8r> this command has no point. If one want a shortband, just create an alias
DTZUZU has joined #crystal-lang
<straight-shoota> @melopee Arguments to `run` command need to be passed *before* the filename. Everything *after* the filename is passed to the program. `man crystal`
<straight-shoota> @j8r Yeah, if a file conflicts with a command, you have to use `crystal run` explicitly. I don't think that's a huge issue.
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
<FromGitter> <j8r> probably not, just find that having only way here will be less confusing. There is one command superior, more documented with more feature than the other
<FromGitter> <j8r> just to "save" 4 chars ` run`... :shrug:
yukai has joined #crystal-lang
Andriamanitra has quit [Ping timeout: 260 seconds]
chloekek has quit [Remote host closed the connection]
<FromGitter> <ImAHopelessDev_gitlab> @melopee welcome!!
<FromGitter> <ImAHopelessDev_gitlab> @melopee how are you liking crystal?
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang