RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.24.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
<travis-ci> crystal-lang/crystal#4f56a57 (release/0.24 - Update gitignore template (#5480)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/323047858
cremes has quit [Quit: cremes]
rx14_ has quit [Remote host closed the connection]
cremes has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
cremes has quit [Quit: cremes]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
<FromGitter> <drosehn> Well, Swift and Elixir are newer programming languages. I was just now at supper with a friend of mine, and we were talking about how it takes about 10 years for a new language to stabilize and build a large following of programmers. There's a huge amount of work involved!
snsei has quit [Ping timeout: 252 seconds]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
faustinoaq has joined #crystal-lang
<crystal-gh> [crystal] MakeNowJust opened pull request #5481: Fix to parse regex in default argument (master...fix/crystal/parse-regex-in-default-arg) https://git.io/vbNKj
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Read error: Connection reset by peer]
faustinoaq has joined #crystal-lang
<FromGitter> <imonmyown> @oprypin I'm trying to adapt examples from learnopengl.com, which use 3.3 core profile to run on crsfml. I've updated the gist I linked to above with the output for the code. Please let me know what kind of other information could help to clarify the source of the problem. I'm on macOS High Sierra with NVIDIA GeForce GT 750M 1 Gb
<woodruffw> does the crystal community have a central site for shard documentation hosting, a la rubydoc.info?
Poeticode has quit [Ping timeout: 264 seconds]
Poeticode has joined #crystal-lang
<FromGitter> <fridgerator> woodruffw not that i'm aware of
<woodruffw> dang. that's what i thought, thanks. maybe i'll spend some time working on that ;)
<FromGitter> <bararchy> woodruffw https://crystalshards.xyz/
<woodruffw> bararchy: that's just a listing of available shards, no? i don't think it provides documentation hosting
<FromGitter> <bararchy> Oh, doc hosting , then no
<FromGitter> <bararchy> It would be a cool project if you don't mind to set a site up :)
<FromGitter> <bararchy> You were thinking about a 'git clone + crystal docs' sort of thing ?
<woodruffw> yep, something along those lines!
<woodruffw> one problem is that shards is a bit more decentralized (and in the future might not just be `git`, based on the spec)
<woodruffw> more decentralized than rubygems, that is
A124 has joined #crystal-lang
Poeticode has quit [Changing host]
Poeticode has joined #crystal-lang
relyks has quit [Quit: relyks]
faustinoaq has quit [Quit: IRC client terminated!]
alex`` has joined #crystal-lang
claudiuinberlin has joined #crystal-lang
<oprypin> just don't create a 'git clone + crystal docs + arbitrary code execution on your machine' sort of thing
alex`` is now known as alexherbo2
<FromGitter> <ArtLinkov> Hi guys, does anyone know when would I get NaN instead of an expected number?
<FromGitter> <l3kn> @ArtLinkov `0.0 / 0.0` for example
<FromGitter> <ArtLinkov> I see, and is there a minimum value in Crystal? that as, if I get lower than that number it's just regarded as 0
<oprypin> 4.9406564584124654e-324 seems legit
<FromGitter> <ArtLinkov> Yeah, I got this number too. wanted to make sure. ⏎ Thanks :)
<FromGitter> <imonmyown> @oprypin not sure I got your question right, did I provide the relevant info?
<oprypin> imonmyown, i dont know because finding the previous link is way too much effort. all i want is a full reproducible example
<FromGitter> <imonmyown> oh, sorry about that
<FromGitter> <imonmyown> sec
<oprypin> so yeah, you ignored my message
<oprypin> this is not an example that has a chance of running because files are literally missing
<FromGitter> <imonmyown> don't get it, what files?
<FromGitter> <imonmyown> background image?
<oprypin> yes, as I've expplicitly said before
<FromGitter> <imonmyown> I don't think it would be relevant, but ok, I'll add it
<FromGitter> <imonmyown> would a link (https://imgur.com/a/pTsda) suffice?
<oprypin> no because it's weird
alexherbo2 has quit [Ping timeout: 272 seconds]
alexherbo2 has joined #crystal-lang
<oprypin> and what is the prroblem, anyway?
<FromGitter> <imonmyown> don't see anything weird, just a background (https://imgur.com/a/9O0yk)
<oprypin> what
<oprypin> that's all your code does though
<oprypin> this is so tiring. can't you just give a running example, say what it does and what you expected instead?
<FromGitter> <imonmyown> well I posted all of it, you expected more from such a tiny morsel?
<FromGitter> <imonmyown> ok, it seems like you're not in the mood for questions
<oprypin> i'm never in the mood for underspecified questions
<oprypin> i get the same result as you, the code works as written, now what?
<FromGitter> <imonmyown> it works with a commented out context setup
<FromGitter> <imonmyown> at least on my machine
<FromGitter> <imonmyown> and I posted the error message I get. I didn't post a black screen
<oprypin> works same with or without context
alexherbo2 has quit [Ping timeout: 272 seconds]
<FromGitter> <imonmyown> > <oprypin> works same with or without context ⏎ ⏎ well, as I said not on my machine..
lvmbdv has quit [Ping timeout: 248 seconds]
alexherbo2 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 272 seconds]
hightower2 has joined #crystal-lang
hightower3 has quit [Ping timeout: 260 seconds]
Yxhuvud has quit [Remote host closed the connection]
alexherbo2 has joined #crystal-lang
<crystal-gh> [crystal] RX14 opened pull request #5483: Clarify that unions are allowed in JSON.mapping (master...bugfix/json-mapping-doc) https://git.io/vbNdg
<crystal-gh> [crystal] RX14 opened pull request #5484: Move win32 stubs into a separate file (master...feature/windows-stubs-declutter) https://git.io/vbNFn
jnyw has quit [Quit: WeeChat 2.0.1]
<crystal-gh> [crystal] MakeNowJust opened pull request #5485: Work String#starts_with? with regex (master...feature/string/starts_with_with_regex) https://git.io/vbNFX
Ven`` has joined #crystal-lang
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dom96> In case you guys are interested, I contacted TIOBE about Crystal's mis-ranking and according to one of the maintainers 39% of +"Crystal programming" results are referring to programming crystals.
<dom96> So this will be corrected in February
Ven`` has joined #crystal-lang
<RX14> Yay
<RX14> Thanks dom96
<RX14> More accurate data is always a good thing
<dom96> indeed :)
<RX14> Will be interesting to see how far that knocks is down
ashirase has quit [Ping timeout: 248 seconds]
ashirase has joined #crystal-lang
lvmbdv has joined #crystal-lang
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <sdogruyol> thanks @dom96 👍
<FromGitter> <sam0x17> yeah when I google "crystal + [whatever]" I typically still get results about crystal reports (yuck!)
<FromGitter> <sam0x17> @imonmyown trying to follow the convo and see if I can help -- we need two pieces of info: 1. what is your code supposed to do (expected behavior); 2. what is it actually doing when you run it (actual behavior), and it would help if we had the whole project so we can quickly clone it and run if you want to go that route
<FromGitter> <imonmyown> @sam0x17 thank you very much for your concern! Will try to create a repo to make things easier to reproduce
<FromGitter> <sam0x17> ok cool, don't forget to post here with 1. and 2. as I mentioned above
<FromGitter> <imonmyown> @sam0x17 btw: are you aware of crsfml installation procedure?
<FromGitter> <sam0x17> no I was going to google that if I had to but hoping I can solve your issue by looking at the code
<FromGitter> <imonmyown> I have a feeling you might *not*
<FromGitter> <imonmyown> but I may be wrong of course
<FromGitter> <sam0x17> well, as soon as you give us 1. (expected behavior) and 2. (actual behavior), we'll be that much closer to a solution ;)
<FromGitter> <sam0x17> @imonmyown the only reason oprypin hasn't been able to help you is you didn't give 1. and 2... we need to know what you're trying to do so we can be helpful. Also, oprypin is the main developer behind crsfml, and he didn't see any blatant errors in your code, so I'm going to assume this more an issue of you expect the code to do one thing but it's (correctly) doing another
<FromGitter> <sam0x17> ok and you are expecting that image to be drawn at 0,0 to 800,600?
<FromGitter> <imonmyown> Ok, then, will you please take a look at this gist (https://gist.github.com/imonmyown/ee3f9aa77e3a6e8b25dc2dba92acefcb/revisions). The latest revision has context creation set to default (2.1), the previous revision specifically creates context at 3.2 (on my machine defaults to 4.1). In both cases I expect to see the same background image (posted above), but in case of non-default context I get a black screen
<FromGitter> ... (posted above as well)
<FromGitter> <imonmyown> The log attached shows what version of context was tried and was actually created in the non-default case
<FromGitter> <sam0x17> ok thanks for the info. I will try playing around with it on my machine and see what happens
<FromGitter> <imonmyown> I'm on a mac (just FYI)
<FromGitter> <sam0x17> ok I'm on linux, so if it is a platform problem we will probably know right away
<FromGitter> <imonmyown> thanks again
<FromGitter> <sam0x17> be back in like 30-40 mins and then I'll install it -- have to take care of something
<FromGitter> <imonmyown> sure, take your time
snsei has joined #crystal-lang
<oprypin> imonmyown, i thought it was solved. i gave you a google link that has all the answers within first 3 results
<oprypin> and also said that it works the same for me in both cases
alexherbo2 has quit [Quit: WeeChat 2.0.1]
<oprypin> so there's no need for @sam0x17 to run that and also have it work the same in both cases
<oprypin> sfml might have made too big of a bet on legacy opengl
<FromGitter> <imonmyown> I take a google search link as not a very polite way of saying "bug off"
<FromGitter> <imonmyown> so sorry of taking other people's time to have my question answered properly
<oprypin> no i actually look at the results and post the link if the list of results is better as a whole than any individual link
<oprypin> but it is also sometimes a not very polite way of saying "you could've easily found it yourself" :/
<FromGitter> <imonmyown> besides seeing general irritation in your comments I decided to stay away from involving with you any further. thank you
<FromGitter> <Yive> Anyone know if there's been any development towards supporting this? https://github.com/crystal-lang/crystal/issues/921
<oprypin> probably not
<oprypin> no development, that is
<FromGitter> <Yive> rip
<FromGitter> <Yive> Guess I'm going to have to wait till at least version 1.0 to hopefully see support for it.
<FromGitter> <sam0x17> ok so his platform is not supported @oprypin? I thought that might be the case based on what you said before but I wasnt 100% sure
<oprypin> apparently sfml on osx can work only up to opengl 2.1
<oprypin> apparently sfml can only work in legacy mode, which on osx can work only up to opengl 2.1
Ven`` has joined #crystal-lang
<crystal-gh> [crystal] RX14 opened pull request #5486: Add explanatory message to linker command output on link failure (master...feature/linker-errors) https://git.io/vbAJo
faustinoaq 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: 276 seconds]
<RX14> currently working on a bunch of features from https://github.com/crystal-lang/crystal/issues/5291
linuksz has joined #crystal-lang
<linuksz> I have an abstract class, and I want to implement the same class method for all subclass via the abstract class. Is it possible?
<linuksz> All subclass will have a @regex variable, and I want to test if a new instance can be created from a String.
<linuksz> So I want to do something similar to:
<linuksz> def self.correct?(line : String)
<linuksz> line.match @regex
<linuksz> end
<linuksz> (in the abstract class)
<oprypin> linuksz, drop the @
alex`` has joined #crystal-lang
<linuksz> but the @regex would be a class variable
<oprypin> class variable is @@ anyway
<linuksz> s/class/instance/
<oprypin> linuksz, how does it make sense to access an instance variable in a class method?????
<linuksz> Oops. I mean @@regex.
<linuksz> oprypin: regex is not a local variable
<oprypin> i think crystal's abstractions are very disappointing for class method, might as well just forget about it
<linuksz> I want to do something similar:
<linuksz> {Comment, KeyValue, BoolValue, Section}.each do |i|
snsei_ has quit [Remote host closed the connection]
<linuksz> if i.correct? line
<linuksz> return i.new(line)
<linuksz> end
<linuksz> end
snsei has joined #crystal-lang
<oprypin> linuksz, eh just raise an exception in .new i dunno
snsei_ has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
faustinoaq has quit [Ping timeout: 256 seconds]
linuksz has quit [Quit: WeeChat 2.0.1]
snsei_ has quit [Remote host closed the connection]
snsei has joined #crystal-lang
Ven`` has joined #crystal-lang
snsei has quit [Ping timeout: 246 seconds]
<FromGitter> <timkendall> This may be a dumb question, but is HTTP::Client.post blocking?
<oprypin> timkendall, it's blocking for the usage purpose, but due to fibers being async, it doesn't block other code that might be running concurrently
<RX14> It blocks the fiber but not the program
<oprypin> (in contrast: if you call an actual blocking C function, then it blocks all other code)
<FromGitter> <timkendall> Awesome makes sense. Thanks very much!
<RX14> There's a guide on concurrency in the language reference @timkendall
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thews has quit [Ping timeout: 248 seconds]
thews has joined #crystal-lang
thews has quit [Changing host]
thews has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 265 seconds]
faustinoaq has joined #crystal-lang
<FromGitter> <codenoid> cant wait crystal in my windows 7
<FromGitter> <sam0x17> I just want it for cross platform purposes, but this ^
<RX14> well
<RX14> all the dev is happening on w10
Ven`` has joined #crystal-lang
<RX14> so w7 support might be a tiny bit later than w10
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven`` has joined #crystal-lang
<FromGitter> <sam0x17> w10 only at first is fine for me :)
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] RX14 opened pull request #5487: Suggest possible solutions to failing requires (master...feature/require-clippy) https://git.io/vbAsi
<crystal-gh> [crystal] straight-shoota opened pull request #5488: Rename skip() macro method to skip_file() in docs (master...patch-1) https://git.io/vbAZU
jnyw has joined #crystal-lang
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]