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]
wuehlmaus has joined #crystal-lang
_whitelogger has joined #crystal-lang
<FromGitter> <proyb6> Anyone explore WebSocket?
<FromGitter> <proyb6> Have you use it for other purposes e.g. for backend communication across servers?
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus>
<wuehlmaus> VB B ¿A˘
<trashhalo[m]> wat
_whitelogger has joined #crystal-lang
<FromGitter> <girng> @proyb6 nope, i just use a tcp stream for that
<FromGitter> <girng> but if i couldn't use gitter or if crystal had no community, i wouldn't be able to figure out how to communicate between servers with messages. i would have prob used websocket then
<FromGitter> <proyb6> @girng How does tcp stream look like and can they sent HTML contents as well?
<FromGitter> <girng> yeah you can send anything
<FromGitter> <proyb6> R
<FromGitter> <proyb6> But I tried to do benchmark on tcp socket, not HTTP socket on Crystal seems to be less performant, provided I need to manually manage the incoming data
<FromGitter> <proyb6> Nuster author just shared with me on Haproxy
<FromGitter> <girng> were you running just one instance?
<FromGitter> <girng> wait, what do you mean sorry. did you test a tcp socket and a websocket? or are you saying crystal's websocket performance was less than another language?
<FromGitter> <proyb6> I have test client and server websocket on local machine and was exploring whether it could be use for backend purpose over those “reverse proxy” method which is slower like fpm-php
<FromGitter> <girng> hmm
<FromGitter> <dscottboggs_gitlab> Does anyone know of a nice example of how to use YAML::Builder and YAML::PullParser? I've used the JSON equivalent but I'm not sure how to use `mapping`, `scalar`, and `sequence`
<FromGitter> <dscottboggs_gitlab> nvm i just kinda figured it out by experimenting a bit
_whitelogger has joined #crystal-lang
ashirase has quit [Ping timeout: 250 seconds]
ashirase has joined #crystal-lang
<FromGitter> <bew> https://github.com/crystal-lang/crystal/pull/7214 🎉 👏 @ysbaddaden nice work!!!
<FromGitter> <vladfaust> Incredible PRs right now, I’m so happy!
<FromGitter> <j8r> @sam0x17 if you do multiple initialize, it will do multiple allocations. It hurt perfs and memory
<wuehlmaus> is there work on the coprcessing that one can see?
<wuehlmaus> other than that try in may?
<wuehlmaus> [RX14 work]
<FromGitter> <bew> @j8r wut??
<RX14> @j8r that's completely incorrect
<FromGitter> <bararchy> where does `crystal play` saves it's cache?
<RX14> ~/.cache/crystal probably
<FromGitter> <bararchy> cleaning it won't make a stupid loop i did go away and know everytime I open crystal play it hangs :(
<FromGitter> <bararchy> could it be saving cache in the browser somehow?
<RX14> yeah
<FromGitter> <bajro17> Hello my dear friends
<FromGitter> <bajro17> I dont be here long time
<FromGitter> <bajro17> I have one silly question
<FromGitter> <bajro17> is it possible to specify for download file default location on user computer
<FromGitter> <bajro17> like it must be on Windows C:/something
<FromGitter> <bajro17> on linux /home/$USER/something
<FromGitter> <j8r> @bew @RX14 i've benchmarked self.new vs initialize, and clearly the later was slower
<RX14> no
<FromGitter> <j8r> At lest it hurts perf
<RX14> your benchmark is wrong, then
<RX14> it's probably one of those 0-cost loops which runs 50 million + times a second and is impossible to microbenchmark
<FromGitter> <j8r> Initialize that calls another initialize, vs self.new calling initialize?
<FromGitter> <j8r> Initialize calls allocate AFAIK
<RX14> no...
<RX14> .new calls allocate lol
<RX14> either way you only call allocate once
<FromGitter> <j8r> I mean ded initialize, called with .new
<RX14> what do you mean?
<FromGitter> <j8r> I'm on phone :/ `def initialize`
<RX14> no
<RX14> the allocate is called from .new
<RX14> always
<FromGitter> <j8r> I mean it creates a special `self.new`
<FromGitter> <j8r> I thought it has a `GC.allocate`...
<RX14> it does
<FromGitter> <j8r> I don't understand why `GC.allocate` will be called once, for one`.new`called which call `new` inside. Both are created with `initialize`
<RX14> but thats not what anyone is talking about
<RX14> that would create 2 completely different objects
<RX14> you either go `.new` -> `.new` (autogenerated, allocates) -> `#initialize`
<RX14> or you go `.new` (autogenerated, allocates)` -> `#initialize` -> `#initialize`
<FromGitter> <j8r> The @sam0x17 example use `initialize("somestr")` inside an `initialize`
<RX14> yes, exactly
<RX14> where is .new called again?
<FromGitter> <j8r> So `new` isnt same as`initialize` in this case?
<RX14> ...
<RX14> .new calls initialize
<RX14> not the other way around
<RX14> initialize is a normal method
<FromGitter> <j8r> Ok!
<RX14> it just automagically gets a .new with the same arguments which calls it
<FromGitter> <j8r> Thx, I got it ;)
<FromGitter> <j8r> We can have conflicts with `self.new` and `initialize` with same overloads then :/
<mps> j8r: sorry for distraction from productive chat, but yesterday I forgot to mention to you Adélie Linux (http://www.adelielinux.org) which is based on Alpine and have LXQt, kde plasma and is more 'end user' friendly than Alpine
<FromGitter> <j8r> Thx mps, that's what I was looking for :)
<FromGitter> <j8r> ... but, do they contribute back to have the kde/lxqt packages in the mainline Alpine?
<FromGitter> <bararchy> @j8r so, MT schedular ah?
<FromGitter> <j8r> Meh > We ship coreutils instead of BusyBox by default, as user experience is our absolute highest goal.
<FromGitter> <j8r> But that's ok if we can remove it
<FromGitter> <j8r> @bararchy ?
<FromGitter> <bararchy> just hyping about -> #7214
<mps> j8r: they contribute back, but not everything
<FromGitter> <j8r> @bararchy indeed :)
<FromGitter> <bararchy> I wish we could get it for 0.28.0
<FromGitter> <bararchy> then Windows support for 0.29.0
<FromGitter> <bararchy> Then v1 :)
<FromGitter> <proyb6> Not sure if anyone notice, Papierkorb has no time to maintain this, perhaps who is keen to take over? ⏎ https://github.com/Papierkorb/qt5.cr/issues/21
<FromGitter> <proyb6> MT - MultiThread or Manual Transmission? :)
<FromGitter> <spTorin> Mmmm... now crystal can execute fibers in parallel? on different cores?
_whitelogger has joined #crystal-lang
<FromGitter> <bew> @spTorin not "NOW" but it's in progress :)
<FromGitter> <bararchy> @Papierkorb what say you about `qt5` shard ?
sagax has quit [Ping timeout: 268 seconds]
<FromGitter> <kingsleyh> I've joined the forum and introduced myself :)
<FromGitter> <kingsleyh> @girng is your godot game anywhere on github?
sagax has joined #crystal-lang
return0e_ has quit [Remote host closed the connection]
return0e has joined #crystal-lang
<oprypin> bararchy, he's not here
<oprypin> it is very unfortunate that such grandiose work is lost to bus factor
<FromGitter> <bararchy> oprypin: bus factor?
<RX14> how much would be lost if a person was hit by a bus and died
<RX14> i.e. if you're the only person working on a project it has bus factor 1 since 1 person hjas all the knowledge and experiese on that project
<FromGitter> <bararchy> Ok, makes sense
non-aristotelian has joined #crystal-lang
JuanMiguel has joined #crystal-lang
JuanMiguel has quit [Client Quit]
<FromGitter> <kingsleyh> More people could join the project and even if the original author moves on other people can learn from the code and take it forwards
<FromGitter> <kingsleyh> Maybe it would be nice to make a list of projects which people would like resurrected
<FromGitter> <kingsleyh> I recently revived the rethinkdb project for example
<oprypin> kingsleyh, there's https://github.com/crystal-community
<oprypin> kingsleyh, but generally, no, that's not how it works
<oprypin> tbh i havent seen any people involved with @crystal-community in ages
<FromGitter> <kingsleyh> Oh nice!
<FromGitter> <kingsleyh> The Crystal community is probably quite small (I have no idea how big it is) but maybe in the future with more people things like that will pick up
<oprypin> kingsleyh, maybe u should even look into joining this @crystal-community alias
<oprypin> obviously it doesnt represent crystal community but w/e
<FromGitter> <kingsleyh> When I started learning Ruby the community was tiny and nobody I knew had heard of it - but years later it’s got a huge community
<FromGitter> <kingsleyh> Some interesting things in the list over there - as you know I’ve been doing some work in the OpenSSL space - i guess the sikoba team together with Manas are going to take care of that one of the recent announcement is correct
akaiiro has quit [Remote host closed the connection]
<FromGitter> <girng> @kingsleyh nice, gonna read it now
non-aristotelian has quit [Quit: non-aristotelian]
return0e has quit [Read error: Connection reset by peer]
return0e has joined #crystal-lang
azuri5 has joined #crystal-lang
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 268 seconds]
azuri5 has quit [Quit: azuri5]
druonysus has quit [Read error: Connection reset by peer]
Jenz has joined #crystal-lang
<Jenz> What the closest crystal has to java's 'this'
<Jenz> Merry christmas, btw
<Jenz> Bad time to ask, nvm. replying unless I'm online, thanks
Jenz has quit [Quit: leaving]