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>
<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>
<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
<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
<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]
<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