ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | 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
<FromGitter> <me:ky.rs> just a wild guess from glancing at their api + all the api madness ive seen out there: maybe put `formdata.field("type", "dtg")` as the first field?
<FromGitter> <mixflame> ok! i will try that
postmodern has joined #crystal-lang
jhass[m] has quit [Remote host closed the connection]
jhass[m] has joined #crystal-lang
Stephie has quit [Ping timeout: 268 seconds]
Stephie has joined #crystal-lang
postmodern has quit [Quit: Leaving]
Guest59 has joined #crystal-lang
<Guest59> Hi
Guest59 has quit [Ping timeout: 250 seconds]
Guest1 has joined #crystal-lang
Guest1 has left #crystal-lang [#crystal-lang]
deavmi has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]
deavmi_ has joined #crystal-lang
<FromGitter> <naqvis> Hi
arestifo has joined #crystal-lang
deavmi_ has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
lanodan has quit [Ping timeout: 264 seconds]
lanodan has joined #crystal-lang
deavmi has quit [Ping timeout: 245 seconds]
deavmi has joined #crystal-lang
arestifo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #crystal-lang
brw has quit [Client Quit]
brw has joined #crystal-lang
arestifo has joined #crystal-lang
arestifo has quit [Client Quit]
arestifo has joined #crystal-lang
<oz> v
<oz> oops, sorry. Wrong window.
deavmi has quit [Ping timeout: 245 seconds]
arestifo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deavmi has joined #crystal-lang
arestifo has joined #crystal-lang
deavmi has quit [Ping timeout: 252 seconds]
deavmi has joined #crystal-lang
<FromGitter> <mistergibson:matrix.org> is there a source build path for the arm64 arch?
<FromGitter> <mistergibson:matrix.org> I've got a Raspberry Pi 400 running Ubuntu and would like to add crystal
arestifo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<straight-shoota> You can cross compile from a x86 system
<straight-shoota> @mistergibson ^
postmodern has joined #crystal-lang
<FromGitter> <Daniel-Worrall> I've got a docker image of arm64 alpine https://hub.docker.com/r/danielworrall/crystal
<FromGitter> <Daniel-Worrall> Dockerfile in here https://github.com/Daniel-Worrall/crystal-build
<FromGitter> <Daniel-Worrall> Can either use it in rpi docker, or use it to build for ubuntu without cross compile
<FromGitter> <Daniel-Worrall> Okay, I don't have a Comp Sci background, so hopefully this isn't a dumb question. Would a binary cross compiled result in the same binary compiled locally assuming they're both static/release/etc/source version/target version
<FromGitter> <mistergibson:matrix.org> the arm procedure didn't work for me -- I'll keep trying. Any idea when an *official* arm64 build will be forthcoming?
<FromGitter> <Daniel-Worrall> If you check out the dockerfile, you can see the usual hardships with cross-compiling, specifically the compiler. libcrystal.a for example, which is being removed in future crystal builds
<FromGitter> <Daniel-Worrall> Also uses alpine to avoid problems with dynamic linking
deavmi has quit [Ping timeout: 245 seconds]
<straight-shoota> > Would a binary cross compiled result in the same binary compiled locally assuming they're both static/release/etc/source version/target version
<straight-shoota> Yes, should have the same result AFAIK
<straight-shoota> Code is generated by LLVM and that should operate the same way, whether it's building for the native architecture or a different one
<FromGitter> <Daniel-Worrall> So, I had an answer in the crystal discord. Reproducability (byte-for-byte) is a complicated issue, but the programs will be "the same"
<FromGitter> <elorest> Is there a better way to do line 2 of this? A way to take advantage of the fact that the compiler already knows what type the value is supposed to be. ⏎ https://carc.in/#/r/bb91
<FromGitter> <wyhaines> @elorest: I don't know if this qualifies as "better".... ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ Or something kind of similar to that. [https://gitter.im/crystal-lang/crystal?at=60c29b91d20143617e3ac9f1]
<FromGitter> <wyhaines> Generally, reopening standard lib types to add things is risky business, especially when they depend on other implementation details.
<FromGitter> <elorest> @wyhaines Yeah I generally try to avoid that. I was hoping there was something more general with types and aliases. Thanks though.
<FromGitter> <sclee15> Will CrystalConf unvail videos on YouTube? I am a Crystal user from South Korea. Since the event time starts up at 12AM in my timezone. I cannot attend the live event.
<FromGitter> <wyhaines> I don't know of any standard method that gives you the type that an array stores, unless you go and create one yourself as above. ⏎ ⏎ You could finagle something with a macro and *typeof*, which might also be reasonable if you are repeating the above pattern A LOT, but it also won't be particularly *pretty* in implementation).