Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:51
    Blacksmoke16 review_requested #10648
  • 15:50
    Blacksmoke16 synchronize #10648
  • 15:48
    Blacksmoke16 synchronize #10648
  • 15:00
    Blacksmoke16 closed #12820
  • 11:38
    straight-shoota closed #12807
  • 11:38
    straight-shoota closed #12808
  • 11:38
    straight-shoota closed #12816
  • 00:00
    douglascamata closed #12820
  • Dec 03 23:10
    Blacksmoke16 closed #12821
  • Dec 03 23:10
    Blacksmoke16 labeled #12821
  • Dec 03 23:09
    Blacksmoke16 labeled #12821
  • Dec 03 22:13
    hutou labeled #12821
  • Dec 03 22:13
    hutou opened #12821
  • Dec 03 22:01
    douglascamata edited #12820
  • Dec 03 22:01
    douglascamata edited #12820
  • Dec 03 22:00
    douglascamata labeled #12820
  • Dec 03 22:00
    douglascamata opened #12820
  • Dec 03 19:38
    Blacksmoke16 labeled #12819
  • Dec 03 19:38
    Blacksmoke16 labeled #12819
  • Dec 03 19:16
    henrikac synchronize #12819
From IRC (bridge bot)
@FromIRC
<Papierkorb> Sure. The point is that that shouldn't even compile in the first place.
unreadable
@unreadable
Still beta..
unreadable
@unreadable
Huston, we have a problem..
From IRC (bridge bot)
@FromIRC
<Papierkorb> struct Foo; YAML.mapping(bar: String?); end; Foo.from_yaml(%<bar: "# I'm not a comment">) Kaboom.
<Papierkorb> Union(String | Nil).from_yaml will pull the "next thing" (#read_raw), and then call String.from_yaml(that_thing), which now redoes the cycle and expects a YAML document. And now that_thing suddenly becomes a true comment.
<Papierkorb> (yadda use nilable)
From IRC (bridge bot)
@FromIRC
<hightower2> Hey Papierkorb I just got an idea how I'm going to support calling <parent>.new_listener.emit( <signal>.name) when a signal is installed in Cute
<hightower2> I am going to simply open the Cute::Signal class and add the property :‚Ā†parent
<hightower2> Then in the parent class, when I list all its signals in an array anyway, I'll just go over those signals and set their #parent=
<hightower2> This will be just fine and won't require me to modify the 'macro signal' or anything inside Cute
<hightower2> Yet the signals will know their parent, and inside on() they will be able to do super; parent.new_listener.emit....
From IRC (bridge bot)
@FromIRC
<jokke> h
<jokke> Whops
Ghost
@ghost~55586c4815522ed4b3e08557
`test`
cool, just discovered that one can (inline) code blocks having ` :)
sevk
@sevk
[1,2] - [1]
unreadable
@unreadable
how can I convert IO type to String?
Ghost
@ghost~55586c4815522ed4b3e08557
you can read from the IO
unreadable
@unreadable
Yeah, that's good too
How can I/
?
I tried with a slice but gave me an error
I'm mainly looking to read the request body of a form
Ghost
@ghost~55586c4815522ed4b3e08557
you're probably looking for IO#gets_to_end to read the whole IO to a String
Bar Hofesh
@bararchy
What kind of sort does Array#sort uses ?
From IRC (bridge bot)
@FromIRC
<Yxhuvud> @bararchy: I can recommend diving into the source for that kind of questions. The source is quite readable.
Ghost
@ghost~55586c4815522ed4b3e08557
iirc it's a really fast sorting algorithm, faster than the one in C++ stdlib
Bar Hofesh
@bararchy
Ok, it seems to use quick sort
Oh, also heap sort
Ghost
@ghost~55586c4815522ed4b3e08557
here is the pr: crystal-lang/crystal#3514
it's intro sort, never heard of it though..
Bar Hofesh
@bararchy
Cool
I'll read on it on wikipedia sounds interesting
unreadable
@unreadable
Finally I got it. I was using ctx.reques.body instead of ctx.params.body with kemal
Hanyuan Li
@hanyuone
How do I use libui.cr?
I want to run the samples, but I have no idea how :(
unreadable
@unreadable
Is crystal regexp fast?
From IRC (bridge bot)
@FromIRC
<bmcginty> @krypton97: fast enough for the bits I've used it for.
<bmcginty> @krypton97: if you want to check for yourself, try using the benchmark module.
<RX14> @krypton97 it uses libpcre which is very optimised
unreadable
@unreadable
I'm looking to do some validation
Hanyuan Li
@hanyuone
Argh C is confusing :(
From IRC (bridge bot)
@FromIRC
<Yxhuvud> rx14: But libPCRE is not statically linked, is it? Because if not, then the minimal cost is the cost for walking the linking, which is not necessarily insignificant.
<RX14> wat?
<RX14> it's linked once when you start the program
<RX14> then it makes no difference
<RX14> disregarding LTO
Hanyuan Li
@hanyuone
Argh how do you build GTK+ w/ Homebrew
From IRC (bridge bot)
@FromIRC
<Yxhuvud> sure but calling functions in it DO make a difference as it is always a jump or two away.