<FromGitter>
<marksiemers> > guys what you think will crystal dominate go or not ?)) ⏎ ⏎ Still TBD. I think Crystal will have to get a lot of adopters from Ruby, Python, and even Elixir. ⏎ Syntax and enjoyment of coding, I think Crystal is a hands down winner, but that is pretty subjective. ⏎ The major things holding it from wide adoption (IMO) are these: ... [https://gitter.im/crysta
<FromGitter>
<marksiemers> In addition to those, in the data science world, it could displace python - but that's really outside my realm of knowledge.
<oprypin>
the situation is even worse than that when you look at code added. commits from external contributors are usually tiny
<oprypin>
also @asterite's graph is basically the same as the main one
<FromGitter>
<marksiemers> @sdzyba - I agree that doesn't look like a promising trend, I would hope that means as the language matures, fewer changes are needed, and each of them take more time (to co-exist with the larger existing code-base), but I'm afraid it may be volunteer weariness - and it looks like for a while Ary was putting in a lot of commits.
<oprypin>
but FWIW we did get more external contributors
<FromGitter>
<marksiemers> High level what is considered mandatory for 1.0? Parallelism, Windows support, something else?
<FromGitter>
<marksiemers> With the concurrency built in, I think parallelism could wait for a 2.0, but there may be a lot of important reasons for that feature that I'm not aware of.
<oprypin>
marksiemers, it's needed for 1.0 not because it's "nice" but because libraries (standard library too) are not ready for it and would have to change their APIs likely
<oprypin>
for the longest time I was of the opinion that having a breaking 2.0 release soon after 1.0 could be devastatingly disappointing to a lot of people
<oprypin>
but hey, maybe it's time to cut the losses
<oprypin>
it just ain't happening soon
<FromGitter>
<marksiemers> When you say libraries - crystal libraries, or other languages? Same question for standard library
<oprypin>
Crystal
<FromGitter>
<marksiemers> So if parallelism is not built in to 1.0, as soon as it is added, then none of the libs will be compatible - is that the issue?
<FromGitter>
<marksiemers> Would it be a huge PIA to maintain a 1.0 (w/o parallelism) and a 2.0 (with it) concurrently for a long time frame (~3 years) (sorry about the pun)
balduin has left #crystal-lang [#crystal-lang]
<oprypin>
1. yes 2. obviously yes
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #crystal-lang
snsei has quit [Remote host closed the connection]
lacour has quit [Quit: Leaving]
rohitpaulk has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
Papierkorb_ has joined #crystal-lang
qard has joined #crystal-lang
qard has quit [Client Quit]
claudiuinberlin has joined #crystal-lang
<FromGitter>
<extremety1989> guys i do have a question what is difference using TCP server and WEBSOCKET
<FromGitter>
<extremety1989> SOCKETS = [] of HTTP::WebSocket
<livcd>
Go has a backing of multibillion dollar corporation and is also extremely popular in China because chinse people in general admire Google. Also Go is lets say a finished project which is just being polished. Crystal on the other hand...But we all know this :)
DTZUZO has quit [Ping timeout: 260 seconds]
<Papierkorb_>
extremety1989, what's your question?
<FromGitter>
<extremety1989> @FromIRC what is better HTTP::WebSocket or TCPServer
<Papierkorb_>
..wut?
<Groogy>
Morning!
<Groogy>
o7
<FromGitter>
<extremety1989> =)
<Papierkorb_>
Groogy: o/
<FromGitter>
<extremety1989> hahaha
<Groogy>
donno why I accidentally saluted
<FromGitter>
<extremety1989> what is better HTTP::WebSocket or TCPServer ?
<Papierkorb_>
extremety1989, you're comparing pears to apples
<Groogy>
also so nice everything is released and the forums/reddit are just people talking about crazy shit they managed to do
<FromGitter>
<extremety1989> really ?
<Papierkorb_>
..yes?
<Papierkorb_>
Please read up on what TCP and WebSocket is. Even the wikipedia page will suffice.
<FromGitter>
<extremety1989> i will
<FromGitter>
<extremety1989> just wanted to know
<FromGitter>
<extremety1989> what is better approche
<Papierkorb_>
You didn't even state a full question. Posting a blob of code (that's not even formatted) is not a question.
<Papierkorb_>
Help the helper.
<Groogy>
TCP is a protocol, websocket is an implementation of it isn't it?
<FromGitter>
<extremety1989> well for me it is kinda same thing ))
<Papierkorb_>
TCP is the Transmission Control Protocol, a stateful and stream-based protocol on OSI Layer 4. WebSocket builds upon TCP, also stateful but message/datagram based.
<Papierkorb_>
What's better? The V4 Engine or a Porsche?
<FromGitter>
<extremety1989> ahha okey))
<FromGitter>
<extremety1989> thank you
<Papierkorb_>
Please read up on that, it'll help you tremendously in the general case
<Groogy>
Focus on just learning and getting something done for now, I believe it is better to learn by fucking up if you aren't bound by actual deadlines/getting shit done
<FromGitter>
<extremety1989> his implementation with postgres does not work..
<Groogy>
i.e if you kill performance by creating way too many tmp arrays unnessecairly you'll both learn to not do that ever again but also how to find them and fix it
<FromGitter>
<extremety1989> it says to_hash method is undefined
<FromGitter>
<extremety1989> undefined method 'to_hash' for DB::ExecResult
<Groogy>
and back from lunch
<Papierkorb_>
Just why is the query planner of Neo4j so trash >_>
<FromGitter>
<extremety1989> lol
<Groogy>
anyone know a good graphical svn client? need to work on an old repo and I don't want to relearn svn ( ´_ゝ`)
<Groogy>
for arch
faustinoaq has joined #crystal-lang
faustinoaq has quit [Quit: Konversation terminated!]
<crystal-gh>
[crystal] MakeNowJust opened pull request #5307: Don't use `{{yield}}` outside a macro (master...fix/crystal/cant-use-yield-outside-a-macro) https://git.io/vFyAa
<FromGitter>
<bararchy> livcd I put my hopes with Crystal, the thing about it, and other languges, it's open-source, we can always fork our own if things go sower and slowly move to another lang, though, I don't see this as a real posibility
<FromGitter>
<monouser7dig> you say float should be much faster?
faustinoaq has quit [Quit: Konversation terminated!]
<FromGitter>
<Rinkana> I'm not saying that. But in the article it states that it should be faster because CPU's are optimized for float operations. And in both our benchmarks floats are indeed faster
faustinoaq has joined #crystal-lang
<FromGitter>
<monouser7dig> yes
<FromGitter>
<jdbann> Great! Thanks @faustinoaq
<Papierkorb_>
would be kinda news if CPUs were any good at floats. They just suck at divisions.
<faustinoaq>
Papierkorb_, How can I list online users on IRC?
<Papierkorb_>
huh? your client should have a nick list to the right
<Papierkorb_>
or on the left. somewhere.
<faustinoaq>
Oh, ok, but can I use some IRC command too?
<FromGitter>
<Fryguy> I just glanced at it, but it looks pretty nice to me. ⏎ ⏎ On cool thing that Crystal has is a simpler comparison operator for `a < x < b`: ⏎ ⏎ `square.rank >= 0 && square.rank < @size` can be written as `0 <= square.rank < @size` [https://gitter.im/crystal-lang/crystal?at=5a0f24e8982ea2653f90f40e]
<FromGitter>
<Fryguy> Its minor, but it reads nice
<FromGitter>
<claisne> great thanks
<FromGitter>
<Fryguy> One other minor thing is that `self.` isn't necessary on methods calls...it's implied...but you do need it when calling a setter method
<FromGitter>
<claisne> ok I'll refactor!
<Papierkorb>
#set_starting_board, #moves and #piece_captures are way too complex
<Papierkorb>
Empty `()` can (= should) be omitted: `foo()` -> `foo`
<FromGitter>
<claisne> how would you simplify #set_starting_board ? decompose for white and black ?
<Papierkorb>
That'd be a good refactor, yes
<Papierkorb>
The if also doesn't have a branch for `rank == (@size / 2)`. But that thing's gone in a minute anyway now, so
<Papierkorb>
..
<FromGitter>
<claisne> what do you mean ?
<FromGitter>
<claisne> if ```rank === (@size / 2)``` its only empty pieces
<Papierkorb>
For rank in { @size / 2 - 1, @size / 2 }, no branch matches.
<FromGitter>
<claisne> yes indeed there are no pieces
<Papierkorb>
The current, unrefactored, code doesn't make this intention clear
<Papierkorb>
Lines 73/74 could benefit from trailing-if: `piece.promote if promotion_square?(..)`
<FromGitter>
<claisne> great didn't know about this one thanks
<Papierkorb>
the algorithm in #piece_captures could actually be its own class
<FromGitter>
<Fryguy> I assumed that mine was bad because in my project I mes with crystal_main, so I'm interested to see someone else has the issue too
<faustinoaq>
<@robacarp> Thank you! I'll take a look +1
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
faustinoaq has quit [Ping timeout: 258 seconds]
vivus has quit [Quit: Leaving]
<FromGitter>
<exts> is there a shard out there to format cli data? built for cli, like I want to build a table and have the library format the padding and all that jazz.
<FromGitter>
<exts> if not i may have a weekend project I can work on
<FromGitter>
<eliasjpr> There is shell-table shard @exts
<FromGitter>
<exts> thanks @eliasjpr will check it out
<FromGitter>
<exts> looks like the shard site's down, gonna check github
<FromGitter>
<exts> you're a life saver @eliasjpr that's exactly what I wanted
ShalokShalom has quit [Remote host closed the connection]