ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.21.1 | Fund Crystal's development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 256 seconds]
Philpax__ has joined #crystal-lang
Philpax_ has quit [Ping timeout: 240 seconds]
<FromGitter> <elorest> <RX14> Any ideas what this error means. I have everything installed on my computer but get this error at the end when I try running the command you gave me. `clang: error: no such file or directory: '/Users/isaac/workspace/crystal/recompile/crystal/src/ext/libcrystal.a' ⏎ Error: execution of command failed with code: 1: `cc -o "/Users/isaac/.cache/crystal/Users-isaac-workspace-cry
<FromGitter> ... stal-recompile-crystal-src-ecr-process.cr/macro_run" "${@}" -rdynamic -lpcre -lgc -lpthread /Users/isaac/workspace/crystal/recompile/crystal/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib``
Philpax__ has quit [Ping timeout: 240 seconds]
wiiw has quit [Remote host closed the connection]
Renich_ has joined #crystal-lang
Renich has quit [Ping timeout: 240 seconds]
Renich_ has quit [Client Quit]
Renich has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
Renich has quit [Ping timeout: 260 seconds]
Renich has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
Renich has quit [Quit: leaving]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 246 seconds]
g3funk has quit [Ping timeout: 260 seconds]
g3funk has joined #crystal-lang
astronavt[m] has joined #crystal-lang
astronavt[m] has left #crystal-lang ["User left"]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
mgarciaisaia has joined #crystal-lang
pawnbox has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
mgarciaisaia has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
mgarciaisaia has quit [Quit: Leaving.]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter> <bew> @RX14
<FromGitter> <bew> Oops : @RX14 did you see my last post on #4140 ?
<DeBot> https://github.com/crystal-lang/crystal/issues/4140 (Using JSON.mapping with additional values)
ssvb has quit [Remote host closed the connection]
bjz has joined #crystal-lang
akwiatkowski has joined #crystal-lang
mark_66 has joined #crystal-lang
<dostoyevsky> Could crystal be used as a scripting language?
<dostoyevsky> as easy as a scripting language to write but then as hard to change as a binary in its final form :)
<txdv> yeah
<FromGitter> <KCreate> yea totally
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
akwiatkowski has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
<FromGitter> <KCreate> If you like Ruby, Crystal will feel right at heart. Keep in mind you'll still need some type annotations here and there (For empty arrays for example).
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
M-mva1985 has left #crystal-lang ["Kicked by @appservice-irc:matrix.org"]
acheron[m] has left #crystal-lang ["Kicked by @appservice-irc:matrix.org"]
<txdv> Iterator::Map(Iterator::Slice(Iterator::First(Iterator::Skip(Indexable::ItemIterator(Slice(UInt8), UInt8), UInt8, Int32), UInt8, Int32), UInt8, Int32), Array(UInt8), Socket::IPAddress)
<txdv> woaw
<txdv> what a type
<FromGitter> <KCreate> Where did you find that?
<txdv> t = IO::Memory.new(buffer)
<txdv> p t.to_slice.each.skip(6).first(a[0] - 6).each_slice(6).map { |arr| arr.to_slice.to_ipaddr }.class
<txdv> y
<txdv> im just serializing some stuff send by packets
akwiatkowski has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
ssvb has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Raimondii has joined #crystal-lang
bjz has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
sletix has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
Philpax_ has quit [Ping timeout: 240 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Qchmqs has joined #crystal-lang
<lhz> aliases are handy in such cases
<RX14> @elorest I assume you're running that command on the raspbery pi. Obviously that path doesn't exist, so you have to modify it to point to your checkout of the crystal repo on your raspberry pi
mgarciaisaia has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 260 seconds]
mark_66 has quit [Remote host closed the connection]
mgarciaisaia has quit [Quit: Leaving.]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 268 seconds]
pduncan has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
pawnbox has joined #crystal-lang
michael_campbel- has quit [Ping timeout: 240 seconds]
michael_campbell has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
Qchmqs has quit [Ping timeout: 268 seconds]
tliff has quit [Ping timeout: 256 seconds]
tliff has joined #crystal-lang
sz0 has joined #crystal-lang
akwiatkowski has joined #crystal-lang
<FromGitter> <KCreate> @elorest Are you planning on writing a blog article of some sorts about running crystal on the raspberry pi?
akwiatkowski has quit [Ping timeout: 260 seconds]
<FromGitter> <ltran> @wmoxam I was hoping I could create one binary that could be run anywhere :D
<wmoxam> @ltran I think that's only achievable via an emulator :)
<wmoxam> you'd probably have to statically compile your binary too
<RX14> well
<RX14> i guess you could count java jar files as a binary
<RX14> or at least class files as a binary
<RX14> and they can be run pretty much everywhere (with a jvm)
<RX14> i wonder if it would be possible to create one ELF file with binaries for a bunch of different architectures in
<RX14> probably noyt
akwiatkowski has joined #crystal-lang
<FromGitter> <KCreate> You mean like a bundle containing the same program but for different architectures?
pawnbox_ has joined #crystal-lang
<FromGitter> <ltran> ya i was thinking if i was writing something for my mac, i could it off to ops and say here just use this ;) kinda a way to put more crystal around
pawnbox has quit [Ping timeout: 260 seconds]
sija has joined #crystal-lang
<wmoxam> RX14: the problem is that OSX doesn't execute ELF binaries :D
<RX14> well yeah
<RX14> it'd have to be an "all architectures on linux" executable probably
<RX14> even then i'm not sure if it was possible
<RX14> i was just pondering
<wmoxam> maybe you could do something with llvm bytecode
<wmoxam> I'm not sure how that would work with dependencies
<wmoxam> anyway, the jvm is def the way to go for that sort of stuff
<wmoxam> like, I can easily play Minecraft on OpenBSD and Mojang totally does nothing to support it
<FromGitter> <KCreate> i read somewhere that you can convert llvm bytecode to jvm bytecode
<FromGitter> <KCreate> more or less
<wmoxam> I don't doubt it
<sija> there's sth called lljvm - https://github.com/davidar/lljvm
<sija> although looks pretty outdated :(
<FromGitter> <KCreate> yea last commit is in 2015
<wmoxam> " Getting LLJVM to run on modern machines (and keeping it running) can be quite tricky as it depends heavily on an old version of LLVM"
<wmoxam> aka llvm v2.7
<sija> once there was also https://vmkit.llvm.org
<sija> not longer maintained atm
gloscombe has quit [Remote host closed the connection]
<FromGitter> <faustinoaq> Hi, Does crystal have something similar to `python -m http.server`?
<FromGitter> <faustinoaq> Maybe with `crystal eval`?
<FromGitter> <fridgerator> not that I know of
<FromGitter> <crisward> You mean a static file serveR?
<FromGitter> <KCreate> There's this: sdogruyol/fast-http-server (https://github.com/sdogruyol/fast-http-server)
<FromGitter> <KCreate> which is just a static file server
sz0 has quit [Quit: Connection closed for inactivity]
<FromGitter> <bcardiff> ```code paste, see link```
<FromGitter> <bcardiff> @faustinoaq :up:
<FromGitter> <faustinoaq> :smile: @bcardiff Thank you!
<FromGitter> <fridgerator> nice! :thumbsup:
<FromGitter> <bcardiff> use `HTTP::Server.new("0.0.0.0", 3000, [HTTP::StaticFileHandler.new(".")]).listen` if you want to allow any ip to make request
<FromGitter> <bcardiff> and `require "http"; HTTP::Server.new("0.0.0.0", 3000, [HTTP::LogHandler.new, HTTP::StaticFileHandler.new(".")]).listen` if you want logging.
<FromGitter> <KCreate> Wow! Didn't know you had a one-line static file server in crystal
Raimondi has quit [Ping timeout: 268 seconds]
A124 has quit [Ping timeout: 268 seconds]
Raimondi has joined #crystal-lang
<FromGitter> <elorest> <RX14> I feel like I've installed everything I need on both systems and I managed to cross compile the crystal.o on my mac. I can't run make deps on my pi though as it gives me this response, `Using /usr/bin/llvm-config-3.9 [version=3.9.1] ⏎ make: Nothing to be done for 'deps'.`
<FromGitter> <fridgerator> If anyone is intersted, I created an AWS AMI with crystal already installed. You can just search the community / public AMIs for Crystal, or use this ami id : ami-fb5e7a9e
<FromGitter> <fridgerator> If you chose this AMI when you spin up a new EC2 instance, will have crystal 0.21.1
<FromGitter> <fridgerator> its based on the Amazon Linux AMI
mgarciaisaia has joined #crystal-lang
pawnbox_ has quit [Remote host closed the connection]
bjz has joined #crystal-lang
<FromGitter> <elorest> @fridgerator That's cool thanks.
<FromGitter> <KCreate> @fridgerator nice! At work we're starting to migrate to AWS so maybe we could use crystal for some of our projects
shadowshell has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi^1 has joined #crystal-lang
_whitelogger has joined #crystal-lang
Raimondi^1 has joined #crystal-lang
Raimondii has quit [Ping timeout: 268 seconds]
Raimondi^1 is now known as Raimondii
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
Raimondii has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 264 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
pawnbox has joined #crystal-lang
bjz has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
pawnbox has quit [Ping timeout: 264 seconds]
<FromGitter> <elorest> Is there anyone here who has compiled crystal on a Raspberry Pi before? I feel like I'm really close but crash when I try to link to my crystal.o on the raspi.
Raimondii has joined #crystal-lang
Raimondii is now known as Raimondi
mgarciaisaia has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Philpax_ has joined #crystal-lang
pawnbox has joined #crystal-lang
bungoman_ has joined #crystal-lang
bungoman has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
<FromGitter> <elorest> @KCreate Yeah definitely I will post about this entire process over on isaacsloan.com as soon as I successfully pull this off.
<RX14> @elorest what's the error
p0p0pr37 has quit [Remote host closed the connection]
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia has quit [Read error: Connection reset by peer]
mgarciaisaia has joined #crystal-lang
mgarciaisaia1 has quit [Ping timeout: 260 seconds]
mgarciaisaia has quit [Ping timeout: 246 seconds]
pawnbox has joined #crystal-lang
<FromGitter> <elorest> <RX14> I posted the details over here: https://github.com/crystal-lang/crystal/pull/3424
pawnbox has quit [Ping timeout: 240 seconds]
<FromGitter> <elorest> It seemed like too much information to post into this chat. Thanks.
<RX14> @elorest what does `/usr/local/bin/llvm-config --version` say on osx?
mgarciaisaia has joined #crystal-lang
<FromGitter> <elorest> <RX14> 3.9.1
<RX14> and what about llvm-config --version on the raspi?
<FromGitter> <elorest> Also 3.9.1 but it's installed as /usr/bin/llvm-config-3.9
<FromGitter> <elorest> `pi@raspberrypi:~/crystal $ make ⏎ Using /usr/bin/llvm-config-3.9 [version=3.9.1]`
<RX14> @elorest yes but your linker command isn't using llvm-config-3.9 is it?
<RX14> you'll need to fix that
<RX14> just change `/usr/local/bin/llvm-config` to `llvm-config-3.9`
<FromGitter> <elorest> doh... thanks man. That should at least get me further. I assumed it was pulling that from an ENV var or something.
<RX14> yeah there's a lot more steps than I thought
jamie_ca has joined #crystal-lang
<FromGitter> <elorest> I wonder if these are wrong too `-L/usr/lib -L/usr/local/lib`
<FromGitter> <elorest> <RX14> I'm still getting this error. https://gist.github.com/elorest/55a65970a805a74ec7d6be8ba262efc1