ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.24.2 | 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
learod has quit [Ping timeout: 240 seconds]
learod_ has quit [Remote host closed the connection]
learod has joined #crystal-lang
learod has quit [Remote host closed the connection]
learod has joined #crystal-lang
learod has quit [Remote host closed the connection]
learod has joined #crystal-lang
learod has quit [Ping timeout: 240 seconds]
<FromGitter> <Blacksmoke16> @robacarp Will do, prob this weekend ill start messing with it
<FromGitter> <Blacksmoke16> current only thing from making it perfect for atm so far (from just looking at docs and stuff) is a way of throttling the jobs, which i added a feature request for, so see what happens
<FromGitter> <Blacksmoke16> prob figure out a hacky way to do it as a workaround for now
<FromGitter> <Blacksmoke16> depending on how that goes maybe make a PR for it
learod has joined #crystal-lang
learod has quit [Remote host closed the connection]
learod has joined #crystal-lang
learod has quit [Remote host closed the connection]
learod has joined #crystal-lang
learod has quit [Remote host closed the connection]
learod has joined #crystal-lang
learod has quit [Remote host closed the connection]
duane has joined #crystal-lang
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ab4768635dd17022e8eae43]
<FromGitter> <Blacksmoke16> i think i did something wrong...
<FromGitter> <Blacksmoke16> update jennifer and got new error so progress?
malcontentlout[m has joined #crystal-lang
malcontentlout[m has left #crystal-lang [#crystal-lang]
early has quit [Quit: Leaving]
early has joined #crystal-lang
marius has quit [Quit: Ping timeout (120 seconds)]
marius has joined #crystal-lang
That_Guy_Anon has joined #crystal-lang
gewo has joined #crystal-lang
alex`` has joined #crystal-lang
That_Guy_Anon has quit [Remote host closed the connection]
Groogy has quit [Disconnected by services]
Groogy_ is now known as GRoogy
GRoogy is now known as Groogy
<Groogy> Morning! o/
Groogy2 has joined #crystal-lang
<Groogy> @straight-shoota what I wanted is to just print the 32bit unicode to try and compress the data :/
<Groogy> i.e from 12234567 to some weird character
<Groogy> essentially writing a binary string, couldn't find a way to do it currently in Crystal :/
<FromGitter> <unn4m3d> `String::Builder#write_bytes` ?
<FromGitter> <unn4m3d> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ab4bd95fa066c5325610e04]
<FromGitter> <unn4m3d> for example
<Groogy> can try that when I get home
Ven`` has joined #crystal-lang
Papierkorb has joined #crystal-lang
DTZUZO has quit [Ping timeout: 246 seconds]
Papierkorb has left #crystal-lang ["Konversation terminated!"]
<FromGitter> <straight-shoota> Yeah, write_bytes ist probably what your looking for
<FromGitter> <straight-shoota> If you have the data already as bytes, you can also create a string from a slice
<Groogy> Yeah encoded teerain type to an int and then a height point for the height map as float64
<Groogy> so just need to write those down
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duane has quit [Ping timeout: 260 seconds]
duane has joined #crystal-lang
<FromGitter> <r00ster91> ```code paste, see link``` ⏎ ⏎ `Methods.method = 12` would work and put out `12` ⏎ but `Methods.othermethod = 1, 50, 12` errors [https://gitter.im/crystal-lang/crystal?at=5ab4f3d235dd17022e90bffe]
<Groogy> the = syntax only allow one argument
<FromGitter> <r00ster91> oh
shalmezad has joined #crystal-lang
snapcase has joined #crystal-lang
Ven`` has joined #crystal-lang
<crystal-gh> [crystal] MakeNowJust opened pull request #5855: Format: fix formatting call having trailing comma with block (master...fix/crystal-format/5853-call-trailing-comma-block) https://git.io/vx4TG
DTZUZO has joined #crystal-lang
<FromGitter> <jlebray> probably because we can do things like `a, b = 1, 2`
<FromGitter> <straight-shoota> when using multiple arguments you need to put them un parenthesis: `Methods.othermethod=(1, 50, 12)`
<FromGitter> <r00ster91> no that doesnt works. It gives `unterminated parenthesized expression`
<FromGitter> <straight-shoota> hm, that's odd than
<FromGitter> <straight-shoota> *then
<FromGitter> <philfine> Hi everyone
<RX14> hi
<FromGitter> <philfine> Porting soemthing from ruby ... any idea if there is already a replacement for RACC ?
<FromGitter> <philfine> What is $stderr in crystal ?
<FromGitter> <philfine> File.open("/dev/stderr", "w") ?
<z64> STDERR constant
<FromGitter> <philfine> Thanks
<crystal-gh> [crystal] RX14 closed pull request #5737: Fix parser block arg newline (master...fix-parser-block-arg-newline) https://git.io/vAzGs
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei_ has joined #crystal-lang
snsei has quit [Ping timeout: 246 seconds]
t0nyandre has joined #crystal-lang
snsei_ has quit [Remote host closed the connection]
snsei has joined #crystal-lang
learod has joined #crystal-lang
<crystal-gh> [crystal] ysbaddaden opened pull request #5857: Pedantic & controversial: rewrite/remove explicit nils (master...pedantic-drop-explicit-nils-as-noise) https://git.io/vx4lO
learod has quit [Remote host closed the connection]
snsei has quit [Remote host closed the connection]
<FromGitter> <Jens0512> Can someone give a short explanation of what ARGF is?
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
<crystal-gh> [crystal] Sija opened pull request #5858: Unify #inspect outut formatting in several places (master...unify-inspect-in-structs) https://git.io/vx4EI
<FromGitter> <r00ster91> ARGF contains the arguments that you have specified behind `crystal yourfile.cr` ⏎ for example when you do `crystal yourfile.cr wewiiii9 uuui` ⏎ then ARGF will be `"wewiiii9 uuui"`
snsei has quit [Ping timeout: 276 seconds]
<FromGitter> <Jens0512> Then whats the difference between `ARGF` and `ARGV`?
learod has joined #crystal-lang
learod has quit [Remote host closed the connection]
<FromGitter> <r00ster91> hmm im not sure
learod has joined #crystal-lang
<FromGitter> <r00ster91> there are some things you can get from ARGF. enter `ARGF.inspect`
<FromGitter> <j8r> `ARGV` is directly an `Array(String)` of the arguments, equivalent of `ARGF.@argv`
<FromGitter> <Jens0512> So the main difference is that ARGF also contains piped input, i think
learod has quit [Remote host closed the connection]
<FromGitter> <Jens0512> How do I make it so `IO#gets_to_end` doesn't pause the program forever? 😓
learod has joined #crystal-lang
SuperChickeNES has quit [Ping timeout: 240 seconds]
ChickeNES has joined #crystal-lang
<FromGitter> <Jens0512> Anyone here?
<shalmezad> Probably not. It's about lunch time in the ET/CT timezones. Just stick around and someone may help once they get back (luckily gitter's persistent)
<FromGitter> <Jens0512> I see, thanks, haha, these time zones can cause communication problems...
<shalmezad> They cause other problems besides just communications. :/
Jenz has joined #crystal-lang
<Jenz> Yeah
Jenz has quit [Client Quit]
learod has quit [Remote host closed the connection]
Jens_ has joined #crystal-lang
<Jens_> Do I have to go parallel to make it so `IO#gets_to_end` doesn't pause the program forever?
<t0nyandre> For everyone wanting to use Scry on Arch Linux; I've created a AUR for easy install. I am using it on vscode either way so I thought I could make it easy for the next person :) Again. ONLY for Arch Linux users I'm afraid. https://aur.archlinux.org/packages/scry-git
<Jens_> I see you use the infamous arch :eyes:
<t0nyandre> Oh yes :) :giggles:
<t0nyandre> :D
<Jens_> But what is different with downloading it from aur to git clone?
<t0nyandre> Well, here it is as easy as downloading the PKGBUILD file and write this command: "makepkg -si" and you have all the deps. and a binary installed into /usr/bin/
<t0nyandre> everything is automated for you :) so if u are going to use it in vscode u only need to point the vscode-crystal-lang ext. to the scry binaries
<Jens_> ¯\_(ツ)_/¯
<t0nyandre> if u do it the git way ur self u have to clone, build and mv the binaries to the location u want it :)
<Jens_> That doesn't seem very bad though, as I'm a Makefile maniac, I would have provided a Makefile for that (with scry)
<Jens_> Maybe I should do that :thinking:
<Jens_> Any Scry people here? Do you think a makefile for scry installation is a good idea?
<t0nyandre> Jens_, why not? Make it accessible for as many people as possible!
<Jens_> Well my ideas have a tendency to be turned down. I am quite new to the developing world
<t0nyandre> the AUR is for Arch and it's the Arch way; but if you can maintain something for other distros, why not?
<t0nyandre> I'll be back in 1 min. brb ;)
t0nyandre has quit [Quit: Leaving]
t0nyandre has joined #crystal-lang
<RX14> Jens_, the thing is that with a MAKEPKG it's in the OS package manager just like any other package
<RX14> you can uninstall it and be sure theres nothing left behind
<RX14> also AUR helpers exist which make it as easy as `pacaur -S scry-git`
<RX14> instead of git clone, cd, make, sudo make install
<Jens_> You on Arch as well? :open_mouth:
<RX14> yes
<RX14> its not uncommon
<RX14> its a fairly popular distr
<Jens_> Yes, I just thought all arch users went around saying: 'I use arch btw'
<Jens_> XD
<Jens_> Sorry; that was a joke
<Jens_> Only funny for non arch users i guess
<FromGitter> <bew> :P (I use arch btw 😇 )
DTZUZU has quit [Quit: WeeChat 1.9]
<Jens_> brb
DTZUZU has joined #crystal-lang
Jens_ has quit [Ping timeout: 240 seconds]
Jens_ has joined #crystal-lang
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <sdogruyol> I also use arch lol
<t0nyandre> We should create a IRC/Gitter bot that prints all the nicks that uses arch when someone writes "!archlinux" :P
<Jens_> There's this irc crystal lib going on
<t0nyandre> *giggles*
Jens_ has quit [Ping timeout: 240 seconds]
Jens_ has joined #crystal-lang
That_Guy_Anon has joined #crystal-lang
t0nyandre has quit [Quit: Leaving]
That_Guy_Anon has quit [Ping timeout: 240 seconds]
duane has quit [Ping timeout: 256 seconds]
Jens_ has quit [Quit: leaving]
azur_kind has joined #crystal-lang
<FromGitter> <bararchy> Does someone have an example Dockerfile for a project or shard using Crystal ?
<FromGitter> <picatz> @bararchy I do not. But now you have me extremely interested. 💭
<FromGitter> <bararchy> :)
<FromGitter> <bararchy> always happy to provide intrig and mistery
azur_kind has quit [Remote host closed the connection]
shalmezad has quit [Quit: Leaving]
thews has quit [Ping timeout: 264 seconds]
thews has joined #crystal-lang
thews has joined #crystal-lang
thews has quit [Changing host]
alex`` has quit [Quit: WeeChat 2.0.1]
<FromGitter> <unn4m3d> There's a dockerfile in crystal repo 😄
t0nyandre has joined #crystal-lang
<FromGitter> <vonKingsley> given a list of types is there a way to get the `sizeof` of each type. ⏎ Something along the lines of ⏎ ⏎ ```types = {UInt32, UInt8, UInt16, UInt32} ⏎ ⏎ types.each do |t| ⏎ puts sizeof(t) ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5ab5886b35dd17022e93d17b]
<FromGitter> <bew> Is the list of types known at compile time?
<FromGitter> <vonKingsley> yes
<FromGitter> <bew> Then you can use a macro to "generate" code: https://carc.in/#/r/3rt4
<FromGitter> <vonKingsley> perfect, thanks! i think this is what i was looking for i'll give it a try
learod has joined #crystal-lang
t0nyandr- has joined #crystal-lang
t0nyandre has quit [Quit: Leaving]
t0nyandr- is now known as t0nyandre
learod has quit [Remote host closed the connection]
learod has joined #crystal-lang
learod has quit []