Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 05:03
    kramerul synchronize #12404
  • Aug 19 18:56
    asterite ready_for_review #12405
  • Aug 19 18:56
    asterite edited #12405
  • Aug 19 17:43
    asterite labeled #12405
  • Aug 19 16:38
    Blacksmoke16 labeled #12405
  • Aug 19 16:38
    Blacksmoke16 labeled #12405
  • Aug 19 16:02
    asterite synchronize #12405
  • Aug 19 16:01
    asterite opened #12405
  • Aug 19 15:34
    kramerul synchronize #12404
  • Aug 19 15:23
    kramerul synchronize #12404
  • Aug 19 15:13
    kramerul synchronize #12404
  • Aug 19 15:10
    kramerul synchronize #12404
  • Aug 19 15:08
    Blacksmoke16 labeled #12404
  • Aug 19 15:08
    Blacksmoke16 labeled #12404
  • Aug 19 15:08
    Blacksmoke16 labeled #12404
  • Aug 19 15:06
    wonderix opened #12404
  • Aug 19 14:20
    asterite closed #12403
  • Aug 19 12:42
    straight-shoota milestoned #12403
  • Aug 19 12:42
    straight-shoota milestoned #12403
  • Aug 19 12:03
    asterite synchronize #12403
From IRC (bridge bot)
@FromIRC
<jokke> don't see the problem
John Jansen
@johnjansen
you need to call the code to see the problem … edit that and send us the link
From IRC (bridge bot)
@FromIRC
John Jansen
@johnjansen
id try writing this longhand without the macro (or alias) for now and figure out what will work … then come back to this
@jokke
From IRC (bridge bot)
@FromIRC
<Yxhuvud> mverzili: recursive structs is not allowed, I've tried to make that before. You'd have to resort to pointers to simulate that
<Yxhuvud> jokke: it is easier to find the issue if you a: paste the error too and b: try to reduce the code to a minimal example.
John Jansen
@johnjansen
ive got this far on the reduction … but unfortunately i have my own work to do, sorry @jokke https://carc.in/#/r/2ly0/edit
From IRC (bridge bot)
@FromIRC
<Yxhuvud> you have an infinite macro expansion, of course it doesn't work.
<Yxhuvud> as in you have a macro that expands to itself.
<Yxhuvud> the error even tells you which the first macro in the cycle is
John Jansen
@johnjansen
that was what i thought … wouldnt want to claim to know anything about what magic a compiler will handle though ;-)
From IRC (bridge bot)
@FromIRC
<Yxhuvud> find_button -> click -> ask -> ask_time -> find_button
<Yxhuvud> Hmm. no, I'm stupid. never mind.
John Jansen
@johnjansen
im not even sure how you could instantiate a “Transition” in the first place … given you cant supply a transition as a param
From IRC (bridge bot)
@FromIRC
<Yxhuvud> heh, the problem is pretty silly. find_button takes one argument, but the macro expands to a proc-ified version of it taking two.
<Yxhuvud> error message could have been more clear
Bram Wyllie
@bitmappergit
so what does # mean in some crystal/ruby library documentation
Bar Hofesh
@bararchy
@bitmappergit you mean String#size for example ?
or just # as in comments ?
Bram Wyllie
@bitmappergit
as in String#size
Bar Hofesh
@bararchy
It's a method of initialize object
class Foo
  def bar
    puts "hi"
  end
end

foo = Foo.new
foor.bar # which looks like Foo#bar in the docs
For class methods\modules you will use the regular point
class Foo
  def self.bar
    puts "hi"
  end
end
Foo.bar # which look like Foo.bar in the docs
Akzhan Abdulin
@akzhan
From IRC (bridge bot)
@FromIRC
<oprypin> sigh
<Papierkorb> > Web centric
unreadable
@unreadable
Has anyone played with this https://github.com/jwaldrip/graphql.cr
I think I saw the author on gitter few days ago
matrixbot
@matrixbot
@Renich:matrix.org o/
From IRC (bridge bot)
@FromIRC
<oprypin> no, just no.
Jason Waldrip
@jwaldrip
hey @krypton97, that was a work in progress some time ago.
Had a kid, and things halted for a bit. Should be picking up development again soon. Its a direct port of the fb/graphql js parser.
and all in crystal, no C binding.
unreadable
@unreadable
No worries man, having kids is one of the best things. I was also thinking to port a go version
But for now I'm reading through the source codes of the crystal implementations
Jason Waldrip
@jwaldrip
Don't be too critital, as I said, still much of a work in progress
Ghost
@ghost~55586c4815522ed4b3e08557
hey guys, any way to make sth like this to work? https://carc.in/#/r/2m16 or is it too demanding to the broken generic type inference?
From IRC (bridge bot)
@FromIRC
<Papierkorb> A *T is already a tuple-type
Ghost
@ghost~55586c4815522ed4b3e08557
uh thank you!
Ghost
@ghost~55586c4815522ed4b3e08557
Papierkorb, I've been looking at your cannon RPC (as I'm on the way to make a msgpack RPC lib too), I think you have some type annotations you can remove here and there
From IRC (bridge bot)
@FromIRC
<Papierkorb> @bew, do they disallow something that would make sense otherwise? I often use explicit typing for clarity to the reader, and to the compiler (for it to generate better errors)
Ghost
@ghost~55586c4815522ed4b3e08557
no it's perfectly fine, just some 'obvious' ones, like @owned : Bool = false for example
Bram Wyllie
@bitmappergit
in crystal does it matter if i have a single string on multiple lines?
From IRC (bridge bot)
@FromIRC
<Papierkorb> @bew, well ok that is a bit redundant I guess.
<Papierkorb> @bew, truth be told, you should consider if you actually want to implement such a heavy-weight RPC library, or if a simpler design suffices
Ghost
@ghost~55586c4815522ed4b3e08557
I do, because I have no choice in this case, this is how nvim does communication in its plugin system, and I reaaally want to write nvim plugins in crystal :p
From IRC (bridge bot)
@FromIRC
<Papierkorb> The Cannon RPC stuff is explicitly for "dude I got other things to do, make it work now". Pretty much the human-pendant to Cannons slogan itself ("The computer has other things to do than serialisation"). This makes it quite powerful, and also makes it offer some unique features (Which I only offer 'cause Cannon RPC is for organisation-internal use ONLY) like remote object ownership. But it also makes it quite complex