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
FromGitter has quit [Ping timeout: 240 seconds]
oprypin has quit [Ping timeout: 256 seconds]
oprypin has joined #crystal-lang
oprypin has quit [Ping timeout: 264 seconds]
BlaXpirit has joined #crystal-lang
BlaXpirit is now known as oprypin
FromGitter has joined #crystal-lang
<FromGitter> <girng> overmind i have a question can u goon the irc elixir channel? :D
<OvermindDL1> Where at?
<FromGitter> <girng> #elixir-lang
<wmoxam> goon?
<OvermindDL1> Not a clue?
<FromGitter> <j8r> A goonie thing I guess :)
ashirase has joined #crystal-lang
donutburger has joined #crystal-lang
donutburger has left #crystal-lang [#crystal-lang]
baweaver is now known as baweaver_away
Yxhvd has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
illy_ has joined #crystal-lang
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
<FromGitter> <codenoid> hi
<FromGitter> <codenoid> how i can make unique number of `Random.rand(-20..20)`
<FromGitter> <codenoid> *is there any built in function
<FromGitter> <bajro17> how much numbers you want
<FromGitter> <Blacksmoke16> `Random.new.rand(-20..20)`
<FromGitter> <Blacksmoke16> ?
<FromGitter> <codenoid> @bajro17 between `-20..20`
<FromGitter> <codenoid> is that generate random and uniq number @Blacksmoke16 ?
<FromGitter> <Blacksmoke16> https://crystal-lang.org/api/0.24.2/Random.html#rand%28range%3ARange%28Int%2CInt%29%29%3AInt-instance-method
<FromGitter> <Blacksmoke16> yes
<FromGitter> <bajro17> just one number or more
<FromGitter> <codenoid> one number
<FromGitter> <bajro17> then all time is uniq
<FromGitter> <bajro17> :)
<FromGitter> <bajro17> Random.new.rand(-20..20) use this
<FromGitter> <codenoid> okay, how to determine the minimum distance of the number that comes out , for example with a distance of 2, first out the number 3, then number 6 then number 9
<FromGitter> <codenoid> *Builtin Way :D
<FromGitter> <Blacksmoke16> but then its not a random number?
<FromGitter> <codenoid> yeah]
<FromGitter> <codenoid> omg
<FromGitter> <codenoid> related with https://github.com/jacomyal/sigma.js/issues/937 lol
Creatornator has joined #crystal-lang
<FromGitter> <bajro17> I'm so confused
<FromGitter> <bajro17> is it random or numbers with step?
<FromGitter> <codenoid> the purpose of all these questions is to beautify my ontology placement
<FromGitter> <bajro17> in my mind just come solution to save all numbers to array and see minimum distance between them
<FromGitter> <codenoid> yeah
<FromGitter> <codenoid> okay, i'll use memory for the array of number
<FromGitter> <bajro17> for example you can save 10 numbers
<FromGitter> <bajro17> array = (-20..20).to_a.sample(10)
<FromGitter> <bajro17> it will give you 10 uniq numbers
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <codenoid> oo, okay @bajro17
<FromGitter> <bajro17> yes just to mention it will be shuffled
<FromGitter> <bew> You could also take a -10..10 range, and multiply the number you get by 2
<FromGitter> <bew> So you'll have kind of steps, but won't be able to get odd numbers
<FromGitter> <bew> Or with shorter range, and multiply by 3, etc...
<FromGitter> <bew> (was talking with the random, not just the numbers)
<FromGitter> <bajro17> maybe you can do like array = (-20..20).to_a.sample(10).sort
<FromGitter> <bajro17> and make some variable = 0
<FromGitter> <bajro17> and put array in loop and variable = distance
<FromGitter> <bajro17> if distance < variable variable = distance
<FromGitter> <bajro17> I hope you understand what I want to say :D
<FromGitter> <codenoid> i'm trying, thanks @bajro17 @bew @Blacksmoke16
Liothen has quit [Ping timeout: 245 seconds]
Liothen has joined #crystal-lang
Liothen has joined #crystal-lang
Liothen has quit [Changing host]
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
illy_ has quit [Remote host closed the connection]
illy_ has joined #crystal-lang
kosmonaut has quit [Ping timeout: 245 seconds]
kosmonaut has joined #crystal-lang
return0e has quit [Ping timeout: 240 seconds]
return0e has joined #crystal-lang
flaviodesousa has joined #crystal-lang
<FromGitter> <bew> I got bored,and I'm trying to install crystal on my phone using the app Termux (provides apt and some binaries), but I'm hitting this error: Skipping acquire of configured file 'main/binary-aarch64/Packages' as repository 'https://dist.crystal-lang.org/apt crystal InRelease' doesn't support architecture 'aarch64'
<FromGitter> <bew> Anyone knows this?
<FromGitter> <bew> (When doing apt update, after adding the key and the deb line in sources.list)
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 240 seconds]
<FromGitter> <faustinoaq> @bew I tried it before unsuccessfully 😅 Did you try to cross compile it?
<FromGitter> <bew> Naa don't want to cross compile :p
ashirase has quit [Ping timeout: 276 seconds]
<FromGitter> <faustinoaq> ok 😄 I just was able to install crystal in my raspberry pi
<FromGitter> <bew> Now I'm installing a Arch-like system (over termux), will see how it work out when it finishes decompressing
<FromGitter> <aisrael> Hi! what's the status of #5324 (timezone support)? It's not in 0.24.2 yet, right?
<DeBot> https://github.com/crystal-lang/crystal/pull/5324 (Add time zones support)
<FromGitter> <straight-shoota> no
<FromGitter> <straight-shoota> 1) 24.2 is just a bugfix release
<FromGitter> <straight-shoota> will be in the next one
<FromGitter> <aisrael> Thanks. Can't wait (good thing we don't need it urgently yet [can always do the TZ conversion client-side])
<FromGitter> <straight-shoota> you could build with stdlib from master if you need it
<FromGitter> <straight-shoota> but I hope we see a new release soon
<FromGitter> <Sjoerrdd> Good morning
<f1refly> Hello
Sjoerd_ has joined #crystal-lang
<Sjoerd_> Hello
Sjoerd_ has quit [Client Quit]
<FromGitter> <straight-shoota> hi
<FromGitter> <girng> hello
<FromGitter> <Sjoerrdd> Am I the only one with issuess installing Crystal on Windows?
<f1refly> What issues are you facing?
<FromGitter> <Sjoerrdd> the keyserver doesn't respond
<f1refly> are you using a (company) firewall by any chance?
<f1refly> i think i've had this issue too
<FromGitter> <Sjoerrdd> Maybe my school is using a firewall
<f1refly> most likely, yes
<f1refly> can you access a keyserver with your browser?
<FromGitter> <straight-shoota> I've had issues with the keyserver as well, but it eventually worked
<FromGitter> <Sjoerrdd> Thanks!
<FromGitter> <Sjoerrdd> The Dutch goverment blocks it at schools
<f1refly> i think gpg.mit.edu is currently unavailable anyways
<FromGitter> <straight-shoota> googling for keys.gnupg.net unavailable shows there are frequently issues with this
<FromGitter> <straight-shoota> you might try updating to gpg2
<f1refly> you can manually search for the key on a different server, download it and import it with gpg from file
<FromGitter> <Sjoerrdd> I switched from wifi network, now it works
<FromGitter> <straight-shoota> it's really weird
<FromGitter> <buraktutanlar> Hi everybody, I have a question, I don't know if this is discussed at somewhere public, I couldn't find easily. Why is a private function accessible from a subclass?
<Groogy> `A private method can only be invoked without a receiver, that is, without something before the dot`
<f1refly> Why wouldn't it? The subclass inherits the function from it's parent, hence making it accessible
<FromGitter> <buraktutanlar> Doesn't `protected` already make the function accessible from the subclass? How would I be sure that a function only accessible in the class that it is defined?
<Groogy> You don't really in Crystal?
<Groogy> I mean you could make a top-level method that's private I guess?
<Groogy> would make it only available in that file
<Groogy> Protected means that you can do other.protected_method
<Groogy> as logn as you are the same type
<Groogy> it's like friends in C++
<Groogy> sort off
<f1refly> 'protected' means it can be accessed from everything in the same namespace in crystal
<f1refly> in the same module for example
<FromGitter> <buraktutanlar> I just started reading language specs because it mentions OOP as a language focus. After OOP experience in Java, I was expecting to see some class scope privates. Interesting..
<Groogy> Well Java is the C++ family, Crystal comes from Ruby which is an entirely different branch of OOP :P
<FromGitter> <buraktutanlar> then let me read some about encapsulation in Ruby..
<Groogy> Eh don't think they work the same actually. my point was more that a lot in Crystal is going to be alien to you if you come from like C++ or Java
<Groogy> actually they might work the same actually, ages ago since I worked in Ruby, visibility worked differently back then
<Groogy> `To think of this, protected actually reminds me of the "internal" accessibility modifier in C# or "default" accessibility in Java (when no accessibility keword is set on method or variable): method is accessible just as "public", but only for classes inside the same package.`
return0e_ has quit [Ping timeout: 255 seconds]
return0e has joined #crystal-lang
<FromGitter> <buraktutanlar> Yeah, it is alien to me currently, but I will check it, I need to give it a try :) thanks!
<RX14> in crystal we tend to trust other people a lot more
<RX14> there's no point to having restrictions against calling a private method from a subclass becuase you can always monkey patch around it
return0e has quit [Ping timeout: 245 seconds]
<Groogy> ah yeah since the classes are all open
return0e has joined #crystal-lang
<FromGitter> <yxhuvud> in any case crystal doens't follow the lead of ruby when it comes to protected. I disagree with the logic of how it works as I find it very confusing
<Groogy> D do add a bunch of new visibilities that are quite useful
<Groogy> public, protected and private works as expected but then adds package and.. antoher one I don't remember I think
Papierkorb has joined #crystal-lang
Papierkorb has left #crystal-lang ["Konversation terminated!"]
<FromGitter> <plainas> Please don't see this as a flamewar, I'n not really a seasoned C programmer, what's the status of static compilation? Is people using it? Does it generally works?
<Groogy> Yes?
<Groogy> Do you mean in Crystal or do you mean other compilers?
<FromGitter> <j8r> yes it works, but it's recommended to do so in a Docker Alpine image (maybe there is one official?)
<FromGitter> <plainas> I guess the question is how reliable and what's the state of compiling with a static flag? I don't see many people doing it/talking about it. I do the whole docker image from scratch, but I fin that a bit of unnecessairy overhead for what it could be just an executable for a given arch
shalmezad has joined #crystal-lang
<RX14> --static only works on alpine linux
<RX14> because glibc is stupid
<RX14> same for macos
<FromGitter> <PlayLights_twitter> I had to do use static libs on heroku
<FromGitter> <buraktutanlar> > **<RX14>** there's no point to having restrictions against calling a private method from a subclass becuase you can always monkey patch around it ⏎ ⏎ You are right, but personally I like languages restricting a bit because otherwise I am finding myself spending too much time on reviewing PRs to see if the person is shooting himself/herself in the leg.
<FromGitter> <buraktutanlar> > **<Groogy>** D do add a bunch of new visibilities that are quite useful ⏎ ⏎ Actually D's visibility attributes are quite similar to C++/Java, but they have different behaviours depending on the scope, if it is module or class, and this complicates the situations too much sometimes.
<FromGitter> <plainas> how do go lang does it? Does go use llvm too?
<RX14> no
<RX14> go doesn't use any C at all
<RX14> go wrote it's own stdlib
<RX14> because they can
<RX14> because they're google
<FromGitter> <plainas> I see
<RX14> s/stdlib/libc/
<FromGitter> <plainas> as in $$$
<RX14> as in time
<RX14> which makes it so so easy to deploy
<FromGitter> <plainas> I am not too familiar with these things. Where do most problems arise? libs being placed a differing locations in the filesystems across linux distros? or about their ABIs not being exactly the same?
<RX14> but it's not really possible for crystal... yet
<RX14> @plainas it's just that people have "always" dynamically linked
<RX14> and they're "always" just built from source
<RX14> and not moved binaries between distributipons
<RX14> honestly in crystal do the same
<FromGitter> <plainas> Ok, I got all confused now
<FromGitter> <plainas> what's allways just build form source?
<RX14> all the applications and libraries
<RX14> because it's all open source
<RX14> why not just build it
<RX14> instead of move the binary about
<FromGitter> <plainas> For developers yes, but for it facilitates distribution for non tech savy users of the final product
<FromGitter> <plainas> but I am curious about 'yet', and really that is what I asked initially.... Is crystal planning to remove its dependency on C libraries?
<RX14> of course but we're talking about traditional linux
<RX14> no users are using it
<RX14> @plainas no we're not planning
<RX14> but it's possible
<RX14> and we might do it
<RX14> it's a long way off
<FromGitter> <plainas> I see
<FromGitter> <plainas> It would be cool to distribute apps as single compiled binaries
<FromGitter> <plainas> I find Kemal nicer to use than any other frameowork in any other language. Certainly many things useful for average joe could be built with it
duane has joined #crystal-lang
<FromGitter> <j8r> that's not hard to statically link your application: https://github.com/DFabric/apps-static/blob/master/source/dppm-static/build.sh
<FromGitter> <j8r> that's an example executed in a Docker container, with this dependencies https://github.com/DFabric/apps-static/blob/master/source/dppm-static/pkg.yml
<FromGitter> <j8r> quite a hack but works
<FromGitter> <plainas> I put them all in a folder like this: ```ldd bin/$PROJECT_NAME | tr -s '[:blank:]' '\n' | grep '^/' | xargs -I % sh -c 'mkdir -p $(dirname dependencies%); cp % dependencies%;'```
<FromGitter> <plainas> then copy the contents from that folder to / on my dockerfile.
<FromGitter> <plainas> but of course, this needs docker
<FromGitter> <j8r> you have a replicable build environment this way
<FromGitter> <plainas> yes
<FromGitter> <plainas> in fact I my dockerfile is just copying these libs plus my app. based on 'SCRATCH'
<FromGitter> <j8r> why scratch?
<FromGitter> <j8r> the simpler is to make a Dockerfile that install system deps, your app and build statically
<FromGitter> <j8r> and of course, a mount point to retrieve the binary
<FromGitter> <ddrscott> I'd like to take a stab at fixing https://github.com/crystal-lang/crystal/issues/5717, but I can't find out how to run the tests.
<FromGitter> <ddrscott> `make spec`
<FromGitter> <j8r> or `crystal spec`
<FromGitter> <j8r> that can be followed by `spec/path/of/the/spec`
<FromGitter> <ddrscott> ```code paste, see link```
<FromGitter> <ddrscott> Okay... found the docs about getting my local environment setup: https://crystal-lang.org/docs/installation/from_source_repository.html
<FromGitter> <ddrscott> Welp. I got as far as I could trying to run the tests: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ac776472b9dfdbc3a614062]
<FromGitter> <j8r> some libs are missing
<FromGitter> <ddrscott> I can't tell which ones.
<FromGitter> <j8r> check for the `-l` one
<FromGitter> <j8r> for example `-lyaml` => `libyaml-dev`
<FromGitter> <ddrscott> I'm on Mac and followed the `brew install` steps at https://github.com/crystal-lang/crystal/wiki/All-required-libraries#mac-osx-with-homebrew
<FromGitter> <ddrscott> all those brew packages installed successfully (I think)
<FromGitter> <ddrscott> Also added BOEHM GC for good measure.
<FromGitter> <ddrscott> But still getting the same error.
<FromGitter> <j8r> sorry I can't help you much on the Mac side :/
<FromGitter> <ddrscott> Is there a docker container with most of this setup?
<FromGitter> <ddrscott> I see a Dockerfile in the root project, too.
<FromGitter> <j8r> I think I will create one for Alpine Linux (to compile statically) soon
<FromGitter> <ddrscott> I'm going to go down that path for a bit.
<FromGitter> <ddrscott> Thanks for the responses. The first contribution is always the hardest.
hightower2 has joined #crystal-lang
hightower3 has quit [Ping timeout: 240 seconds]
flaviodesousa has quit [Ping timeout: 276 seconds]
Creatornator has joined #crystal-lang
<FromGitter> <Sjoerrdd> Hi
<FromGitter> <Sjoerrdd> I'm playing around with Amber Framework
<FromGitter> <Sjoerrdd> Do you guys know that?
<FromGitter> <Sjoerrdd> Because I've some issue
<FromGitter> <Sjoerrdd> I want to return a model with the entries, but I don't know how to do that, and can't find it in the documentation. does somebody know it?
<FromGitter> <bmulvihill> I would ask @faustinoaq
<FromGitter> <bmulvihill> @ddrscott I use mac, I believe i just did `brew install crystal-lang` then `brew link llvm --force`
<hightower2> Sjoerrdd: you mean you want to retrieve all records from a table/model?
<FromGitter> <Blacksmoke16> using granite that would be like `Model.all`
<hightower2> Right
<FromGitter> <Sjoerrdd> @hightower2
<FromGitter> <Sjoerrdd> I've a post, with many comments
<FromGitter> <Sjoerrdd> So i wanna retrieve the post with all comments
<FromGitter> <Blacksmoke16> if you setup your relation it would just be like `Post.comments`
<FromGitter> <Blacksmoke16> where `Post` is a specific post
<FromGitter> <Blacksmoke16> like `post = Post.first`
<FromGitter> <Blacksmoke16> `post.comments`
<hightower2> Sjoerrdd: check also Amber's chat at https://gitter.im/amberframework/amber
That_Guy_Anon has joined #crystal-lang
heaven31415 has joined #crystal-lang
heaven31415 has quit [Client Quit]
<FromGitter> <faustinoaq> Hi @Sjoerrdd Did you read Granite documentation? https://github.com/amberframework/granite#find-all 😅 ⏎ ⏎ BTW, we have an amber room on gitter as well, take a look! 👉 https://gitter.im/amberframework/amber
<FromGitter> <faustinoaq> @Blacksmoke16 Thank you for your comment! 👍
<FromGitter> <Blacksmoke16> np
<FromGitter> <faustinoaq> 👍 ⏎ ⏎ hightower2, thank you too! 👍
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #crystal-lang
That_Guy_Anon has quit [Remote host closed the connection]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has joined #crystal-lang
alex`` has quit [Client Quit]
<RX14> Yay, up to date on github issues
* dom96 looks at his 575 unread notifications in despair
<FromGitter> <sdogruyol> haha, it's so awesome that dom96 is sneaking in the channel :D
<dom96> :D
<FromGitter> <sdogruyol> Great news everyone, from now on we'll have a full-time core developer working on Crystal
<FromGitter> <j8r> yeah :D
<FromGitter> <bew> @ddrscott we have a problem with latest llvm on macos, if you install `llvm@5` it will work
<FromGitter> <faustinoaq> @sdogruyol Wow, very nice! 🎉 👏 ✨ 😄
<FromGitter> <j8r> I wonder who is behind @CrystalLanguage on twitter?
<FromGitter> <bew> That's great @sdogruyol!
<FromGitter> <sdogruyol> @j8r core developers :)
<FromGitter> <Sjoerrdd> @faustinoaq Yes
<FromGitter> <bajro17> I wish I'm good enough with llvm to help :(
<RX14> dom96: I use octobox for github issues and it works quite well
<RX14> I'd recommend you self-host it if you like it though, the uptime is iffy and there's no data export
<FromGitter> <ddrscott> @bew great. I'll try.
<FromGitter> <ddrscott> New Error: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ac7a2e76d7e07082bc77397]
<FromGitter> <bew> I think you'd better make a clean build, by doing `make clean` then `make`
<FromGitter> <bew> Or `make spec` in your case
<FromGitter> <girng> those are some fine looking men in that photo
<FromGitter> <girng> where is rx14?
<FromGitter> <bajro17> do you have some suggestion how I can help crystal community?
<FromGitter> <girng> i thought he was in that photo cant spot him
<RX14> what photo?
<FromGitter> <girng> on twitter
<FromGitter> <girng> group photo
<FromGitter> <girng> there is no rx14 label
<RX14> ...where?
<RX14> well I already know i'm not in it
<RX14> because I've never met another crystal developer irl
<RX14> yeah that was codecamp
<RX14> in SF
<RX14> i'm in the UK
<RX14> and a student
<FromGitter> <girng> oh
<RX14> so I was never going to make it
<RX14> hopefully there'll be an event in europe I can make it to though
<FromGitter> <girng> that be cool
<crystal-gh> [crystal] RX14 closed pull request #5754: File: Add `mode` param to `File.write` (master...file-append) https://git.io/vA6OA
<Vexatos> "fine looking men" is not a group I would count RX14 into :P
<RX14> shut up Vexatos
<FromGitter> <girng> LOL
<Vexatos> You're welcome
<RX14> you're welcome to stay on esper
<FromGitter> <girng> i wouldn't want to be in the photo either tbh. unless i shaved my indian beardd
<FromGitter> <girng> too nasty looking
<crystal-gh> [crystal] RX14 pushed 1 new commit to master: https://git.io/vx959
<crystal-gh> crystal/master 7d64756 Florin Lipan: Re-raise exceptions in parallel macro (#5726)
<RX14> but seriously dom96 you need some help with that unread count :P
<dom96> Yeah... I dunno, I find third-party tools for these sorts of things risky :)
benharri has quit [Quit: The Lounge - https://thelounge.github.io]
<RX14> honestly the only state in octobox is the "starred" and "archived" states
benharri has joined #crystal-lang
<RX14> nothing that you'd miss if it died
<RX14> and even then it's open source and self hostable
<travis-ci> crystal-lang/crystal#d536c9c (master - File: Add `mode` param to `File.write` (#5754)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/363203377
<DeBot> https://github.com/crystal-lang/crystal/pull/5754 (File: Add `mode` param to `File.write`)
<travis-ci> crystal-lang/crystal#7d64756 (master - Re-raise exceptions in parallel macro (#5726)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/363204468
<DeBot> https://github.com/crystal-lang/crystal/pull/5726 (Re-raise exceptions in the parallel macro, add documentation)
alex`` has joined #crystal-lang
<FromGitter> <girng> i have a quesiton about memory usage @straight-shoota can i ask it ?
<FromGitter> <straight-shoota> Fire away!
<FromGitter> <straight-shoota> I just came on :D
<FromGitter> <straight-shoota> wow, awesome news to get a full time dev
<FromGitter> <girng> basically.. i have a class called "player" which gets created everytime a new player joins the game. i append this player class to my players array. however, when a player leaves the server, that player class gets removed from my players array. which works nice. ⏎ ⏎ except, if i load up a lot of these ( i did some stress testing ), say 500 players or so, my memory in my task manager does not go baack down.
<FromGitter> ... but, my players array is empty. do i have a memory leak somewhere maybe?
<FromGitter> <j8r> if the class is little enough, you can try with a struct, this might help
<FromGitter> <simaoneves> @girng as far as i know, when crystal asks memory to the operating system, it's never able to return it, it keeps it forever, regardless if it is using it or not
<FromGitter> <girng> oh ok, so i prob don't have memory leak. if i keep references to that obj / my players array clean i should be fine then?
<FromGitter> <Sjoerrdd> Just another simple question
<FromGitter> <bararchy> @girng its part of the standard work of Linux programs, its cheaper to keep memory and reuse it then reask for new mem allocation from OS, ruby does the exact same thing
<FromGitter> <Sjoerrdd> I'm a laravel developer, and in laravel we've something like `$post->with('comments')` is there a similar thing in Amber? (now it only returns the post, or the comments, but not both in one array)
<FromGitter> <straight-shoota> @girng probably, yes. you can use `GC.stats` to look at Crystal's internal memory usage. This way you can see if it really keeps using too much memory
<FromGitter> <faustinoaq> https://github.com/orgs/crystal-lang-tools/projects/1?fullscreen=true ⏎ ⏎ ^ Hey @/all crystal community, Crystal Lang Tools is improving everyday!!! ⏎ ^^ We have done a lot of work, although, We have a many new plugin issues to solve and exiting editor features to implement 😄 [https://gitter.im/crystal-lang/crystal?at=5ac7b6e35f188ccc153a0db5]
<FromGitter> <straight-shoota> but keep in mind that it might take some time for the GC to clean up... or it might never if you don't need the memory
<FromGitter> <girng> @bararchy so the only way i could run out of memory is if a large ddos attack were to happen right? but that's kinda would happen to any server wouldn't it?
<FromGitter> <girng> what if i survive a large ddos attack and have my memory high, what do i do then?
<FromGitter> <faustinoaq> @/all Also feel free to collaborate (https://github.com/orgs/crystal-lang-tools/projects/1?fullscreen=true) to our Crystal Tools Organization (https://github.com/crystal-lang-tools) 😄
<FromGitter> <girng> @bararchy ya looks like not plausible / good idea. thx. i guess if ddos happens and memory is still high when only few player online.. i could just restart the server lol
<FromGitter> <j8r> you can have a queue system that will reduce the impact of the ddos
<FromGitter> <j8r> but other players will be impacted :/
<FromGitter> <bararchy> @girng Blizzard uses a cluster of server farms for each world zone, also Sony and they still get DDOSed down once in a while
<FromGitter> <bararchy> In other words, leave this issue to the IT department and people who handle HA and DR
<FromGitter> <PlayLights_twitter> Blizzard servers are amazing, you can play with people in asia with 0 lag (from US)
<FromGitter> <PlayLights_twitter> ea servers are more slow than a turtle
<FromGitter> <ddrscott> @bew `make clean` did the trick! Thanks
<FromGitter> <bew> Perfect :)
commavir_ has quit [Quit: leaving]
commavir has joined #crystal-lang
rohitpaulk has joined #crystal-lang
duane has quit [Remote host closed the connection]
duane has joined #crystal-lang
Nik736 has joined #crystal-lang
Nik736 has quit [Client Quit]
rohitpaulk has quit [Ping timeout: 245 seconds]
<FromGitter> <Sevensidedmarble> Does anyone know if the any of the projects on crystal to ruby bridges/extensions are being actively worked on?
<FromGitter> <Sevensidedmarble> The one I saw that seemed the most mature hadn't had any commits in a while, and said some big things like floats didn't work
rohitpaulk has joined #crystal-lang
<FromGitter> <Sevensidedmarble> I think this was it https://github.com/phoffer/crystalized_ruby
<FromGitter> <Sevensidedmarble> Does anyone know of an actively developed one?
ua_ has joined #crystal-lang
<FromGitter> <Sevensidedmarble> The maintainer also claimed the crystal team has plans for developing their own tooling for ruby extensions is that true?
<txdv> what do plans mean to you?
ua has quit [Ping timeout: 255 seconds]
<txdv> I can have many plans, yet no time in my life to fullfill them
<FromGitter> <straight-shoota> I don't think there are any plans and it is actually not really feasible to do
duane has quit [Ping timeout: 240 seconds]
<FromGitter> <Sevensidedmarble> What's the feasibility issue?
<FromGitter> <straight-shoota> Ruby extensions are dynamic libraries
<FromGitter> <straight-shoota> Compiling crystal to a dynamic library is technically possible, but has huge problems because Crystal has it's own runtime
<FromGitter> <straight-shoota> Crystal assumes it is the king of everything in it's process
<FromGitter> <girng> if i link to c, can i manage memory?
DTZUZO has quit [Ping timeout: 265 seconds]
DTZUZO has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 265 seconds]
Creatornator has joined #crystal-lang
<FromGitter> <Sevensidedmarble> Does the same not apply to C?
duane has joined #crystal-lang
rohitpaulk has joined #crystal-lang
DTZUZO has quit [Ping timeout: 265 seconds]
shalmezad has quit [Quit: 5:00PM, later]
<FromGitter> <girng> mormons just showed up atmy door, that was akward.
<FromGitter> <girng> i had to ask for a business card to close the conversation they gave me a pamphlet :D
<FromGitter> <Sjoerrdd> lol
<FromGitter> <girng> i was coding in crystal, add properties to my class. then 1 second later, i answer the door and am asked why i don't go to church anymore lol
<FromGitter> <girng> my brain is like wtf is going on, i need to go back to coding
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #crystal-lang
relyks has joined #crystal-lang
DTZUZO has joined #crystal-lang
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #crystal-lang
<FromGitter> <girng> https://i.gyazo.com/5cd919128a6841924447d6210906db5b.png damn, savage hahah
rohitpaulk has quit [Ping timeout: 268 seconds]
qard has joined #crystal-lang
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qard has quit [Read error: Connection reset by peer]
qard has joined #crystal-lang
<FromGitter> <bew> @straight-shoota in #5811 after `Temporary files should generally just go where` I think you meant `TMPDIR` not `TMPFILE`
<DeBot> https://github.com/crystal-lang/crystal/issues/5811 (Use a global tmpdir for specs)
<FromGitter> <straight-shoota> true
<FromGitter> <straight-shoota> fixed it
<FromGitter> <straight-shoota> thanks!
<FromGitter> <bew> 👌
relyks has quit [Quit: relyks]
qard has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 265 seconds]
qard has joined #crystal-lang
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]