<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
<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>
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>
<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]
<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]