jhass changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Crystal 0.35.1 | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
DTZUZU has quit [*.net *.split]
johnny101 has quit [*.net *.split]
foxxx0 has quit [*.net *.split]
justinmcp has quit [*.net *.split]
snapcase has quit [*.net *.split]
^ has quit [*.net *.split]
V[excess] has joined #crystal-lang
snapcase has joined #crystal-lang
foxxx0 has joined #crystal-lang
DTZUZU has joined #crystal-lang
johnny101 has joined #crystal-lang
justinmcp has joined #crystal-lang
teardown_ has quit [Quit: leaving]
teardown has joined #crystal-lang
teardown_ has joined #crystal-lang
teardown has quit [Ping timeout: 240 seconds]
teardown has joined #crystal-lang
teardown_ has quit [Ping timeout: 240 seconds]
Vexatos has quit [Quit: ZNC Quit]
Vexatos has joined #crystal-lang
straight- has joined #crystal-lang
DTZUZU_ has joined #crystal-lang
justinmcp_ has joined #crystal-lang
snapcase_ has joined #crystal-lang
Flipez5 has joined #crystal-lang
riffraff169 has quit [*.net *.split]
straight-shoota has quit [*.net *.split]
Flipez has quit [*.net *.split]
DTZUZU has quit [*.net *.split]
johnny101 has quit [*.net *.split]
foxxx0 has quit [*.net *.split]
justinmcp has quit [*.net *.split]
snapcase has quit [*.net *.split]
Flipez5 is now known as Flipez
postmodern has joined #crystal-lang
foxxx0 has joined #crystal-lang
riffraff169 has joined #crystal-lang
DTZUZU_ is now known as DTZUZU
f1refly has joined #crystal-lang
f1reflyylmao has quit [Ping timeout: 264 seconds]
_whitelogger has joined #crystal-lang
avane has quit [Quit: ZNC - https://znc.in]
avane has joined #crystal-lang
Volk has quit [Quit: See you next time!]
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
<FromGitter> <HertzDevil> just noticed `Set` is no longer part of ruby's stdlib
<oprypin> i dont think what ruby does is of any relevance anymore. it's just nuts
_ht has joined #crystal-lang
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #crystal-lang
<FromGitter> <yb66_gitlab> Thanks raz. Sorry for the late reply, btw, it was my wife's online end of year drinking party, which I got dragged into and I even posted that while a bit tipsy (o_º) That and the rest of new year produced this time lag!
<FromGitter> <yb66_gitlab> I took your advice and I also refactored the json file, just a silly structure to begin with. Ended up forking the project and where I've dropped npm in favour of Crystal/Kemal. https://github.com/yb66/isserviceworkerready . Much appreciated, I learnt a lot from the experience.
<FromGitter> <yb66_gitlab> I've decided to start all new projects in Crystal instead of Ruby, for a lot of reasons, but a big one is that this community has been nothing but friendly and helpful, (long may it continue).
_whitelogger has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
<FromGitter> <Dan-Do> How to declare an enum which starts unicode character? https://carc.in/#/r/a7m6
<oprypin> Dan-Do, cant. it's defined to start with [A-Z]
<FromGitter> <Dan-Do> Uhm, so, how to overcome that?
<oprypin> there's nothing to overcome
<oprypin> it's like saying how do i write string literals using `<< string >>` syntax, then "you cant" then "how to overcome that"
<FromGitter> <Dan-Do> I meant how to archive my goal :) ⏎ ⏎ ```enum City ⏎ Hồ_Chí_Minh ⏎ Đà_Nẵng ⏎ Sài_Gòn ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5ff1b26dc746c6431cf164ad]
deimos_ has quit [Ping timeout: 260 seconds]
deimos_ has joined #crystal-lang
<oprypin> use a letter in the range A-Z
<FromGitter> <Dan-Do> wow, I saw @asterite's comment ⏎ `This is mostly fixed already and it will be available in the next version`
<oprypin> no that's about something else
<FromGitter> <Dan-Do> Okay thanks, I have to use monkey patch :)
straight- has quit [Quit: ZNC 1.7.5 - https://znc.in]
straight-shoota has joined #crystal-lang
<straight-shoota> oprypin, what exactly does https://github.com/oprypin/mkdocs-gen-files do?
<oprypin> straight-shoota, creates "docs/*.md" files programmatically, on the fly. you could instead just create those with a bash script or something but these aren't actually written to the directory
darik has joined #crystal-lang
<straight-shoota> Ah so it provides virtual source files to mkdocs, generated from like `crystal docs`
<oprypin> straight-shoota, when you say "generated from like `crystal docs`" - well yes, but this example only walks all types and creates files with content that's literally just `::: Foo::Bar` , that's it
<straight-shoota> okay, nice
<oprypin> the big idea is that people won't need to do that because they won't be creating one page per type
<yxhuvud> @herzdevil: set has never been required by default in ruby. I guess it has been moved to a gem now? But that the gem is included by default installations. So still there, just a bit different organization.
Volk has joined #crystal-lang
<FromGitter> <HertzDevil> yeah ruby's distinction between core/stdlib/official gems confuses me
<oprypin> straight-shoota: oh looks like Crinja might be a very good candidate for this doc generator :o
<straight-shoota> so not doing everything in python?
hightower2 has quit [Ping timeout: 256 seconds]
Volk has quit [Quit: See you next time!]
darik has quit [Quit: Leaving]
Volk has joined #crystal-lang
teardown has quit [Write error: Connection reset by peer]
teardown has joined #crystal-lang
teardown_ has joined #crystal-lang
teardown has quit [Ping timeout: 240 seconds]
teardown has joined #crystal-lang
teardown_ has quit [Ping timeout: 240 seconds]
teardown_ has joined #crystal-lang
teardown has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
hightower2 has joined #crystal-lang
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
woodruffw has quit [Ping timeout: 240 seconds]
<FromGitter> <vprelovac_gitlab> it would be great if Crystal was part of this https://benchmarksgame-team.pages.debian.net/benchmarksgame/which-programs-are-fastest.html
woodruffw has joined #crystal-lang
<hightower2> Hey is it expected that @y isn't restricted to type Y in this example: https://carc.in/#/r/a7ov
<hightower2> If one adds 'property y : Y', it does restrict without changes to the code.
<oprypin> hightower2, yes
<oprypin> hm
<straight-shoota> type inference rules are not that smart
<hightower2> straight-shoota, incidentally the doc says "The compiler will try to be as smart as possible" :-) hehe
<straight-shoota> sure, it's as smart as possible without typing the entire method body
<straight-shoota> it just sees `@y = y` and thus it gets the type of `y`
<hightower2> sure, sure, j/k :)
<hightower2> ok great, thanks for the discussion
<straight-shoota> the reason is that ivars need to be typed before the methods are fully typed
_ht has quit [Remote host closed the connection]
Volk has quit [Quit: See you next time!]
<FromGitter> <jrei:matrix.org> so much PRs...
<hightower2> are loop labels somehow supported? Reading https://crystal-lang.org/reference/syntax_and_semantics/while.html and submenus doesn't reveal it
<hightower2> I want to 'next' a particular (not innermost) loop
<straight-shoota> no
<hightower2> aha remembered, need to use the return value from next/break to decide on breaking earlier loop
<hightower2> thanks
<hightower2> Is there a way to find all occurrences of regex in a string? Like "ab cd".match(/([a-z]{2})/) # => ["ab", "cd"] ?
<FromGitter> <Blacksmoke16> Scan
<FromGitter> <Daniel-Worrall> scan
<FromGitter> <Daniel-Worrall> damn
<hightower2> great, thanks. I was searching for something with 'find'
<FromGitter> <jrei:matrix.org> Crystal did depend on readline in the past, right?
<FromGitter> <Blacksmoke16> It's a shard now iirc
<straight-shoota> it didn't really depend on it, but bindings were included in stdlib
<straight-shoota> or maybe the compiler even depended on it, but that was long ago
<straight-shoota> #8364
<DeBot> https://github.com/crystal-lang/crystal/pull/8364 (Remove Readline from std-lib)
<FromGitter> <christopherzimmerman> Finally! Autograd seems to be working for all supported devices, including GPU's ⏎ now with zero code change. ⏎ ⏎ ```code paste, see link``` ⏎ ... [https://gitter.im/crystal-lang/crystal?at=5ff256582084ee4b788cafa8]