« Back to channel list

#ruby - 14 March 2017

« Back 1 day Forward 1 day »
[00:00:48] Tau: has joined #ruby
[00:01:19] AndBobsYourUncle: has joined #ruby
[00:01:27] OTORelic: has joined #ruby
[00:01:34] millerti: has joined #ruby
[00:03:14] milardovich: has joined #ruby
[00:04:26] JoshS: has joined #ruby
[00:05:41] charliesome: has joined #ruby
[00:10:58] BabyMario: has left #ruby: ("bbl")
[00:15:36] czerasz: has joined #ruby
[00:16:26] pawnbox: has joined #ruby
[00:16:58] bigkevmcd: has joined #ruby
[00:17:17] cschneid_: has joined #ruby
[00:20:32] mikecmpbll: has joined #ruby
[00:28:09] jdelreal: has joined #ruby
[00:32:33] houhoulis: has joined #ruby
[00:33:30] ramfjord_: has joined #ruby
[00:41:46] bkxd: has joined #ruby
[00:44:20] dopamean_: has joined #ruby
[00:44:49] tmtwd: has joined #ruby
[00:46:11] brent__: has joined #ruby
[00:52:37] benlieb: has joined #ruby
[00:53:41] raul782: has joined #ruby
[00:55:17] jhack: has joined #ruby
[00:55:48] GSilva: has joined #ruby
[01:02:05] BackEndCoder: has joined #ruby
[01:03:03] benlieb: has joined #ruby
[01:05:27] dviola: has joined #ruby
[01:05:54] pawnbox: has joined #ruby
[01:09:17] matcouto: has joined #ruby
[01:11:12] griffindy: has joined #ruby
[01:12:45] minimalism: has joined #ruby
[01:16:41] Olipro: has joined #ruby
[01:21:36] rhyselsmore: has joined #ruby
[01:23:22] grant: has joined #ruby
[01:37:16] maddmaxx: has joined #ruby
[01:43:53] benlieb: has joined #ruby
[01:46:05] minimalism: has joined #ruby
[01:50:08] mzo: hi folks
[01:50:33] mzo: what are the best parts about ruby
[01:50:40] mzo: that make it so magical to work with
[01:50:49] bougyman: The lack of surprises.
[01:51:11] bmurt: has joined #ruby
[01:51:32] cdg: has joined #ruby
[01:52:21] mzo: here's a litmus test: are there other languages with the properties you listed, but which suck? then your answer is not that good
[01:52:22] Disavowed: Good metaprogramming. Wealth of good libraries. Broadly sensible language design choices.
[01:53:07] allisio: Remains Turing-complete no matter how much of it you remove.
[01:53:13] tolerablyjake: has joined #ruby
[01:53:43] mzo: that's just false
[01:53:59] mzo: Disavowed: that's a good one
[01:54:05] allisio: mzo: http://codon.com/programming-with-nothing
[01:54:13] allisio: I linked you there the other day. :(
[01:54:15] mzo: i don't need to click any links to know that's false
[01:54:22] mzo: yes and i watched a good chunk of the talk
[01:54:44] allisio: I was obviously speaking hyperbolically, but only just.
[01:55:14] mzo: once you realize procs let you express the lambda calculus, the rest of the talk is just the boring process of going through church numerals, booleans, etc.
[01:55:29] allisio: Well, ain't you just too clever by half?
[01:55:43] am55_: has joined #ruby
[01:55:47] mzo: i'm dumb i don't get functional programming
[01:56:15] allisio: How can functions be real if zygohistomorphic prepromorphisms aren't real?
[01:56:41] mzo: i want to make my language good so i need to know what to steal from ruby
[01:56:52] allisio: All of it.
[01:56:54] allisio: None of it.
[01:57:04] mzo: ur confusing me
[01:57:05] m_31: has joined #ruby
[01:57:15] mzo: i definitely don't want all of it
[01:57:22] allisio: What's your least favorite part?
[01:57:53] mzo: lack of #to_i on TrueClass and FalseClass
[01:57:53] allisio: I, for one, hate having to say `@foo = foo; @bar = bar`.
[01:57:56] allisio: Please to fix.
[01:58:11] mzo: subclass Struct
[01:58:29] benlieb: has joined #ruby
[01:58:41] Disavowed: allisio: I'm new-ish to Ruby and I'm surprised there isn't some syntactic sugar a la attr_reader to fix that one.
[01:58:53] mzo: i was thinking of that though
[01:59:32] mzo: i might do class Foo(x, y, z) and auto-generate a ctor like init(x, y, z) { self.x = x; self.y = y; self.z = z; }
[02:00:32] mzo: Disavowed: what other langs do u know
[02:00:38] Disavowed: mzo: Have you ever seen that in any language though? It seems neat, but I assume people much smarter than me have thought of it before and rejected it in their implementation.
[02:00:49] mzo: yes Scala has it
[02:00:55] Disavowed: mzo: Nothing of note. Python and Clojure would be my main ones
[02:01:08] Disavowed: I'm trying to crack Haskell but I have that nagging feeling I'm not yet smart enough
[02:01:50] mzo: here's a hint
[02:01:55] mzo: nobody is smart enough for haskell
[02:02:24] allisio: CoffeeScript has it.
[02:02:39] mzo: haskell and rust for example have similar
[02:02:49] Disavowed: interesting
[02:02:55] mzo: the implicit ctor in my lang would be like a data constructor in haskell
[02:03:30] mzo: data Foo = Foo Int Int Int ; let foo = Foo 4 5 6
[02:03:32] eboaz: has joined #ruby
[02:03:41] allisio: Without mucking around with TracePoint to get at the binding implicitly: https://eval.in/753890
[02:03:42] Disavowed: hang on, doesn't JS have prototypal inheritance? So if an attribute is bound to an object from the constructor, does that mean it's present on unrelated objects that inherit from the same type? Or have I made a mistake in my assumptions somewhere?
[02:04:06] jhack: avdi, thanks for the freebies :)
[02:04:10] mzo: every object has a prototype
[02:04:12] Disavowed: allisio: That is kind of neat
[02:04:16] allisio: Disavowed: You're kind of neat.
[02:04:23] Disavowed: allisio: <3
[02:04:34] Coldblackice: has joined #ruby
[02:04:50] Disavowed: You've just given me a wonderful idea
[02:04:59] allisio: I like it when that happens.
[02:05:09] allisio: Keep talkin' dirty to me.
[02:05:32] Disavowed: I always get frustrated at forgetting to coerce a varuiable to a string before I raise it as an exception. I could just patch the exception class to automatically do that for me when I'm debugging.
[02:05:39] Disavowed: allisio: You got it baby!
[02:05:48] allisio: Disavowed: You'd do that with Module#prepend, though.
[02:06:52] mzo: how crucial are mixins to ruby's magicalness
[02:07:42] allisio: Multiple inheritance has its pros and cons.
[02:08:16] mzo: how about operator overloading. good?
[02:08:18] allisio: They don't have much of anything to do with its (absurdly thorough) metaprogramming facilities, though.
[02:08:30] chrickso: has joined #ruby
[02:08:48] allisio: Not something I'd want to be without, but you should make assignment an operator.
[02:08:55] mzo: what are the key features that make metaprogramming tick in ruby
[02:09:10] FoolsGambit: has joined #ruby
[02:09:21] mzo: make assignment an operator? isn't it already?
[02:09:29] allisio: How do I overload it?
[02:09:45] mzo: just because you can't overload it doesn't mean it's not an operator
[02:09:57] mzo: or does it
[02:10:03] allisio: It's not a "Ruby operator" like all the other Ruby operators.
[02:10:29] mzo: it doesn't make sense to overload though
[02:10:50] mzo: i mean how could it possibly have sensible semantics
[02:11:19] allisio: It'd be nice to be able to "respond" to an assignment.
[02:11:34] mzo: foo['bar'] = 'baz' would invoke = on foo['bar'], but presumably you'd want to call = on foo with 'bar', 'baz'?
[02:11:37] shinnya: has joined #ruby
[02:11:50] allisio: #[]= is an operator.
[02:12:00] allisio: But #= is not.
[02:12:15] mzo: what could you ever want to do in response to =
[02:12:26] allisio: Bad things, granted.
[02:12:30] allisio: But still things.
[02:13:25] mzo: user-defined operators
[02:13:27] mzo: what do u think
[02:13:48] bougyman: are you trying to make ruby golf better?
[02:13:55] bougyman: that's the only use case I could see for that.
[02:14:04] allisio: mzo: Have you seen what the Haskellers get up to in that department?
[02:14:08] mzo: used extensively in haskell and we all know haskell is the best
[02:15:07] mzo: are u telling me a <*<$>*> b doesn't make sense to u
[02:15:25] allisio: Puts the spaceship operator to shame.
[02:15:33] jenrzzz: has joined #ruby
[02:15:37] allisio: Did you know you can customize how your objects participate in Ranges?
[02:17:04] allisio: https://eval.in/753891
[02:18:57] mzo: does * work on any Enumerable
[02:19:52] cdg: has joined #ruby
[02:21:01] rhyselsmore: has joined #ruby
[02:21:04] cdg_: has joined #ruby
[02:21:09] allisio: >> class Integer; def to_a; ['lol'] end end; *42
[02:21:10] ruby[bot]: allisio: # => /tmp/execpad-52bc8132ca2a/source-52bc8132ca2a:2: syntax error, unexpected '\n', expecting &. or :: o ...check link for more (https://eval.in/753893)
[02:21:35] allisio: Anyway, anything with a #to_ary or (failing that) #to_a method.
[02:21:57] chrickso: hi all. i'm looking for advice. i already know python and flask enough to make some stuff but i'm feeling this gravity towards rails to speed things up and have an all-in-one well-maintained package. anyone have experience with both languages/frameworks that could offer any insight?
[02:22:10] hutch34: has joined #ruby
[02:22:11] mzo: do u find ruby's naming a little inconsistent
[02:22:22] allisio: It's objectively the case.
[02:22:39] mzo: why is array abbreviated in to_ary but then there's long methods like each_with_index
[02:22:47] baweaver: chrickso: Objectively Flask is analogous to Sinatra in Ruby.
[02:22:52] Jameser: has joined #ruby
[02:23:04] allisio: Coercion implicitly tries to use #to_ary and #to_str first, but then it's #to_h for `**`.
[02:23:05] baweaver: chrickso As far as Rails itself, it's batteries included
[02:23:38] baweaver: chrickso: meaning that it does a lot of the lifting for you out of the gate. The problem with that is you have to know what those things are and then you have to play nicely with them being that way.
[02:23:54] chrickso: baweaver: ya, i've heard that. guess i have so many batteries plugged into flask and my concern is that they are not particularly well mainted/cohesive
[02:23:59] Disavowed: chrickso: I spent many years using Flask and Django; now I reach for Rails whenever I have the choice. YMMV of course, but the switch isn't that taxing
[02:24:21] baweaver: If you've dealt with one MVC framework Rails is straightforward
[02:24:50] mzo: whats the best way to learn rails these days
[02:24:55] raul782: has joined #ruby
[02:25:01] baweaver: Rails 4 in Action
[02:25:13] mzo: i thought rails 5 is out
[02:25:26] baweaver: It is. Books can take a bit to write.
[02:25:47] mzo: so that book there will get me up to speed
[02:25:57] baweaver: There are a few 5 specific books out, but the differences are small enough it's mainly just an extension on concepts you'd learn already as a base.
[02:26:04] d^sh: has joined #ruby
[02:26:28] mzo: chrickso: lets learn rails
[02:26:30] baweaver: The Rails 5 Way is still beta and is the Tome level book (big, beefy, and super-reference potential)
[02:26:43] baweaver: That'd be the advanced option
[02:26:51] baweaver: R4iA is the beginner option
[02:26:56] mzo: last thing i need is a tome
[02:27:04] mzo: lifes 2 short 4 tomes
[02:27:10] baweaver: There's also Hartl's Rails tutorial online which is also in the newbie category.
[02:27:23] Disavowed: mzo: I enjoyed this: https://www.railstutorial.org/book/ but it might be a little basic for you
[02:27:49] chrickso: mzo: you going to teach me rails?
[02:27:50] baweaver: Pragmatic Programmers had a Rails 5 book that I haven't read but they put out good stuff consistently
[02:28:04] mzo: chrickso: no i want to learn it hehe
[02:28:17] chrickso: whats the thoughts on learning from the rails 4 book using rails 5?
[02:28:38] mzo: check above baweaver commented on that
[02:29:10] rkazak_: has joined #ruby
[02:29:15] baweaver: Basics are the same, only really big differences are Webpack and ActionCable, both of which I would avoid in the short term
[02:29:31] chrickso: whats a good place for tutorials beyond the beginner basics? like full blown user account setup with all the security in mind?
[02:30:01] baweaver: r4ia covers that
[02:30:07] baweaver: Radar: sell your dang book
[02:30:22] mzo: i want to make full blown rails apps
[02:30:59] Disavowed: mzo: The Hartl book I linked walks you through making a twitter clone, replete with authentication, etc
[02:31:14] baweaver: Jokes aside, both the Rails Tutorial and Rails 4 in Action build complete apps
[02:31:22] baweaver: including testing, authentication, and the rest of it
[02:31:28] mzo: i want to hook my rails app up to mongodb. i want it to talk to postgres. i want it playing with redis. you name it, i want my rails app to tie into it some how or other.
[02:31:42] baweaver: Avoid Mongo
[02:31:54] baweaver: PSQL is easy. Redis is easy.
[02:32:08] mzo: rails doesn't play nicely with mongo?
[02:32:22] baweaver: It can, but Mongo doesn't play nicely with architectural sanity
[02:32:43] baweaver: http://www.sarahmei.com/blog/2013/11/11/why-you-should-never-use-mongodb/
[02:32:55] mzo: ok i'll steer clear of that nonsense then
[02:33:24] chrickso: so rails 4 in action will take me from beginner to advanced and convert easily to rails 5?
[02:33:40] mzo: Disavowed: ok i will check that out
[02:33:49] baweaver: It'll take you from Beginner to Low Intermediate
[02:33:49] chrickso: anyone know a timeline if they are updating to rails 5 in action? hasn't 5 been out for like 6 months?
[02:34:10] baweaver: They'd have to find more authors because Manning treats authors poorly.
[02:34:11] chrickso: whats the low intermediate to advanced book?
[02:34:20] baweaver: The Rails 5 Way
[02:35:36] mzo: the idea of being a rails developer is very cool to me
[02:35:51] mzo: i want to get a rails sticker on my macbook
[02:37:35] mzo: can rails play nicely with React?
[02:38:37] baweaver: If it can supply JSON, it can play with React
[02:38:41] baweaver: or Angular or Ember or Vue or....
[02:38:50] mzo: i like to have my main http server just server static html, js, and css, and then have a separate rack server running my application that only serves JSON
[02:39:02] mzo: but it seems with rails there's this focus on erb
[02:39:12] baweaver: Rails API mode.
[02:39:28] mzo: is that popular?
[02:39:33] baweaver: https://github.com/reactjs/react-rails
[02:39:37] baweaver: Fairly, yes.
[02:40:02] Jameser`: has joined #ruby
[02:40:28] chimkan: has joined #ruby
[02:40:46] mzo: what does that gem do
[02:41:04] bkxd: has joined #ruby
[02:41:10] mzo: why can't i transpile my jsx to es5 manually and serve it with nginx, then just serve json with rails
[02:42:09] chrickso: thoughts on this book? https://pragprog.com/book/rails5/agile-web-development-with-rails-5
[02:42:31] mzo: i mean i know i can, but should i be using that gem instead? like it seems overly-complicated to me but then again i dont know anything
[02:42:40] baweaver: Pragmatic Programmers is great in general, just never read that book specifically
[02:43:00] baweaver: I don't like it myself. I think it marries Frontend to Backend in a rather unholy way.
[02:43:01] chrickso: ha! whats the problem with it?
[02:43:16] chrickso: huh... alright. noted
[02:43:17] baweaver: I have no opinions on that book
[02:43:41] baweaver: As I said, I've not read it, so I cannot have any really useful opinions on it chrickso
[02:43:57] mzo: baweaver: that gem, you mean?
[02:44:09] mzo: or React in general
[02:44:21] chrickso: o. i read what you said as 'never reed that book' but you mean you've never red that book. my bad
[02:44:27] hutch34: has joined #ruby
[02:44:51] mzo: lol english is so dumb
[02:45:13] baweaver: The simple pattern is Backend JSON, frontend JS Framework
[02:45:26] mzo: i like that a lot
[02:45:41] mzo: i don't like any of this HTML templating stuff on the backend
[02:45:43] baweaver: http://edgeguides.rubyonrails.org/api_app.html
[02:45:46] mzo: never have
[02:45:53] baweaver: rails new my_api --api
[02:46:04] baweaver: might need to use jbuilder for serialization though.
[02:46:32] baweaver: If you're just learning Rails though, start with the ERB/HAML system then worry about all the fancy stuff
[02:46:44] mzo: isn't this less fancy
[02:46:59] baweaver: Batteries included, remember
[02:47:01] mzo: do you still get sessions with rails api
[02:47:14] baweaver: Depends on your auth framework
[02:47:19] bruce_lee: has joined #ruby
[02:47:23] baweaver: but in general yes.
[02:47:43] mzo: all the rails tutorial material uses erb/haml doesn't it
[02:47:55] mzo: i'll have to use it
[02:47:58] baweaver: so run through those by the letter first
[02:48:02] baweaver: then branch out
[02:48:14] baweaver: I've used AngularJS 1.x for 2-3 years now.
[02:48:27] mzo: sorry to hear that
[02:48:41] baweaver: If I had it to do over again I would have picked EmberJS hands down. Angular 1 is a mess of design patterns.
[02:48:46] rob: has joined #ruby
[02:48:57] mzo: what do you think about Angular 2
[02:48:59] baweaver: Angular 2 looks like a vast improvement
[02:49:28] mzo: i'm no expert but React seems to be the clear winner when it comes to frontend frameworks, isn't it?
[02:49:30] baweaver: I've yet to do anything significant in it though
[02:49:33] mzo: and Vue is nice too
[02:49:38] baweaver: Vue is Angular light
[02:49:52] baweaver: React on its own isn't really a framework
[02:49:56] baweaver: it's a view layer
[02:49:58] electrostat: has joined #ruby
[02:50:12] baweaver: You'd need Flux or Redux to make it into a framework
[02:50:17] Jameser: has joined #ruby
[02:50:37] baweaver: If you like Rails you'll like Ember. Katz wrote most of the original Ember and he was a Rails contributor for a good amount of time
[02:50:49] baweaver: I've not played with React enough to speak to it either.
[02:51:23] baweaver: though I have a great amount of skepticism towards build-your-own-framework systems, especially in Javascript.
[02:53:02] mzo: i will take a peek at ember
[02:53:11] baweaver: Evaluate a few of them.
[02:53:34] baweaver: Just remember it's a jungle out there, don't go in too deep.
[02:56:39] hahuang61: has joined #ruby
[03:02:10] Channel6: has joined #ruby
[03:04:31] hxegon: has joined #ruby
[03:05:25] hahuang61: has joined #ruby
[03:06:14] roflmyeggo: has joined #ruby
[03:06:17] allisio: Is it possible to defer a call to #binding?
[03:06:41] moei: has joined #ruby
[03:06:52] libastral: has joined #ruby
[03:07:00] chouhoulis: has joined #ruby
[03:10:38] mzo: allisio: still working on the Convenience module?
[03:12:29] snath: has joined #ruby
[03:12:32] allisio: mzo: Guilty.
[03:12:46] allisio: It feels like this oughta return `[:foo, :bar]`: https://eval.in/753900
[03:13:05] allisio: But `@deferred_binding` is obviously a misnomer.
[03:14:34] pawnbox: has joined #ruby
[03:16:20] raul782: has joined #ruby
[03:17:06] roflmyeggo: has joined #ruby
[03:17:39] nofxx: has joined #ruby
[03:18:46] astrobunny: has joined #ruby
[03:19:26] govg: has joined #ruby
[03:20:21] snath: has left #ruby: ("Leaving")
[03:20:25] genpaku: has joined #ruby
[03:24:21] KnownSyntax: has joined #ruby
[03:27:02] Derperperd: has joined #ruby
[03:29:07] cschneid_: has joined #ruby
[03:30:35] jnoob22: has joined #ruby
[03:30:57] JeanCarloMachado: has joined #ruby
[03:32:06] gigglypuff: has joined #ruby
[03:33:29] gigglypuff: has left #ruby: ()
[03:33:59] OTORelic: has joined #ruby
[03:39:23] govg: has joined #ruby
[03:40:13] xall_: has joined #ruby
[03:41:03] Ropeney: has joined #ruby
[03:42:44] xall: has joined #ruby
[03:44:14] duderonomy: has joined #ruby
[03:44:20] pawnbox: has joined #ruby
[03:47:55] astrobunny: has joined #ruby
[03:50:58] astrobun_: has joined #ruby
[03:52:26] _djbkd: has joined #ruby
[03:56:14] eclecticjohny: has joined #ruby
[04:00:56] JeanCarloMachado: has joined #ruby
[04:01:10] enterprisey: has joined #ruby
[04:01:57] cfec0b8d: has joined #ruby
[04:03:17] enterprisey: has joined #ruby
[04:06:52] Jameser`: has joined #ruby
[04:07:07] matcouto_: has joined #ruby
[04:10:24] xenops: has joined #ruby
[04:14:07] pawnbox: has joined #ruby
[04:15:22] Jameser: has joined #ruby
[04:16:59] hutch34: has joined #ruby
[04:20:02] Jameser: has joined #ruby
[04:21:32] ahrs_: has joined #ruby
[04:22:14] patarr: has joined #ruby
[04:28:36] Jameser: has joined #ruby
[04:32:32] govg: has joined #ruby
[04:32:37] gix: has joined #ruby
[04:32:40] Jameser: has joined #ruby
[04:32:48] JeanCarloMachado: has joined #ruby
[04:33:32] pawnbox: has joined #ruby
[04:34:30] hotpancakes: has joined #ruby
[04:39:55] Jameser: has joined #ruby
[04:41:05] bkxd: has joined #ruby
[04:43:36] ahrs: has joined #ruby
[04:46:23] JeanCarloMachado: has joined #ruby
[04:46:38] bocaneri: has joined #ruby
[04:50:56] Jameser: has joined #ruby
[04:52:05] pawnbox: has joined #ruby
[04:53:21] havenwood: raul782: hi
[04:54:42] raul782: So I've been using rails for a while and I'm starting to dive deeper in how some gems work, but I'm finding really difficult to understand how/when a callback is called within the ruby code
[04:55:08] allisio: Generally, wherever you see `block.call` or `yield`.
[04:55:26] matcouto: has joined #ruby
[04:56:03] allisio: Under the broadest interpretation of "callback", anyway.
[04:57:22] raul782: humm, but somehow I can't catch where this is called, so I can debug the so called callback
[04:57:43] raul782: Let me show you the gem which is act_as_audited
[04:59:18] raul782: has joined #ruby
[04:59:26] raul782: https://github.com/collectiveidea/audited/blob/3.0-stable/lib/audited/auditor.rb#L17
[04:59:51] JeanCarloMachado: has joined #ruby
[05:00:09] raul782: allisio: I assume the callback is called here, https://github.com/collectiveidea/audited/blob/3.0-stable/lib/audited/auditor.rb#L216
[05:01:38] Jameser: has joined #ruby
[05:01:39] raul782: This is the part that elludes me, for example for the create action callback, you pass 3 attributes.
[05:02:34] raul782: and you call self.audits.create(attrs), I'd understand that only those 3 fields would be filled in the audits table
[05:02:59] raul782: but for other models, I see that the auditable_type and auditable_id are recorded
[05:03:15] raul782: and I can't figure it out, how this code is extracting those values
[05:03:40] raul782: It works on all models being audited except for the User model
[05:07:05] dminuoso: raul782: ?rubyonrails
[05:07:11] dminuoso: ?rails raul782
[05:07:11] ruby[bot]: raul782: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[05:07:28] dminuoso: ?crossposting
[05:07:28] ruby[bot]: dminuoso: I don't know anything about crossposting
[05:07:31] ruby[bot]: dminuoso: I don't know anything about cross
[05:07:36] dminuoso: ACTION sighs
[05:08:01] ruby[bot]: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
[05:08:44] ruby[bot]: you can find an overview of the factoids I know about at http://ruby-community.com/ruboto/facts
[05:08:55] Trynemjoel: has joined #ruby
[05:11:29] cschneid_: has joined #ruby
[05:13:35] moei: has joined #ruby
[05:14:10] matcouto: has joined #ruby
[05:14:38] raul782: sorry about that
[05:17:44] hutch34: has joined #ruby
[05:20:00] anisha: has joined #ruby
[05:20:29] howdoi: has joined #ruby
[05:21:10] Guest77: has joined #ruby
[05:26:03] nadir: has joined #ruby
[05:27:42] milardovich: has joined #ruby
[05:32:27] hotpanca_: has joined #ruby
[05:32:56] pulkit4tech: has joined #ruby
[05:34:35] jeyraof^mbpr: has joined #ruby
[05:37:42] acalycine: has joined #ruby
[05:38:15] acalycine: has left #ruby: ()
[05:38:19] JeanCarloMachado: has joined #ruby
[05:39:33] madsa: has joined #ruby
[05:39:33] czerasz2: has joined #ruby
[05:39:44] renchan: has joined #ruby
[05:40:46] maddmaxx: has joined #ruby
[05:50:48] d0nn1e: has joined #ruby
[05:54:07] armyriad: has joined #ruby
[05:54:37] JeanCarloMachado: has joined #ruby
[06:01:06] maddmaxx: has joined #ruby
[06:03:09] pawnbox: has joined #ruby
[06:03:27] opt: has joined #ruby
[06:04:39] maloik: has joined #ruby
[06:05:02] JeanCarloMachado: has joined #ruby
[06:08:19] lightheaded: has joined #ruby
[06:11:12] jenrzzz: has joined #ruby
[06:11:57] dminuoso: What would you name a predicate creator method?
[06:12:42] aupadhye: has joined #ruby
[06:12:55] dminuoso: i.e. something you could use as enumerable.select(&byId(list))
[06:15:00] allisio: Call it #_?.
[06:16:06] dminuoso: enumerable.select(&_?(list))
[06:16:10] dminuoso: it is charming I have to admit
[06:16:17] allisio: He looks so curious.
[06:16:22] allisio: So ready to predicate.
[06:18:30] hutch34: has joined #ruby
[06:23:06] patarr: has joined #ruby
[06:26:20] stoffus: has joined #ruby
[06:26:36] raul782: has joined #ruby
[06:27:04] JeanCarloMachado: has joined #ruby
[06:34:42] jgnagy: has joined #ruby
[06:36:37] pawnbox: has joined #ruby
[06:37:09] hotpanca_: has joined #ruby
[06:40:46] bkxd: has joined #ruby
[06:44:16] moei: has joined #ruby
[06:45:30] hotpancakes: has joined #ruby
[06:59:12] dionysus69: has joined #ruby
[06:59:46] JeanCarloMachado: has joined #ruby
[07:00:21] hotpancakes: has joined #ruby
[07:00:46] benlieb: has joined #ruby
[07:00:54] charliesome: has joined #ruby
[07:02:21] lightheaded: has joined #ruby
[07:04:57] stoffus: has joined #ruby
[07:06:55] jgnagy_: has joined #ruby
[07:07:35] allisio: I've always wanted to be able to use hyphens in method names.
[07:08:01] allisio: I suspect I've gone well and truly mad: https://eval.in/753967
[07:10:11] Cohedrin: has joined #ruby
[07:13:17] dionysus69: has joined #ruby
[07:14:28] hotpancakes: has joined #ruby
[07:14:54] Mortomes|Work: has joined #ruby
[07:19:19] hutch34: has joined #ruby
[07:21:11] yaboiyungspasm: has joined #ruby
[07:21:19] yaboiyungspasm: is anyone here?
[07:21:51] nofxxx: has joined #ruby
[07:24:06] ruby-lang229: has joined #ruby
[07:24:22] jgnagy: has joined #ruby
[07:25:20] hotpancakes: has joined #ruby
[07:26:17] lightheaded: has joined #ruby
[07:28:04] milardovich: has joined #ruby
[07:32:58] yaboiyungspasm: ruby-land229: would switching to a higher level lang like ruby (as a c programmer) make any real difference in my overall understanding of code structure, being that it's less verbose?
[07:33:08] yaboiyungspasm: and doesn't have memory management?
[07:33:12] yaboiyungspasm: or does it really not matter?
[07:34:55] jgnagy_: has joined #ruby
[07:35:13] djbkd_: has joined #ruby
[07:37:55] pawnbox: has joined #ruby
[07:41:39] andikr: has joined #ruby
[07:42:21] toretore: has joined #ruby
[07:43:27] conta: has joined #ruby
[07:44:47] yaboiyungspasm: has left #ruby: ()
[07:45:55] uncertainty: has joined #ruby
[07:50:22] hotpancakes: has joined #ruby
[07:50:23] ledestin: has joined #ruby
[07:51:52] last_staff: has joined #ruby
[07:54:25] milardovich: has joined #ruby
[07:54:45] burgestrand: has joined #ruby
[07:55:08] TomyWork: has joined #ruby
[07:57:03] stoffus: has left #ruby: ()
[07:57:37] norbertka: has joined #ruby
[07:59:10] keanny479: has joined #ruby
[08:00:12] keanny479: i have the following project https://goo.gl/b1bRMK, i'm looking for a way to color the score line (table) of the user when it is a new score, anyone can help me ?
[08:01:44] tobiasvl: keanny479: I have no idea what file or line you're talking about and I don't want to go through your entire code, but check out https://github.com/fazibear/colorize
[08:02:49] keanny479: tobiasvl, the code is located in format.rb
[08:03:17] keanny479: tobiasvl, line 14*
[08:03:38] tomphp: has joined #ruby
[08:05:07] aufi: has joined #ruby
[08:05:13] tobiasvl: then check out the gem I linked to
[08:05:22] tobiasvl: oh you already use it I guess
[08:05:25] tobiasvl: judging by line 6
[08:06:22] keanny479: tobiasvl, i use colored gem
[08:07:10] Silthias: has joined #ruby
[08:08:36] Silthias2: has joined #ruby
[08:08:50] xpt: Hello, is there well-known regex to match valid domain or IP addr range, analogic to email regex stated here http://emailregex.com/
[08:09:12] xpt: hmm.. should have asked on #regex probably...
[08:10:10] lenwood: has joined #ruby
[08:13:11] pawnbox_: has joined #ruby
[08:13:41] keanny479: xpt, use a gem : https://rubygems.org/gems/ip_address
[08:14:54] cibs: has joined #ruby
[08:15:26] Tau: has joined #ruby
[08:19:29] Tharbakim: has joined #ruby
[08:20:01] hutch34: has joined #ruby
[08:20:33] tkcrib: has joined #ruby
[08:21:06] hotpancakes: has joined #ruby
[08:23:19] jgnagy: has joined #ruby
[08:23:58] patarr: has joined #ruby
[08:24:03] jaruga__________: has joined #ruby
[08:25:08] jaruga________: has joined #ruby
[08:25:16] xall: has joined #ruby
[08:25:43] vali: has joined #ruby
[08:26:34] jgnagy__: has joined #ruby
[08:31:00] mark_66: has joined #ruby
[08:32:04] kent\n: has joined #ruby
[08:35:38] vali: has joined #ruby
[08:38:46] patientj: has joined #ruby
[08:41:05] bkxd: has joined #ruby
[08:44:34] TheBrayn: has joined #ruby
[08:44:58] snickers: has joined #ruby
[08:45:28] xen0fon: has joined #ruby
[08:50:33] aufi: has joined #ruby
[08:55:16] biberu: has joined #ruby
[08:56:48] TomyWork: has joined #ruby
[08:58:02] xpt: thank you
[08:58:53] jsrn_: has joined #ruby
[09:00:49] teclator: has joined #ruby
[09:01:21] lightheaded: has joined #ruby
[09:04:00] Fritz: has joined #ruby
[09:04:40] ddffg: has joined #ruby
[09:05:12] Guest29672: has left #ruby: ()
[09:05:13] lightheaded: has joined #ruby
[09:05:27] esObe_: has joined #ruby
[09:06:04] nullshock: has joined #ruby
[09:08:37] burgestrand: has joined #ruby
[09:09:04] troulouliou_div2: has joined #ruby
[09:11:20] astrobunny: has joined #ruby
[09:11:42] xenops: has joined #ruby
[09:14:42] postmodern: has joined #ruby
[09:17:55] aganov: has joined #ruby
[09:19:04] Luna_Moonfang: has joined #ruby
[09:19:32] esObe_: has joined #ruby
[09:20:51] hutch34: has joined #ruby
[09:21:42] hotpancakes: has joined #ruby
[09:25:09] tomphp: has joined #ruby
[09:27:59] aufi: has joined #ruby
[09:29:49] raul782: has joined #ruby
[09:33:11] P1C0: has joined #ruby
[09:36:41] Jameser: has joined #ruby
[09:37:53] philpep: has joined #ruby
[09:38:20] pawnbox: has joined #ruby
[09:41:19] uncertainty: has joined #ruby
[09:44:03] milardovich: has joined #ruby
[09:46:45] matcouto: has joined #ruby
[09:48:07] lxsameer: has joined #ruby
[09:49:22] unshadow: has joined #ruby
[09:49:30] ferr1: has joined #ruby
[09:51:34] Todiann: has joined #ruby
[09:51:56] Jameser: has joined #ruby
[09:54:32] marr: has joined #ruby
[09:56:39] pawnbox: has joined #ruby
[09:57:59] Fernando-Basso: has joined #ruby
[10:01:46] evie_hammond: has joined #ruby
[10:02:12] hotpancakes: has joined #ruby
[10:04:51] tAn: has joined #ruby
[10:09:27] Fernando-Basso: has joined #ruby
[10:13:58] pawnbox: has joined #ruby
[10:17:33] lightheaded: has joined #ruby
[10:18:06] BackEndCoder: has joined #ruby
[10:18:17] pandaant: has joined #ruby
[10:18:27] lheaded: has joined #ruby
[10:21:50] hutch34: has joined #ruby
[10:22:43] uncertainty: has joined #ruby
[10:24:42] Fritz: has joined #ruby
[10:24:53] patarr: has joined #ruby
[10:27:52] vali: has joined #ruby
[10:28:14] jenrzzz: has joined #ruby
[10:28:14] jenrzzz: has joined #ruby
[10:29:51] pawnbox: has joined #ruby
[10:31:41] bestel: has joined #ruby
[10:36:34] milardovich: has joined #ruby
[10:38:52] bestel: Can anybody explain how the method works in itself ? Big thanks! https://repl.it/GUR7/0
[10:39:44] tobiasvl: bestel: what do you want to know? also weird indentation
[10:40:47] canton7: I fixed the indentation: https://repl.it/GUR7/1
[10:41:12] bkxd: has joined #ruby
[10:41:43] bestel: thx, canton7
[10:43:24] bestel: tobiasvl: what happens with permutations method when we use in itself?
[10:44:12] __Yiota: has joined #ruby
[10:45:24] tobiasvl: it's called recursion
[10:46:43] boshhead: has joined #ruby
[10:48:59] tvw: has joined #ruby
[10:54:30] lenwood: has joined #ruby
[10:54:32] bestel: tobiasvl: I'm add some commets https://repl.it/GUR7/3
[10:54:58] bestel: Big thanks!
[10:56:18] tobiasvl: bestel: so for every iteration of the block you split the string in two, char and rest. so rest is the entire string except one character. then you call permutations recursively with that shorter string.
[10:57:26] bestel: tobiasvl: Thank you so much! Cheers!
[10:57:33] bestel: It's clear
[11:02:47] norbertka: has joined #ruby
[11:03:03] lightheaded: has joined #ruby
[11:03:09] milardovich: has joined #ruby
[11:10:11] pytuger: has joined #ruby
[11:12:46] pytuger: in python I can do
[11:12:46] pytuger: my_list = [x for x in range(1,11)] # to get a list of 1-10 and
[11:12:46] pytuger: my_dictionary = {key: [each_value for each_value in range(1,11)] for key in range(1,11)}
[11:13:00] pytuger: how can list and dictionary comprehension be achieved in Ruby
[11:13:29] pytuger: in perl it is
[11:13:29] pytuger: @array = (1..11); #and one would use map for Perl hashes
[11:13:37] matthewd: The literal translation would be `my_list = (1..10).map {|x| x }`
[11:13:53] matthewd: But you'd actually use: my_list = (1..10).to_a
[11:14:41] pytuger: interesting
[11:15:31] pytuger: thank you matthewd
[11:15:32] jpterry: has joined #ruby
[11:15:33] matthewd: and... my_dictionary = Hash[(1..10).map {|key| [key, (1..10).to_a] }], I guess?
[11:15:47] pytuger: my_list = (1..10).map {|x| x } #is logic that makes sense to me
[11:15:50] pytuger: I appreciate that
[11:16:12] pytuger: I learn languages better when I can translate them
[11:16:30] elomatreb: (1..10).to_a is probably more common than that map construct, and possibly faster too
[11:16:55] matthewd: So on the latter, I'm mapping to an array of 2-element arrays, then just pass that to Hash.[] to convert it
[11:17:07] pytuger: that maybe so, but it will honestly probably take me longer to remeber
[11:17:25] pytuger: my brain is funny like that
[11:17:39] pytuger: also the mapping of ruby I can relate with perl
[11:18:18] herbmillerjr: has joined #ruby
[11:18:55] elomatreb: If you don't actually need the array and just want to iterate the numbers there are utility methods on the number classes, e.g. 10.times or 1.upto(10)
[11:19:21] matthewd: You can use 1...11 if you really prefer, too
[11:20:46] pytuger: elomatreb, matthewd, thanks
[11:21:19] alibby: has joined #ruby
[11:21:28] harfangk: has joined #ruby
[11:22:34] hutch34: has joined #ruby
[11:22:46] patarr: has joined #ruby
[11:24:08] JeanCarloMachado: has joined #ruby
[11:25:25] Jameser: has joined #ruby
[11:27:40] rhyselsmore: has joined #ruby
[11:28:17] jeffreylevesque_: has joined #ruby
[11:28:39] cschneid_: has joined #ruby
[11:30:31] jenrzzz: has joined #ruby
[11:30:31] jenrzzz: has joined #ruby
[11:36:59] Arpanet69: has joined #ruby
[11:37:55] Lyubo1: has joined #ruby
[11:39:46] nyuszika7h: has joined #ruby
[11:41:44] skweek: has joined #ruby
[11:43:53] augcesar: has joined #ruby
[11:46:56] aganov: has joined #ruby
[11:47:35] pwnd_nsfw`: has joined #ruby
[11:55:14] Robtop__: has joined #ruby
[11:56:11] ldnunes: has joined #ruby
[11:59:41] HoierM: has joined #ruby
[12:00:13] charliesome: has joined #ruby
[12:00:30] krobzaur: has joined #ruby
[12:04:38] Mr_Pancake: has joined #ruby
[12:05:30] vali: has joined #ruby
[12:06:34] milardovich: has joined #ruby
[12:07:00] milardovich: has joined #ruby
[12:10:21] pawnbox: has joined #ruby
[12:10:59] tyang: has joined #ruby
[12:11:04] mzo: has joined #ruby
[12:12:29] Jameser: has joined #ruby
[12:13:09] JeanCarloMachado: has joined #ruby
[12:13:38] EV3RYDAYPR0GRESS: has joined #ruby
[12:14:01] pawnbox: has joined #ruby
[12:14:47] cfec0b8d: has joined #ruby
[12:21:02] nadir: has joined #ruby
[12:23:24] hutch34: has joined #ruby
[12:24:35] griffindy: has joined #ruby
[12:25:42] CloCkWeRX: has joined #ruby
[12:26:50] pulkit4tech: has joined #ruby
[12:29:46] cfec0b8d: has joined #ruby
[12:30:02] pwnd_nsfw`: has joined #ruby
[12:32:39] Qchmqs: has joined #ruby
[12:33:02] jenrzzz: has joined #ruby
[12:33:02] jenrzzz: has joined #ruby
[12:35:36] Mia: has joined #ruby
[12:35:36] Mia: has joined #ruby
[12:35:42] Axy: has joined #ruby
[12:35:42] Axy: has joined #ruby
[12:37:32] Rodya_: has joined #ruby
[12:38:25] jamesaxl: has joined #ruby
[12:38:32] spicerack: has joined #ruby
[12:39:12] uncertainty: has joined #ruby
[12:41:39] bkxd: has joined #ruby
[12:45:07] maxios: has joined #ruby
[12:45:43] brent__: has joined #ruby
[12:46:21] raul782: has joined #ruby
[12:46:41] nyuszika7h: has joined #ruby
[12:47:07] Mia: has joined #ruby
[12:47:07] Mia: has joined #ruby
[12:47:08] Axy: has joined #ruby
[12:47:08] Axy: has joined #ruby
[12:47:35] krobzaur: has joined #ruby
[12:52:10] sepp2k: has joined #ruby
[12:52:43] Bish: is twitter still a rails app?
[12:53:46] mzo: hi Bish
[12:55:29] mzo: Bish: how are you doing?
[12:55:35] Bish: im fine, you?
[12:56:30] mzo: i'm doing well, thank you [:
[12:57:27] jonathanwallace1: has joined #ruby
[12:59:54] uncertainty: has joined #ruby
[13:02:28] jonathanwallace: in Ruby 2.4.0 is it expected that the behavior of BigDecimal would change when initialized with an empty string? https://gist.github.com/wallace/a8d50c87ae3c1f139182dc7b51d9d8dc
[13:02:54] jonathanwallace: i checked the NEWS and ruby-lang bug tracker but couldn't find anything about it.
[13:03:01] jonathanwallace: i did see that Integer is here
[13:03:16] cibs: has joined #ruby
[13:03:48] jonathanwallace: (but wouldn't expect that to effect BigDecimal)
[13:03:51] Bish: my tummy says yes
[13:04:16] matthewd: I believe that's a bug
[13:04:33] matthewd: BigDecimal("") should raise, but BigDecimal.new("") should not
[13:04:49] Bish: more like BugDecimal, ANYONE?
[13:06:04] jonathanwallace: thanks @matthewd
[13:06:05] nettoweb: has joined #ruby
[13:06:15] matthewd: https://github.com/ruby/bigdecimal/issues/51
[13:07:59] chouhoulis: has joined #ruby
[13:09:26] chouhoul_: has joined #ruby
[13:10:35] bmurt: has joined #ruby
[13:12:12] milardovich: has joined #ruby
[13:12:56] hutch34: has joined #ruby
[13:13:24] jhack: has joined #ruby
[13:13:44] milardovich: has joined #ruby
[13:20:33] agent_white: has joined #ruby
[13:21:08] agent_white: Mornin' folks
[13:27:32] chenzfroff: has joined #ruby
[13:28:57] chenzfroff: has joined #ruby
[13:31:07] chenzfroff: has left #ruby: ()
[13:32:47] DLSteve_: has joined #ruby
[13:35:38] martinhez: has joined #ruby
[13:40:15] lenwood: has joined #ruby
[13:41:40] redhedded1: has joined #ruby
[13:41:55] rfoust: has joined #ruby
[13:50:14] pawnbox: has joined #ruby
[13:51:32] lightheaded: has joined #ruby
[13:54:24] toretore: has joined #ruby
[14:00:44] bweston92: has joined #ruby
[14:00:44] lightheaded: has joined #ruby
[14:02:03] chenzfroff: has joined #ruby
[14:03:49] lightheaded: has joined #ruby
[14:05:29] lightheaded: has joined #ruby
[14:07:26] chenzfroff: has left #ruby: ()
[14:12:09] millerti: has joined #ruby
[14:13:37] lightheaded: has joined #ruby
[14:17:03] polishdub: has joined #ruby
[14:18:09] lightheaded: has joined #ruby
[14:19:43] cdg: has joined #ruby
[14:20:57] aufi: has joined #ruby
[14:21:07] mc_fail: is there any way to distribute my .yaml configs with gems?
[14:21:35] mc_fail: like, i have an app which has condig file in etc/config.yaml inside the gem
[14:21:45] mc_fail: how do i read it from the app itself
[14:21:56] mc_fail: considering that every path for this gem can be different
[14:22:11] mc_fail: (depending where you install it)
[14:22:32] lightheaded: has joined #ruby
[14:23:56] jhack_: has joined #ruby
[14:28:27] pawnbox: has joined #ruby
[14:30:04] jgnagy: has joined #ruby
[14:32:40] cdg: has joined #ruby
[14:32:40] jhack: has joined #ruby
[14:33:18] mikecmpbll: has joined #ruby
[14:34:38] jenrzzz: has joined #ruby
[14:34:38] jenrzzz: has joined #ruby
[14:36:09] t-recx: has joined #ruby
[14:36:21] nowhereman: has joined #ruby
[14:36:49] dar123: has joined #ruby
[14:37:54] tvw: has joined #ruby
[14:39:01] lightheaded: has joined #ruby
[14:40:53] jhack_: has joined #ruby
[14:40:54] jonathanwallace: can you keep the yaml file in the gem and allow end users to overwrite?
[14:41:04] raul782: has joined #ruby
[14:41:40] bkxd: has joined #ruby
[14:48:48] mzo: has joined #ruby
[14:50:12] Alina-malina: has joined #ruby
[14:51:15] mzo: how do people feel about Array#[] returning nil for out-of-bounds indices? should it raise instead, or does this behavior make the most sense?
[14:51:52] jhack32: has joined #ruby
[14:51:58] cschneid_: has joined #ruby
[14:52:12] Alina-malina: has joined #ruby
[14:52:51] leah2: you can use .fetch if you want that behavior
[14:56:08] minimalism: has joined #ruby
[14:57:06] mzo: leah2: thanks, that's good to know
[14:57:35] mzo: is the behavior of #[] considered to be a mistake
[14:58:12] mzo: if you could go back in time would you make #[] raise for invalid indices
[14:58:13] aufi: has joined #ruby
[14:58:21] herwin: it's what most languages do
[14:59:00] leah2: i like the default behavior
[14:59:08] JeanCarloMachado: has joined #ruby
[14:59:42] lightheaded: has joined #ruby
[14:59:43] mzo: herwin: is it?
[15:00:43] herwin: perl returns undef (the equivalent of nil), I believe java returns null
[15:00:48] raul782: has joined #ruby
[15:00:58] leah2: java raises
[15:01:11] herwin: it always confuses the heck out of me when I have to make a change to a python thing and it raises an error
[15:01:16] herwin: C just segfaults ;)
[15:02:15] lightheaded: has joined #ruby
[15:02:25] mzo: yeah it's an exception in java and undefined behavior in C. in C++ it's undefined behavior, or on STL containers you can use .get() which will throw an exception
[15:02:31] krobzaur: has joined #ruby
[15:02:48] mzo: in javascript it returns undefined though
[15:03:16] eclecticjohny: has joined #ruby
[15:03:32] lheaded: has joined #ruby
[15:03:58] mzo: in statically typed languages it almost *must* be an error, because e.g., in java if you have int[] a; then a[i] == null is ill-typed
[15:04:10] rippa: has joined #ruby
[15:04:33] jhack: has joined #ruby
[15:04:33] jhack: has joined #ruby
[15:04:54] mzo: do you frequently rely on the fact that #[] returns nil? like `foo = bar[i] or baz` or so?
[15:05:06] mzo: or would that be poor style in ruby
[15:05:14] herwin: foo.fetch(i, baz)
[15:05:24] leah2: i use || for default value often
[15:05:46] leah2: more with hashes than arrays tho
[15:06:10] herwin: actually, i don't think i use array indexes that much
[15:06:30] herwin: mostly just map/each
[15:07:00] nhhc: has joined #ruby
[15:08:01] lightheaded: has joined #ruby
[15:08:51] OTORelic: has joined #ruby
[15:10:21] frack: has joined #ruby
[15:11:12] GSilva: has joined #ruby
[15:11:53] Inv1s1ble_: has joined #ruby
[15:13:31] frack: How do you print numbers to a new line ie puts var + var
[15:14:11] leah2: puts var, var
[15:14:25] philpep: has left #ruby: ()
[15:15:25] benlieb: has joined #ruby
[15:20:14] naprimer_2: has joined #ruby
[15:21:20] ozcanesen: has joined #ruby
[15:24:38] etehtsea: has joined #ruby
[15:24:59] Lord_of_Life: has joined #ruby
[15:26:04] patarr: has joined #ruby
[15:28:11] jgnagy: has joined #ruby
[15:30:16] raphaelmro: has joined #ruby
[15:30:59] yeticry: has joined #ruby
[15:33:07] brent__: has joined #ruby
[15:33:51] ResidentBiscuit: has joined #ruby
[15:34:06] brent__: has joined #ruby
[15:34:22] brent__: has joined #ruby
[15:34:23] Arpanet69: has joined #ruby
[15:34:54] minimalism: has joined #ruby
[15:35:44] jenrzzz: has joined #ruby
[15:37:44] Burgestr_: has joined #ruby
[15:39:48] uncertainty: has joined #ruby
[15:39:56] allisio: mc_fail: Put it in your library's `data/` directory and use `Gem.datadir` later to retrieve the actual path.
[15:41:12] raspado: has joined #ruby
[15:43:50] pawnbox: has joined #ruby
[15:48:01] antoniobeyah: has joined #ruby
[15:48:16] Tau: has joined #ruby
[15:50:24] amclain: has joined #ruby
[15:51:46] teddysmoker: has joined #ruby
[15:52:10] bmurt: has joined #ruby
[15:52:58] haylon: has joined #ruby
[15:55:34] tolerablyjake: has joined #ruby
[15:57:23] juggler: has joined #ruby
[15:58:26] cdg: has joined #ruby
[15:58:34] s2013: has joined #ruby
[15:59:21] troulouliou_div2: has joined #ruby
[16:00:34] duderonomy: has joined #ruby
[16:02:43] workmad3: has joined #ruby
[16:03:17] Sylario: has joined #ruby
[16:03:43] futilegames: has joined #ruby
[16:04:06] [Butch]: has joined #ruby
[16:04:18] polishdub: has joined #ruby
[16:07:11] Rodya_: has joined #ruby
[16:08:01] RenatoSilva: has joined #ruby
[16:09:01] patarr: has joined #ruby
[16:11:37] tekniq: has joined #ruby
[16:15:36] AlHafoudh: has joined #ruby
[16:18:21] krobzaur: has joined #ruby
[16:22:26] mzo: has joined #ruby
[16:24:14] cdg_: has joined #ruby
[16:24:47] krobzaur: has joined #ruby
[16:26:58] cfec0b8d: has joined #ruby
[16:27:38] chouhoulis: has joined #ruby
[16:28:34] patarr: has joined #ruby
[16:29:46] marxarelli: has joined #ruby
[16:29:59] pawnbox: has joined #ruby
[16:35:41] dannyh: has joined #ruby
[16:36:57] jenrzzz: has joined #ruby
[16:36:57] jenrzzz: has joined #ruby
[16:41:55] bkxd: has joined #ruby
[16:43:32] pawnbox: has joined #ruby
[16:43:42] Rodya_: has joined #ruby
[16:44:01] TomyLobo: has joined #ruby
[16:44:07] Arpanet69: has joined #ruby
[16:45:25] Satyajit: has joined #ruby
[16:45:53] dannyh: has joined #ruby
[16:46:10] eclecticjohny: has joined #ruby
[16:46:47] pilne: has joined #ruby
[16:48:11] alxgsv: has joined #ruby
[16:48:40] dionysus69: has joined #ruby
[16:50:53] pawnbox_: has joined #ruby
[16:54:14] zel: has joined #ruby
[16:54:42] jaruga________: has joined #ruby
[16:54:46] flopsec: has joined #ruby
[16:57:29] benlieb: has joined #ruby
[16:58:14] jgnagy: has joined #ruby
[17:06:10] hahuang61: has joined #ruby
[17:07:10] keanny479: has joined #ruby
[17:07:43] keanny479: i have the project https://goo.gl/b1bRMK
[17:08:15] keanny479: does anyone can help me to color the user score line in a table (i use terminal-table gem) ?
[17:09:12] keanny479: the file concerned : lib/format.rb
[17:09:39] milardovich: has joined #ruby
[17:10:15] uncertainty: has joined #ruby
[17:10:55] DARPA: has joined #ruby
[17:11:08] _djbkd: has joined #ruby
[17:11:48] dannyh: has joined #ruby
[17:15:44] pawnbox: has joined #ruby
[17:19:44] dar123: has joined #ruby
[17:23:22] Eiam: a[20] if 20 is out of range shouldn't return nil, that perpetuates the practice of making nil have a meaning
[17:23:34] Eiam: which leads to people checking for nil like its a "thing"
[17:25:06] allisio: It's a "thing" just as much as zero is.
[17:26:19] tolerablyjake: has joined #ruby
[17:26:34] aupadhye: has joined #ruby
[17:27:19] havenwood: Eiam: I recall someone saying that if you ask Ruby to go to the store and get some grapefruit gum it comes back and says there was none. If you ask Python to go to the store and by grapefruit gum it burns the store down.
[17:28:00] Eiam: allisio: um, no
[17:28:13] allisio: Eiam: It's an encoding of absence.
[17:28:15] havenwood: Eiam: When something isn't there it makes sense to say there was nothing. It's not a particularly exceptional event.
[17:28:23] Eiam: I had 3 pieces of candy and I ate 3, now I have 0 left. 0 is a value, nil is not
[17:28:30] Eiam: 0 can become 1
[17:28:31] cdg: has joined #ruby
[17:28:32] Eiam: nil cannot become 1
[17:28:38] allisio: Is that a dare?
[17:28:39] Eiam: you can't have -1 nil, or +4 nil
[17:28:46] havenwood: >> nil.to_i.succ
[17:28:48] ruby[bot]: havenwood: # => 1 (https://eval.in/754567)
[17:29:03] Eiam: havenwood: =p
[17:29:17] allisio: You're using largely unrelated precepts from other fields to make conclusions about the Ruby language.
[17:29:52] Eiam: allisio: I write plenty of ruby every day. Using Nil as a placeholder for meaning is poor design. it leads to nil checks and all sorts of crap in your code
[17:30:06] Eiam: because you are treating nil like it has meaning , like "empty" or "0"
[17:30:16] br0d1n: has joined #ruby
[17:30:27] Eiam: then it creeps in everywhere and you are stuck defending your code from nils all over the place
[17:30:33] allisio: It has the meaning "nonexistence", but that does not cause nil itself to be nonexistent in any useful sense.
[17:30:50] Eiam: non-existence is not the same as 0
[17:31:10] allisio: No, they're not, but there's an obvious relationship.
[17:31:19] Eiam: if I take an average and the value is 0, thats not the same as the value being nil
[17:31:57] baweaver: ACTION wanders in
[17:32:09] baweaver: Ah, we have another Nil zealotry argument, fun.
[17:32:16] Papierkorb: ACTION sips tea
[17:32:34] dar123: has joined #ruby
[17:32:40] havenwood: ACTION gulps coffee
[17:32:52] herwin: ACTION grabs the popcorn
[17:33:08] Eiam: ACTION watches in amusement from the sidelines too
[17:33:13] Eiam: wait what?
[17:34:00] Papierkorb: What will happen next? Will Eiam and allisio come to a conclusion?! Tune in next time to Language Fights to find out!
[17:34:03] baweaver: If you're really bent on that you can always use a Hash instead with a default constructor
[17:34:32] baweaver: or make a new array
[17:34:44] eam: < allisio> Is that a dare? -- lol
[17:34:52] Eiam: I'm just generally against concepts that perpetuate the idea of assigning nil to have some kind of meaning in code instead of taking the time to assign it an ACTUAL value that has ACTUAL meaning
[17:35:01] Eiam: like :not_found or a results object, etc
[17:35:02] allisio: Eiam: Sparse arrays.
[17:35:12] allisio: Would you want to *have* to use a Hash for those?
[17:35:28] nofxxx: Eiam, which will be what for yourt unexistent oblivion NIHIL a[20] ?
[17:36:08] havenwood: >> eiam = {}; eiam.default = :not_found; eiam[:grapefruit_gum]
[17:36:09] ruby[bot]: havenwood: # => :not_found (https://eval.in/754571)
[17:36:35] allisio: A "null" type just *is* useful for encoding the notion of absence.
[17:36:37] Eiam: nofxxx: there are other solutions beyond a nil.
[17:36:54] Eiam: nofxxx: how do you distinguish if the nil means I put it there or it started that way?
[17:37:04] nofxxx: Eiam, I don't know a better one, do you?
[17:37:04] baweaver: ACTION waits for Monads to come up again
[17:37:08] allisio: I concede that `nil` isn't "necessary", in any meaningful sense, but it's part of the "flavor" of Ruby and just one of those things you have to take on board at some point.
[17:38:19] blackmesa: has joined #ruby
[17:38:46] roadrunneratwast: has joined #ruby
[17:39:28] Eiam: nofxxx: you could raise, oob error, return a type designed to mean something. I'm not suggesting that Ruby should suddenly *start* doing these things ,but plenty of languages DON'T return a nil/null in such a case
[17:40:10] havenwood: Eiam: nil is the type designed to mean the something, from the Lisps
[17:40:13] rquid: has joined #ruby
[17:40:40] nofxxx: Eiam, that won't be simple as nil. Nothing beats the simplest solution.
[17:40:48] preyalone: has joined #ruby
[17:41:49] Eiam: havenwood: I get that its old
[17:41:52] snickers: has joined #ruby
[17:42:04] elomatreb: If you want strict key behaviour, both Hash and Array have #fetch. But then you have rescues all over your code instead of nil checks :shrug:
[17:42:07] Eiam: okay as was pointed out this is a long, old argument. its been argued over and over https://www.lucidchart.com/techblog/2015/08/31/the-worst-mistake-of-computer-science/
[17:42:15] Eiam: I don't really care to LITERALLY have the argument again
[17:42:19] nofxxx: Occams agreeds with me, and also Nietzsche explains the value of nil =P
[17:42:23] rquid: has left #ruby: ("PONG :orwell.freenode.net")
[17:42:30] baweaver: ...you started the argument again?
[17:42:31] Eiam: The short answer: NULL is a value that is not a value. And that’s a problem.
[17:42:50] Eiam: elomatreb: at least you know what you are looking for!
[17:43:00] baweaver: *doesn't want to have argument* *literally started argument earlier*
[17:43:05] toretore: schrödinger's object
[17:43:06] baweaver: ACTION scratches head
[17:43:26] Eiam: baweaver: actually someone else asked about the behavior of out of bounds arrays
[17:43:27] snickers: Can I determine if method require parameter. Something like :respod_to?
[17:43:33] baweaver: Eiam: http://learnyouahaskell.com/ - have fun
[17:43:38] toretore: snickers: elaborate
[17:43:38] Eiam: snickers: responds_to can be overloaded
[17:43:43] Eiam: baweaver: already done it thanks
[17:43:54] Eiam: baweaver: cs194 is more commonly recommended
[17:43:55] baweaver: I need my bingo
[17:44:06] Eiam: baweaver: I can only say burrito and provide a metaphor for what a monad is like
[17:44:12] Eiam: i cannot ACTUALLY explain a monad
[17:44:42] baweaver: It's just a monoid in the category of an endofunctor
[17:44:47] baweaver: ACTION shrugs
[17:44:58] havenwood: >> class Schrödinger; def observe; [self, nil].sample end end; Schrödinger.new.observe # toretore
[17:44:59] ruby[bot]: havenwood: # => nil (https://eval.in/754575)
[17:45:01] Eiam: I'm going to stick with the burrito
[17:45:17] toretore: havenwood: isn't this built in functionality?
[17:45:30] nofxxx: Eiam, well, we could agree in one thing: we should have a std lib 'maybe' monad
[17:45:43] toretore: havenwood: maybe not in ruby where nil actually is a reference, but in other languages it's the lack of one, and you don't know until you try
[17:45:51] nofxxx: rails did it with #try
[17:46:53] allisio: Is `nil` a reference?
[17:46:56] toretore: so in one way ruby doesn't actually have a null reference, the absence of a value is the value nil
[17:47:12] toretore: >> [nil.object_id, nil.class]
[17:47:26] ruby[bot]: toretore: # => [4, NilClass] (https://eval.in/754576)
[17:47:34] toretore: not strictly a reference, as it is an immediate object
[17:48:37] veloutin: has joined #ruby
[17:48:42] bigkevmcd: has joined #ruby
[17:49:07] matthewd: It's still a reference inside the language environment.. it just happens to not be stored as a pointer inside the bowels of the VM
[17:49:08] baweaver: >> [1&.succ, nil&.succ]
[17:49:09] ruby[bot]: baweaver: # => [2, nil] (https://eval.in/754577)
[17:50:30] dminuoso: Eiam: The main issue with nil is just the complexity of hiding it inside a monad such as Maybe.
[17:50:48] dminuoso: Or rather supplying comparable control structures.
[17:51:01] dminuoso: But that's an inherent consequent of having a duck typed language.
[17:52:54] LambdaSix: has joined #ruby
[17:54:15] bilal80: has joined #ruby
[17:55:08] duderonomy: has joined #ruby
[17:56:34] roadrunneratwast: has joined #ruby
[17:57:26] dminuoso: ACTION shoots allisio 
[17:57:43] dminuoso: The sign says: Cats beware, here be hunters.
[17:57:48] jgnagy: has joined #ruby
[17:58:45] allisio: river << (bag << cat)
[17:59:18] allisio: That's a Breaking Bad reference.
[18:00:27] SeepingN: has joined #ruby
[18:00:47] jtdowney: has joined #ruby
[18:01:28] tolerablyjake: has joined #ruby
[18:01:40] benlieb: has joined #ruby
[18:01:40] dminuoso: allisio: I say that operation is associative.
[18:02:04] dminuoso: No it isnot.
[18:02:21] dminuoso: Though it depends on what you look at. In both cases you end up with a pretty pissed off cat.
[18:02:56] allisio: #<< being left-associative is nice for string shovelling, but I really didn't wanna have to use those parens there.
[18:03:22] dar123: has joined #ruby
[18:04:44] dminuoso: allisio: I have pretty bad experience with that string shovelling.
[18:04:54] milardovich: has joined #ruby
[18:04:54] dminuoso: allisio: It looks like a neat idea at first, but try use C++ streams for a while.
[18:05:02] dminuoso: You won't know pain until you do.
[18:05:08] allisio: dminuoso: It's roughly the same idea, isn't it?
[18:05:17] dminuoso: allisio: Yes, but it's an absolutely downright horrid interface.
[18:05:27] dminuoso: allisio: Because then suddenly you wonder about locale, about formatting, about bitsets.
[18:05:37] dminuoso: And then you realize the only way to mutate the state of a stream is to shove things into it.
[18:05:59] jhack_: has joined #ruby
[18:07:31] baweaver: Eiam: http://adit.io/posts/2013-04-17-functors,_applicatives,_and_monads_in_pictures.html
[18:08:43] dminuoso: baweaver: Heh, Im beginning to understand that you cant really understand monads until you grasp category theory.
[18:12:20] jgnagy: has joined #ruby
[18:15:12] jgnagy_: has joined #ruby
[18:17:25] mgorbach: has joined #ruby
[18:17:37] ramfjord: has joined #ruby
[18:20:57] gusrub: has joined #ruby
[18:22:34] Cohedrin: has joined #ruby
[18:23:16] mzo: has joined #ruby
[18:25:13] soumam: has joined #ruby
[18:26:43] xall: has joined #ruby
[18:28:52] renchan: has joined #ruby
[18:29:14] kith: has joined #ruby
[18:34:34] mgorbach: has joined #ruby
[18:34:39] marcoecc: has joined #ruby
[18:35:04] username1: has joined #ruby
[18:35:21] username1: why doesnt this terminate early in Ruby?
[18:35:26] username1: def test; unless false; "Terminate early"; puts "Didn't terminate"; end; "Reached End"; end
[18:35:39] jhack32: has joined #ruby
[18:35:44] username1: i thought explicit return isnt required in Ruby?
[18:36:06] jgnagy: has joined #ruby
[18:36:31] hxegon: username1: it isn't, A) Your condition doesn't trigger, B) it isn't the last statement
[18:36:38] hxegon: test returns "Didn't terminate"
[18:37:08] hxegon: >> def test; if false; return "terminated"; end; puts "unterminated"; end; test
[18:37:09] ruby[bot]: hxegon: # => unterminated ...check link for more (https://eval.in/754631)
[18:37:15] matthewd: username1: It wouldn't be very useful if all functions just returned the result from their first line
[18:37:26] patarr: Are there any tools to view a ruby heap dump graphically?
[18:37:27] hxegon: also your condition wasn't ended before you put "didn't terminate"
[18:37:36] jhack: has joined #ruby
[18:37:54] hxegon: >> def test; if true; return "terminated"; end; puts "unterminated"; end; test
[18:37:55] ruby[bot]: hxegon: # => "terminated" (https://eval.in/754632)
[18:38:10] Silthias: has joined #ruby
[18:38:11] matthewd: patarr: https://github.com/tenderlove/heap-analyzer
[18:38:13] dopamean_: has joined #ruby
[18:38:36] hxegon: usually you only see return used when you want to end a function early because of some condition, otherwise it's just whatever value is last
[18:39:00] jenrzzz: has joined #ruby
[18:39:46] enterprisey: has joined #ruby
[18:40:03] vikaton: has joined #ruby
[18:40:33] mgorbach: has joined #ruby
[18:40:46] uncertainty: has joined #ruby
[18:41:03] dtzuzu: has joined #ruby
[18:41:26] DARPA: has joined #ruby
[18:43:23] milardovich: has joined #ruby
[18:43:24] hxegon: I guess to make code more in line with yours, and slightly more idiomatic:
[18:44:22] hxegon: >> def test(bool); return "foo" if bool; "bar"; end; [test(true), test(false)]
[18:44:23] ruby[bot]: hxegon: # => ["foo", "bar"] (https://eval.in/754633)
[18:45:51] bkxd: has joined #ruby
[18:47:41] username1: matthewd: i agree
[18:47:54] username1: what about the fact that theres no action on the string
[18:49:03] [Butch]_: has joined #ruby
[18:50:05] frack: has joined #ruby
[18:50:45] matthewd: It would be *possible* for the parser to special-case that, I guess, but it doesn't seem generally useful
[18:50:47] username1: clearly, i had some misconceptions
[18:50:50] username1: matthewd: thanks
[18:50:54] username1: hxegon: thanks
[18:51:19] hxegon: username1: no problem.
[18:51:47] invalidusrname: has joined #ruby
[18:52:27] [Butch]: has joined #ruby
[18:53:30] blackmesa: has joined #ruby
[18:55:20] HoierM: has joined #ruby
[18:55:22] mzo: ruby is exciting
[18:55:59] allisio: You're exciting.
[18:56:09] HoierM: has joined #ruby
[18:56:11] mzo: hehe ^___^
[18:57:19] HoierM: has joined #ruby
[18:58:15] HoierM: has joined #ruby
[18:58:45] [Butch]: has joined #ruby
[19:01:48] aryaching: has joined #ruby
[19:01:56] rob: has joined #ruby
[19:05:19] zacts: has joined #ruby
[19:09:20] Ishido: has joined #ruby
[19:13:29] Coldbla2: has joined #ruby
[19:15:17] Jayson_Virissimo: has joined #ruby
[19:17:11] troulouliou_dev: has joined #ruby
[19:20:09] jgnagy: has joined #ruby
[19:20:15] zeroDi: has joined #ruby
[19:21:08] DARPA: has joined #ruby
[19:21:46] zeroDi: has joined #ruby
[19:22:12] hotpancakes: has joined #ruby
[19:23:01] roadrunneratwast: has left #ruby: ()
[19:23:29] dionysus69: has joined #ruby
[19:24:01] szulak_: has joined #ruby
[19:26:00] _djbkd: has joined #ruby
[19:31:45] Robtop__: has joined #ruby
[19:31:53] hotpancakes: has joined #ruby
[19:32:41] rikkipitt: has joined #ruby
[19:39:05] Ravunni: has joined #ruby
[19:39:14] jenrzzz: has joined #ruby
[19:41:25] frack: has left #ruby: ("Leaving")
[19:42:02] Ravunni: has left #ruby: ()
[19:46:43] jgnagy: has joined #ruby
[19:48:50] Eiam: ruby is fun, definitely the most fun language I use =p
[19:49:52] Eiam: baweaver: I've seen this, thanks =) I used to have my results from LYAH & CS194 on github but I guess I pulled it down... did all the workshets and such. was fun, haskell was fun to play in
[19:51:02] rkazak_: has joined #ruby
[19:57:12] hahuang61: has joined #ruby
[19:57:19] mula: has joined #ruby
[19:58:53] _djbkd: has joined #ruby
[20:01:02] enterprisey: has joined #ruby
[20:01:51] gloscombe_: has joined #ruby
[20:04:45] kitikonti: has joined #ruby
[20:05:58] onkelhotte: has joined #ruby
[20:06:33] JeanCarloMachado: has joined #ruby
[20:08:38] vali: has joined #ruby
[20:10:55] uncertainty: has joined #ruby
[20:11:37] benlieb: has joined #ruby
[20:12:16] cdg: has joined #ruby
[20:18:25] onkelhotte: has joined #ruby
[20:20:56] username1: has joined #ruby
[20:22:34] jgnagy_: has joined #ruby
[20:23:41] gusrub: has joined #ruby
[20:33:15] onkelhotte: has joined #ruby
[20:33:27] enterprisey: has joined #ruby
[20:34:13] onkelhotte: has joined #ruby
[20:35:46] onkelhotte: has joined #ruby
[20:36:24] esObe_: has joined #ruby
[20:36:39] esObe_: has joined #ruby
[20:36:47] kirun: has joined #ruby
[20:38:58] workmad3: has joined #ruby
[20:39:23] SuperTux88: has joined #ruby
[20:40:32] saslam: has joined #ruby
[20:41:49] bkxd: has joined #ruby
[20:48:44] KnownSyntax: has joined #ruby
[20:49:33] raspado: hi all, I have a script that shows "self.delete( hosts )", it calls another lib with "def delete ( hosts = [] ) ... " is self.delete ( hosts ) an array or is it a string?
[20:50:41] raspado: not sure if I should pass hosts as ["blah.vmbox"] or "blah.vmbox"
[20:51:07] roadrunneratwast: has joined #ruby
[20:51:33] jenrzzz: has joined #ruby
[20:51:33] jenrzzz: has joined #ruby
[20:52:05] cpruitt: has joined #ruby
[20:54:35] milardovich: has joined #ruby
[20:55:57] ruby[bot]: Why don't you try it and see for yourself?
[20:57:04] saslam_: has joined #ruby
[20:57:30] szulak_: has joined #ruby
[20:57:32] griffindy: has joined #ruby
[20:59:03] tystr: has joined #ruby
[20:59:50] HoierM: has joined #ruby
[21:00:06] raspado: array... i see thx!
[21:01:33] onkelhotte: has joined #ruby
[21:02:19] hooper: has joined #ruby
[21:03:59] IRCFrEAK: has joined #ruby
[21:04:37] pytuger: has joined #ruby
[21:05:31] KnownSyntax: has joined #ruby
[21:05:31] KnownSyntax: has joined #ruby
[21:08:39] blackwind_123: has joined #ruby
[21:12:46] saslam: has joined #ruby
[21:13:54] blackmesa: has joined #ruby
[21:17:29] d0nn1e: has joined #ruby
[21:18:45] lupine: has joined #ruby
[21:23:44] jgnagy: has joined #ruby
[21:24:03] pawnbox: has joined #ruby
[21:24:09] aryaching: has joined #ruby
[21:25:26] milardov_: has joined #ruby
[21:26:25] oryman: has joined #ruby
[21:28:34] jgnagy_: has joined #ruby
[21:30:54] DARPA: has joined #ruby
[21:31:05] hahuang61: has joined #ruby
[21:32:13] gusrub: has joined #ruby
[21:36:23] jamesaxl: has joined #ruby
[21:36:27] hotpancakes: has joined #ruby
[21:41:04] jamesaxl: has joined #ruby
[21:41:23] uncertainty: has joined #ruby
[21:41:32] futilegames: has joined #ruby
[21:43:27] jamesaxl: has joined #ruby
[21:44:06] [Butch]: has joined #ruby
[21:53:43] KnownSyntax: has joined #ruby
[21:53:43] KnownSyntax: has joined #ruby
[21:53:45] kendocode: has joined #ruby
[21:56:04] kendocode: has joined #ruby
[21:57:04] pwnd_nsfw: has joined #ruby
[22:01:50] raul782: has joined #ruby
[22:02:01] [Butch]_: has joined #ruby
[22:02:12] alphor: has joined #ruby
[22:02:47] cdg: has joined #ruby
[22:03:01] tomphp: has joined #ruby
[22:03:53] workmad3: has joined #ruby
[22:04:09] postmodern: has joined #ruby
[22:05:25] blackmesa: has joined #ruby
[22:08:40] dlitvak: has joined #ruby
[22:09:01] litheum: has joined #ruby
[22:09:16] litheum: has left #ruby: ()
[22:10:45] TomyLobo2: has joined #ruby
[22:11:14] GSilva: has joined #ruby
[22:11:16] pwnd_nsfw`: has joined #ruby
[22:13:44] pawnbox: has joined #ruby
[22:15:06] tAn: has joined #ruby
[22:18:42] ddffg: ruby is a little faster than python
[22:20:06] chopppe: has joined #ruby
[22:20:26] sepp2k: has joined #ruby
[22:20:31] pytuger: ddffg, are you sure?
[22:20:46] jaffejoe: has joined #ruby
[22:21:06] ddffg: pytuger,check it out http://benchmarksgame.alioth.debian.org/
[22:21:06] jaffejoe: anyone here familiar with using watir gem for web scraping?
[22:21:32] jaffejoe: trying to figure out this error message i'm getting
[22:23:36] raul782: has joined #ruby
[22:23:54] mzo: actually with the new optimizations in ruby 2.5 it's slightly faster than even hand-tuned assembly in several of the benchmarks i've put together
[22:24:48] ddffg: rust is super fast
[22:25:28] HoierM: has joined #ruby
[22:26:38] HoierM: has joined #ruby
[22:27:11] mzo: yes it is. the rust team is doing some impressive work and leveraging the amazing LLVM infrastructure. still not quite as fast as ruby 2.5, but before long i suspect rust will take the lead.
[22:27:17] Disavowed: mzo: Is 2.5 the one where the hash tables move to open addressing? I'm surprised to see Ruby smoke Python so comprehensively in those benchmarks
[22:27:49] HoierM: has joined #ruby
[22:28:00] pwnd_nsfw`: has joined #ruby
[22:28:32] HoierM: has joined #ruby
[22:29:01] havenwood: ddffg: That comparison doesn't allow high level languages to use idiomatic constructs. So it favors low level languages or those whose idiomatic form mirrors them.
[22:30:00] havenwood: kostya has an interesting fleet of benchmarks here: https://github.com/kostya/benchmarks
[22:31:27] HoierM: has joined #ruby
[22:31:57] SeepingN: has joined #ruby
[22:41:53] nofxx: has joined #ruby
[22:42:15] bkxd: has joined #ruby
[22:42:34] hotpanca_: has joined #ruby
[22:44:09] mula: has joined #ruby
[22:46:37] roadrunneratwast: has joined #ruby
[22:48:01] zapata: has joined #ruby
[22:50:23] herbmillerjr: has joined #ruby
[22:52:57] sneakers: has joined #ruby
[22:54:07] BackEndCoder: has joined #ruby
[22:54:58] Rodya_: has joined #ruby
[22:57:37] raul782: has joined #ruby
[23:01:27] Renich: has joined #ruby
[23:02:29] cyphase: has joined #ruby
[23:02:52] griffindy: has joined #ruby
[23:06:49] milardovich: has joined #ruby
[23:07:17] arescorpio: has joined #ruby
[23:08:29] brent__: has joined #ruby
[23:09:45] hahuang61: has joined #ruby
[23:11:08] elifoster: has joined #ruby
[23:11:57] bocaneri: has joined #ruby
[23:13:32] gusrub: has joined #ruby
[23:13:42] CloCkWeRX: has joined #ruby
[23:21:36] raul782: has joined #ruby
[23:24:04] roadrunneratwast: has left #ruby: ()
[23:25:33] charliesome: has joined #ruby
[23:31:07] benlieb: has joined #ruby
[23:33:32] pawnbox: has joined #ruby
[23:36:27] mula: has joined #ruby
[23:36:38] milardovich: has joined #ruby
[23:37:04] BabyMario: has joined #ruby
[23:37:22] mula: has joined #ruby
[23:37:30] leonthemisfit: has joined #ruby
[23:37:30] leonthemisfit: has joined #ruby
[23:38:07] mula: has joined #ruby
[23:38:12] BabyMario: has left #ruby: ()
[23:38:57] mula: has joined #ruby
[23:39:42] mula: has joined #ruby
[23:40:32] mula: has joined #ruby
[23:47:10] Rodya_: has joined #ruby
[23:48:37] hotpancakes: has joined #ruby
[23:48:54] CloCkWeRX: has joined #ruby
[23:50:03] mysticjohn: has joined #ruby
[23:57:53] VladGh: has joined #ruby
[23:58:20] raul782: has joined #ruby