Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:57
    straight-shoota milestoned #12145
  • 19:57
    straight-shoota milestoned #12145
  • 19:57
    straight-shoota milestoned #11834
  • 19:57
    straight-shoota milestoned #11834
  • 19:56
    straight-shoota synchronize #11834
  • 19:47
    straight-shoota milestoned #12293
  • 19:47
    straight-shoota milestoned #12293
  • 19:25
    HertzDevil synchronize #12391
  • 19:13
    straight-shoota closed #12389
  • 19:12
    straight-shoota closed #12356
  • 19:12
    straight-shoota edited #12356
  • 19:11
    straight-shoota closed #7685
  • 19:11
    straight-shoota closed #12385
  • 17:13
    straight-shoota closed #12212
  • 17:13
    straight-shoota closed #12209
  • 17:04
    straight-shoota labeled #12395
  • 17:04
    straight-shoota labeled #12395
  • 17:02
    straight-shoota opened #12395
  • 15:23
    HertzDevil synchronize #12391
  • 15:19
    HertzDevil converted_to_draft #12244
George
@georgeu2000
How to define a Hash( Int32, Int32 ) with an initial value of 0 for each key?
Rinkana
@Rinkana
You dont
George
@georgeu2000
Tried Hash.new( Int32, Int32 ){ 0 } but it did not work.
Seems like you can according to https://github.com/crystal-lang/crystal/blob/e2a1389e8165fb097c785524337d7bb7b550a086/src/hash.cr#L28
Rinkana
@Rinkana
Hash keys are unique so there can be one 0
George
@georgeu2000
Oops. I meant value.
Ghost
@ghost~55586c4815522ed4b3e08557
@georgeu2000 Hash(Int32, Int32).new(default_value: 0) I guess?
George
@georgeu2000
It worked. Thanks!
Faustino Aguilar
@faustinoaq
@kbrsh Hey man, Moon looks amazing, great work! :+1:
unreadable
@unreadable
the rusters started to rewrite the libc in pure rust. That's impressive
Jason Waldrip
@jwaldrip
Can you use macros to construct case statements?
Seems like I get an error when trying to do so
Ghost
@ghost~55586c4815522ed4b3e08557
make sure to enclose it with {% begin %} ... {% end %} as explained here https://crystal-lang.org/docs/syntax_and_semantics/macros.html#pitfalls
Serdar Dogruyol - Sedo セド
@sdogruyol
@krypton97 that's some big effort :)
Jason Waldrip
@jwaldrip
with self yield does not seem to be working
Ghost
@ghost~55586c4815522ed4b3e08557
can you be a bit more precise?
Jason Waldrip
@jwaldrip
hold on, putting together an example
actually, just self does not work
in the block
nvm :-)
unreadable
@unreadable
Well, it's unix based and a good part of the code is copy pasted . I guess not so many devs wanna mess with win api
Serdar Dogruyol - Sedo セド
@sdogruyol
It's not that but more likely there arent much devs who knows much about win32 stuff @krypton97
unreadable
@unreadable
Ikr. There's also musl which seems to do better than the gnu implementation https://www.musl-libc.org/
unix based again :)
Serdar Dogruyol - Sedo セド
@sdogruyol
I
From IRC (bridge bot)
@FromIRC
<RX14> i am so confused by what i've done to the compiler
Philippe Nénert
@papilip
Hello All, Do you know who is responsible for the Crystal logo and its reuse ?
From IRC (bridge bot)
@FromIRC
Philippe Nénert
@papilip
Yes but noby is mention
From IRC (bridge bot)
@FromIRC
<RX14> does it not answer your questions?
Philippe Nénert
@papilip
No, i want reuse logo for your local group
I dont know if its possible or not
From IRC (bridge bot)
@FromIRC
<RX14> i suggest you email spalladino@manas.tech
<RX14> he can at least direct you to the right person
Philippe Nénert
@papilip
Thank you very much
Martin Verzilli
@mverzilli
as long as you don't charge for joining the group, it's totally ok
From IRC (bridge bot)
@FromIRC
<RX14> oh there you go
<RX14> problem solved :⁠)
Philippe Nénert
@papilip
@mverzilli thank you, joining Crystal-French is totaly free of chare ;-)
If somebody came, it’s for work and give some time
Martin Verzilli
@mverzilli
great! make sure to let @ysbaddaden know about those activities, nothing legal, just because he might be interested
Serdar Dogruyol - Sedo セド
@sdogruyol
@RX14 what've you done?
Philippe Nénert
@papilip
@mverzilli I saw @ysbaddaden in our gitter channel
Martin Verzilli
@mverzilli
cool then :)
From IRC (bridge bot)
@FromIRC
<RX14> @sdogruyol i don't know and thats the problem
<RX14> doesnt help that the parser_spec.cr seems to have the ability to crash emacs
Serdar Dogruyol - Sedo セド
@sdogruyol
and here I am trying make wayland work with gnome..
oh god
Faustino Aguilar
@faustinoaq
Wayland works pretty well n KDE now :wink:

doesnt help that the parser_spec.cr seems to have the ability to crash emacs

RX14, maybe is related to this issue :point_right: crystal-lang/crystal#2713

Vim sometimes fails because this issue too.