ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.23.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
<FromGitter> <watzon> What would the Crystal equivilent of `unsigned long` be?
<FromGitter> <watzon> Would I do `$var_name : Float64`?
alex`` has quit [Quit: WeeChat 1.9]
Renich has joined #crystal-lang
Renich has quit [Remote host closed the connection]
Renich has joined #crystal-lang
Renich has quit [Remote host closed the connection]
Renich has joined #crystal-lang
<FromGitter> <zatherz> unsigned long is an integer type
<FromGitter> <zatherz> long is, at least on most platforms that crystal targets, Int64
<FromGitter> <zatherz> crystal doesn't have things like `unsigned`, it's separate types, so `UInt64`
<FromGitter> <zatherz> @bararchy @watzon Thanks, I'm gonna use these results for https://gitlab.com/zatherz/magicjson
<FromGitter> <zatherz> I'm gonna have an `always_ordered` option that makes it use `force ordered`, otherwise I'm gonna use `naive w/ reset`
<FromGitter> <watzon> Ooh awesome
<FromGitter> <watzon> Goog doing using GitLab
Renich_ has joined #crystal-lang
Renich has quit [Remote host closed the connection]
<FromGitter> <sevk> make crystal as a human language , similar to short english .
<FromGitter> <zatherz> what
<FromGitter> <watzon> πŸ˜•
<FromGitter> <sevk> easy++
<FromGitter> <watzon> Anyone know what these would be in a Crystal Lib file? ⏎ ⏎ ```void numa_init (void); ⏎ void numa_uninit (void);``` [https://gitter.im/crystal-lang/crystal?at=59890d7aa7b406262d69ac06]
<FromGitter> <watzon> I tried `fun numa_init`, but it's telling me `can't find function numa_init (Exception)`
alibby1 has joined #crystal-lang
alibby has quit [Read error: Connection reset by peer]
greenbigfrog has joined #crystal-lang
<crystal-gh> [crystal] Sija opened pull request #4808: Implemented Dir.children (master...dir-children) https://git.io/v76V3
DTZUZO_ has joined #crystal-lang
DTZUZO has quit [Ping timeout: 240 seconds]
<FromGitter> <mgarciaisaia> @watzon doesn't `fun numa_init : Void` work?
<FromGitter> <watzon> @mgarciaisaia nope. Still says it can't find the function
<FromGitter> <watzon> Oh well, I don't think it's an important one to include
<FromGitter> <mgarciaisaia> The Crystal Wayβ„’ would be something like: ⏎ ⏎ ```lib Numa ⏎ fun init = numa_init : Void ⏎ # ... ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5989190b42d2f6102588b4eb]
<FromGitter> <mgarciaisaia> So your code calls `Numa.init` instead of an ugly, C-like name
<crystal-gh> [crystal] DougEverly opened pull request #4809: Added OptionParser#order and #order! (master...OptionParser_order) https://git.io/v76wW
<FromGitter> <watzon> Is it possible to wrap static functions? Like https://gitlab.com/procps-ng/procps/blob/master/proc/readproc.c#L89
<FromGitter> <watzon> `lib_crystal` seems to not like them
<FromGitter> <renich> good day, Crystalians!
<FromGitter> <renich> I had a little problem with my PC ... it died...
<FromGitter> <renich> so, now, I am working on a brand new laptop
<FromGitter> <renich> it has Fedora 26
<FromGitter> <renich> and installed crystal
<FromGitter> <renich> almost everything works... I just got that error when I tried the playground
<FromGitter> <renich> the package lacks dependencies, probably. You should add the missing ssl lib
astronavt has joined #crystal-lang
<FromGitter> <mgarciaisaia> Hi @renich! Yeah, packages don't list dependencies yet :/
<FromGitter> <mgarciaisaia> `sudo dnf -y install openssl-devel` *may* do the trick for you - check https://github.com/crystal-lang/crystal/wiki/All-required-libraries#fedora for more packages than you actually need
<FromGitter> <mgarciaisaia> @watzon not really that sure about `static`. May it be something with `inline`, instead?
<FromGitter> <renich> @mgarciaisaia hmmm.. odd.. libssl is provided openssl-libs and it is installed
<FromGitter> <mgarciaisaia> Not sure how does the Crystal <--> C interop works :(
<FromGitter> <watzon> @mgarciaisaia well what I'm looking at is a `static inline void` function
Renich_ has quit [Quit: Renich_]
astronavt has left #crystal-lang ["Leaving..."]
<FromGitter> <sevk> > ["a","b"] - ["a"] # this is useful @Sija
rohitpaulk has quit [Ping timeout: 268 seconds]
greenbigfrog has quit [Ping timeout: 240 seconds]
hightower3 has joined #crystal-lang
hightower2 has quit [Ping timeout: 276 seconds]
<FromGitter> <watzon> Apparently extern variables (https://gitlab.com/procps-ng/procps/blob/master/proc/sysinfo.h#L70) are unsupported?
rohitpaulk has joined #crystal-lang
<FromGitter> <jwaldrip> TIL: that crystal binaries are not truly portable. i.e. I cannto build on ubuntu and run on alpine... because of the bohem gc requirement.
<FromGitter> <jwaldrip> so... with that said, is there an ongoing discussion on bringing a crystal based GC to the language. Making it 100% crystal?
<FromGitter> <johnjansen> @jwaldrip didnt we have this discussion at code camp?
<FromGitter> <jwaldrip> Oh we did...
<FromGitter> <johnjansen> or were you just muttering to yourself ;-)
<FromGitter> <johnjansen> i was sitting close
<FromGitter> <jwaldrip> Not sure where we landed on it...
<FromGitter> <johnjansen> not creepy close
<FromGitter> <jwaldrip> you were pretty close ;-)
<FromGitter> <johnjansen> haha
<FromGitter> <johnjansen> i think it was the standard β€œwere thinking about it” line on the GC front, @sdogruyol may remember or @elorest, they have better memories than me
greenbigfrog has joined #crystal-lang
<FromGitter> <watzon> Wishing I was there πŸ˜†
rohitpaulk has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #crystal-lang
sz0 has joined #crystal-lang
<FromGitter> <drosehn> @DougEverly thanks for the pointer to your `daemonize.cr`. I'm not currently looking to write any daemons in crystal, but that's something that I'm likely to do. My comments were in response to questions brought up earlier by @watzon . What you have is a good start, and I think having that function available as a shard is better than individual programmers trying to figure it out.
hightower3 has quit [Ping timeout: 240 seconds]
<FromGitter> <watzon> Anyone know how to take a C macro like this `#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z)` and Crystalize it?
<FromGitter> <elorest> @johnjansen My recollection was we’d like to develop some sort of full crystal replacement similar to what go ended up using. It’s not really at the top of the priority list right now though.
snsei has quit [Remote host closed the connection]
<FromGitter> <mgarciaisaia> @watzon why not a regular function? That's just making a number from three different others, right?
<FromGitter> <watzon> Yeah I just thought of that
<FromGitter> <watzon> I'm tired and overthinking things lol
<FromGitter> <jwaldrip> @watzon would you prefer that as part of the build though?
<FromGitter> <jwaldrip> You can do that with macro syntax pretty easily, i typically have a runner that evals the shard.yml and inserts the version
<FromGitter> <watzon> @jwaldrip yeah I just added it as a method (https://github.com/watzon/crystal-procps/blob/master/src/procps/sysinfo.cr#L46). That works fine :)
<FromGitter> <watzon> Just got my second shard up on GitHub! Still have a bit of work ahead of me, but I have the bindings to `procps-ng` https://github.com/watzon/crystal-procps
Renich_ has joined #crystal-lang
<FromGitter> <johnjansen> @elorest that was my vague recollection too …
<FromGitter> <jwaldrip> @elorest @johnjansen GC's are not easy... well, not true, gc's are trivial, mallocs are the real pain.
<FromGitter> <elorest> yep.
<FromGitter> <jwaldrip> Could just comb though bohem and convert it to crystal
<FromGitter> <watzon> Better yet, let's just write a C->Crystal transpiler to do the heavy lifting
<FromGitter> <watzon> Then make all the things Crystal libs
<FromGitter> <watzon> 😁
rohitpaulk has quit [Ping timeout: 246 seconds]
greenbigfrog has quit [Remote host closed the connection]
tdc has joined #crystal-lang
tdc_ has joined #crystal-lang
tdc has quit [Ping timeout: 240 seconds]
greenbigfrog has joined #crystal-lang
<FromGitter> <jwaldrip> :-)
snsei has joined #crystal-lang
Renich_ has quit [Quit: Renich_]
Renich_ has joined #crystal-lang
<FromGitter> <sevk> πŸ˜„
rohitpaulk has joined #crystal-lang
tdc__ has joined #crystal-lang
tdc_ has quit [Ping timeout: 240 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
DTZUZO_ has quit [Ping timeout: 245 seconds]
tdc__ has quit [Quit: Leaving]
tdc__ has joined #crystal-lang
tdc__ is now known as tdc
Renich_ has quit [Quit: Renich_]
mark_66 has joined #crystal-lang
<FromGitter> <sevk> C->Crystal transpiler +1 , keep all things simple πŸ‘
<FromGitter> <bew> Good luck with that πŸ˜„
leandrobighetti has joined #crystal-lang
Ven has joined #crystal-lang
Ven is now known as Guest71418
Guest71418 has quit [Ping timeout: 240 seconds]
Ven_ has joined #crystal-lang
tzekid has joined #crystal-lang
office_boy has joined #crystal-lang
Ven_ has quit [Ping timeout: 240 seconds]
<FromGitter> <andreaTP> One question, in a spec I wanna check the output sent to `STDOUT` but it looks like I cannot mock it, how to do it?
w-p has joined #crystal-lang
<FromGitter> <lilijreey> @faustinoaq yes Crstal just a front-end, can by run anywehere. like Kotiln
greenbigfrog has quit [Remote host closed the connection]
<FromGitter> <lilijreey> @huacnlee ε±…η„Άηœ‹θ§δΊ†δΈ€δΈͺη†Ÿζ‚‰ηš„ε€΄εƒ
<w-p> is it not possible to initialize a class property with setter function from inside the initialize call?
bmcginty has quit [Ping timeout: 240 seconds]
greenbigfrog has joined #crystal-lang
<FromGitter> <bew> w-p no you need to explicitly initialize each instance variables in the `initializer`, not in other functions.
<FromGitter> <bew> note that when you do `@bar = something` the setter is not called
bmcginty has joined #crystal-lang
<w-p> so, I can't force the setter to be called during initialization?
<RX14> w-p, i think you misunderstand what a setter is
<RX14> @bar = bar isn't calling bar= and never will
<RX14> because you're setting the instance variable directory
<RX14> not calling the setter
<RX14> directly*
<RX14> indeed
<w-p> self.bar works but still, only if it the associated variables are initialized
<RX14> yes
<w-p> so, defaults can't be calculated.
<RX14> they can be calculated in the initialize function or in "top-level defaults"
<w-p> but not via setters
<RX14> no, it doesn't analyse called functions for whether ivars are set
<RX14> you must initialise all instance variables before you call the first function in your constructor
<FromGitter> <bew> RX14 wut it works, I thought one couldn't init variables in other methods from the initializer Oo
<RX14> you can't
<w-p> alright. that's fine. now I know. thanks.
<FromGitter> <bew> oh no i miss-read the example
<RX14> w-p, the problem is that i think there are certain conditions where if you allow what you want to do, you can break the type system
<RX14> either that or performance
<w-p> in this instance I was trying to use a configuration object with some mappings such that i could associate one value with another without knowning some things
DTZUZO_ has joined #crystal-lang
<w-p> eg: lookup the value of the instance var in a hash where the initialize value is the key - look up that key - set an internal value - etc.
<w-p> without repeating the setter function body
Ven has joined #crystal-lang
Ven is now known as Guest80852
<RX14> w-p, yeah i guess it's a pain but iirc there's good reasons behind it
<RX14> i can't remember exactly what they are however
<w-p> that's ok. good to know. thanks again.
Guest80852 has quit [Ping timeout: 268 seconds]
Papierko- has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 255 seconds]
hightower3 has joined #crystal-lang
olbat[m] has quit [Changing host]
olbat[m] has joined #crystal-lang
olbat[m] has joined #crystal-lang
office_boy has quit [Remote host closed the connection]
office_boy has joined #crystal-lang
Ven has joined #crystal-lang
Ven is now known as Guest12799
office_boy has quit [Read error: Connection reset by peer]
mark_66 has quit [Read error: Connection reset by peer]
office_boy has joined #crystal-lang
mark_66 has joined #crystal-lang
office_boy has quit [Ping timeout: 248 seconds]
w-p has quit [Ping timeout: 240 seconds]
william_ has joined #crystal-lang
office_boy has joined #crystal-lang
office_boy has quit [Read error: Connection reset by peer]
tdc_ has joined #crystal-lang
william_ has quit [Client Quit]
mark_66 has quit [Remote host closed the connection]
office_boy has joined #crystal-lang
tdc__ has joined #crystal-lang
tdc has quit [Ping timeout: 240 seconds]
tdc_ has quit [Ping timeout: 268 seconds]
office_boy has quit [Ping timeout: 246 seconds]
mark_66 has joined #crystal-lang
office_boy has joined #crystal-lang
office_boy has quit [Read error: Connection reset by peer]
tdc has joined #crystal-lang
tdc__ has quit [Ping timeout: 260 seconds]
office_boy has joined #crystal-lang
office_boy has quit [Read error: Connection reset by peer]
office_boy has joined #crystal-lang
office_boy has quit [Read error: Connection reset by peer]
tdc_ has joined #crystal-lang
office_boy has joined #crystal-lang
tdc has quit [Ping timeout: 268 seconds]
office_boy has quit [Ping timeout: 240 seconds]
office_boy has joined #crystal-lang
tdc__ has joined #crystal-lang
tdc has joined #crystal-lang
w-p has joined #crystal-lang
tdc_ has quit [Ping timeout: 240 seconds]
tdc__ has quit [Ping timeout: 258 seconds]
ephemera__ has quit [Quit: No Ping reply in 180 seconds.]
ephemera_ has joined #crystal-lang
tdc has quit [Ping timeout: 240 seconds]
<FromGitter> <Sija> @sevk I know, thx anyway! :)
tdc has joined #crystal-lang
paulcsmith_ has joined #crystal-lang
office_boy has quit []
rohitpaulk has joined #crystal-lang
paulcsmith_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Philpax_ has quit [Ping timeout: 240 seconds]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
Guest12799 has quit [Ping timeout: 268 seconds]
mark_66 has quit [Remote host closed the connection]
snsei has joined #crystal-lang
<crystal-gh> [crystal] RX14 closed pull request #4808: Implemented Dir.children (master...dir-children) https://git.io/v76V3
Ven has joined #crystal-lang
Ven is now known as Guest99057
<FromGitter> <Willamin> What's the best open gl crystal bindings? I see that a few exist and aren't sure which to use
<FromGitter> <GetRektByMe> Inb4 stdlib
<travis-ci> crystal-lang/crystal#020796f (master - Implemented Dir.children (#4808)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/262290843
<FromGitter> <GetRektByMe> Because stdlib has everything from HTTP to OAuth
<FromGitter> <Willamin> Are there open gl bindings in the stdlib? I couldn't find them
<FromGitter> <bew> @Willamin I suggest you try some of them (the most complete ones), and see which fits you best. There is no official libs for opengl
tzekid has quit [Remote host closed the connection]
DTZUZO_ is now known as DTZUZO
<travis-ci> crystal-lang/crystal#020796f (master - Implemented Dir.children (#4808)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/262290843
<crystal-gh> [crystal] Sija opened pull request #4811: Implemented yielding Dir.each_child (master...dir-each-child) https://git.io/v7iA6
Papierko- is now known as Papierkorb
leandrobighetti has quit []
nikkkk has joined #crystal-lang
nikkkk has quit [Client Quit]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
Guest99057 has quit [Ping timeout: 260 seconds]
snsei has quit [Ping timeout: 276 seconds]
<FromGitter> <johnjansen> anyone using guardian with OSX notification center?
rohitpaulk has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
tzekid has joined #crystal-lang
Renich has joined #crystal-lang
onionhammer has joined #crystal-lang
<FromGitter> <faustinoaq> I notice `ary` is everywhere inside Array.cr (https://github.com/crystal-lang/crystal/blob/4a9b8677504fababe8d87f6d960716ba58f22c7a/src/array.cr#L148) πŸ˜„
<FromGitter> <faustinoaq> > @faustinoaq yes Crstal just a front-end, can by run anywehere. like Kotiln ⏎ ⏎ @lilijreey I think the same πŸ˜„
Renich has quit [Remote host closed the connection]
Ven has joined #crystal-lang
Ven is now known as Guest43717
Renich has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 258 seconds]
<FromGitter> <watzon> I want to see a kemal vs iron (https://github.com/iron/iron) benchmark
Guest43717 has quit [Ping timeout: 260 seconds]
<FromGitter> <eliasjpr> @watzon take a look at https://www.techempower.com/benchmarks/
rohitpaulk has joined #crystal-lang
sz0 has joined #crystal-lang
<FromGitter> <watzon> Lol @eliasjpr the kemal one is one of the few that has no results and over 1000 errors
rohitpaulk has quit [Ping timeout: 268 seconds]
<FromGitter> <fridgerator> you can look at the round 15 preview: https://www.techempower.com/benchmarks/previews/round15/
Ven_ has joined #crystal-lang
<FromGitter> <fridgerator> even here, i'm sure changes have been made that aren't reflected yet
<FromGitter> <renich> good day, Crystalians
<FromGitter> <renich> I need help with something: say, you have a JSON::Mapping object and one of the instance variables is nilable or string. How can you test for that? I tried `if my_map.thing.nil_ ...` and it doesn't work
<FromGitter> <renich> also tried `if my_map.thing` and it doesn't work either.
<FromGitter> <fridgerator> use `if thing = my_map.thing` `thing.to_f64`
Ven_ has quit [Ping timeout: 240 seconds]
<FromGitter> <renich> @fridgerator will try that
alibby1 has quit [Ping timeout: 240 seconds]
alibby has joined #crystal-lang
<FromGitter> <fridgerator> either that, or `my_map.thing.not_nil!.to_f64`
<FromGitter> <renich> @fridgerator that seems to work (first one). I try to avoid the second one. Thanks a lot!
Ven has joined #crystal-lang
Ven is now known as Guest91583
<FromGitter> <fridgerator> JSON::Any also defines `as_` methods: https://crystal-lang.org/api/0.23.1/JSON/Any.html
<FromGitter> <fridgerator> you might be able to do `thing = my_map.thing.as_f64?`
<FromGitter> <fridgerator> I guess it just `as_f?` for 64
<oprypin> fridgerator, what are you even talking about, this is json mapping
<FromGitter> <fridgerator> calm down
<oprypin> `if thing = my_map.thing` was a good suggestion, all that's needed
<FromGitter> <fridgerator> chill out br
<FromGitter> <fridgerator> o
<FromGitter> <eliasjpr> @watzon sorry I meant to send you the latest test results, have to update my nookmarked url
<FromGitter> <eliasjpr> iron365,576
<FromGitter> <eliasjpr> kemal (postgresql)164,771 (note db)
<FromGitter> <eliasjpr> crystal394,246
<FromGitter> <watzon> So iron is a bit faster than kemal then
<FromGitter> <watzon> But strait Crystal is blazin
<FromGitter> <eliasjpr> kemal is making db requests
<FromGitter> <watzon> True
<FromGitter> <eliasjpr> Look at the plain text results
<FromGitter> <eliasjpr> crystal2,180,410 ⏎ iron240,876
<FromGitter> <eliasjpr> kemal (postgresql)113,694
<FromGitter> <eliasjpr> Β―\_(ツ)_/Β―
tdc has quit [Ping timeout: 258 seconds]
<FromGitter> <eliasjpr> @fridgerator did we submitted a fix for kemal? I think we did. We have to wait for the next batch of results
<FromGitter> <fridgerator> yeah there has been a few fixes, hard to keep track of them and if they have run or not
<FromGitter> <eliasjpr> @watzon you can run the test in your environment if you like see the TEFB repo https://github.com/TechEmpower/FrameworkBenchmarks
<FromGitter> <watzon> Awesome stuff :) thanks
Guest91583 is now known as Ven``
<FromGitter> <watzon> Hey @faustinoaq does your crystal vscode extension allow you to set a path for the crystal binary?
Ven`` has quit [Ping timeout: 240 seconds]
Ven has joined #crystal-lang
Ven is now known as Guest83286
alibby has quit [Ping timeout: 240 seconds]
<xiljin> numbers and benchmarks aside, I couldn't be happier with the performance I'm getting from a small kemal app with an sqlite backend .. the fact that it's hardly using any system resources is a nice bonus as well
<Papierkorb> I think that most crystal code runs much much faster than it has any right to. Not from a ruby POV ("Wow this is fast"), but compared to "fast" languages like C or Rust.
<Papierkorb> I say this as to get this kind of overall performance, you'd usually have to know much more (As in: C or Rust). You still can go even faster in say C, but for what price? If the GC isn't hitting you, you're probably not going to have real issues ;)
<FromGitter> <watzon> Agree πŸ’―
<FromGitter> <watzon> Does Crystal have anything like C's fscanf (https://www.tutorialspoint.com/c_standard_library/c_function_fscanf.htm) built in yet?
<oprypin> why tho
<FromGitter> <watzon> Because it's a really handy way to take a string, pattern match parts of it, and turn it into an array
<oprypin> that's a regex
<Papierkorb> Not really
<FromGitter> <watzon> I found String.scan (http://devdocs.io/crystal/api/0.23.0/string#scan(pattern:String)-instance-method), but the docs are kinda sparse
<Papierkorb> watzon, you can use StringScanner. Not exactly the same, but ..
<oprypin> C and C++ input functions are completely disjoint from reality. they expect everything to be space separated and treat newlines the same as space?
<Papierkorb> oprypin: A type-safe version of a scanf like function would be kinda neat.
<oprypin> pls no percent nonsense
<Papierkorb> no one said percent-string
<FromGitter> <watzon> Papierkorb: I agree, a typesafe version would be great
<FromGitter> <watzon> But how to go about implimenting that, I don't know
<hightower3> Is there a __something__ which expands into filename or dirname where the current file resides?
<hightower3> (not __FILE__ which points to a temp location if it's a script)
<oprypin> we've had this brought up
<FromGitter> <watzon> Something like `pwd`?
<FromGitter> <watzon> Or `__DIR__` in Python, or whatever it is
<oprypin> hightower3, what's the "current file" tho?
<oprypin> not sure what you mean "if it's a script" and what "current file" there would be in that case
<hightower3> oprypin, yeah, good question :)
<FromGitter> <watzon> Got tired of wrapping procps because of it's lack of documentation and because C sucks, so I'm attempting to rewrite it in Crystal
<FromGitter> <watzon> :D
<FromGitter> <watzon> Who here knew about all the wonders that the `/proc` directory holds?
Renich[m] has joined #crystal-lang
<Papierkorb> watzon, proc(5)
gloscombe has joined #crystal-lang
<FromGitter> <watzon> Papierkorb: that's the one
<FromGitter> <watzon> Never touched it before now
gloscombe has quit [Client Quit]
<Renich[m]> guys, heard of riot? riot.im
<Papierkorb> <Insert obligatory XKCD reference here>
<FromGitter> <watzon> I have, but I've never used it
<Renich[m]> I just learned of it. It seems interesting. The next IRC. Freenode supports it already
<Renich[m]> pretty much like gitter
<Renich[m]> but with end-to-end encryption
<Papierkorb> end-to-end in a public chat room. yeah.
Renich has quit [Remote host closed the connection]
<oprypin> so all the disadvantages of IRC in a silly web interface? SeemsGood
Renich has joined #crystal-lang
Renich has quit [Client Quit]
watzon[m] has joined #crystal-lang
<watzon[m]> Testing it out now
leandrobighetti has joined #crystal-lang
<Papierkorb> ... why does it add a [m] at the end of the nick?
<watzon[m]> I think it's do differentiate between IRC and Riot
<watzon[m]> Idk
<Papierkorb> m(
<watzon[m]> It stands for matrix I guess
watzon[m] is now known as watzon
<watzon> Figured it out, it's what riot adds when you haven't identified a nick
<watzon> Now that I've identified with NickServ I don't have the [m] anymore
Giphy[m] has joined #crystal-lang
leandrobighetti has left #crystal-lang [#crystal-lang]
<hightower3> Hey, quick one (I'm not seeing a tree from the wood). I have obj with property "x", and I need to access obj.x, but the value "x" is stored in a variable. How do I do that? (E.g. something like obj.get(x))
<hightower3> obj.get(variable) I mean
<watzon> `obj[variable]` doesn't work?
<oprypin> hightower3, you cannot do that, not without perparation for it
<hightower3> watzon, no, since it's a property
<watzon> Ahh of course
Guest83286 has quit [Ping timeout: 240 seconds]
<oprypin> hightower3, it all comes down to making a method with case "x"; return x;
<hightower3> oprypin, right, just thought about that. Ok, thanks.
<oprypin> you can automate that but it's not clean
<hightower3> no need, just have one occurrence
<RX14> oprypin, if it gets people off gitter i have no problems with matrix lol
<RX14> at least the bridge is "native"
<watzon> True that
<watzon> Not a fan of Gitter? Lol
<RX14> well its not too bad
<RX14> but the bridge is a pain
<RX14> the problem with it is that it's not compatible
<FromGitter> <faustinoaq> @watzon I read your comment and added it! πŸ˜„ https://github.com/faustinoaq/vscode-crystal-lang#310-compiler
<watzon> True. I like that riot has syntax highlighting built in too
<watzon> @faustinoaq you are amazing!
<RX14> how do code blocks work even
<RX14> over irc
<watzon> !giphy yay
* Giphy[m] uploaded an image: yay-balloon-whoo-l2SqiOMQxG82Gto4M (1269KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/xCZUNFbfRfRsDiAjOGGrwqHL>
<RX14> oh jesus
<RX14> can we not
<Papierkorb> ^
<watzon> What do you mean RX14?
<watzon> Lol
<RX14> 1 bot please
<FromGitter> <faustinoaq> Also latest version shows more info about symbols ✨
<FromGitter> <faustinoaq> ((https://i.imgur.com/wvZyoMf.gif))
<RX14> >> "foo"
<RX14> is that bot rip?
<watzon> Awesome :D
Giphy[m] has left #crystal-lang ["User left"]
<watzon> The giphy bot has left the scene
<oprypin> RX14, yeah bot has been absent from this channel for a long time
<RX14> im sure it was there a bit ago
<oprypin> RX14, im counting 10-20 days
<FromGitter> <faustinoaq> Still a lot of work to do with Scry, macros and completion, but at least the extension is good enough to work with Amber and Kemal.
<RX14> yeah sounds right oprypin
Philpax_ has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
<watzon> So it is using kemal or cowboy?
<watzon> Haha
tzekid has quit [Remote host closed the connection]
<watzon> Well @faustinoaq my batch files don't seem to be working with the plugin
<watzon> not quite sure why
w-p has quit [Ping timeout: 240 seconds]
rocky has joined #crystal-lang
w-p has joined #crystal-lang