jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.15.0 | Fund Crystals 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
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 265 seconds]
tliff has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
maxpowa has quit [Ping timeout: 276 seconds]
tliff has joined #crystal-lang
maxpowa has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
LastWhisper____ has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deverly has joined #crystal-lang
deverly has quit [Client Quit]
pawnbox has joined #crystal-lang
ome has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
buggs1 has joined #crystal-lang
buggs has quit [Read error: Connection reset by peer]
soveran has joined #crystal-lang
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #crystal-lang
_kfpratt has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
kfpratt_ has joined #crystal-lang
kfpratt__ has joined #crystal-lang
kfprat___ has joined #crystal-lang
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #crystal-lang
kfpra____ has joined #crystal-lang
_kfpratt has quit [Ping timeout: 276 seconds]
kfpratt_ has quit [Ping timeout: 276 seconds]
_kfpratt has joined #crystal-lang
kfpratt_ has joined #crystal-lang
kfpratt__ has quit [Ping timeout: 276 seconds]
kfprat___ has quit [Ping timeout: 244 seconds]
kfpratt has quit [Ping timeout: 276 seconds]
kfpra____ has quit [Ping timeout: 276 seconds]
_kfpratt has quit [Ping timeout: 276 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
kfpratt has joined #crystal-lang
_kfpratt has joined #crystal-lang
kfpratt__ has joined #crystal-lang
kfprat___ has joined #crystal-lang
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpra____ has joined #crystal-lang
kfpratt_ has joined #crystal-lang
kfpratt has quit [Ping timeout: 276 seconds]
willl has quit [Quit: Connection closed for inactivity]
kfpratt has joined #crystal-lang
_kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has joined #crystal-lang
kfpratt__ has quit [Ping timeout: 276 seconds]
kfprat___ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #crystal-lang
kfpra____ has quit [Ping timeout: 276 seconds]
kfprat___ has joined #crystal-lang
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #crystal-lang
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #crystal-lang
_kfpratt has quit [Ping timeout: 250 seconds]
_kfpratt has joined #crystal-lang
kfpra____ has joined #crystal-lang
kfpratt__ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #crystal-lang
kfprat___ has quit [Ping timeout: 276 seconds]
kfprat___ has joined #crystal-lang
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #crystal-lang
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #crystal-lang
_kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has joined #crystal-lang
kfpra____ has quit [Ping timeout: 276 seconds]
kfpra____ has joined #crystal-lang
kfpratt__ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #crystal-lang
kfprat___ has quit [Ping timeout: 276 seconds]
kfprat___ has joined #crystal-lang
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #crystal-lang
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #crystal-lang
_kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has joined #crystal-lang
kfpra____ has quit [Ping timeout: 276 seconds]
kfpra____ has joined #crystal-lang
kfpratt__ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #crystal-lang
kfprat___ has quit [Ping timeout: 276 seconds]
kfprat___ has joined #crystal-lang
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #crystal-lang
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #crystal-lang
_kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has joined #crystal-lang
kfpra____ has quit [Ping timeout: 276 seconds]
kfpra____ has joined #crystal-lang
kfpratt__ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #crystal-lang
kfprat___ has quit [Ping timeout: 276 seconds]
kfprat___ has joined #crystal-lang
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #crystal-lang
kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
kfpratt has joined #crystal-lang
kfpratt__ has quit [Ping timeout: 250 seconds]
kfpra____ has quit [Ping timeout: 276 seconds]
_kfpratt has joined #crystal-lang
kfpratt__ has joined #crystal-lang
kfprat___ has quit [Ping timeout: 276 seconds]
kfprat___ has joined #crystal-lang
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
kfpra____ has joined #crystal-lang
kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has quit [Ping timeout: 250 seconds]
kfpratt has joined #crystal-lang
kfpratt__ has quit [Ping timeout: 276 seconds]
_kfpratt has joined #crystal-lang
kfprat___ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #crystal-lang
soveran has joined #crystal-lang
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #crystal-lang
kfpra____ has quit [Ping timeout: 276 seconds]
kfprat___ has joined #crystal-lang
kfpra____ has joined #crystal-lang
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #crystal-lang
_kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has joined #crystal-lang
kfpratt__ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #crystal-lang
kfpratt_ has quit [Ping timeout: 276 seconds]
soveran has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #crystal-lang
kfprat___ has quit [Ping timeout: 276 seconds]
kfprat___ has joined #crystal-lang
kfpra____ has quit [Ping timeout: 276 seconds]
kfpra____ has joined #crystal-lang
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #crystal-lang
_kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has joined #crystal-lang
kfpratt__ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #crystal-lang
kfpratt_ has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
kfprat___ has quit [Ping timeout: 276 seconds]
kfpra____ has quit [Ping timeout: 276 seconds]
kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has quit [Ping timeout: 276 seconds]
kfpratt__ has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 265 seconds]
pawnbox has joined #crystal-lang
nwmcsween_ is now known as nwmcsween
kfpratt has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
kfpratt has quit []
mgarciaisaia has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 260 seconds]
Ven has joined #crystal-lang
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
trapped 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
Philpax has quit [Ping timeout: 244 seconds]
soveran has quit [Remote host closed the connection]
maxpowa has quit [Ping timeout: 276 seconds]
maxpowa has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
Philpax has quit [Quit: Leaving]
rolha has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
emmanueloga_ has joined #crystal-lang
nwmcsween has quit [Ping timeout: 240 seconds]
emmanueloga has quit [Ping timeout: 244 seconds]
emmanueloga_ is now known as emmanueloga
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nwmcsween has joined #crystal-lang
nwmcsween is now known as Guest47706
mark_66 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Ven has joined #crystal-lang
nakilon has joined #crystal-lang
aemadrid has quit [Ping timeout: 250 seconds]
aemadrid has joined #crystal-lang
ome has quit [Quit: Connection closed for inactivity]
maxpowa has quit [Ping timeout: 276 seconds]
maxpowa has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
nakilon has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
steenuil has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
maxpowa has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
maxpowa has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
pawnbox has joined #crystal-lang
|2701 has joined #crystal-lang
fnux has quit [Quit: おやすみ。]
fnux has joined #crystal-lang
trapped has joined #crystal-lang
<crystal-gh> [crystal] myfreeweb opened pull request #2560: Fix FreeBSD linking issues (master...master) https://git.io/vwAjR
maxpowa has quit [Ping timeout: 260 seconds]
maxpowa has joined #crystal-lang
emancu has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
<miketheman> yawn
pawnbox has joined #crystal-lang
maxpowa has quit [Ping timeout: 250 seconds]
mark_66 has quit [Remote host closed the connection]
<miketheman> asterite: if you're around, I'd appreciate a bit of help here
maxpowa has joined #crystal-lang
<vegai> hey, musl support in 0.16! Woo!
<vegai> does anyone sell crystal stickers?
<vegai> any plans on making crystal compile against llvm 3.7, by the way?
<asie> musl support? woo indeed!
ruslux has joined #crystal-lang
<ruslux> Hello! Can I prevent downcasting from "alias Document = Hash(String, Type)" to "Hash(String, String)" when it passed to restricted function arg like "def foo(param : Document)"?
ylluminate has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
maxpowa has quit [Ping timeout: 260 seconds]
maxpowa has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 5 new commits to master: https://git.io/vwxBP
<crystal-gh> crystal/master 8d47cc9 Ary Borenszweig: Tuple: use `T.size` instead of `@type.size` inside macros (cleaner)
<crystal-gh> crystal/master 1102ddf Ary Borenszweig: Number: make `Number.[]` a macro (no need to generate runtime tuples for that)
<crystal-gh> crystal/master 85947bf Ary Borenszweig: Compiler: let the type guesser expand macro expressions, if and for. Fixes #2559
maxpowa has quit [Ping timeout: 250 seconds]
<vegai> has typing syntax been discussed before?
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vegai> perhaps this is just a habitual thing, but "f(x: int, y: int): int" looks quite a lot prettier than "f(x : int, y : int) : int"
<vegai> I suppose the former looks better because it looks similar to how colons are used in English
maxpowa has joined #crystal-lang
<BlaXpirit> vegai, former used to work then was forced to latter
<BlaXpirit> beats me
<vegai> aw :-/
<vegai> perhaps it's easier to parse
<BlaXpirit> vegai, no
<BlaXpirit> that's almost never an argument anyway. besides, they even have a special error that says you gotta add a space there
<BlaXpirit> vegai, https://carc.in/#/r/xzg
<BlaXpirit> (note crystal version, that was my point)
<vegai> yeah
ylluminate has quit [Quit: Textual IRC Client: www.textualapp.com]
rolha has quit [Quit: Textual IRC Client: www.textualapp.com]
ruslux has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#30e16eb (master - Docs: remove the `docs` directory and moved files to `src`.): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/128329143
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vwxaC
<crystal-gh> crystal/master 31f60d8 Ary Borenszweig: Number: added Number::Primitive alias
<crystal-gh> crystal/master f25f270 Ary Borenszweig: Removed `Char#ord` primitive from compiler's code, and prepared the terrain to move more primtiives to Crystal code.
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
pabs has quit [Ping timeout: 264 seconds]
rtl has quit [Remote host closed the connection]
rtl has joined #crystal-lang
emancu has quit []
pabs has joined #crystal-lang
<asterite> vegai: the reason is that this is a call with named arguments: `foo(x: 1, y: 2)`. This is a call with type declarations (useful for macros): `record Point, x : Int32, y : Int32`. The space is what distinguishes them. We chose to use a space too in method declarations, because these are really type declarations. If we allow omitting the space then it'll be easier to mix the two concepts. So it's purely a decision of ours, not a limitation i
<asterite> n, say, the parser or the type inference
<vegai> ah
<vegai> would the pythonic = worked better with named arguments, what do you think?
<BlaXpirit> >> p(x=5)
<DeBot> BlaXpirit: 5 - more at https://carc.in/#/r/y0a
<BlaXpirit> vegai, do you understand what happens here?
<vegai> x gets assigned 5 and that assignments returns 5?
<BlaXpirit> well yes
<vegai> I mean the expression returns 5
<travis-ci> crystal-lang/crystal#f25f270 (master - Removed `Char#ord` primitive from compiler's code, and prepared the terrain to move more primtiives to Crystal code.): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/128338957
<vegai> BlaXpirit: I suppose python restricts the usage of "=" in many places
<BlaXpirit> sometimes i hate assignment not being an expression
<BlaXpirit> also i hate '=' being assignment
<vegai> using the return value of an assignment hardly ever leads to better code in my opinion
ruslux has joined #crystal-lang
<BlaXpirit> vegai, in crystal it's especially usefulk
<asterite> On that matter, we could disallow assignment inside calls, and use `x=foo`. In any case, either `=` or `:` will have their meaning overloaded :/
<asterite> There's also the thing that we might add named tuples, with a syntax like {x: 1, y: 2}. We'd have to use {x=1, y=2}... well, which doesn't look that bad, actually :-)
<BlaXpirit> nah just forget about this
<BlaXpirit> what about round brackets for tuples though?
<asterite> You mean <1, 2, 3>, or (1, 2, 3) ?
<BlaXpirit> asterite, I mean (1,2,3). '<' doesn't look round to me
<asterite> Hehe, yeah, I noticed too late but there's no way to delete IRC messages :-(
<asterite> Mmm...
<asterite> It was considered, there's even an open issue for that
<asterite> The main issue is this: (Int32, Int32) -> Int3
<asterite> Is that a function with a tuple as an argument, or with two arguments?
<asterite> In Swift for example, where tuples are written with parentheses, it's a function with two arguments
<asterite> You'd have to do: ((Int32, Int32)) -> Int32
<asterite> I guess that's not that bad... but... with {...} there's no such problem
<BlaXpirit> it's not bad if it actually worked, but crystal can't have (item) to be a tuple
ruslux has quit [Ping timeout: 276 seconds]
ylluminate has joined #crystal-lang
jsaak has joined #crystal-lang
<jsaak> hello i have trouble reading from a file, can someoeon point me out what i am doing wrong?
<jsaak> in ./server4.cr:21: undefined method 'read' for Nil (compile-time type is File?)
Philpax has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
<adam12> Is there a good list of built-in types? I was refactoring Crake to support 0.16.0 and hunting types was a bit of a pain.
<BlaXpirit> adam12, http://crystal-lang.org/api/
<RX14> why is crystal telling me ``instance variable '@target_start' of FastIRC::Prefix must be Int32, not Int32?``
<RX14> its weird
<BlaXpirit> RX14, Int32|Nil
<BlaXpirit> didnt they change that to write |nil in error messages?
<RX14> why would it tell me an instance variable cannot be nillable
<BlaXpirit> RX14, because you set its type once at the beginning
<adam12> BlaXpirit: I guess that could of worked. I'm still figuring out the types - and IIRC I needed one for a block...
<RX14> no
<BlaXpirit> havent you heard the news
<RX14> @target_start is Int32?
<BlaXpirit> show code pls
<RX14> and the variable i'm using to construct it with is Int32
<RX14> ``instantiating 'FastIRC::Prefix#initialize(Slice(UInt8), Int32?, Int32?, Int32?, Int32?, Int32?, Int32?)'``
<RX14> it says it wants a Int32?
<RX14> in it's own error message
<BlaXpirit> RX14, it says the other way around
<RX14> and complains when it's an Int32
<BlaXpirit> the other way around
<RX14> it can't me
<RX14> wait shit
<RX14> fuck
<RX14> its my fault
<BlaXpirit> :o really?
<RX14> yes
<RX14> ignore me
<jsaak> can you pls look at my code then pls? it seems so trivial, but i can not read anything from a file
<BlaXpirit> jsaak, I looked at the code, it surprised me
<jsaak> it should be working, no?
<RX14> jsaak, can you add a puts typeof(file)
<RX14> inside the if
<jsaak> ok
<BlaXpirit> RX14, that does nothing because the code doesnt compile
<RX14> well it will if you comment the rest
<RX14> like
<RX14> it's usages
<RX14> or idk
<jsaak> "File?"
<RX14> shouldn't if restrict types?
<BlaXpirit> RX14, it should, looks like a bug to me
<RX14> >> foo = "string" | nil; puts typeof(foo); if foo; puts typeof(foo); end
<DeBot> RX14: undefined method '|' for String - https://carc.in/#/r/y0c
<RX14> >> foo = "string" || nil; puts typeof(foo); if foo; puts typeof(foo); end
<DeBot> RX14: String? - more at https://carc.in/#/r/y0d
<RX14> how come it works there?
<RX14> maybe ebcause it's from another, complex context
<RX14> yeah
<RX14> thats it
<RX14> another fiber could change file
<BlaXpirit> uh no..?
<RX14> so it's like a class variable
<RX14> i think
<RX14> idk
<BlaXpirit> yeah you're probably right
<vegai> BlaXpirit: ah, right
<RX14> anyway
<RX14> power_assert.cr will be "fun" to fix
<BlaXpirit> jsaak, so when you're writing `if file` inside a fiber who said someone isn't going to assign `file = nil` in between
<BlaXpirit> RX14, wha are you the author of power_assert?
<RX14> no
<RX14> the author is basically dead
<RX14> so I have a form
<RX14> fork*
<jsaak> BlaXpirit: who on earth could do that? :)
<jsaak> ohh you are right sorry
<RX14> jsaak, thats what people said about C rces
<BlaXpirit> RX14, >29 days ago ?
<RX14> oh he updated it
<RX14> there are unanswered PRs
<RX14> and shite
<jsaak> but i have a fil.nil? check inside the fiber too
Philpax has quit [Ping timeout: 252 seconds]
<BlaXpirit> jsaak, I understand but what if somone changes it AFTER you checked?
<BlaXpirit> by someone i mean some other piece of code
<jsaak> it is not possible since it is single threaded, no?
<jsaak> but let assume you are right, how to read from a file then?
<BlaXpirit> jsaak, current crystal concurrency is worst of both worlds
<BlaXpirit> it is singlethreaded but execution can switch semi-randomly
<BlaXpirit> when any code happens to yield
Philpax has joined #crystal-lang
<BlaXpirit> no, saying "yield" here is misleading, because the "yield" keyword is not used
<BlaXpirit> jsaak, the whole point of this concurrency is that you do not share any resources
<RX14> BlaXpirit, so how does crystal work out when a variable can escape to another thread?
<RX14> it seems like it must be able to
<BlaXpirit> you use channels to pass datga
<BlaXpirit> it's really unfortunate that crystal took Go's idiotic ideas but what can you do
<jsaak> crystals current state of concurrency is confuding for me :)
<BlaXpirit> Crystal can't use Python's great ideas because it doesn't have coroutines in the first palce
<jsaak> and no Fibers either?
<BlaXpirit> jsaak, the gist of it is. FOR NOW it runs in 1 thread, it has almost all the problems of normal threaded programming, and you shouldn't use the same resource from different fibers
<jsaak> "To achieve concurrency, Crystal has fibers"
<BlaXpirit> ok, i don't think i said anything that contradicts that
<jsaak> coroutines == Fibers no?
<BlaXpirit> possibly
<RX14> yes
<RX14> and i don't think it's the worst of both worlds
<RX14> fibers have great performance characteristics
<RX14> and are cheap to spawn
<RX14> mainly because of the cooperative multithreading
<jsaak> i think fibers are great, the only problem is that i do not know how to use them in crystal
<RX14> the only fiber interface you (should) ever need is the spawn macro
<RX14> spawn do xxx end
<BlaXpirit> and don't use anything from outside the fiber
Philpax has quit [Ping timeout: 276 seconds]
<RX14> BlaXpirit, thats not true at all
<RX14> i quite like the fact that crystal sticks to a single core honestly
<BlaXpirit> RX14, that's not the plan
<BlaXpirit> it's the temporary limitation
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
<jsaak> i do think that it is an insane plan, but thats only me
ylluminate has quit [Ping timeout: 260 seconds]
ylluminate has joined #crystal-lang
<jsaak> putting the File.open inside the Fiber, and it works like a charm
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 276 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
|2701 has joined #crystal-lang
<Netfeed> is there a pretty print?
<Netfeed> like perls Data::Dumper or rubys pp
<RX14> Netfeed, have you tried pp?
<RX14> oh
<RX14> you mean indented
<RX14> no, there isn't
<Netfeed> alright, too bad
<RX14> i sort of made one
<RX14> I can give you the code
<RX14> can't remeber where I put it though
<Netfeed> it's fine, i can use ruby, but compiled crystal was so much faster :)
<RX14> that method should work
<Netfeed> alright, thanks, i'll take a look
<RX14> in most cases
TheLemonMan has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
ruslux has joined #crystal-lang
mroth has quit [Ping timeout: 244 seconds]
mroth_ has joined #crystal-lang
jwaldrip_ has joined #crystal-lang
jwaldrip has quit [Ping timeout: 240 seconds]
jwaldrip_ is now known as jwaldrip
mroth_ has quit [Ping timeout: 240 seconds]
mroth_ has joined #crystal-lang
maxpowa has quit [Quit: Ahh! My head is on fire!]
maxpowa has joined #crystal-lang
yllumina_ has joined #crystal-lang
ylluminate has quit [Ping timeout: 260 seconds]
ylluminate has joined #crystal-lang
yllumina_ has quit [Ping timeout: 246 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
nakilon has joined #crystal-lang
fowlduck has joined #crystal-lang
nakilon_ has joined #crystal-lang
<fowlduck> can crystal programs be compiled to standalone binaries, similar to go?
nakilon has quit [Ping timeout: 252 seconds]
<RX14> fowlduck, how standalone?
<RX14> like, there's only minimal linking required
<RX14> it's not like every library is dynamically linked with most C/C++ programs
<fowlduck> does crystal need to be installed on the system the binary is on in order to run?
<RX14> nope
<fowlduck> ok, cool
<RX14> it needs some basically libraries that most systems have though
<tilpner> No, it shouldn't be required, though you'll need libgc, libpcre and a couple of other things.
<RX14> oh
<RX14> libgc
<RX14> I forgot about that
<tilpner> They're comparably common though, so they're either preinstalled or available through your distros package manager.
<RX14> libgc isn't as common as the rest though
<tilpner> I wish they'd "just" remove libgc as a dependency. :s
<fowlduck> Is there any way to statically compile it? I know a fair number of developers looking for something rubyish that can compile to standalone binaries for little command-line tools
<fowlduck> I don't know enough to even know if what I'm asking makes sense
<Netfeed> crystal build?
<RX14> Netfeed, ?
<Netfeed> wouldn't that do it?
<RX14> it compils them
<RX14> but there's still a runtime dep on libgc
<tilpner> Yes, it will statically compile them, but link them dynamically. c.c
<Netfeed> RX14: ah, true
<RX14> everything in crystal is statically compiled
<RX14> but the GC is written in C++
<RX14> (or c can't remember)
<RX14> and is dynamically lniked
<RX14> you jmight be able to statically link it
<RX14> i'm 100% not sure
<RX14> linking is magic to me
pawnbox has joined #crystal-lang
<fowlduck> me, too
<fowlduck> my coworker pointed out that 0.16.0 was released
<fowlduck> and that crystal is on its way to fixing the compilation issues due to inference across large projects
pawnbox has quit [Ping timeout: 240 seconds]
<Netfeed> what's the best way of creating a new hash (or modify an existing) so i can run a function on each value in the hash? i'm feeling pretty stupid right now, but the best solution i can come up with right now is something like Hash.zip(hsh.keys, hsh.keys.map { |k| some_func(hsh[k] }) and that seems pretty wrong to me
<RX14> doesn't hash.map exist?
<RX14> oh, nope wtf
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vwpGF
<crystal-gh> crystal/master e9a73cb Ary Borenszweig: Compiler: moved all primitive declarations to Crystal code
maxpowa has quit [Ping timeout: 276 seconds]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
maxpowa has joined #crystal-lang
maxpowa has quit [Ping timeout: 250 seconds]
maxpowa has joined #crystal-lang
<travis-ci> crystal-lang/crystal#e9a73cb (master - Compiler: moved all primitive declarations to Crystal code): The build has errored. https://travis-ci.org/crystal-lang/crystal/builds/128401505
willl has joined #crystal-lang
fowlduck has quit [Ping timeout: 276 seconds]
<crystal-gh> [crystal] asterite pushed 3 new commits to master: https://git.io/vwplq
<crystal-gh> crystal/master c5ce133 Ary Borenszweig: Cleanup: removed a few extra spaces
<crystal-gh> crystal/master 008d17b Ary Borenszweig: std: made a few macro methods regular methods.
<crystal-gh> crystal/master 9441b4c Ary Borenszweig: Macros: added `ArrayLiteral#+(other : ArrayLiteral)` macro method
pabs has quit [Ping timeout: 244 seconds]
pabs has joined #crystal-lang
ruslux has quit [Ping timeout: 265 seconds]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
maxpowa has quit [Ping timeout: 276 seconds]
soveran has quit [Ping timeout: 260 seconds]
maxpowa has joined #crystal-lang
maxpowa has quit [Ping timeout: 260 seconds]
maxpowa has joined #crystal-lang