Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:26
    beta-ziliani milestoned #13043
  • 18:26
    beta-ziliani milestoned #13043
  • 18:00
    Blacksmoke16 labeled #13053
  • 17:59
    straight-shoota labeled #13053
  • 17:59
    straight-shoota labeled #13053
  • 17:59
    straight-shoota assigned #13053
  • 17:59
    straight-shoota opened #13053
  • 12:19
    straight-shoota closed #13010
  • 12:19
    straight-shoota closed #13050
  • 12:18
    straight-shoota closed #13048
  • Feb 07 18:12
    HertzDevil labeled #13052
  • Feb 07 18:12
    HertzDevil labeled #13052
  • Feb 07 18:12
    HertzDevil labeled #13052
  • Feb 07 18:12
    HertzDevil opened #13052
  • Feb 07 17:49
    straight-shoota closed #13051
  • Feb 07 17:46
    beta-ziliani milestoned #13051
  • Feb 07 17:46
    beta-ziliani milestoned #13051
  • Feb 07 14:03
    beta-ziliani review_requested #13050
  • Feb 07 13:59
    straight-shoota labeled #13051
  • Feb 07 13:59
    straight-shoota assigned #13051
From IRC (bridge bot)
@FromIRC
<jhass[m]> maybe some common "security software"?
From IRC (bridge bot)
@FromIRC
<kevinsjoberg> Up for me as well.
<mfiano> I don't have any such thing, but finally seems to work now and I did nothing.
<mfiano> Sorry for the noise :⁠)
Taupiqueur
@alexherbo2
do you have an example of use for iterator of?
From IRC (bridge bot)
@FromIRC
<jhass[m]> The single element overload specifically?
Quinton Miller
@HertzDevil
it seems to happen because you are adding a MacroId to that NamedTuple
this also breaks for example
A = [] of Int32
{% A << "1".id %}
A
Unhandled exception: can't execute `__temp_499[0] = 1` at eval:1:5: `1` has no type (Exception)
Nikolaii Lodenos
@lodenos
I’ve a little question about Int128 how work’s behing that’s use SSE4 or not ?
From IRC (bridge bot)
@FromIRC
<kevinsjoberg> @HertzDevil should it break though?
<kevinsjoberg> Looking at the compiler code, it’s clear MacroId is the culprit, but I still think it should be able to deduce the type here.
From IRC (bridge bot)
@FromIRC
<mfiano> Curious, why does crystal not have traditional block-level symbol table semantics?
George Dietrich
@Blacksmoke16
:shrug: maybe a better question for the forums?
From IRC (bridge bot)
@FromIRC
<terminalpusher> where can I watch the recorded video of the Crystal 1.0 conference?
George Dietrich
@Blacksmoke16
they're not released publicly yet
From IRC (bridge bot)
@FromIRC
<terminalpusher> alright then I will wait for longer
Benjamin Wade
@RespiteSage
Is there any way to use a module with macro included to include an inner class in a generic class which has an instance variable of the type of that generic class?
That was complicated to write, so here's an example: https://carc.in/#/r/bjqq
George Dietrich
@Blacksmoke16
@RespiteSage https://carc.in/#/r/bjra nice
i feel like what you have should work as i would think it would pick up T from the including type
respitesage
@respitesage:matrix.org
[m]
Huh. Yeah, I would also expect it to work.
George Dietrich
@Blacksmoke16
respitesage
@respitesage:matrix.org
[m]
Ah, so that's the problem in your code. Mine is just a language semantics thing, I guess.
George Dietrich
@Blacksmoke16
are class methods not inherited?

A class inherits all instance variables and all instance and class methods of a superclass, including its constructors (new and initialize).

seems they should

George Dietrich
@Blacksmoke16
that doesn't seem right...
duplicate of crystal-lang/crystal#8093 prob
Quinton Miller
@HertzDevil
InnerClass must also be a generic
Taupiqueur
@alexherbo2
how about adding path.match?(pattern) to wrap around File.match?(pattern, path)? https://crystal-lang.org/api/1.0.0/File.html#match?(pattern:String,path:Path%7CString)-class-method
From IRC (bridge bot)
@FromIRC
<mfiano> Hi again. I spent the last couple days reading the language reference and stdlib api docs. I think I could really become comfortable with this as a secondary language.
Taupiqueur
@alexherbo2
how to get the mime type from a file content?
George Dietrich
@Blacksmoke16
mfiano glad to hear
@alexherbo2 there's a MIME module you can use to get it from the filename/ext
but there isn't a method to do that based on content
From IRC (bridge bot)
@FromIRC
<mfiano> Thanks, it really is nice, and seems to borrow a lot from my primary language, yet seems to check off the items I'm looking for
George Dietrich
@Blacksmoke16
primary lang being Ruby?
Taupiqueur
@alexherbo2
I'm having issues with file without extensions, like bash scripts, using shebangs.
From IRC (bridge bot)
@FromIRC
<mfiano> No, Lisp :⁠)
George Dietrich
@Blacksmoke16
(()ah i see)()()
From IRC (bridge bot)
@FromIRC
<mfiano> I tried Nim a couple years ago, but the compiler was very buggy for a 1.0 release, and the community was quite toxic.
George Dietrich
@Blacksmoke16
@alexherbo2 is a method that you can specify a default for those cases
if that helps
Taupiqueur
@alexherbo2
how to return from a capturing block?, I'm using next in my block, but would like to allow return
George Dietrich
@Blacksmoke16
did you try break?