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
_whitelogger has joined #crystal-lang
sp3ncer has joined #crystal-lang
sp3ncer has quit [Quit: Textual IRC Client: www.textualapp.com]
woodruffw has quit [Ping timeout: 256 seconds]
woodruffw has joined #crystal-lang
duane has quit [Ping timeout: 265 seconds]
duane has joined #crystal-lang
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 260 seconds]
zorp_ has quit [Remote host closed the connection]
zorp_ has joined #crystal-lang
tsujp has quit [Ping timeout: 240 seconds]
tsujp has joined #crystal-lang
<FromGitter> <galvertez> https://carc.in/#/r/9m0e ⏎ has it always been this way? where a union reduces to the highest common denominator?
<FromGitter> <galvertez> i feel like it hasn't but maybe i just never looked that closely
<FromGitter> <throwaway4rust> Are there libs or frameworks optimized for microservices?
zorp_ has quit [Read error: Connection reset by peer]
Vexatos has quit [Ping timeout: 258 seconds]
gangstacat has quit [Ping timeout: 244 seconds]
Stephanie has quit [Ping timeout: 265 seconds]
Vexatos has joined #crystal-lang
Stephanie has joined #crystal-lang
jetpack_joe has quit [Read error: Connection reset by peer]
jetpack_joe has joined #crystal-lang
<oprypin> throwaway4rust, yes. all of them.
gangstacat has joined #crystal-lang
gangstacat has quit [Ping timeout: 272 seconds]
gangstacat has joined #crystal-lang
gangstacat has quit [Ping timeout: 244 seconds]
lunarkitty has quit [Ping timeout: 260 seconds]
deavmi has quit [Quit: Eish! Load shedding.]
melthelesbian has quit [Ping timeout: 256 seconds]
baweaver has quit [Ping timeout: 256 seconds]
melthelesbian has joined #crystal-lang
deavmi has joined #crystal-lang
lunarkitty has joined #crystal-lang
melthelesbian has quit [Read error: Connection reset by peer]
melthelesbian has joined #crystal-lang
<FromGitter> <j8r> We can achieve a Rust-enum like with Tuple, in fact?
<FromGitter> <j8r> Except there are missing methods from enum.
melthelesbian has quit [Read error: Connection reset by peer]
melthelesbian has joined #crystal-lang
<FromGitter> <wyhaines> @throwaway4rust If you mean HTTP based microservices or API layers, check out Athena: https://github.com/athena-framework/athena
<FromGitter> <Blacksmoke16> yea, has to be in context of a method
<oprypin> Blacksmoke16, i dont think thats it
<FromGitter> <Blacksmoke16> it is
<FromGitter> <Blacksmoke16> https://carc.in/#/r/9m15
<oprypin> i see ok, so what i was really looking at was https://carc.in/#/r/9m16
<oprypin> guess i;ll drop macro included
<FromGitter> <Blacksmoke16> https://carc.in/#/r/9m18, need to escape the inner macro
<oprypin> thank you very much
<FromGitter> <Blacksmoke16> np
gangstacat has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
deavmi has quit [Client Quit]
deavmi has joined #crystal-lang
deavmi has quit [Client Quit]
deavmi has joined #crystal-lang
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #crystal-lang
<oprypin> >> {1, 2}.in?({1, 2}) #???
<DeBot> oprypin: # => false - https://carc.in/#/r/9m1q
<oprypin> >> {1, 2}.in?({ {1, 2} }) #:(
<DeBot> oprypin: # => true - https://carc.in/#/r/9m1r
<FromGitter> <j8r> expected
<FromGitter> <phykos> little question, the compiler does something like transpiring the AST into LLVM IR and then LLVM does what it has to do, right?
<FromGitter> <Blacksmoke16> thats my understanding yes
<FromGitter> <phykos> but the step between AST and LLVM IR is called code generation, am I right?
<FromGitter> <j8r> > >{1, 2}.in? *({1, 2}) #why?
<FromGitter> <Blacksmoke16> i think so?
<FromGitter> <j8r> `{1, 2}.in? *({1, 2})` is false
<FromGitter> <Blacksmoke16> would make sense
<FromGitter> <phykos> wait a sec
<FromGitter> <phykos> yes, it does
<FromGitter> <phykos> some note from a (retired from work) friend of my father
HumanGeek has joined #crystal-lang
Human_G33k has quit [Ping timeout: 264 seconds]
sagax has joined #crystal-lang
deimos_ has quit [Quit: leaving]
deimos_ has joined #crystal-lang
<oprypin> >> enum E; A; B; end; (E::A|E::B).a?
<DeBot> oprypin: # => false - https://carc.in/#/r/9m2l
<oprypin> thats a big oof
<oprypin> >> enum E; A; B; end; (E::A|E::B).includes?(:a)
<DeBot> oprypin: # => false - https://carc.in/#/r/9m2m
<FromGitter> <Blacksmoke16> think you need to add `@[Flags]`
<oprypin> aa sorry
<oprypin> >> @[Flags]; enum E; A; B; end; (E::A|E::B).a?
<DeBot> oprypin: # => true - https://carc.in/#/r/9m2n
<oprypin> not sure which style i prefer
<oprypin> got this snippet from c++, what's the idiomatic alternative `foo &= ~(E::A ^ E::B)`
<oprypin> wonder why they even used xor there, not or
<oprypin> oh i should share the context, seems like A here is actually a mask itself already.. https://github.com/ocornut/imgui/blob/13f718337ac4df2c66727e85174d48e9a91eabcf/imgui_demo.cpp#L2319
<deimos_> hi, dumb question time since i can't seem to get it to work. in my shards.yml, can i put a url to a non-(github|gitlab) git repo to pull?
<FromGitter> <Blacksmoke16> also is built in support for bitbucket, if thats not it you'll just have to use the URL