bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Cyrus>
asterite: I think you have the wrong person -- that should be for w400z.
<Cyrus>
But he's no longer here.
<Cyrus>
Though those are cool projects.
<FromGitter>
<fkchang> @sdogruyol - not certain if this is a kemal websockets question or a crystal question. if I'm streaming log file over websockets in kemal, how do I kill the stream on close? I want to do something like this: ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=580175071cc4cda456506c9c]
Philpax has joined #crystal-lang
crystal-lang063 has joined #crystal-lang
crystal-lang063 has quit [Client Quit]
<wlib>
there needs to be a BUILDING file and the README.md needs to have a reference to it so people can build without researching, it just helps new users
<wlib>
nvm i forgot its self hosted
wlib has left #crystal-lang [#crystal-lang]
soveran has joined #crystal-lang
jhass has quit [Ping timeout: 252 seconds]
soveran has quit [Ping timeout: 248 seconds]
ruby_ has quit []
asterite has quit [Ping timeout: 250 seconds]
bjz has joined #crystal-lang
vikaton has joined #crystal-lang
pduncan has quit [Ping timeout: 250 seconds]
asterite has joined #crystal-lang
dhk_ has joined #crystal-lang
jhass has joined #crystal-lang
dhk has quit [Ping timeout: 250 seconds]
<Cyrus>
fhkchang: If you find a way, please share the solution. I'm curious what it would be.
<Cyrus>
s/fhkchang/fkchang/;
dhk_ has quit [Quit: Leaving]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
bjz has quit [Ping timeout: 258 seconds]
bjz has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
Ven_ has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 260 seconds]
eizua has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
eizua has quit [Remote host closed the connection]
<jokke>
i wonder why the native spec lib had to go down the exact same path rspec did years ago until they realized that namespace polluting with the should syntax isn't that gread
<jokke>
*great
<RX14>
well
<RX14>
assert is the way I would go
<jokke>
naah
<BlaXpirit>
-_-
<RX14>
it's so so so much clearer to write and read
<jokke>
imho it's the opposite
<jokke>
it's never clear to me which is the expected and which the actual
<RX14>
so you dislike crystal syntax?
<RX14>
there is no expected and actual, just an expression
<jokke>
i dislike both should and assert
<RX14>
you're validating an invariant
<jokke>
ah yeah ok
<RX14>
the exp3ected and actual would be opposite sides of an ==
<jokke>
but it's hard to implement more complex matchers
<jokke>
like structures match or so
<jokke>
(deep hash comparison)
<RX14>
well, personally I think that's not much of an issue, you can just add them to your codebase
<jokke>
what?
<RX14>
i find that often comparisons you have to make in specs come up in the codebase itself
<jokke>
add test code to your codebase?
<BlaXpirit>
if people actually embrace the idea, the problems are easy to overcome
<BlaXpirit>
but for now all we have is excuses and uncernainty
<BlaXpirit>
lost cause regardless
<jokke>
also the formatting of specs with actual matcher objects can be much more precice and informative than with aserts
<RX14>
i liked my idea of the simple macro with intelligent matchers BlaXpirit
<jokke>
stuff like diff view of actual and expected
<jokke>
and so forth
<BlaXpirit>
false
<RX14>
but really, I've seen the future in groovy and it was great
<jokke>
of course it's much faster to use assertion based specs
<jokke>
in execution
<RX14>
heh
<RX14>
heh
<jokke>
but i dont think that's an issue
<RX14>
hehehehehe
<RX14>
nah
<RX14>
BlaXpirit, we need to make an assertion shards that works and is great
<RX14>
and use it in large spec suites
<RX14>
then we have the leverage to make the point
<BlaXpirit>
i made my thing, i'm good
<BlaXpirit>
no use arguing with the BS imprinted by ruby
soveran has quit [Remote host closed the connection]
rtl_ has joined #crystal-lang
rtl has quit [Ping timeout: 248 seconds]
jhass has quit [Ping timeout: 250 seconds]
jhass has joined #crystal-lang
kulelu88 has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<raydf> Hello
Philpax_ has quit [Ping timeout: 268 seconds]
<FromGitter>
<raydf> I'm trying to overload a class with generics and i'm receiving a superclass mismatch (Issue: #3423 ). Any ideas on why is this happening?
<BlaXpirit>
raydf, yeah, sounds like an issue. well i guess every time you make a class it's a different T. you dont have to specify it the 2nd time tho. https://carc.in/#/r/1c8p
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Ping timeout: 252 seconds]
onionhammer has joined #crystal-lang
<FromGitter>
<raydf> Thanks @BlaXpirit , that worked for my current need. But one should be able to overload the class with something like TestView(T) < View(Int32).
<FromGitter>
<cjgajard> duplicate of #3298 :sweat_smile:
<FromGitter>
<raydf> Thanks @cjgajard for the related issue.
matp has quit [Read error: Connection reset by peer]
matp_ has joined #crystal-lang
buggs1 has joined #crystal-lang
buggs1 is now known as buggs
dhk has joined #crystal-lang
<FromGitter>
<sonic182> Hi, I found thread class and thread::mutex , how safe is to use them for parallelism? I tried to apply parallelism (as in C with pthread) but I've got some errors I think for some race condition on my code
<FromGitter>
<sonic182> Actually the class says to don't use it, and use fibers instead, but fibers it's not parallelism </3
<FromGitter>
<raydf> @sonic182 , There's no parallelism support yet for crystal
<FromGitter>
<sonic182> Yes, there is, but it's not easy to use. It's C pthreads <3
<BlaXpirit>
sonic182, fibers will support parallelism
<FromGitter>
<sonic182> Actually that GA it's far away to be perfect 🙄
<FromGitter>
<sonic182> But the backtracking solution it's ok :)
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<raydf> hows the performance with an unique thread?
<jokke>
are there any plans for somehow supporting the enforcement of a certain scope in a macro invocation?
<jokke>
i'd really like to invoke my macro inside of a method call but the macro dynamically defines a class, which of course isn't possible from inside a def
<FromGitter>
<sonic182> It's ok I guess, I've to do the same code on other language to compare
<FromGitter>
<sonic182> Something like Java, go o elixir