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
pierrearseufrasi has joined #crystal-lang
pierrearseufrasi has quit [Client Quit]
<FromGitter> <alexdovzhanyn> hey guys i have a quick question
<FromGitter> <alexdovzhanyn> ```HTTP::Params.from_hash({"access_token" => @access_token})``` ⏎ is throwing the error: ```undefined method 'from_hash' for HTTP::Params:Class```
<FromGitter> <alexdovzhanyn> any ideas why?
<FromGitter> <bew> it has been renamed to `encode`
<FromGitter> <bew> on the 0.22.0 release (2017-04-20)
<FromGitter> <alexdovzhanyn> ah! thank you. is there anywhere thats documented? looks like the docs im using are outdated
<FromGitter> <alexdovzhanyn> thanks!
<FromGitter> <bew> what docs are you talking about? the API docs? https://crystal-lang.org/api/0.24.2/HTTP/Params.html
<FromGitter> <alexdovzhanyn> https://crystal-lang.org/api/0.24.1/HTTP/Client.html#get%28url%3AString%7CURI%2Cheaders%3AHTTP%3A%3AHeaders%3F%3Dnil%2Cbody%3ABodyType%3Dnil%2Ctls%3Dnil%29%3AHTTP%3A%3AClient%3A%3AResponse-class-method
<FromGitter> <bew> (note the 0.24.2 in the url, for the crystal version)
<FromGitter> <alexdovzhanyn> looks like i was on the wrong version
<FromGitter> <alexdovzhanyn> my bad!
<FromGitter> <bew> you should bookmark https://crystal-lang.org/api/ (no version specified), it'll always redirect to the latest API docs
<FromGitter> <alexdovzhanyn> even better, thank you :)
<FromGitter> <faustinoaq> Also try https://crystal-lang.org/api/master/, the new search box is awesome ✨
<FromGitter> <alexdovzhanyn> ill be using em both extensively in the near future :D
<FromGitter> <alexdovzhanyn> loving crystal so far. it combines the parts of ruby and elixir that i love
<FromGitter> <bew> @faustinoaq about the new master docs, is it possible to focus the actual docs when you search for something, select, then hit enter? so that I can then just use page up/down, or the arrows to navigate in the docs (do you see what I mean?)
<FromGitter> <bew> actually that works when you select a method, not a class name
<FromGitter> <faustinoaq> ((https://i.imgur.com/eM1jhqg.gif))
<FromGitter> <faustinoaq> @bew Do you mean this? ^
<FromGitter> <bew> and after that try using the arrows to move up down
<FromGitter> <bew> it works when you select a method
<FromGitter> <bew> but not when you select a class
<FromGitter> <bew> (probably because the method link contains an id to somewhere in the right panel, so it focuses it)
<FromGitter> <bew> (still no PR to fix this? 😂)
<FromGitter> <faustinoaq> ((https://i.imgur.com/GXzYaez.gif))
<FromGitter> <faustinoaq> Oh, I see, the sidebar navigation is just broken 😅
<FromGitter> <bew> huh? I meant:
<FromGitter> <bew> 1) search in the search bar for "ato"
<FromGitter> <faustinoaq> ok
<FromGitter> <bew> (I edited my msg)
<FromGitter> <faustinoaq> Oh, ok ⏎ ⏎ Yeah looks like an issue 👍
<FromGitter> <bew> hmm not always work with methods too
<FromGitter> <bew> I tried searching for "ar#sel", the 2 results doesn't work
<FromGitter> <bew> (the scrolling)
<FromGitter> <faustinoaq> and I think I found another issue as well (see gif above)
<FromGitter> <bew> I've no idea how you did this x)
ssvb has joined #crystal-lang
<FromGitter> <faustinoaq> just try to navigate the sidebar with your keyboard
<FromGitter> <bew> (was thinking also about Tab to focus the side bar or the doc (in cycle))
<FromGitter> <bew> but maybe I'm going too far ^^
<FromGitter> <girng> i just bought a yearly vps, testing crystal on it now :D
<FromGitter> <bew> nice! which distro?
<FromGitter> <girng> debian 9 :D
gizmore|2 has joined #crystal-lang
<FromGitter> <girng> ```code paste, see link``` ⏎ ⏎ 500Mhz cpu.. oh god :D [https://gitter.im/crystal-lang/crystal?at=5af3a6b4e0b50c2d05ae5dff]
<FromGitter> <bew> 2GHz at the top Oo
gizmore has quit [Ping timeout: 240 seconds]
<FromGitter> <girng> @bew im using `hostname -i` to get the ip of the VPS. if i do `System.hostname` it returns the name. is there another System.xxx method we can use to get the ip, or using `hostname -i` ok?
<FromGitter> <girng> can't i just stick the hostname - i into a global namespace to use whenever, instead of continuously calling \`hostname-i\`
<FromGitter> <bew> huh `hostname -i` gives me my localhost IP
<FromGitter> <girng> yeah, does it on my local machine too. but on vps it gives the real address
<FromGitter> <girng> which is good for me
<FromGitter> <bew> can you ping the vps through this ip (from your computer)?
<FromGitter> <girng> yeah
<FromGitter> <bew> weird ^^
<FromGitter> <bew> where i your vps hosted? (which company)
<FromGitter> <girng> woothosting.com
<FromGitter> <girng> on my local machine on windows BASH, hostname -i returns 127.0.1.1 lol
<FromGitter> <girng> would be nice if it was 127.0.0.1 -.-
ssvb has quit [Ping timeout: 250 seconds]
<FromGitter> <girng> i wonder if there are any prebuild binaries for redis. why do we need to compile it on a vps, isn't itpackaged in debian?
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
Yxhuvud has quit [Client Quit]
Yxhuvud has joined #crystal-lang
txdv has quit [Ping timeout: 264 seconds]
txdv has joined #crystal-lang
jokke1 has joined #crystal-lang
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
<FromGitter> <bararchy> oprypin thanks for the update, working for me now :)
rohitpaulk has joined #crystal-lang
marius has quit [Quit: baj]
marius has joined #crystal-lang
johndescs_ has joined #crystal-lang
johndescs has quit [Ping timeout: 260 seconds]
johndescs_ is now known as johndescs
rohitpaulk has quit [Ping timeout: 250 seconds]
rohitpaulk has joined #crystal-lang
kosmonaut has quit [Ping timeout: 240 seconds]
kosmonaut has joined #crystal-lang
<FromGitter> <girng> there any benchmarks tools to test crystal tcp server?
Liothen has quit [Ping timeout: 276 seconds]
Liothen has joined #crystal-lang
Liothen has joined #crystal-lang
<FromGitter> <aknaton> @girng Like general tools? Or tools written in crystal?
<FromGitter> <girng> general tools i guess
olbat[m] has quit [*.net *.split]
sz0 has quit [Quit: Connection closed for inactivity]
<FromGitter> <aknaton> @girng You can look at: http://www.kusa.ac.jp/~yukio-m/dbs/goal.html but if you are going to measure performance on your vps you may not have enough control of the environment to do so.
<FromGitter> <girng> interesting, thanks i'll check it out. im just wanting to seehow many messages per seconds i can get on a relatively cheap VPS with a TCP server. before response times are too great, or starts to block all the fibers
<FromGitter> <evandrojr> Hi, how can I make a property for a Class variable? like in https://stackoverflow.com/questions/21122691/attr-accessor-on-class-variables for Ruby
<FromGitter> <aknaton> @girng I read the documentations wrong. If you measure from your client it should be possible :)
<FromGitter> <evandrojr> > Hi, how can I make a property for a Class variable? like in https://stackoverflow.com/questions/21122691/attr-accessor-on-class-variables for Ruby is that possible?
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter> <aknaton> @evandrojr Test the property keyword. https://github.com/crystal-lang/crystal/wiki/Crystal-for-Rubyists#properties
<FromGitter> <bew> @evandrojr `class_property`
<FromGitter> <evandrojr> cool @bew!
<FromGitter> <aknaton> @evandrojr ``` ⏎ class BasicBlock ⏎ def initialize(@name : Int32) ⏎ ⏎ `````` [https://gitter.im/crystal-lang/crystal?at=5af3e465d245fe2eb79c20bd]
<FromGitter> <bew> @aknaton use ⏎ ⏎ ```(the code block must start on a new line)``` [https://gitter.im/crystal-lang/crystal?at=5af3e4a9f04ce53632c715dc]
<FromGitter> <aknaton> Sry about that. I obvisouly dont understand the markdown yet :(
<FromGitter> <aknaton> @bew Aha. Thanks.
<FromGitter> <evandrojr> @aknaton I really was looking for class_property as pointed by @bew
<FromGitter> <aknaton> @evandrojr Sry. I didnt read your post carefully enough. Glad @bew could help :)
<FromGitter> <evandrojr> @aknaton no problem, thank you for you help anyway
rohitpaulk has quit [Ping timeout: 250 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter> <evandrojr> How can I make a method run before each test. It does not say in the docs
<FromGitter> <evandrojr> is that possible already?
<FromGitter> <aknaton> Can you describe what you are trying to accomplish? In a sentence or so. So I understand.
<FromGitter> <evandrojr> before(:each) do ⏎ ⏎ ```@thing = Thing.new``` ⏎ ⏎ end [https://gitter.im/crystal-lang/crystal?at=5af3e894a2d95136332b1a2c]
<FromGitter> <evandrojr> ``````
<FromGitter> <evandrojr> in spec/awesome_print_spec.cr:8: undefined method 'before' ⏎ ⏎ before(:each) do
<FromGitter> <evandrojr> Did you get it? @aknaton
<FromGitter> <aknaton> I'm thinking :) And looking.
<FromGitter> <aknaton> And before_each(&block) dosent work?
<FromGitter> <evandrojr> Did not know it exist, where did you find it?
<FromGitter> <aknaton> https://crystal-lang.org/api/0.24.2/Spec.html#before_each%28%26block%29-class-method
<FromGitter> <aknaton> But thats global I think. Look at https://github.com/crystal-lang/crystal/issues/687
<FromGitter> <evandrojr> GREAT! IT would be awesome if it were mentioned here: https://crystal-lang.org/docs/guides/testing.html
<FromGitter> <evandrojr> Is that possible to run a single test on the CLI?
<FromGitter> <aisrael> Certainly. ⏎ `crystal spec path/to/spec.cr:line`
<FromGitter> <evandrojr> Not very helpful 😟
<FromGitter> <evandrojr> Better than no option
<FromGitter> <evandrojr> thanks @aisrael !
hgost has joined #crystal-lang
DTZUZO_ has quit [Ping timeout: 260 seconds]
zorp has joined #crystal-lang
<FromGitter> <evandrojr> When should I use a Tuple instead of Array?
alex`` has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
<FromGitter> <aisrael> Huh? A tuple is a key-value (elements by name, but known at compile-time). An Array is just... an array (elements by index)
<FromGitter> <evandrojr> key value in HASH isnt?
<FromGitter> <evandrojr> Just released a new release of my output formatting Lib https://github.com/evandrojr/awesome_print.cr
olbat[m] has joined #crystal-lang
rohitpaulk has joined #crystal-lang
olbat[m] has quit [Ping timeout: 240 seconds]
Renich has quit [Ping timeout: 256 seconds]
cptaffe has quit [Ping timeout: 256 seconds]
fifr[m] has quit [Ping timeout: 255 seconds]
kp666[m] has quit [Ping timeout: 240 seconds]
kixune[m] has quit [Ping timeout: 269 seconds]
braidn[m] has quit [Ping timeout: 269 seconds]
byteflame has quit [Ping timeout: 269 seconds]
andrewzah has quit [Ping timeout: 260 seconds]
andrewzah has joined #crystal-lang
<FromGitter> <girng> got my game instance servers working/connecting to my master crystal server. really excited
<FromGitter> <girng> created a nice service file in /etc/systemd/system. game instance server starts up automatically and just waits to connect to master server. all automated. once they connect, we are locked
<FromGitter> <girng> connected*
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
olbat[m] has joined #crystal-lang
<FromGitter> <laginha87> Hi crystal community, I wrote my first blogpost about crystal today https://revs.runtime-revolution.com/crystal-is-not-ruby-part-1-8736f8c2ae58
<FromGitter> <laginha87> I know it seems like I'm bashing the language but I am a huge fan of the project, the stuff I wrote about comes from a place of love :P
ua has quit [Quit: Leaving]
ua has joined #crystal-lang
<FromGitter> <aknaton> @laginha87 Nice. Always fun to read blog posts.
fifr[m] has joined #crystal-lang
byteflame has joined #crystal-lang
braidn[m] has joined #crystal-lang
kp666[m] has joined #crystal-lang
Renich has joined #crystal-lang
cptaffe has joined #crystal-lang
kixune[m] has joined #crystal-lang
shAdOwArt has joined #crystal-lang
shAdOwArt has quit [Quit: Page closed]
<FromGitter> <Qwerp-Derp> I implemented a parser for my library, Hedron!
<FromGitter> <Qwerp-Derp> https://github.com/Qwerp-Derp/hedron
<FromGitter> <Qwerp-Derp> It's finally done! If anyone is interested in using it, please don't hesitate to find bugs and contribute to the project!
Liothen has quit [Remote host closed the connection]
<oprypin> use qt
<FromGitter> <Qwerp-Derp> > :(
<FromGitter> <Qwerp-Derp> dammit I can't do an angry emoji here
<oprypin> it's angry enough in IRC
Liothen has joined #crystal-lang
<FromGitter> <Qwerp-Derp> TBH this is kind of a clone of QT but it's written natively in Crystal so...
<FromGitter> <Qwerp-Derp> I've already made it so there's no going back
<oprypin> what exactly is written natively in crystal?
<FromGitter> <vladfaust> Hi, people. Is that somehow possible? ⏎ ⏎ ```macro params(&block) ⏎ ParamsTuple = NamedTuple({{yield}}) ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5af43846862c5e33e924265d]
<FromGitter> <Qwerp-Derp> oprypin Well everything but the initial library itself is written natively
<FromGitter> <Qwerp-Derp> As in the program other than the C binding is written natively in Crystal
<FromGitter> <Qwerp-Derp> Bad choice of words :P
<oprypin> ok that makes a little more sense
<FromGitter> <Qwerp-Derp> A little...?
<oprypin> vladfaust, the code sample does not help understand what you want to do, and makes no sense by itself, so maybe use a textual description
<FromGitter> <vladfaust> @oprypin it expands to `ParamsTuple = NamedTuple( #<loc:push>begin #<loc:"/home/faust/Projects/prism/temp.cr",7,5>param(#<loc:"/home/faust/Projects/prism/temp.cr",7,11>:id, #<loc:"/home/faust/Projects/prism/temp.cr",7,16>Int32) end#<loc:pop> )`, which is not a valid code
<oprypin> ok
<FromGitter> <vladfaust> it doesn't like `begin`
<FromGitter> <vladfaust> nevermind, noone is able to help me
rohitpaulk has quit [Ping timeout: 264 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter> <vladfaust> Here: https://play.crystal-lang.org/#/r/41rt
<oprypin> vladfaust, the code sample does not help understand what you want to do, and makes no sense by itself, so maybe use a textual description
<oprypin> maybe you can look at what JSON.mapping does https://github.com/crystal-lang/crystal/blob/master/src/json/mapping.cr#L68
<oprypin> I don't think it is possible to parse the contents of a code block in a macro
<oprypin> you just put it somewhere \and that's it
<oprypin> so you need a different approach, like comma-separated items, like in json mapping
<oprypin> or make several idividual macros
<oprypin> which you are actually doing
<FromGitter> <vladfaust> It is expected to work though
<FromGitter> <vladfaust> @straight-shoota you're the one always smart enough to help
<oprypin> that's almost like saying "all the rest of you are stupid" https://imgur.com/5noHKsb
DTZUZO_ has joined #crystal-lang
<FromGitter> <vladfaust> I got a year experience in Crystal and I started to feel when it should work and when it should not
rohitpaulk has quit [Ping timeout: 264 seconds]
rohitpaulk has joined #crystal-lang
<FromGitter> <Qwerp-Derp> isn't the problem the `yield`?
<FromGitter> <Qwerp-Derp> it expands out to this huge jumble of characters that really shouldn't be valid
<FromGitter> <vladfaust> You're absolutely right, @Qwerp-Derp
<FromGitter> <vladfaust> But I need it for DSL
<FromGitter> <faustinoaq> ^^ Just, amazing!!!
<FromGitter> <hugoabonizio> really cool @faustinoaq !
<FromGitter> <bararchy> @faustinoaq That's really is amazing
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter> <bararchy> Does Crystal has any MQ libs? (0MQ, RabbitMQ, etc..)
<FromGitter> <fridgerator> looks like there is an mqtt lib
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
duane has joined #crystal-lang
alexdovzhanyn has joined #crystal-lang
<alexdovzhanyn> hey guys
<alexdovzhanyn> is there any way to dynamically call an object method
<alexdovzhanyn> like if i have a class that implements a method "foo"
<alexdovzhanyn> can i do something like in ruby where you do ClassName.call(:foo) ?
<FromGitter> <wrq> is that a rails method? I don't see that method for classes in 2.5
<alexdovzhanyn> sorry, meant to say: ClassName.public_send(:foo)
<alexdovzhanyn> its a dynamic dispatch
<alexdovzhanyn> another way of doing it in ruby is ClassName.send(:foo)
<FromGitter> <wrq> I dont know of a way to accomplish that in Crystal. generally that kind of reflection is discouraged. there's .responds_to and .try for objects, that's generally how I dispatch to an object if I dont know what methods it has for sure
<RX14> .try isn't dispatch
<RX14> thats for nil-checking
<alexdovzhanyn> well, the thing is i know that this object will have this method, i just have another method that takes in a method name as a parameter and im trying to use that method name to dynamically dispatch to ClassName
<RX14> well you can't do dynamic dispatch in crystal
<RX14> we don't have send
<RX14> we don't have eval
<alexdovzhanyn> gotcha
<RX14> what's the usecase?
<FromGitter> <wrq> "discriminate" might've more accurately conveyed what I meant
<FromGitter> <wrq> my bad
<RX14> you can use macros, but you might be able to get away with not using macros
<alexdovzhanyn> is that something that might be implemented in the future/is a desired feature? i can take a stab at implementation if so
<alexdovzhanyn> one sec ill send a code snippet
<RX14> no it won't be implemented in the future
<FromGitter> <wrq> no, I think the lack of reflection is a great feature
<RX14> crystal is a compiled statically typed language
<RX14> the feature just isn't really possible
<FromGitter> <wrq> god I can't even think of how many define_method monstrosities I've wrestled with
<FromGitter> <wrq> its just gross
<alexdovzhanyn> this isnt to dynamically define methods
<alexdovzhanyn> just to dynamically call methods that have already been defined
<alexdovzhanyn> ```def make_request(@path : String, @method : String, params : String = "")
<alexdovzhanyn> @params = HTTP::Params.encode(@@default_params) # TODO: combine params with default_params
<alexdovzhanyn> HTTP::Client.send(@method)("#{@@default_url}#{@url}?#{@params}")
<alexdovzhanyn> end`
<alexdovzhanyn> wow lol that formatted horribly
<RX14> oh you're just trying to call a method on HTTP::CLient
<FromGitter> <vlazar> @Qwerp-Derp Nice! Is it possible to create OS X status menu app with Hedron/libui?
<alexdovzhanyn> yeah im just trying to call it based on the param
<RX14> we have a generic HTTP::Client.exec
<RX14> which just takes the method as a string
<RX14> and you can avoid all the metaprogramming
<RX14> also all the methods take a URI which will bae far far better than constructing the URL yourself using string interpolation
<RX14> alexdovzhanyn, https://crystal-lang.org/api/master/HTTP/Client.html#exec%28method%2Curl%3AString%7CURI%2Cheaders%3AHTTP%3A%3AHeaders%3F%3Dnil%2Cbody%3ABodyType%3Dnil%2Ctls%3Dnil%29%3AHTTP%3A%3AClient%3A%3AResponse-class-method
<RX14> we should really make URI params integrate better with HTTP::Params
<RX14> it's ugly how you have to use strings to go between them
<alexdovzhanyn> ahh great thanks
<alexdovzhanyn> but for future reference
<alexdovzhanyn> is there any way to do what im trying in crystal?
<RX14> yes
<RX14> actually no
<RX14> because @method is an instance var
<RX14> so no there's not
<RX14> what you'd do in your case would be to consider the fact that there's limited methods you want to call
<RX14> (put,get,etc)
<alexdovzhanyn> is it something that would be desirable in the language or is it just a weird edge case thing?
<RX14> and then just do a case @method
<RX14> for each string call the method manually in the case block
<RX14> it'd be ugly, but thats why we have HTTP::Client.exec
<RX14> alexdovzhanyn, lets just say give me any example and there'll probably be a nice way to write it in crystal that doesn't need anything like send
<RX14> so no, it's not *possible* in the language
<RX14> it's abstually impossible to implement send
<RX14> and so whether it's desirable is moot
<RX14> I wouldn't want it
<alexdovzhanyn> fair enough
<alexdovzhanyn> that makes sense
<alexdovzhanyn> thanks for the help!
<RX14> there's a combination of things that replace send
<RX14> macros, just doing a bit more copy and pasting, and alternatively just designing your code differently
<RX14> the latter is the most important
<RX14> thinking in a statically typed language is different to a dynamically typed one
<RX14> and how you design and structure programs
<RX14> crystal's closer than most languages but it's definitely not the same
Liothen has quit [Remote host closed the connection]
Liothen has joined #crystal-lang
Liothen has quit [Changing host]
Liothen has joined #crystal-lang
alexdovzhanyn has quit [Ping timeout: 260 seconds]
alexdovzhanyn has joined #crystal-lang
<FromGitter> <faustinoaq> ^^ Hi, has someone used this before?
<FromGitter> <bew> Used no, but i know about it :p
<FromGitter> <faustinoaq> Oh, nice 👍
<FromGitter> <faustinoaq> I think would be possible to create shard to support this 😉
<FromGitter> <j8r> I've already YOLOed yes
<FromGitter> <faustinoaq> And I think a shard for OpenCV would be required as well 😅
<FromGitter> <hugoabonizio> darknet is written in C, you can try to write bidings to it https://github.com/pjreddie/darknet
<FromGitter> <bararchy> @faustinoaq you can do similar work using SHAInet as it has a convolutional network , but you'll need to translate the results into the triangles :)
<FromGitter> <faustinoaq> Oh, very nice 👍
<FromGitter> <faustinoaq> @hugoabonizio Yeah 👍
<FromGitter> <bararchy> But we defiantly need to bind OpenCV
rohitpaulk has joined #crystal-lang
<FromGitter> <faustinoaq> Well, we can use https://github.com/Papierkorb/bindgen for that 😉 thanks to @Papierkorb 😄
<FromGitter> <bararchy> @hugoabonizio nice! Didn't know about Darknet, I'll play around with it, shouldn't be harder to bind then FANN was
<FromGitter> <bararchy> I'll try and get bindings working for it
<FromGitter> <bararchy> The RNN is pretty sweet
<FromGitter> <hugoabonizio> I'm sure it will be easy for you @bararchy ! 😄
<FromGitter> <hugoabonizio> maybe this can help https://github.com/pjreddie/darknet/pull/297
rohitpaulk has quit [Ping timeout: 240 seconds]
hightower2 has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
alex`` has quit [Quit: WeeChat 2.1]
alex`` has joined #crystal-lang
That_Guy_Anon has joined #crystal-lang
dragonkh has joined #crystal-lang
<dragonkh> hi - whats a safe and good way to represent money amount to 8 decimal places in Crystal - in Java would use BigDecimal - I see there is BigDecimal in Crystal too
<dragonkh> but once I make a one how do I get the decimal places I want
<dragonkh> I think I don't want to use a float to initialize
<FromGitter> <bararchy> oprypin, do you activly develop something using crSFML? or was it just so that Crystal can have it?
alex`` has quit [Quit: WeeChat 2.1]
<oprypin> bararchy, i hoped to do so but no
<FromGitter> <bararchy> lol
<FromGitter> <bararchy> Wanna join in with our project? (if you're into 2d rpg games)
<FromGitter> <bararchy> were going to have 2 artists joining soon
<oprypin> thanks, but i guess i can't
<oprypin> well i'm also not into rpg
<FromGitter> <bararchy> yeha I figured :) just wnated to help If I can
<FromGitter> <bararchy> I just added "pick up items"
<FromGitter> <bararchy> next "dialog windows"
<FromGitter> <j8r> Living from a game is really ambitious - lots of concurence
<FromGitter> <bararchy> oh, that's not the idea here
<FromGitter> <bararchy> it's a fun project with friends
<FromGitter> <bararchy> My wife and another great friend at aswome artists, and @artlinkov is also a good friend, so we joined forces to create a cool game on our spair time
sz0 has joined #crystal-lang
<alexdovzhanyn> @bararchy looks pretty interesting... whats it about?
<alexdovzhanyn> started a similar kinda game a while back: https://github.com/alexdovzhanyn/SevenDeadlySins
<FromGitter> <bararchy> alexdovzhanyn well, It's going to be a 2d rpg, the setting is post-apocaliptic but not fallout everything is dead style, and more of shadowrun stuff are just changed and wierd style
<alexdovzhanyn> is it currently runnable?
<FromGitter> <bararchy> yeha, but theres not much in there right now, we are working on getting a hold of basic stuff like interactions, dialogs etc.. ⏎ you just need ot follow the instrcutions
<FromGitter> <bararchy> if your'e interesting in joining in we will love to have anyone who is interested working on the game
<FromGitter> <bararchy> I just added a "pickup item" which is really nice, I need to figure out how to put the text in a window
rohitpaulk has joined #crystal-lang
alexdovzhanyn has quit [Ping timeout: 240 seconds]
alexdovzhanyn has joined #crystal-lang
alexdovzhanyn has quit [Ping timeout: 240 seconds]
<FromGitter> <hugoabonizio> @bararchy is this game open source? 😄
alexdovzhanyn has joined #crystal-lang
<FromGitter> <girng> good afternoon!
alexdovzhanyn has quit [Ping timeout: 240 seconds]
<FromGitter> <girng> @bararchy nice one. i finished item looting and dropping couple months ago
<FromGitter> <girng> my inventory is 2d matrix based, like diablo. i had to follow a tetris javascript guide on how to implement it. i nevr used 2d matrix array before lol
<FromGitter> <girng> i finally gotitworking however forcollision, very nice!
alexdovzhanyn has joined #crystal-lang
That_Guy_Anon has quit [Remote host closed the connection]
duane has quit [Ping timeout: 256 seconds]
alexdovzhanyn has quit [Quit: leaving]
txdv has quit [Ping timeout: 256 seconds]
<oprypin> girng, back to the old keyboard i see
txdv has joined #crystal-lang
tilpner has quit [Ping timeout: 260 seconds]
chamar has quit [Remote host closed the connection]
chamar has joined #crystal-lang
jokke has quit [Ping timeout: 260 seconds]
jokke has joined #crystal-lang
dragonkh has quit [Ping timeout: 260 seconds]
<FromGitter> <girng> @oprypin yep. i still have mechanical one and that $13 ebay one camelast week. however, the bottom keys are separated a bit to differently and it got annoying. i bought a wrist rest for my mechanical keyboard, but i got screwed over from ebay. the seller had it listed as a long horizontal gel-pad when i bought it, but what really was sent to me was a long horizontal plastic keyboard wrist rest, that has
<FromGitter> ... attachments to it (which don't even fit my mechanical keyboard..) so whatever. done with it all
tilpner has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 265 seconds]