RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.27.0 | 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
Raimondi has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
moei has joined #crystal-lang
_whitelogger has joined #crystal-lang
return0e has quit [Read error: Connection reset by peer]
return0e has joined #crystal-lang
Raimondi has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
azuri5 has joined #crystal-lang
<FromGitter> <Nbotz> Hey all! Anyone with ECR knowledge know if you can use functions with the html "onclick" like with javascript?
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 246 seconds]
<wuehlmaus> merry xmas to all and thanks for beautiful crystal. It's a joy to program!
<wuehlmaus> esp. asterite
<FromGitter> <dscottboggs_gitlab> @literal if you happen back in https://play.crystal-lang.org/#/r/5usq
<FromGitter> <dscottboggs_gitlab> damn, we definitely should be using the forum for this sort of thing
azuri5 has quit [Quit: azuri5]
azuri5 has joined #crystal-lang
<FromGitter> <bew> literal: use parentheses for is_a? When doing complex conditions like that
<FromGitter> <bew> I guess `foo.is_a? String && bar.is_a? String` is parsed as `foo.is_a?(String && bar.is_a?(String))`
azuri5 has quit [Quit: azuri5]
Jenz has joined #crystal-lang
<Jenz> oprypin, you here?
azuri5 has joined #crystal-lang
<oprypin> why ping me without any content?
<Jenz> Uh, well sorry about that.
<Jenz> I was just wondering: is there an easy way to apply some color transformation in crsfml, like dimming all colors
<oprypin> Jenz: you can set a texture + color on sprites
<oprypin> and pixel shaders are always there
<Jenz> OK, thanks
<Jenz> I guess I'll have to get around to them shaders sometime
<Jenz> CrSFML is great btw, thanks so much for it :D
<oprypin> :>
azuri5 has quit [Quit: azuri5]
Jenz has quit [Quit: leaving]
azuri5 has joined #crystal-lang
C-o has quit [Quit: ZNC - http://znc.in]
azuri5 has quit [Ping timeout: 250 seconds]
ashirase has quit [Ping timeout: 250 seconds]
ashirase has joined #crystal-lang
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
trapped has joined #crystal-lang
trapped has quit [Client Quit]
laaron has quit [Remote host closed the connection]
<FromGitter> <r00ster91> When I'm in a fiber/`spawn`, can I not break out of it, kill the fiber? `exit` seems to exit the whole program
<RX14> you have to break out of the fiber block
<RX14> if you're seeply nested, usually by raising
<FromGitter> <r00ster91> ooh alright so I can just `break` out of it. I thought I might have to make it sleep forever
<RX14> you can do that too but sleeping forever keeps the fiber around and uses memory
<FromGitter> <r00ster91> https://github.com/crystal-lang/crystal/blob/master/src/kernel.cr#L546 wouldn't clean it up?
<RX14> no...
<FromGitter> <r00ster91> oh
<RX14> because sleep doesnt exit the fiber
<RX14> it just sleeps forever
<FromGitter> <kingsleyh> Hey - Jens - check out the game I'm building: This is one of the cut scenes I'm working on for it: https://www.youtube.com/watch?v=jXapWclogGc
<FromGitter> <kingsleyh> I'm using Crystal for the backend, plus SushiChain and Godot on the front end
<FromGitter> <kingsleyh> I built a Tank Game in the past using *SFML - which I really enjoyed
<FromGitter> <straight-shoota> @kingsleyh Why publish a cut scene before showing any gameplay? Shouldn't priorities be reversed... ⏎ And what serious purpose could using a blockchain in a game have?
<FromGitter> <bararchy> @straight-shoota from what I understood it's a POC to show the dapps feature of ShushiChain
<FromGitter> <kingsleyh> @straight-shoota the animation takes a long time - so have to start it early - it then becomes part of a marketing trailer - which we use to start marketing long before we start creating the game
<FromGitter> <kingsleyh> @straight-shoota The blockchain is mostly used to trade game assets in a secure and provable way by recording ownership in the immutable ledger. Also the decentralisation means we don't need to store users sensitive data.
<FromGitter> <kingsleyh> But yes @bararchy is correct - in that we are building the game as a POC to showcase some of the Blockchains capabilities
<FromGitter> <kingsleyh> Also if you build a game first then try to market it - it's too late. So you have to start marketing it before you build it - also it helps you to learn if people would like to play it - and what kind of features people like.
<FromGitter> <kingsleyh> Jens - I'm running 3 miners on my machine - each with 32 processes - so 96 processes running in total and I've not seen the invalid messages warning yet - were you doing other things - like sending coins or registering human readable names?
<FromGitter> <kingsleyh> Jenz ^^
<FromGitter> <kingsleyh> My CPU is only at 11% maybe I need to put more processes
<FromGitter> <kingsleyh> ok thats better got it up to 95% with 3 x 128 processes
return0e_ has quit [Ping timeout: 245 seconds]
return0e has joined #crystal-lang
return0e has quit [Remote host closed the connection]
azuri5 has joined #crystal-lang
return0e has joined #crystal-lang
<FromGitter> <straight-shoota> @kingsleyh ⏎ ⏎ > it helps you to learn if people would like to play it ⏎ ⏎ I'm curious... how can people tell if they like it? From a cutscene? [https://gitter.im/crystal-lang/crystal?at=5c2389b9d945b96882fa8b48]
<FromGitter> <bararchy> can I get a socket from HTTP::Context ?
<FromGitter> <bararchy> or better yet, from HTTP::Request (on the servr)
azuri5 has quit [Quit: azuri5]
azuri5 has joined #crystal-lang
azuri5 has quit [Quit: azuri5]
azuri5 has joined #crystal-lang
<FromGitter> <kingsleyh> @straight-shoota the cutscenes are made into a trailer which explains the game and how it works and shows enough to understand how the game works etc
azuri5 has quit [Ping timeout: 250 seconds]
ua has quit [Ping timeout: 268 seconds]
ua has joined #crystal-lang
return0e has quit [Ping timeout: 245 seconds]
<FromGitter> <dscottboggs_gitlab> @proyb6 @bararchy https://github.com/crystal-community/crystal-libraries-needed/issues/63#issuecomment-325118879 if only it were true... :(
Raimondi has joined #crystal-lang
non-aristotelian has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
_whitelogger has joined #crystal-lang
<oprypin> dscottboggs_gitlab, well it's not disproven until someone actually tries to update it lol
<FromGitter> <dscottboggs_gitlab> yeah I tried
<oprypin> oh. rip, then
<FromGitter> <dscottboggs_gitlab> I mean, I don't know QT or stuff that well but I tried a whole bunch of different configurations of Qt versions and stuff.
<FromGitter> <dscottboggs_gitlab> IIRC I couldn't even get the shard he used to build Qt shard to build right
laaron has joined #crystal-lang
laaron has quit [Ping timeout: 256 seconds]
laaron has joined #crystal-lang
return0e has joined #crystal-lang
Raimondi has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
<FromGitter> <kingsleyh> Was the qt shard working before 0.27 ? If it’s just broken due to changes in 0.27 then that should not be hard to fix - but if you mean a newer version of qt is now out and that’s why it’s broken I can imagine a lot of work
<FromGitter> <dscottboggs_gitlab> I think the version of Crystal at the time when I attempted to build the project was 0.25. The problems in the autogen shard were probably due to changes in Crystal since the version at which he created it, so that's probably fixable. ⏎ ⏎ I'm going to have to give it another shot I guess because I really can't remember what the problem was.
<FromGitter> <dscottboggs_gitlab> maybe if we put our heads together we can get it working again, that would be an incredibly awesome tool to have at our disposal
<FromGitter> <talbergs> Syrsly? There is no Array.contains(obj) api meth?
<FromGitter> <dscottboggs_gitlab> it's `Array#includes?`
<FromGitter> <talbergs> uff, blind myself... thankx!
<FromGitter> <dscottboggs_gitlab> np
<FromGitter> <dscottboggs_gitlab> @kingsleyh got bindgen to compile
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
_whitelogger has joined #crystal-lang
laaron has quit [Ping timeout: 256 seconds]
laaron- has joined #crystal-lang
<FromGitter> <dscottboggs_gitlab> guys!!! :D
<oprypin> :o
<FromGitter> <dscottboggs_gitlab> ok so with my fixes branch of bindgen https://github.com/dscottboggs/bindgen/tree/fixes
<FromGitter> <dscottboggs_gitlab> all specs except for one pass
<FromGitter> <dscottboggs_gitlab> you have to run make in the clang folder at the root of that project before the specs succeed
<FromGitter> <dscottboggs_gitlab> for qt5.cr just point shard.yml at it https://github.com/dscottboggs/qt5.cr/commit/1d92006ca7979fdc3361a0b1b03816ad12a0c059 and it works....mostlyu
<FromGitter> <dscottboggs_gitlab> still poking at it
<FromGitter> <dscottboggs_gitlab> the paint exaple doesn't work
<FromGitter> <dscottboggs_gitlab> does anyone know what this means? ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ looks like a breaking change since this was written? [https://gitter.im/crystal-lang/crystal?at=5c24100d0b7fc97caaa45c90]
<FromGitter> <dscottboggs_gitlab> ah, #6296
<DeBot> https://github.com/crystal-lang/crystal/pull/6296 (Replace `Indexable#at` with `#fetch`)
ashirase has quit [Ping timeout: 250 seconds]
ashirase has joined #crystal-lang