« Back to channel list

#ruby - 30 July 2018

« Back 1 day Forward 1 day »
[00:03:20] redlegion: has joined #ruby
[00:08:29] elphe: has joined #ruby
[00:23:20] redlegion: has joined #ruby
[00:29:12] wolfshappen: has joined #ruby
[00:33:27] white_lilies: has joined #ruby
[00:41:14] tty: has joined #ruby
[00:43:19] redlegion: has joined #ruby
[00:43:35] BTRE: has joined #ruby
[00:46:00] chouhoulis: has joined #ruby
[00:52:56] CrazyEddy: has joined #ruby
[00:53:17] redlegion: has joined #ruby
[00:56:22] mroutis: has left #ruby: ()
[00:56:46] Radar: Found a Ruby bug today. Don't encounter many of those.
[00:56:57] Radar: Fortunately, it's fixed in 2.4.4.
[00:57:57] nicesignal: has joined #ruby
[01:00:35] alfiemax: has joined #ruby
[01:01:00] mroutis: has joined #ruby
[01:13:18] redlegion: has joined #ruby
[01:23:20] redlegion: has joined #ruby
[01:25:28] Raboo: has joined #ruby
[01:25:50] edwardly: has joined #ruby
[01:33:18] redlegion: has joined #ruby
[01:43:25] tdy: has joined #ruby
[01:45:59] bmurt: has joined #ruby
[01:50:04] banisterfiend: has joined #ruby
[01:53:19] redlegion: has joined #ruby
[02:12:23] beilabs: has joined #ruby
[02:13:25] redlegion: has joined #ruby
[02:26:58] akaiiro: has joined #ruby
[02:38:42] Caerus: has joined #ruby
[02:39:56] cadillac_: has joined #ruby
[02:52:17] dviola: was it a regression?
[03:00:31] cadillac_: has joined #ruby
[03:07:06] havenwood: dviola: When something that used to work stops working, you regress.
[03:07:09] havenwood: dviola: New code causes a regression in that it breaks other code.
[03:07:16] Radar: havenwood: I think you read that wrong.
[03:07:29] Radar: not "what is a", but "was it a"
[03:07:30] havenwood: Radar: Oh, yes. I sure did!
[03:07:45] Radar: how embarrassment
[03:07:59] havenwood: scrolls back, mmm - context sure makes that clear
[03:08:09] havenwood: ACTION squints
[03:08:13] dviola: I ask because git-bisect is great when finding regressions
[03:08:29] Radar: dviola: I am... not sure if it was a regression or not. I would need to recompile each Ruby version to determine that and ain't nobody got time for that.
[03:08:33] dviola: git bisect start, then mark good/bad, until you get the bad commit
[03:08:42] havenwood: I did the recompile ruby bisect dance the other day
[03:08:45] Radar: dviola: Yeah, git bisect is great :)
[03:08:56] Radar: This seems like the kind of bug that would happen for perhaps 1 or 2 Ruby versions but then be squashed.
[03:09:06] havenwood: It takes forever
[03:09:23] Radar: It'd probably be quicker for me to read the changelogs.
[03:09:35] braincrash: has joined #ruby
[03:10:05] Radar: Going to try installing Ruby 2.4.3 and see if the bug is there or not now. And then I will go and read the changelogs. I must know what caused this.
[03:10:21] Radar: my guess is something fucky around require not checking $LOADED_FEATURES correctly
[03:11:00] Radar: https://github.com/ruby/ruby/compare/v2_4_3...v2_4_4 <- boy these are some great commit messages
[03:12:48] eckhardt: has joined #ruby
[03:14:21] Radar: One day I'll remember to run "git fetch --tags" before attempting a tag checkout.
[03:14:33] nadir: has joined #ruby
[03:23:11] alfiemax: has joined #ruby
[03:23:18] kapil___: has joined #ruby
[03:25:12] Radar: Hoping it's fixed in between 2.4.2 and 2.4.3 as the changelog there is smaller.
[03:28:19] gix: has joined #ruby
[03:32:28] Radar: Na, it's in 2.4.4. I don't have the time to run a bisect over that many changes to see what's changed. I'll guess I'll have to be happy knowing that it's fixed... but not knowing what it is.
[03:34:37] gr33n7007h: has joined #ruby
[03:38:52] chouhoulis: has joined #ruby
[03:42:50] za1b1tsu: has joined #ruby
[03:50:36] Radar: Found it! https://bugs.ruby-lang.org/issues/10222 :D
[04:02:20] tdy: has joined #ruby
[04:13:20] redlegion: has joined #ruby
[04:23:19] redlegion: has joined #ruby
[04:33:18] redlegion: has joined #ruby
[04:40:06] juiko: has joined #ruby
[04:46:40] duderonomy: has joined #ruby
[05:03:22] redlegion: has joined #ruby
[05:10:57] duderonomy: has joined #ruby
[05:23:52] ur5us: has joined #ruby
[05:33:23] redlegion: has joined #ruby
[05:47:57] segy: has joined #ruby
[05:50:15] nowhereFast: has joined #ruby
[06:02:26] venmx: has joined #ruby
[06:03:23] redlegion: has joined #ruby
[06:05:52] biberu: has joined #ruby
[06:13:22] redlegion: has joined #ruby
[06:17:40] snickers: has joined #ruby
[06:18:59] bak1an: has joined #ruby
[06:24:26] jp: has joined #ruby
[06:26:19] duderonomy: has joined #ruby
[06:27:36] DoubleMalt: has joined #ruby
[06:28:08] User458764: has joined #ruby
[06:30:37] conta: has joined #ruby
[06:37:04] Liothen: has joined #ruby
[06:37:20] ansraliant: has joined #ruby
[06:38:10] tpendragon: has joined #ruby
[06:43:23] redlegion: has joined #ruby
[06:46:30] sarna: has joined #ruby
[06:46:53] User458764: has joined #ruby
[06:46:57] sarna: hey, is there any ruby developer survey or something similar?
[06:47:06] mozzarella: has joined #ruby
[06:53:06] jidar: has joined #ruby
[06:53:22] redlegion: has joined #ruby
[07:03:19] redlegion: has joined #ruby
[07:04:31] yohji: has joined #ruby
[07:07:51] reber: has joined #ruby
[07:23:22] redlegion: has joined #ruby
[07:28:16] sysvalve: has joined #ruby
[07:33:20] redlegion: has joined #ruby
[07:35:17] clemens3: has joined #ruby
[07:46:52] mikecmpbll: has joined #ruby
[07:50:48] elphe: has joined #ruby
[07:50:51] User458764: has joined #ruby
[08:00:46] ohcibi: has joined #ruby
[08:03:19] redlegion: has joined #ruby
[08:13:16] redlegion: has joined #ruby
[08:14:16] conta: has joined #ruby
[08:23:20] redlegion: has joined #ruby
[08:26:22] jottr: has joined #ruby
[08:28:33] dadabidet: has joined #ruby
[08:29:19] dadabidet: hello, I'm trying to build this documentation https://github.com/google/draco/tree/master/docs/spec so far I dont understand much, there is bundle, rbenv, jekyll
[08:29:46] dadabidet: I have: Make sure that `gem install commonmarker -v '0.17.9' --source 'https://rubygems.org/'`
[08:29:46] dadabidet: succeeds before bundling.
[08:29:52] dadabidet: but I've run it already
[08:32:09] venmx: has joined #ruby
[08:34:03] dadabidet: I also have Installing commonmarker 0.17.9 with native extensions
[08:34:03] dadabidet: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
[08:39:07] dadabidet: mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
[08:40:17] ur5us: has joined #ruby
[08:41:56] venmx_: has joined #ruby
[08:43:22] redlegion: has joined #ruby
[08:52:44] ur5us: has joined #ruby
[08:53:21] redlegion: has joined #ruby
[08:53:58] User458764: has joined #ruby
[08:59:46] nielsk: has joined #ruby
[09:01:10] dhollin3: has joined #ruby
[09:03:21] redlegion: has joined #ruby
[09:11:02] quobo: has joined #ruby
[09:11:56] duderonomy: has joined #ruby
[09:13:18] redlegion: has joined #ruby
[09:17:29] venmx: has joined #ruby
[09:17:59] Beams: has joined #ruby
[09:23:20] redlegion: has joined #ruby
[09:33:17] redlegion: has joined #ruby
[09:33:39] mikecmpb_: has joined #ruby
[10:02:59] leitz: has joined #ruby
[10:03:20] redlegion: has joined #ruby
[10:05:56] leitz: Trying to understand why this doesn't show the directories in the source dir. https://gist.github.com/LeamHall/709629faea2dc1f4f9da86dc84e60705
[10:06:27] leitz: There are directories there, and if I remove the File.directroy? check the output shows files and directories.
[10:10:28] banisterfiend: has joined #ruby
[10:13:24] redlegion: has joined #ruby
[10:20:28] leitz: has left #ruby: ()
[10:20:53] GodFather: has joined #ruby
[10:22:27] dadabidet: has left #ruby: ("Leaving")
[10:26:56] Dbugger: has joined #ruby
[10:31:30] kapil___: has joined #ruby
[10:31:34] tcurdt: has left #ruby: ("Later!")
[10:31:41] schneider: has joined #ruby
[10:33:20] redlegion: has joined #ruby
[10:43:17] redlegion: has joined #ruby
[10:43:58] GodFather: has joined #ruby
[10:45:06] beefjoe: has joined #ruby
[10:52:38] TvL2386: has joined #ruby
[10:53:08] Bish: has joined #ruby
[10:53:24] Bish: why is Net::FTP#synchronize so odd?
[10:53:29] Bish: with checking the owner of the lock
[10:53:43] redlegion: has joined #ruby
[10:56:58] Bish: or rather why is this thing so odd
[10:57:02] Bish: https://ruby-doc.org/stdlib-1.9.3/libdoc/monitor/rdoc/MonitorMixin.html
[11:03:20] redlegion: has joined #ruby
[11:05:37] GodFather: has joined #ruby
[11:08:23] canton7: has joined #ruby
[11:13:36] Bish: if @mon_owner != Thread.current then @mon_mutex.lock
[11:13:41] Bish: doesn't make much sense too me
[11:13:55] Bish: well it does.. but still
[11:15:33] schneider: has joined #ruby
[11:23:20] redlegion: has joined #ruby
[11:23:37] GodFather: has joined #ruby
[11:31:06] rikkipitt: has joined #ruby
[11:31:50] za1b1tsu: has joined #ruby
[11:40:49] elphe: has joined #ruby
[11:42:51] apparition47: has joined #ruby
[11:43:25] redlegion: has joined #ruby
[11:47:14] MyMind: has joined #ruby
[11:56:37] conta: has joined #ruby
[12:02:11] AJA4350: has joined #ruby
[12:08:48] sarna: has joined #ruby
[12:19:07] ellcs: has joined #ruby
[12:39:13] jasmith: has joined #ruby
[12:43:18] redlegion: has joined #ruby
[12:45:29] ciro: has joined #ruby
[12:46:27] kspencer: Has anyone else noticed that the cert for ruby-lang.org has been getting rejected since its for lists.ruby-lang.org
[12:48:19] GodFather: has joined #ruby
[12:51:07] rikkipitt: has joined #ruby
[12:53:17] redlegion: has joined #ruby
[12:58:48] jcalla: has joined #ruby
[13:00:25] jottr: has joined #ruby
[13:03:08] mikecmpbll: has joined #ruby
[13:03:36] redlegion: has joined #ruby
[13:05:23] beefjoe: has joined #ruby
[13:06:30] User458764: has joined #ruby
[13:07:24] crankhar1er: has joined #ruby
[13:13:11] cadillac_: has joined #ruby
[13:13:18] redlegion: has joined #ruby
[13:15:05] Doow: has joined #ruby
[13:17:12] Doow: Hi, I'm trying to do string interpolation and want to format numbers, is there a decent way to do that inline? (e.g. "I have #{num_apples} apples"). I'd prefer avoiding "" % var notation if possible.
[13:18:30] Doow: I.e. assume num_apples is a floating point number in the above example and I want to only use two decimals.
[13:19:04] z64: "#{num_apples.round(2)}"?
[13:20:16] Doow: z64, that makes sense, thanks. I was hoping for something more compact, but that works.
[13:21:11] z64: think thats the best you'll get unless you just assign (or re-assign) another variable and interpolate that new rounded variable instead
[13:22:17] rikkipitt: has joined #ruby
[13:23:21] redlegion: has joined #ruby
[13:24:28] TvL2386: Bish: that makes sense right
[13:24:56] TvL2386: if you're calling it twice from the same thread, you won't wait for yourself (deadlock)
[13:27:29] bmurt: has joined #ruby
[13:30:24] TvL2386: Doow: probably not what you want, but an option: sprintf("I have %.2f apples", num_apples)
[13:31:25] Doow: TvL2386, thanks for the tip, but not what I wanted, no. I was hoping for something like the .2f for the #{} notation
[13:32:20] TvL2386: Doow: yeah that's not in there :) I'd go with z64's solution
[13:33:41] snowy: has joined #ruby
[13:41:51] beefjoe: has joined #ruby
[13:43:25] eblip: has joined #ruby
[13:50:43] fmcgeough: has joined #ruby
[13:58:50] Frem: has joined #ruby
[13:59:21] bmurt: has joined #ruby
[14:04:50] Alina-malina: has joined #ruby
[14:04:53] roadrunneratwast: has joined #ruby
[14:04:56] Rapture: has joined #ruby
[14:05:44] Zaab1t: has joined #ruby
[14:11:19] roadrunneratwast: Hi I am unable to install "sudo gem install ruby-debug-ide"
[14:12:12] roadrunneratwast: /usr/bin/ruby2.3: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-10.5.0/bin/rake (LoadError)
[14:13:22] redlegion: has joined #ruby
[14:13:59] TvL2386: roadrunneratwast: guess you're not using rbenv or rvm or ....
[14:14:05] gnufied: has joined #ruby
[14:14:18] Nicmavr: has joined #ruby
[14:14:44] roadrunneratwast: oh. i installed rake and rubocop
[14:14:53] roadrunneratwast: i am not a ruby dev
[14:14:54] Inline: has joined #ruby
[14:15:00] roadrunneratwast: so all that environment setup kills me
[14:15:28] TvL2386: I installed it, using ruby-2.5.1 with my own user and it went fine
[14:23:20] redlegion: has joined #ruby
[14:23:22] Mike11: has joined #ruby
[14:30:54] mzo: has joined #ruby
[14:33:21] redlegion: has joined #ruby
[14:34:09] dviola: has joined #ruby
[14:37:35] kapil___: has joined #ruby
[14:39:45] akaiiro: has joined #ruby
[14:52:25] roadrunneratwast: tvl2386. my ide kicks off the install of ruby-debug-ide and then i get this error: https://gist.github.com/mcverter/61c5b224a882d7df0f6f041c42f8b982
[14:53:20] redlegion: has joined #ruby
[14:59:18] ams__: has joined #ruby
[14:59:18] GodFather: has joined #ruby
[14:59:34] rippa: has joined #ruby
[15:01:09] havenwood: roadrunneratwast: "You don't have write permissions for the /var/lib/gems/2.3.0 directory."
[15:01:37] roadrunneratwast: i tried running the IDE (ideaJ) as sudo
[15:01:54] roadrunneratwast: maybe i just have to stick with that
[15:02:32] havenwood: roadrunneratwast: Or you could switch to installing Rubies in a local directory. That, or just switch to a newer Ruby and install it locally.
[15:03:09] roadrunneratwast: i don t know how to do that stuff yet. i am not a ruby dev
[15:03:17] havenwood: roadrunneratwast: What OS/distro?
[15:03:20] redlegion: has joined #ruby
[15:04:00] conta1: has joined #ruby
[15:04:56] chrisseaton: has joined #ruby
[15:05:11] chrisseaton: Does anyone have an interest in fibers and want to read a draft blog post?
[15:06:20] havenwood: chrisseaton: I'm interested.
[15:06:31] chrisseaton: Hah you're always there for me, haven wood!
[15:06:51] havenwood: Haha, I do like your papers!
[15:12:53] elphe: has joined #ruby
[15:13:23] AJA4351: has joined #ruby
[15:15:32] beefjoe: has joined #ruby
[15:20:57] NightMonkey: has joined #ruby
[15:21:33] GodFather: has joined #ruby
[15:23:20] redlegion: has joined #ruby
[15:27:49] Cork: has joined #ruby
[15:32:26] Cork: has joined #ruby
[15:33:39] redlegion: has joined #ruby
[15:38:07] ellcs: i'm also interested
[15:43:20] redlegion: has joined #ruby
[15:44:45] alfiemax: has joined #ruby
[15:46:41] regedit: has joined #ruby
[15:49:52] regedit: i have a HUGE string of text i'm trying to process/work with, it's giving me some problems because well, it's huge
[15:50:19] regedit: getting some memory limitations complaints (heroku ruby/rails)
[15:50:20] jcarl43: has joined #ruby
[15:50:46] Cork: has joined #ruby
[15:51:06] mnemon: regedit: what are you doing with/to it'
[15:51:43] ineb: regedit: take a look at StringIO and treat it like a file
[15:51:56] regedit: it's basically like 9M of phone numbers i'm trying to compare with other existing phone numbers in my database
[15:52:18] Nilium: has joined #ruby
[15:52:22] ineb: regedit: you can do #gets, #read, #each_line, #each_char and so on there
[15:52:22] havenwood: has joined #ruby
[15:53:00] regedit: but first i fix up the huge string a bit... split it, remove some characters from it (area codes & whitespace etc), all in all it looks like the runtime piles up a lot of memory very quickly. even trying to call GC.start a few times but still memory complaints
[15:53:19] redlegion: has joined #ruby
[15:53:35] regedit: ineb: hmmm.... maybe
[15:53:39] mozzarella: where are you getting that string from
[15:54:08] regedit: if it helps clarify the requirements here: this is a Do Not Call list from the federal gov
[15:54:12] ineb: regedit: but if you say 9 megabyte of size... this shouldn be a problem. especially not if you preprocess it in chunks
[15:54:14] regedit: telemerketing.ftc.gov kinda stuff
[15:54:35] mnemon: regedit: if you store multiple versions if the huge string it will be a problem, creating array of strings shouldn't be too bad I guess.
[15:55:04] regedit: ye eventually i try making a Hash of phone-number => nil, so that i can use it as a lookup
[15:56:04] regedit: i was wondering if i need to somehow make some sort of clever compact lookup structure out of it (btree or something?) so it uses as little ram as possible
[15:56:45] mnemon: regedit: what are you doing to it now? modifying the whole massive string for each number?
[15:56:58] regedit: but it seems all the gsub and split etc steps before might also be "conflagrating" the ram copies of the data...
[15:57:11] regedit: mnemon: possibly....?
[15:57:17] regedit: lemme show some example snippets:
[15:57:24] haylon: has joined #ruby
[15:59:49] krawchyk: has joined #ruby
[15:59:57] bak1an: has joined #ruby
[16:00:03] regedit: ok here's the entire Sidekiq Worker actually: https://kopy.io/znxKa
[16:00:21] cadillac_: has joined #ruby
[16:00:38] ivanskie: has joined #ruby
[16:01:02] regedit: some line numbers of possible interest: :20 fetch_file.file.read might load the entire zip compressed file into memory
[16:01:46] regedit: :30 dnc_raw = entry.get_input_stream.read copies the entire extracted string into ram?
[16:02:33] regedit: :33 trying to regex through the entire string to make sure it conforms to expected format - copies it again?
[16:02:57] regedit: :35 gsub twice
[16:03:20] redlegion: has joined #ruby
[16:04:50] cagomez: has joined #ruby
[16:05:01] mzo: has joined #ruby
[16:05:49] c0ncealed2: has joined #ruby
[16:07:49] regedit: im actually finding some instances of these extracted data files to contain 16M+ of data
[16:07:55] GodFather: has joined #ruby
[16:08:37] regedit: so how can i sanely process this much data within limited resources, effectively cleaning up after everything so RAM doesn't keep leaking?
[16:11:18] ineb: what does fetch_file.file.read return? you want IO there
[16:11:23] lxsameer: has joined #ruby
[16:11:34] ineb: regedit: if this is a full string it would explain your problems
[16:12:39] regedit: ineb: ah ye i was having problems giving Zip::File.open() something IO-ish, nothing seemed to work except open_buffer(fetch_file.file.read) which i think might indeed be the full string...
[16:13:18] redlegion: has joined #ruby
[16:15:09] troys: has joined #ruby
[16:18:31] regedit: Zip::File.open(fetch_file.file)
[16:18:49] regedit: it's expecting filename string
[16:20:12] regedit: TypeError: no implicit conversion of CarrierWave::Storage::Fog::File into String
[16:21:17] ineb: regedit: open_buffer was correct there
[16:21:29] darkhanb: has joined #ruby
[16:22:17] ineb: CarrierWave::Storage::Fog::File should be an open IO stream already
[16:23:03] regedit: Zip::File.open_buffer(fetch_file.file)
[16:23:10] regedit: RuntimeError: Zip::File.open_buffer expects a String or IO-like argument (responds to tell, seek, read, close). Found: CarrierWave::Storage::Fog::File
[16:23:18] redlegion: has joined #ruby
[16:23:37] chouhoulis: has joined #ruby
[16:27:09] GodFather: has joined #ruby
[16:27:48] ineb: regedit: yeah because its not an actual file in this case. i dont know carrierwave
[16:28:00] ineb: maybe #path points to a file?
[16:29:19] ineb: you could also try StringIO.new(fetch_file.read) and give that to open_buffer
[16:29:20] regedit: in this case it's the path where it's located within the storage back-end, in this case AWS S3 via fog-aws...
[16:29:45] regedit: ineb: won't StringIO.new(fetch_file.read) also cause another round of copying the string into memory?..
[16:32:36] ineb: true but at least you have a sane StringIO there. if your code crashes at this location you can be sure that its a memory error
[16:33:18] redlegion: has joined #ruby
[16:34:46] regedit: ineb: ok so this pertains to reading & extracting the zip file, any idea if there's more to solve in this huge string processing code?..
[16:35:46] dviola: has joined #ruby
[16:36:12] regedit: let's say we didnt even have to extract a zip file, but rather the data fetched from S3 was directly the uncompressed 16M file
[16:38:35] alfiemax_: has joined #ruby
[16:41:56] siery: has joined #ruby
[16:42:15] ineb: regedit: well, you already noted that the gsub operation can cause problems
[16:42:24] ineb: you havent provided much more info on where your code exactly fails
[16:42:38] ineb: if its at random locations or always the same line?
[16:42:40] siery: Hey, I just wanna remaind the problem I posted yesterday. To not not spam the feed, I rise an issue on GitGud:
[16:42:44] siery: https://gitgud.io/siery/thief/issues/1
[16:43:21] ineb: regedit: since the numbers seem somewhat formatted i would iterate through them one by one and do whatever operations needed
[16:43:37] regedit: ineb: it causes memory complaints which in some cases triggers a killing of the process. It seems to happen "over time" after executing this process several times (not the first times it executes. memory leak-ish...)
[16:49:05] eckhardt_: has joined #ruby
[16:50:14] deathwishdave: has joined #ruby
[16:53:22] redlegion: has joined #ruby
[16:57:22] ineb: regedit: okay, i cant spot critical errors there
[16:58:08] raynold: has joined #ruby
[17:00:12] biberu: has joined #ruby
[17:05:26] ellcs: has joined #ruby
[17:07:52] beowuff: has joined #ruby
[17:07:53] beowuff: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[17:07:55] beowuff: has joined #ruby
[17:11:42] bak1an: has joined #ruby
[17:13:57] troulouliou_div2: has joined #ruby
[17:23:22] redlegion: has joined #ruby
[17:23:44] za1b1tsu: has joined #ruby
[17:24:20] bmurt: has joined #ruby
[17:29:28] sagax: has joined #ruby
[17:33:25] scrptktty: has joined #ruby
[17:35:06] dviola_: has joined #ruby
[17:39:22] krawchyk: has joined #ruby
[17:39:28] akaiiro: has joined #ruby
[17:40:44] lytol_: has joined #ruby
[17:42:09] worch: has joined #ruby
[17:43:57] cadillac_: has joined #ruby
[17:44:25] worch: is there a canonical way to add the gem's bin path to $PATH? Presumably you wouldn't want to simply hardcode it as it contains a version number in the path
[17:48:54] r29v: has joined #ruby
[17:53:21] redlegion: has joined #ruby
[17:59:13] augcesar: has joined #ruby
[18:00:19] Caerus: has joined #ruby
[18:03:20] redlegion: has joined #ruby
[18:09:52] bak1an: has joined #ruby
[18:09:53] fowlduck: has joined #ruby
[18:11:04] havenwood: worch: export PATH="$(gem env gemdir)/bin:$PATH"
[18:13:15] samosaphile: has joined #ruby
[18:13:15] orbyt_: has joined #ruby
[18:13:22] redlegion: has joined #ruby
[18:13:33] havenwood: I like the idea of a `gem env bindir`. That would be easy to implement.
[18:24:40] GodFather: has joined #ruby
[18:38:09] kapil___: has joined #ruby
[18:46:36] SeepingN: has joined #ruby
[18:49:54] deathwishdave: has joined #ruby
[19:15:33] cadillac_: has joined #ruby
[19:17:40] regedit: how are ruby Hash lookups implemented? is it anything special to make look ups very fast?
[19:18:29] regedit: i'm trying to find a cood collection/container to use in order to lookup simply whether (boolean true/false) a value exists in the collection or not, with super fastest lookup time possible
[19:31:29] deathwishdave: has joined #ruby
[19:33:29] krawchyk: has joined #ruby
[19:37:30] snickers: has joined #ruby
[19:38:35] bmurt: has joined #ruby
[19:42:40] vikaton: has joined #ruby
[19:46:00] CrazyEddy: has joined #ruby
[19:49:09] baweaver: regedit: Set
[19:49:15] baweaver: Though it uses Hash, so..
[19:53:30] regedit: i've been doing Hash with key => nil, because all i care for are the existence of the keys, dont care for the values
[19:53:51] regedit: so i was wondering if there's an even more optimized way of only using the keys part of it without values
[19:56:03] Eindoofus: has joined #ruby
[19:57:45] regedit: also, since i'm adding a huge amount of elements, which if i understand correctly the underlying mechanisms of Hash how it increases in number of underlying "bins", i wish there was a way for me to specify number of bins to begin with, so it doesnt have to keep re-dividing and re-creating Hash bins...
[19:58:39] regedit: which if i understand correctly could exponentially affect performance
[19:58:43] regedit: https://www.engineyard.com/blog/hash-lookup-in-ruby-why-is-it-so-fast
[19:59:00] regedit: "At some point you pay an exponentially increased time penalty while Ruby resizes the bin pool"
[20:03:40] redlegion: has joined #ruby
[20:06:20] eblip: has joined #ruby
[20:06:28] deathwishdave: has joined #ruby
[20:07:12] Rapture: has joined #ruby
[20:09:37] banisterfiend: has joined #ruby
[20:15:35] banisterfiend: has joined #ruby
[20:23:21] redlegion: has joined #ruby
[20:32:02] Mike11: has joined #ruby
[20:33:19] redlegion: has joined #ruby
[20:34:32] \void: has joined #ruby
[20:43:11] r29v: has joined #ruby
[20:43:20] redlegion: has joined #ruby
[20:43:58] gr33n7007h: has joined #ruby
[20:53:18] redlegion: has joined #ruby
[20:53:46] redlegion: has joined #ruby
[20:54:13] redlegion: has joined #ruby
[20:54:41] redlegion: has joined #ruby
[20:55:09] redlegion: has joined #ruby
[20:55:36] redlegion: has joined #ruby
[20:56:04] redlegion: has joined #ruby
[20:56:31] redlegion: has joined #ruby
[20:57:20] redlegion: has joined #ruby
[20:57:48] redlegion: has joined #ruby
[20:58:15] redlegion: has joined #ruby
[20:58:43] redlegion: has joined #ruby
[20:59:10] redlegion: has joined #ruby
[20:59:40] redlegion: has joined #ruby
[21:00:07] redlegion: has joined #ruby
[21:00:34] redlegion: has joined #ruby
[21:01:22] redlegion: has joined #ruby
[21:01:49] redlegion: has joined #ruby
[21:02:16] redlegion: has joined #ruby
[21:02:44] redlegion: has joined #ruby
[21:03:11] redlegion: has joined #ruby
[21:03:22] Some-body_: has joined #ruby
[21:03:38] redlegion: has joined #ruby
[21:04:10] redlegion: has joined #ruby
[21:04:42] redlegion: has joined #ruby
[21:04:46] krawchyk: has joined #ruby
[21:05:11] redlegion: has joined #ruby
[21:05:41] redlegion: has joined #ruby
[21:06:12] redlegion: has joined #ruby
[21:06:44] meinside: has joined #ruby
[21:06:47] redlegion: has joined #ruby
[21:06:53] Sylario: has joined #ruby
[21:06:53] Nuck: has joined #ruby
[21:07:02] npgm: has joined #ruby
[21:07:17] redlegion: has joined #ruby
[21:07:47] redlegion: has joined #ruby
[21:08:16] redlegion: has joined #ruby
[21:08:32] AJA4350: has joined #ruby
[21:08:46] redlegion: has joined #ruby
[21:09:16] redlegion: has joined #ruby
[21:09:46] redlegion: has joined #ruby
[21:10:17] redlegion: has joined #ruby
[21:10:47] redlegion: has joined #ruby
[21:11:17] redlegion: has joined #ruby
[21:14:36] AJA4351: has joined #ruby
[21:16:01] alfiemax: has joined #ruby
[21:16:22] dinfuehr: has joined #ruby
[21:27:24] spiette: has joined #ruby
[21:42:29] eckhardt_: has joined #ruby
[21:46:34] tj-: has joined #ruby
[21:49:23] znz_jp: has joined #ruby
[21:49:59] tj-: Is there a way to easily simulate static local variables in instance methods?
[21:54:25] eckhardt_: has joined #ruby
[21:57:12] quobo: has left #ruby: ()
[21:58:36] nowhere_man: has joined #ruby
[21:59:32] deathwishdave: has joined #ruby
[22:03:18] eckhardt_: has joined #ruby
[22:04:43] znz_jp: has joined #ruby
[22:07:28] elphe: has joined #ruby
[22:09:22] DarthGandalf: has joined #ruby
[22:12:46] gyant: has joined #ruby
[22:14:40] gigetoo: has joined #ruby
[22:16:35] r29v: has joined #ruby
[22:27:24] ciro: has joined #ruby
[22:36:29] tty: has joined #ruby
[22:53:03] d^sh: has joined #ruby
[22:56:06] eckhardt_: has joined #ruby
[22:59:05] redlegion: has joined #ruby
[23:03:35] redlegion: has joined #ruby
[23:05:51] snowy: has joined #ruby
[23:13:11] orbyt_: has joined #ruby
[23:13:32] redlegion: has joined #ruby
[23:19:55] AJA4350: has joined #ruby
[23:23:30] redlegion: has joined #ruby
[23:33:32] redlegion: has joined #ruby
[23:42:39] eckhardt_: has joined #ruby
[23:42:40] venmx: has joined #ruby
[23:47:02] eckhardt_: has joined #ruby
[23:49:50] mzo: has joined #ruby
[23:53:31] redlegion: has joined #ruby
[23:55:45] elphe: has joined #ruby
[23:55:50] white_lilies: has joined #ruby
[23:57:19] postmodern: has joined #ruby