ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.34.0 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
_whitelogger has joined #crystal-lang
<FromGitter> <Blacksmoke16> raz: Added built in converter for `Time`
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed45183549761730b6db38c]
<FromGitter> <Blacksmoke16> accepts optional format and location, otherwise uses rfc_3339
<FromGitter> <Blacksmoke16> figured it would be one of the more common ones
<FromGitter> <dougty_twitter> hi, new to crystal, is there any way to change the values of a struct in an array while iterating the array? i can post an example of what i'm trying to do if that's okay
<FromGitter> <dougty_twitter> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed4613b89941d051a35caa7]
<FromGitter> <dougty_twitter> if i `puts item` inside the each, val is updated to 123, but if i `puts @arr` outside after the each it's still 0
<FromGitter> <Blacksmoke16> You're editing a copy of the item
<FromGitter> <dougty_twitter> i figured as much, is there any way to edit the actual item?
<FromGitter> <Blacksmoke16> If you need mutability use a class
<FromGitter> <Blacksmoke16> Structs are ideally immutable
<FromGitter> <dougty_twitter> ahhhh there we go, class works
<FromGitter> <dougty_twitter> thank you George :)
<FromGitter> <Blacksmoke16> Np
melthelesbian_ has joined #crystal-lang
repo1 has joined #crystal-lang
olbat[m] has quit [*.net *.split]
DeBot has quit [*.net *.split]
melthelesbian has quit [*.net *.split]
mjblack has quit [*.net *.split]
repo has quit [*.net *.split]
fifr[m] has quit [Ping timeout: 240 seconds]
narayana has quit [Ping timeout: 256 seconds]
return0e[m] has quit [Ping timeout: 260 seconds]
hamoko[m] has quit [Ping timeout: 244 seconds]
ryanprior has quit [Ping timeout: 252 seconds]
chachasmooth has quit [Ping timeout: 272 seconds]
chachasmooth has joined #crystal-lang
narayana has joined #crystal-lang
hamoko[m] has joined #crystal-lang
ryanprior has joined #crystal-lang
return0e[m] has joined #crystal-lang
olbat[m] has joined #crystal-lang
zorp_ has joined #crystal-lang
melthelesbian_ is now known as melthelesbian
<FromGitter> <bararchy> How come this won't work? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed4a69b89941d051a3652bd]
<FromGitter> <bararchy> "Bar" keys is always 0 when `.get`
<FromGitter> <naqvis> `Atomic` is `Struct` so you get a value back, `add` is performed on copy, but not the one stored in `Hash`. You would need to re-assign the value of hash after modification. Something like ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed4aaa12c49c45f5ab59779]
<FromGitter> <bararchy> *cries in Multithreading*
<FromGitter> <naqvis> lol
<FromGitter> <naqvis> how about wrap that to class? sth ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed4b05427513a72fbc6b656]
<raz> pffft. commented out macro conditionals are so mean. and cruel. and elusive.
<FromGitter> <naqvis> 😆
<raz> (just spent half an hour not realizing `# {% if ... %}` was pulling his leg)
<raz> but that feeling when you finally find it... :D
<FromGitter> <naqvis> :D
alexherbo2 has joined #crystal-lang
<FromGitter> <jaredlt> Hi there, new to Crystal. Could someone help explain where I'm going wrong with the following? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed4c39a778fad0b133c6735]
<jhass> Line 9 does nothing, as you reassign e in 11
<FromGitter> <jaredlt> Aha, gotcha! Coming from Ruby I was thinking 9 initialises and then 11 assigns. Good to know and thank you for your help :)
<jhass> jaredlt: https://carc.in/#/r/96x5 I think it doesn't get much prettier
<jhass> short of using a full type (see the record macro) for your named tuple and defining <=> like that on it
<jhass> but think about it, you gotta still specify how to sort the items in case last_read indeed is nil
<FromGitter> <bararchy> I just had to increase the default timeout for no output in CircleCI as we passed 10min of compile time when running --release XD
<FromGitter> <bararchy> 🎉
<FromGitter> <jaredlt> gotcha, thanks jhass, really appreciate it
<jhass> barachy: could just add --progress :P
<FromGitter> <bararchy> we have it
<FromGitter> <bararchy> :)
<jhass> ah well
<FromGitter> <bararchy> `shards build -p --release --error-trace -Dpreview_mt`
<jhass> maybe there's some way to make LLVM be verbose that we could add to --progress or --verbose
<FromGitter> <bararchy> that's our build command
<jhass> where the heck does Crystal::LibType store its fun's? :/
<FromGitter> <emanzx> > *<jhass>* eh, ran into the struct pitfall, fixed: ehttps://play.crystal-lang.org/#/r/96re ⏎ ⏎ my colleague at work give me this idea. https://play.crystal-lang.org/#/r/96xu
<FromGitter> <emanzx> is this okay?
<jhass> the "checksum" thing is my "per_domain_key" idea exactly. You just made it a O(n) lookup by storing stuff in an array instead of a hash using the "checksum" (I'd still like to call it compound key) as key
zorp_ has quit [Ping timeout: 264 seconds]
<FromGitter> <emanzx> yes. I have thinking about the checksum also. so I can search based on checksum and get the specific array based on the checksum. but this need to run tru all the data.. and search per specific checksum.. does it better than using hash like what I did before in term of speed
<jhass> you lost me, is there a question?
<jhass> if the .find call is faster than your previous solution, then only because Hash#== and Hash#hash was more costly than it. String#== and String#hash are a lot faster, so using a hash for lookup with "checksum" as key will be even faster
<FromGitter> <emanzx> okay
<FromGitter> <emanzx> data = {} of String => Hash(String, Hash(String,String))
<FromGitter> <emanzx> and my hash should populate {<domain> => {<checksum> => {view => <view_name>, action => <action>, rpz_zone => <rpz_zone>, client_ip => <client_ip>, count => <count>}}}
<jhass> for example, yeah
<FromGitter> <emanzx> so to update the count I just data[<domain>][<checksum>][<count>] = 3
<jhass> for a complex data structure like this I would use explicit types like I showed, but yeah
<jhass> yeah
<FromGitter> <emanzx> ok this is easier for my level of understanding
<FromGitter> <emanzx> sorry for the trouble
<jhass> personally I'd probably also keep the metadata and data separate, so another level of {meta: ..., count: 0}, but ymmv
<FromGitter> <emanzx> so I just replace the hash I used as key to checksum of the hash and add the hash to the value
<jhass> yeah
<FromGitter> <emanzx> oh. that would be good too
<jhass> the checksum is what I've been calling a compound key
<FromGitter> <emanzx> thanks for the idea
<jhass> it's functionally the same to what I've been using per_domain_key for in my example
<FromGitter> <emanzx> it came to me.. but I was why I need to get extra step as you said I can to_json the hash
<FromGitter> <emanzx> haha
zorp_ has joined #crystal-lang
<FromGitter> <emanzx> yes. but from the example I loose some important meta data info
<FromGitter> <emanzx> like the action and rpz_zone
<FromGitter> <emanzx> anyway I get the main idea
<jhass> you could still make to_json your key derivation function technically, but it's not very good because it's not stable, meaning it might return different results for {:a => 1, :b => 2} and {:b => 2, :a => 1}
<jhass> yeah I just couldn't be bother to reimplemnt the parser, partly because I was also lacking some context on how to do so
<jhass> it was meant to show a possible structure, not be equally featured
<FromGitter> <emanzx> okay
<FromGitter> <emanzx> I think I get the idea from per_domain_key and hash the value of the meta data to create a uniq key
<FromGitter> <ImAHopelessDev_gitlab> hey
<FromGitter> <emanzx> thanks jhass
<jhass> yw :)
<FromGitter> <DRVTiny> Hello4all! ⏎ ⏎ If i need to skip some values in Enum, how can i do this? ⏎ I need something like this: ⏎ ... [https://gitter.im/crystal-lang/crystal?at=5ed4de937da67d06fae51fef]
<FromGitter> <naqvis> Enum by default start at 0, but you can assign values as you like ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed4e36e9da05a060a445c67]
<FromGitter> <naqvis> where `Afoo` will be 0, `Bfoo` will be 1
<FromGitter> <naqvis> `Foo.from_value(15)` will raise error
<FromGitter> <naqvis> you can also define custom methods inside `enum`
<FromGitter> <naqvis> refer to Reference Guid (https://crystal-lang.org/reference/syntax_and_semantics/enum.html) for more details
<FromGitter> <DRVTiny> @naqvis , thank you, it is exactly what i need. I misunderstood official documentation (reference guide) : i think, Cfoo = 5 mean: Cfoo (and only Cfoo) will be 5.
<FromGitter> <naqvis> ywc
<repo1> hi! i have the following problem: when trying to parse a json with a serialized enum i get this error: Unknown enum Trackmap::JobStatus::State value: 1 (ArgumentError)
<repo1> https://p.jokke.space/QU9/crystal <- this is the struct i'm trying to deserialize
repo1 is now known as repo
<repo> here's where i parse it: https://p.jokke.space/VkAbP/
<FromGitter> <naqvis> and how does your json look like?
<FromGitter> <naqvis> also you don't need to provide ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ because stdlib already take care of that for you [https://gitter.im/crystal-lang/crystal?at=5ed4efcbdaf4cf366ed4d7d4]
<jhass> actually it isn't even hit https://carc.in/#/r/96yf
<repo> hm weird
<repo> why do you think that is?
<repo> oh
<repo> i'm an idiot
<repo> value.to_s
<repo> instead of just to_s
<repo> thanks :D
<jhass> oh, never mind
<jhass> it is hit, you confused me with representing the value as a string
<repo> exactly
<jhass> I expected the name
<repo> yeah. it wasn't clear to me from the error message either because it didn't quote the value
<jhass> mh, yeah. it probably should have
<repo> but clearly only i'm to blame :)
<jhass> maybe we can make from_json restrict to the enum value type
<jhass> or Enum.parse rather
<repo> yeah but that wouldn't help
<repo> because "1" is a valid value to pass to Enum.parse
<jhass> ugh, yeah
<jhass> I'm still confused by the value.to_s :D
<jhass> easy change if you want to dip your toe
<jhass> + specs
<repo> yeah i thought about it
<repo> but i think it's quite the edge case
<jhass> one more reason to make it as clear as possible :)
<repo> yeah maybe
<jhass> can make the message say "for value" to be more consistent
<jhass> or value for string:
<repo> true
<repo> another thing: do you know how HTTP::FormData.parse handles parts with identical names?
<repo> i'm sending a multipart with curl and it seems a form field is sent only once
<repo> e.g.: `curl -F track=@/run/media/jokke/GARMIN/Garmin/GPX/HchsterStadtpark.gpx -F track=@/run/media/jokke/GARMIN/Garmin/GPX/FRA-WI.gpx -F track=@/run/media/jokke/GARMIN/Garmin/GPX/Main-Nidda\ Rundweg.gpx -F track=@/run/media/jokke/GARMIN/Garmin/GPX/Stadtwald.gpx -F track=@/run/media/jokke/GARMIN/Garmin/GPX/StadtwaldSpazieren.gpx -F style=@$HOME/Downloads/mystyle10.zip -F
<repo> typ=@$HOME/Downloads/e10.TXT localhost:3000/jobs` and https://p.jokke.space/ihihOY/ results in only one element in tracks
<repo> could ofc be curl
<jhass> I'd expect it yield each one separately
<repo> yeah i'd think so too
<jhass> mh, did you dump what curl generates?
<repo> the body?
<jhass> yeah
<repo> i'll try mitmproxy
<jhass> there should be a flag...
<repo> oh for curl?
<jhass> I mean I would expect
<jhass> hah, looks like no
<jhass> weird
<repo> --trace-ascii
<repo> mh yeah it sends them all
<FromGitter> <naqvis> raz you are using -F wrong way
<repo> i am?
<FromGitter> <naqvis> you need to send array so use `-F 'track[]=XXXX'`
<repo> that's just a convention
<FromGitter> <naqvis> don't need indices
<repo> the field name will be called track[] then
<repo> but yeah i probably should do that in any case
<jhass> yeah, that's just a convention but PHP made people think its a standard because it fails to deal with anything else
<repo> D
<repo> :D
<FromGitter> <naqvis> is it?
<repo> yeah
<jhass> yeah
<FromGitter> <naqvis> i don't do PHP
<repo> rails does that too
<FromGitter> <naqvis> but might be just used to such convention in HTML Forms lol
<jhass> fwiw rails has the same problem
<FromGitter> <naqvis> i ain't do rails either :D
<repo> wouldn't surprise me
<jhass> yeah, I get both for a simple example
<jhass> I think you're just looking wrong at things
<repo> hm using '[]' makes no difference. Still just one element in tracks
<jhass> yeah, the parser doesn't care about what the name is
<repo> yeah
<jhass> put a pp! part.name in your handler, trace where its lost
<repo> what's pp!?
<repo> pp to STDERR?
<jhass> a marco that prepends a stringifed version of its argument to the output
<jhass> so a=1; pp! a; prints a # => 1
<jhass> p! exists too
<repo> oh cool
<repo> that's useful!
<repo> ah ok it's not the perser that's the problem
<repo> parser
<repo> it's i serialize the form data into msgpack and there it seems to be lost
<repo> -it's
<jhass> >> "Default target: aarch64-alpine-linux-musl".lstrip("Default target: ")
<jhass> DeB
* jhass kicks the bot
DeBot has joined #crystal-lang
<jhass> >> "Default target: aarch64-alpine-linux-musl".lstrip("Default target: ")
<DeBot> jhass: # => "ch64-alpine-linux-musl" - https://carc.in/#/r/96zm
<jhass> it's too easy to confuse lstrip and lchop :/
<oprypin> jhass, yea just deprecate `lstrip(chars : String) `
<oprypin> `lstrip(chars : Enumerable(Char))` 👌
<FromGitter> <Blacksmoke16> `lstrip(*chars : Char)` :0
<jhass> well, .lstrip("0-9a-f") is kind of handy
<jhass> lstrip(*, set : String)?
<FromGitter> <emanzx> guys what this error mean?
<FromGitter> <emanzx> Error: undefined method 'to_i' for Hash(String, String) (compile-time type is (Hash(String, String) | String))
<FromGitter> <Blacksmoke16> the value you're calling `.to_i` on is a union of `Hash(String, String)` and `String`
<jhass> it means your variable can either be a hash or a string. Hash#to_i is not a thing, so you need to check you have a string before you can call to_i
<FromGitter> <Blacksmoke16> of which `Hash` doesn't have a `.to_i` method
<FromGitter> <emanzx> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed4ffd0225dc25f54bc4ccd]
<FromGitter> <Blacksmoke16> probably some case where the value of `qinfo["count"]` is a hash, and not just a string
<jhass> one more reason to use types over hashes :)
<FromGitter> <emanzx> yes.. so I need to do if count.is_a String
<jhass> why's count a string even, shouldn't it be an Int64 or so?
<jhass> if you're really sure you can just cast .as(String).to_i
<FromGitter> <emanzx> ah.. before I set Int32 and it throw error so I change to String..
<FromGitter> <emanzx> its stop complaining.. then when I try to to_i the count its complaining again
<FromGitter> <Blacksmoke16> about what?
<FromGitter> <emanzx> ok if i did it like this
<FromGitter> <emanzx> data = {} of String => Hash(String,Hash(String, Hash(String, String) | Int32))
<FromGitter> <Blacksmoke16> ah the joys of hashes
<FromGitter> <emanzx> and remove the to_i
<FromGitter> <emanzx> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed5017d89941d051a3737e1]
<FromGitter> <Blacksmoke16> okey dokey
<FromGitter> <emanzx> i get this error
<FromGitter> <emanzx> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed501aa4c9b0f060d392256]
<FromGitter> <Blacksmoke16> right, now the type is either a `Hash` or `Int32`
<FromGitter> <Blacksmoke16> which `[]` doesnt exist for `Int32`
<FromGitter> <Blacksmoke16> would need to check if the value is a hash before trying to access it
<FromGitter> <Blacksmoke16> or just use actual types and drop the hash
<FromGitter> <emanzx> ok this is new to me.. I need to change my mind set of ruby
<FromGitter> <emanzx> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed5025af0b8a2053ac8b944]
<FromGitter> <Blacksmoke16> yes, *most* of the time hashes are bad
<FromGitter> <emanzx> no error anymore
<FromGitter> <Blacksmoke16> makes sense
<FromGitter> <emanzx> > yes, *most* of the time hashes are bad ⏎ ⏎ ^^;
<FromGitter> <emanzx> thanks alot.. crystal has evolve alot.. the early days it is not so stricts
<FromGitter> <emanzx> I can copy and paste almost 80% of my ruby code and run in crystal without any problem
<FromGitter> <emanzx> but I think crystal did this for a reason and I need to learn more about it
<FromGitter> <Blacksmoke16> its preventing the like `call to undefined method on x` runtime errors
<FromGitter> <emanzx> haha thanks @Blacksmoke16
<FromGitter> <j8r> Hash is mainly useful for dynamic data, which cannot be known at compile time at all
<FromGitter> <j8r> (Not the case here when parsing logs)
alexherbo2 has quit [Ping timeout: 256 seconds]
<FromGitter> <xmonader> ```code paste, see link``` ⏎ ⏎ guys i need to print res to be able to reach `reached here..` line. any good explanation why it blocks if i don't? [https://gitter.im/crystal-lang/crystal?at=5ed511189da05a060a44cdd1]
<oprypin> how can i tell compiler to print AST of a program before trying to turn it into LLVM IR? because I know for sure that e.g. it turns `$1` into $~.not_nil![1]?` so where can i see that mid-flight?
<oprypin> xmonader, i dont know but you shouldnt be messing with "read_blocking" and stuff ,thats for sure
<oprypin> there's very likely some deadlock here, anyway
<FromGitter> <oprypin> ```code paste, see link``` ⏎ ⏎ try something like this [https://gitter.im/crystal-lang/crystal?at=5ed512e3f0b8a2053ac8e8b3]
<FromGitter> <oprypin> that's still bad because what if the process terminates before you read all the lines, you'd be missing out on them!
<FromGitter> <oprypin> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed51383778fad0b133d3c19]
<FromGitter> <oprypin> very simple
travis-ci has joined #crystal-lang
<travis-ci> crystal-lang/crystal#a2031af (master - Fix double string escape in XML::Node#content= (#9300)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/693469158
travis-ci has left #crystal-lang [#crystal-lang]
<DeBot> https://github.com/crystal-lang/crystal/pull/9300 (Fix double string escape in XML::Node#content=)
<jhass> oprypin: I don't think that really exists :/
<FromGitter> <xmonader> @oprypin well yeah I need the pipes for communications (even some continuous communication) with some unix processes via stdin/stdout
<FromGitter> <xmonader> do I report it as a bug in crystal?
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
<FromGitter> <naqvis> @oprypin to view the AST of a program, you can try bcardiff crystal-ast-helper (https://github.com/bcardiff/crystal-ast-helper). HIH 😸
<FromGitter> <naqvis> > *<oprypin>* how can i tell compiler to print AST of a program before trying to turn it into LLVM IR? because I know for sure that e.g. it turns `$1` into $~.not_nil![1]?` so where can i see that mid-flight? ⏎ ⏎ you might be disappointed, but above cited tool shows the AST of `$1` as `$~[1]` ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed530edd13751370432dc60]
<FromGitter> <Blacksmoke16> @straight-shoota https://crystal-lang.org/api/master/Enumerable.html#join(io:IO,separator=%22%22,&:T,IO-%3E)-instance-method
<FromGitter> <Blacksmoke16> since `io` is first argument, wouldnt it be more ideal to yield the `io` first as well?
<FromGitter> <Blacksmoke16> eh nvm
<FromGitter> <xmonader> @Blacksmoke16 would you be so kind to check my problem and tell me if i should report it upstream?
<FromGitter> <Blacksmoke16> im not super familiar with it
<FromGitter> <Blacksmoke16> sorry :/
<FromGitter> <xmonader> no problem thank you so much ^__^
<FromGitter> <asterite> oprypin: right before codegen, maybe you can print the AST but instead of outputting nodes as is, if they have an `expanded` property you should inspect that. There's an `Expandable` module but I think not all nodes with `expanded` have it. Then I didn't try this, it might work. I'm not sure why you need it, though.
zorp_ has quit [Ping timeout: 264 seconds]
<travis-ci> crystal-lang/crystal#cdc9829 (master - Parser: allow ->@ivar.foo and ->@@cvar.foo (#9268)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/693549952
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
<DeBot> https://github.com/crystal-lang/crystal/pull/9268 (Parser: allow ->@ivar.foo and ->@@cvar.foo)
sagax has quit [Remote host closed the connection]
travis-ci has joined #crystal-lang
<travis-ci> crystal-lang/crystal#766c927 (master - Remove HTTP::Params::Builder#to_s (#9319)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/693550381
travis-ci has left #crystal-lang [#crystal-lang]
<DeBot> https://github.com/crystal-lang/crystal/pull/9319 (Remove HTTP::Params::Builder#to_s)
alexherbo2 has joined #crystal-lang
narayana has quit [*.net *.split]
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
<travis-ci> crystal-lang/crystal#bffe450 (master - Fix flush methods to always flush underlying IO (#9320)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/693550848
<DeBot> https://github.com/crystal-lang/crystal/pull/9320 (Fix flush methods to always flush underlying IO)
olbat[m] has quit [Ping timeout: 240 seconds]
return0e[m] has quit [Ping timeout: 240 seconds]
hamoko[m] has quit [Ping timeout: 256 seconds]
ryanprior has quit [Ping timeout: 244 seconds]
<travis-ci> crystal-lang/crystal#9dbc88e (master - Add file and line references in spec_helper asserts (#9059)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/693557054
travis-ci has left #crystal-lang [#crystal-lang]
travis-ci has joined #crystal-lang
<DeBot> https://github.com/crystal-lang/crystal/pull/9059 (Add file and line references in spec_helper asserts)
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
<travis-ci> crystal-lang/crystal#fc5c712 (master - Format: avoid formatter crash on heredoc having interpolation of sting literal (#9382)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/693561342
<DeBot> https://github.com/crystal-lang/crystal/pull/9382 (Format: avoid formatter crash on heredoc having interpolation of sting literal)
travis-ci has joined #crystal-lang
<travis-ci> crystal-lang/crystal#cca83e6 (master - Make compiler specs use locally build crystal (#9393)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/693562671
travis-ci has left #crystal-lang [#crystal-lang]
<DeBot> https://github.com/crystal-lang/crystal/pull/9393 (Make compiler specs use locally build crystal)
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
<travis-ci> crystal-lang/crystal#2d8d649 (master - Split general ABI specs from x86_64-specific ones, run on every platform (#9384)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/693563252
<DeBot> https://github.com/crystal-lang/crystal/pull/9384 (Split general ABI specs from x86_64-specific ones, run on every platform)
ryanprior has joined #crystal-lang
beepdog has joined #crystal-lang
return0e[m] has joined #crystal-lang
hamoko[m] has joined #crystal-lang
olbat[m] has joined #crystal-lang
narayana has joined #crystal-lang
<FromGitter> <pebauer68> @xmonader ⏎ Serving GUI on 9090 ⏎ Accepting connection from --> 127.0.0.1 ⏎ 05/27/2020 09:17:21.101 Received data <-- ⏎ q ... [https://gitter.im/crystal-lang/crystal?at=5ed56de2f0b8a2053ac9ec08]
travis-ci has joined #crystal-lang
<travis-ci> crystal-lang/crystal#e33075f (master - Specify pkgconfig name for libevent (#9395)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/693606054
travis-ci has left #crystal-lang [#crystal-lang]
<DeBot> https://github.com/crystal-lang/crystal/pull/9395 (Specify pkgconfig name for libevent)
sagax has joined #crystal-lang
<FromGitter> <jwoertink> When you call `spawn { }`, do local and instance variables defined outside of it exist inside of it?
<FromGitter> <jwoertink> ```@x = 1 ⏎ y = 2 ⏎ spawn do ⏎ @x + y ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5ed586832c49c45f5ab7d643]
<FromGitter> <jwoertink> I don't get any errors, but I'm also not sure if it's happening in some other thread that may mask any errors I could be getting
<oprypin> jwoertink, yea it's referring to the same variables totally normally
<FromGitter> <jwoertink> sweet
<FromGitter> <jwoertink> thanks!
darkstardevx has joined #crystal-lang
darkstardevx has quit [Remote host closed the connection]
darkstardevx has joined #crystal-lang
<FromGitter> <pebauer68> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5ed58e5f3ffa6106f1eb58d8]
<FromGitter> <Blacksmoke16> what about it?
<FromGitter> <pebauer68> Im new to gitter, just a spawn example
<FromGitter> <Blacksmoke16> prob would be better use the a channel
<FromGitter> <Blacksmoke16> to use a*
<FromGitter> <Blacksmoke16> but doesnt really matter given this is a contrived example
<FromGitter> <Blacksmoke16> `until ret1 && ret2` also works
darkstardevx has quit [Quit: Leaving]