00:04
lucasb has quit [Quit: Connection closed for inactivity]
00:33
marmot98 has quit [Ping timeout: 245 seconds]
00:40
bitwinery has quit [Remote host closed the connection]
00:40
bitwinery has joined #ruby
00:41
<
leftylink >
I would think that already happens. I think it is possible to test whether that's true by doing `sleep 10`.
00:44
Intelo has quit [Remote host closed the connection]
00:50
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:51
oetjenj has joined #ruby
00:51
oetjenj has quit [Client Quit]
00:51
oetjenj has joined #ruby
00:52
oetjenj has quit [Client Quit]
00:52
oetjenj has joined #ruby
00:53
oetjenj has quit [Client Quit]
00:54
oetjenj has joined #ruby
00:54
oetjenj has quit [Client Quit]
00:55
oetjenj has joined #ruby
00:55
oetjenj has quit [Client Quit]
00:57
ap4y has quit [Ping timeout: 268 seconds]
00:57
Technodrome has joined #ruby
01:01
duderonomy has joined #ruby
01:07
ap4y has joined #ruby
01:16
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:22
greypack has quit [Quit: All your IRC are belong to ZNC]
01:28
greypack has joined #ruby
01:28
AJA4350 has quit [Quit: AJA4350]
01:34
^amra has joined #ruby
01:43
cnsvc has quit [Remote host closed the connection]
01:49
cnsvc has joined #ruby
01:53
BTRE has quit [Remote host closed the connection]
02:03
poontangmessiah_ has quit [Remote host closed the connection]
02:15
arahael has quit [Ping timeout: 246 seconds]
02:26
DaRock has quit [Ping timeout: 245 seconds]
02:27
BTRE has joined #ruby
02:29
DaRock has joined #ruby
02:32
DaRock has quit [Read error: Connection reset by peer]
02:35
DaRock has joined #ruby
02:47
baojg has quit [Remote host closed the connection]
02:48
baojg has joined #ruby
02:49
^amra has quit [Quit: Leaving]
02:53
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:53
txdv has quit [Ping timeout: 258 seconds]
02:56
john2496 has joined #ruby
02:56
marmot98 has joined #ruby
02:57
john2496_ has joined #ruby
03:00
john2496 has quit [Ping timeout: 246 seconds]
03:05
envex has joined #ruby
03:08
alan_w has joined #ruby
03:09
arahael has joined #ruby
03:09
marmot98 has quit [Quit: Leaving]
03:18
duderonomy has joined #ruby
03:19
alan_w has quit [Ping timeout: 244 seconds]
03:19
txdv has joined #ruby
03:33
Esa_ has quit [Ping timeout: 244 seconds]
03:40
john2496_ has quit [Ping timeout: 244 seconds]
04:06
queip has quit [Ping timeout: 245 seconds]
04:07
davor_ has joined #ruby
04:07
davor has quit [Ping timeout: 245 seconds]
04:07
davor_ is now known as davor
04:13
queip has joined #ruby
04:19
ImAdPER|SLeePINg is now known as iMadper
04:24
dedRabbit has joined #ruby
04:25
ap4y has quit [Ping timeout: 245 seconds]
04:35
queip has quit [Ping timeout: 245 seconds]
04:38
dedRabbit has quit [Quit: WeeChat 2.4]
04:39
dedRabbit has joined #ruby
04:42
dedRabbit has quit [Client Quit]
04:43
queip has joined #ruby
04:45
dedRabbit has joined #ruby
04:47
dedRabbit has quit [Client Quit]
04:52
x86sk has joined #ruby
04:53
hightower3 has quit [Ping timeout: 244 seconds]
04:54
ur5us has quit [Remote host closed the connection]
04:54
ur5us has joined #ruby
04:57
esrse has joined #ruby
04:59
ur5us has quit [Ping timeout: 258 seconds]
05:02
openCircuit__ has joined #ruby
05:09
Inline__ has quit [Quit: Leaving]
05:12
openCircuit__ has quit [Ping timeout: 244 seconds]
05:19
schaerli has joined #ruby
05:20
queip has quit [Ping timeout: 245 seconds]
05:21
evdubs_ has joined #ruby
05:22
evdubs has quit [Ping timeout: 276 seconds]
05:23
schaerli has quit [Ping timeout: 258 seconds]
05:24
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:27
dr_mdma_md has quit []
05:29
queip has joined #ruby
05:32
Skaterhaym has joined #ruby
05:35
zenspider has quit [Ping timeout: 245 seconds]
05:35
bitwinery has quit [Ping timeout: 244 seconds]
05:36
Leopere has quit [Remote host closed the connection]
05:38
schaerli has joined #ruby
05:39
queip has quit [Ping timeout: 268 seconds]
05:39
Fischmiep has joined #ruby
05:40
absolutejam1 has joined #ruby
05:40
Leopere has joined #ruby
05:44
openCircuit__ has joined #ruby
05:45
Fischmiep has quit [Ping timeout: 264 seconds]
05:47
Skaterhaym has quit [Read error: Connection reset by peer]
05:47
queip has joined #ruby
05:49
Skaterhaym has joined #ruby
05:49
Skaterhaym has quit [Client Quit]
05:50
schne1der has joined #ruby
05:58
bitwinery has joined #ruby
06:02
Leopere has joined #ruby
06:04
dionysus69 has joined #ruby
06:12
Leopere has quit [Ping timeout: 268 seconds]
06:13
schne1der has quit [Ping timeout: 244 seconds]
06:14
reber has joined #ruby
06:20
zenspider has joined #ruby
06:20
corellian has joined #ruby
06:21
emptyflask has quit [Ping timeout: 258 seconds]
06:24
Leopere has joined #ruby
06:24
absolutejam1 has quit [Ping timeout: 244 seconds]
06:25
sagax has quit [Read error: Connection reset by peer]
06:25
zenspider has quit [Ping timeout: 268 seconds]
06:27
fphilipe has quit [Ping timeout: 264 seconds]
06:33
tsujp has joined #ruby
06:40
andikr has joined #ruby
06:42
fphilipe has joined #ruby
06:46
tsujp has quit [Read error: Connection reset by peer]
06:46
tsujp_ has joined #ruby
07:03
queip has quit [Ping timeout: 245 seconds]
07:06
tsujp_ has quit [Read error: Connection reset by peer]
07:09
lxsameer has joined #ruby
07:10
Fischmiep has joined #ruby
07:10
queip has joined #ruby
07:11
openCircuit__ has quit [Ping timeout: 245 seconds]
07:16
absolutejam1 has joined #ruby
07:16
vondruch has quit [Quit: vondruch]
07:17
mozzarella has quit [Ping timeout: 268 seconds]
07:20
MrCrackPotBuilde has joined #ruby
07:20
MrCrackPot has quit [Read error: Connection reset by peer]
07:20
mozzarella has joined #ruby
07:22
alan_w has joined #ruby
07:22
ellcs has joined #ruby
07:23
r3m has quit [Quit: WeeChat 2.6-rc2]
07:23
galaxie has quit [Remote host closed the connection]
07:23
r3m has joined #ruby
07:23
galaxie has joined #ruby
07:28
Fischmiep has quit [Ping timeout: 244 seconds]
07:32
openCircuit__ has joined #ruby
07:33
alan_w has quit [Ping timeout: 244 seconds]
07:43
vondruch has joined #ruby
07:43
schne1der has joined #ruby
07:44
Fischmiep has joined #ruby
07:48
jaequery has joined #ruby
07:51
queip has quit [Quit: bye, freenode]
07:55
Fischmiep has quit [Ping timeout: 258 seconds]
08:04
hhffppff has joined #ruby
08:04
andikr has quit [Ping timeout: 268 seconds]
08:04
andikr has joined #ruby
08:17
cnsvc has quit [Quit: WeeChat 2.5]
08:19
dasher00 has joined #ruby
08:20
lxsameer has left #ruby ["in"]
08:21
absolutejam1 has quit [Ping timeout: 245 seconds]
08:22
Intelo has joined #ruby
08:25
hhffppff has quit [Remote host closed the connection]
08:25
ur5us has joined #ruby
08:31
Leopere has quit [Ping timeout: 245 seconds]
08:34
Intelo has quit [Remote host closed the connection]
08:40
absolutejam1 has joined #ruby
08:41
bitwinery has quit [Quit: Leaving]
08:42
queip has joined #ruby
08:48
hd1 has joined #ruby
08:48
<
hd1 >
Is there any tutorial on writing a ruby wrapper for a ObjC++ library?
08:48
TomyWork has joined #ruby
08:49
sagax has joined #ruby
08:51
jinie has quit [Ping timeout: 244 seconds]
08:52
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:58
tsujp has joined #ruby
09:00
dhollinger has quit [Ping timeout: 258 seconds]
09:03
Intelo has joined #ruby
09:13
andikr has quit [Quit: No Ping reply in 180 seconds.]
09:14
andikr has joined #ruby
09:15
queip has quit [Quit: bye, freenode]
09:27
dhollinger has joined #ruby
09:32
kyrylo has joined #ruby
09:33
kyrylo has quit [Client Quit]
09:39
Esa_ has joined #ruby
09:42
tsujp_ has joined #ruby
09:42
tsujp has quit [Ping timeout: 264 seconds]
09:46
<
livcd >
hd1: oh what are you trying to do ?
09:59
Jonopoly has joined #ruby
10:01
reber has quit [Remote host closed the connection]
10:02
ravenousmoose has joined #ruby
10:05
tsujp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:06
<
ryouba >
good morning all+
10:06
ravenousmoose has quit [Ping timeout: 252 seconds]
10:11
involans has joined #ruby
10:13
Nicmavr has quit [Read error: Connection reset by peer]
10:14
Huck777 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:15
Nicmavr has joined #ruby
10:19
davor has quit [Ping timeout: 244 seconds]
10:22
r3m has quit [Quit: WeeChat 2.6-rc2]
10:22
r3m has joined #ruby
10:25
davor has joined #ruby
10:28
tdy has quit [Ping timeout: 245 seconds]
10:35
howdoi has joined #ruby
10:43
ur5us has quit [Remote host closed the connection]
10:43
ur5us has joined #ruby
10:48
ur5us has quit [Ping timeout: 245 seconds]
10:49
gnufied has joined #ruby
10:51
AJA4350 has joined #ruby
10:57
dbugger has joined #ruby
10:59
gnufied has quit [Ping timeout: 244 seconds]
11:05
absolutejam1 has quit [Ping timeout: 268 seconds]
11:05
yqt has joined #ruby
11:10
esrse has quit [Ping timeout: 245 seconds]
11:15
queip has joined #ruby
11:20
yqt has quit [Ping timeout: 258 seconds]
11:22
x86sk has quit [Quit: Connection closed for inactivity]
11:22
involans has quit [Ping timeout: 245 seconds]
11:25
Swyper has quit [Remote host closed the connection]
11:25
Scient has joined #ruby
11:35
alan_w has joined #ruby
11:36
yqt has joined #ruby
11:41
absolutejam1 has joined #ruby
11:43
yqt has quit [Ping timeout: 245 seconds]
11:46
absolutejam1 has quit [Ping timeout: 246 seconds]
11:46
alan_w has quit [Ping timeout: 245 seconds]
11:47
nius has joined #ruby
11:48
nius has quit [Client Quit]
11:57
chalkmonster has joined #ruby
11:57
r3m has quit [Quit: WeeChat 2.6-rc2]
11:58
r3m has joined #ruby
12:01
AJA4350 has quit [Ping timeout: 245 seconds]
12:04
absolutejam1 has joined #ruby
12:08
absolutejam1 has quit [Ping timeout: 245 seconds]
12:10
openCircuit__ has quit [Ping timeout: 246 seconds]
12:12
tsujp has joined #ruby
12:13
involans has joined #ruby
12:14
NL3limin4t0r_afk is now known as NL3limin4t0r
12:15
absolutejam1 has joined #ruby
12:20
AJA4350 has joined #ruby
12:25
grilix has joined #ruby
12:29
ravenousmoose has joined #ruby
12:35
ravenousmoose has quit [Ping timeout: 250 seconds]
12:37
arahael1 has joined #ruby
12:39
arahael has quit [Ping timeout: 245 seconds]
12:39
queip has quit [Ping timeout: 258 seconds]
12:50
queip has joined #ruby
12:58
alan_w has joined #ruby
12:58
alan_w has quit [Client Quit]
13:02
der_wachter_ has joined #ruby
13:08
spiette has joined #ruby
13:09
jcalla has joined #ruby
13:22
beanie__ has joined #ruby
13:26
banisterfiend has joined #ruby
13:27
AJA4351 has joined #ruby
13:29
AJA4350 has quit [Ping timeout: 245 seconds]
13:29
AJA4351 is now known as AJA4350
13:40
krawchyk has joined #ruby
13:40
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:41
tsujp has joined #ruby
13:41
corellian has quit [Quit: leaving]
13:42
jrafanie has joined #ruby
13:42
lucasb has joined #ruby
13:42
schaerli has quit [Ping timeout: 245 seconds]
13:43
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:44
banisterfiend has joined #ruby
13:55
banisterfiend has quit [Read error: Connection reset by peer]
13:58
hutch has joined #ruby
13:58
suukim has joined #ruby
13:59
banisterfiend has joined #ruby
13:59
banisterfiend has quit [Remote host closed the connection]
13:59
Rapture has joined #ruby
13:59
john2496 has joined #ruby
14:01
gnufied has joined #ruby
14:06
absolutejam1 has quit [Ping timeout: 245 seconds]
14:07
openCircuit__ has joined #ruby
14:11
absolutejam1 has joined #ruby
14:12
openCircuit__ has quit [Ping timeout: 258 seconds]
14:14
john2496 has quit [Remote host closed the connection]
14:16
rafadc_ has quit [Read error: Connection reset by peer]
14:17
rafadc has joined #ruby
14:18
hutch has quit [Ping timeout: 250 seconds]
14:18
schaerli has joined #ruby
14:18
openCircuit__ has joined #ruby
14:20
schne1der has quit [Ping timeout: 245 seconds]
14:22
Inline has joined #ruby
14:22
jacksoow has quit [Read error: Connection reset by peer]
14:25
jacksoow has joined #ruby
14:29
jacksoow_ has joined #ruby
14:31
openCircuit__ has quit [Ping timeout: 258 seconds]
14:31
queip has quit [Ping timeout: 245 seconds]
14:32
schaerli has quit [Ping timeout: 258 seconds]
14:32
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:32
jacksoow has quit [Ping timeout: 258 seconds]
14:33
spacesuitdiver has joined #ruby
14:33
AJA4351 has joined #ruby
14:33
involans has quit [Read error: Connection reset by peer]
14:34
involans has joined #ruby
14:34
SeepingN has joined #ruby
14:36
AJA4350 has quit [Ping timeout: 258 seconds]
14:36
AJA4351 is now known as AJA4350
14:39
tsujp has joined #ruby
14:41
queip has joined #ruby
14:42
openCircuit__ has joined #ruby
14:44
jinie has joined #ruby
14:47
openCircuit__ has quit [Ping timeout: 245 seconds]
14:48
Intelo has quit [Remote host closed the connection]
14:52
john2496 has joined #ruby
15:00
hutch has joined #ruby
15:01
peirama has joined #ruby
15:02
skryking has joined #ruby
15:05
ellcs has quit [Ping timeout: 245 seconds]
15:11
DaRock has quit [Ping timeout: 244 seconds]
15:13
der_wachter_ has quit [Quit: Konversation terminated!]
15:13
emptyflask has joined #ruby
15:15
jaequery has joined #ruby
15:16
Guest11997 has joined #ruby
15:16
jaequery has quit [Client Quit]
15:16
zenspider has joined #ruby
15:22
cd has joined #ruby
15:25
absolutejam1 has quit [Ping timeout: 244 seconds]
15:25
openCircuit__ has joined #ruby
15:27
rippa has joined #ruby
15:30
openCircuit__ has quit [Ping timeout: 264 seconds]
15:31
GodFather has joined #ruby
15:35
schne1der has joined #ruby
15:37
deathwishdave has joined #ruby
15:40
AJA4351 has joined #ruby
15:41
AJA4350 has quit [Ping timeout: 244 seconds]
15:41
AJA4351 is now known as AJA4350
15:41
openCircuit__ has joined #ruby
15:43
dretnx has joined #ruby
15:44
<
phroa >
ryouba, I feel like you could move the {} param of each_with_object into e.g. an acc={} param of strip_recursive, so that strip_recursive! would just call 'strip_recursive(self, self)'
15:46
openCircuit__ has quit [Ping timeout: 258 seconds]
15:50
Jonopoly has quit [Ping timeout: 258 seconds]
15:53
queip has quit [Ping timeout: 245 seconds]
16:01
involans has quit [Quit: involans]
16:01
<
hd1 >
livcd: trying to call a ObjC++ library from ruby code
16:02
involans has joined #ruby
16:04
absolutejam1 has joined #ruby
16:08
andikr has quit [Remote host closed the connection]
16:11
Jonopoly has joined #ruby
16:14
emptyflask has quit [Ping timeout: 245 seconds]
16:15
howdoi has quit [Quit: Connection closed for inactivity]
16:19
thexa4 has joined #ruby
16:21
ntsrtoh^ has joined #ruby
16:23
krawchyk has quit [Quit: krawchyk]
16:24
openCircuit__ has joined #ruby
16:26
queip has joined #ruby
16:27
absolutejam1 has quit [Ping timeout: 244 seconds]
16:28
openCircuit__ has quit [Ping timeout: 258 seconds]
16:29
krawchyk has joined #ruby
16:30
wilbert has joined #ruby
16:31
queip has quit [Quit: bye, freenode]
16:32
teardown has quit [Read error: Connection reset by peer]
16:33
teardown has joined #ruby
16:33
dionysus70 has joined #ruby
16:34
dionysus69 has quit [Ping timeout: 246 seconds]
16:34
dionysus70 is now known as dionysus69
16:38
reber has joined #ruby
16:38
queip has joined #ruby
16:44
Eiam has joined #ruby
16:44
<
hd1 >
is the rubyinline gem still the recommended way to call a c++ method from ruby?
16:45
TomyWork has quit [Ping timeout: 246 seconds]
16:46
openCircuit__ has joined #ruby
16:46
fphilipe has quit [Ping timeout: 245 seconds]
16:46
Intelo has joined #ruby
16:47
AJA4351 has joined #ruby
16:49
AJA4350 has quit [Ping timeout: 258 seconds]
16:49
AJA4351 is now known as AJA4350
16:50
openCircuit__ has quit [Ping timeout: 245 seconds]
16:51
psilly0 has joined #ruby
16:56
queip has quit [Quit: bye, freenode]
17:03
fphilipe has joined #ruby
17:03
jaequery has joined #ruby
17:06
absolutejam1 has joined #ruby
17:06
queip has joined #ruby
17:07
dr_mdma_md has joined #ruby
17:19
thexa4 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
17:22
queip has quit [Quit: bye, freenode]
17:23
dinfuehr has quit [Ping timeout: 268 seconds]
17:23
dinfuehr_ has joined #ruby
17:27
Huck777 has joined #ruby
17:31
absolutejam1 has quit [Ping timeout: 245 seconds]
17:35
dionysus69 has quit [Quit: dionysus69]
17:36
dionysus69 has joined #ruby
17:39
sameerynho has joined #ruby
17:49
hiroaki has joined #ruby
17:52
howdoi has joined #ruby
17:53
<
NL3limin4t0r >
ryouba: You can't reassign `self`. Normally you build the mutating version first. Then for the non-mutating version #dup self and call the mutating variant.
17:55
AJA4350 has quit [Ping timeout: 245 seconds]
17:58
krawchyk has quit [Quit: krawchyk]
18:00
hd1 has left #ruby [#ruby]
18:00
tdy has joined #ruby
18:04
suukim has quit [Quit: Konversation terminated!]
18:04
krawchyk has joined #ruby
18:13
greengriminal has joined #ruby
18:17
thexa4 has joined #ruby
18:18
fphilipe has quit [Ping timeout: 268 seconds]
18:21
openCircuit__ has joined #ruby
18:24
sauvin has quit [Ping timeout: 268 seconds]
18:25
jrafanie has joined #ruby
18:26
wilbert has quit [Ping timeout: 258 seconds]
18:26
wildtrees has joined #ruby
18:27
Fridtjof has quit [Ping timeout: 245 seconds]
18:27
wildtrees has quit [Max SendQ exceeded]
18:28
wildtrees has joined #ruby
18:39
Fridtjof has joined #ruby
18:46
dionysus69 has quit [Remote host closed the connection]
18:46
dionysus69 has joined #ruby
18:53
wildtrees_ has joined #ruby
18:54
openCircuit__ has quit [Ping timeout: 268 seconds]
18:56
chalkmonster has quit [Quit: WeeChat 2.5]
18:56
wildtrees_ has quit [Max SendQ exceeded]
18:56
wildtrees has quit [Ping timeout: 244 seconds]
18:57
wildtrees_ has joined #ruby
19:00
absolutejam1 has joined #ruby
19:00
openCircuit__ has joined #ruby
19:01
krawchyk has quit [Quit: krawchyk]
19:04
openCircuit__ has quit [Ping timeout: 244 seconds]
19:15
krawchyk has joined #ruby
19:19
baojg has quit [Remote host closed the connection]
19:24
openCircuit__ has joined #ruby
19:25
tdy has quit [Ping timeout: 245 seconds]
19:28
openCircuit__ has quit [Ping timeout: 245 seconds]
19:30
absolutejam1 has quit [Ping timeout: 244 seconds]
19:30
absolutejam2 has joined #ruby
19:32
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
19:39
openCircuit__ has joined #ruby
19:42
greengriminal has quit [Quit: Leaving]
19:43
openCircuit__ has quit [Ping timeout: 245 seconds]
20:05
Jonopoly has quit [Ping timeout: 244 seconds]
20:11
dionysus69 has quit [Ping timeout: 244 seconds]
20:13
_Joes_ has joined #ruby
20:14
leitz has joined #ruby
20:15
fphilipe has joined #ruby
20:18
<
lupine >
it could not read the whole file into memory, for a start
20:18
<
lupine >
you could get rid of the ABC entirely
20:19
<
lupine >
put the requires toplevel rather than in class definition scope
20:19
fphilipe has quit [Ping timeout: 268 seconds]
20:22
howdoi has quit [Quit: Connection closed for inactivity]
20:22
<
leitz >
Hmm...good point on the file size. The ones I'm currently dealing with are short, but that's not a design constraint.
20:23
<
leitz >
I'll work on getting a random line.
20:23
<
leitz >
Not sure what the "ABC" is.
20:23
ramfjord has joined #ruby
20:24
<
leitz >
The requires for sqlite3 is in the subclass, since not all classes need it. Is there a reason to require it in others? There will be other adapters, like JSON and YAML, down the road.
20:28
TomyLobo has joined #ruby
20:28
thexa4 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
20:28
dasher00 has quit [Ping timeout: 245 seconds]
20:30
ur5us has joined #ruby
20:30
schne1der has quit [Ping timeout: 258 seconds]
20:32
yann-kaelig has joined #ruby
20:34
yann-kaelig has quit [Client Quit]
20:35
absolutejam3 has joined #ruby
20:36
absolutejam2 has quit [Ping timeout: 246 seconds]
20:38
<
adam12 >
leitz: You might need to move the require as I'm guessing it's not doing what you want where it currently is. It should probably be in a method block to be lazy eval'd.
20:38
Ven`` has joined #ruby
20:39
<
adam12 >
leitz: Adapter pattern is done a million ways. You could look at some of the better examples, like Tilt.
20:40
<
adam12 >
leitz: I frequently use a registry and a builder to initiate my adapters. Sometimes it doesn't work out great (ie new lazy loading mechanisms such as Zeitwerk) but it's exploratory.
20:40
<
adam12 >
leitz: Code wise, it looks fine and I don't see anything glaringly wrong outside of the require.
20:41
<
leitz >
adam12, I'll go read on Tilt, thanks.
20:42
<
adam12 >
leitz: If you did a lazy require on the adapter, you could move the require of the sqlite dependency toplevel.
20:43
<
adam12 >
leitz: Require can be slow due to the nature of how it works (traversing $LOAD_PATH), which is why I commonly use a registry. Check the registry to see if it's loaded before requiring. Bonus points if you can use a singleton here and not create a bunch of garbage for the GC to collect.
20:44
<
leitz >
Honestly, I'm still at the basics for Ruby. I understand the concept of lazy eval, but not sure how to implement it.
20:44
wildtrees_ has left #ruby ["Leaving"]
20:45
<
leitz >
adam12, ah. So if two different sqlite based objects are created, the first one loads sqlite, and the second one can skip the load, if it knows to?
20:45
<
adam12 >
leitz: A naieve implementation is to not require the files by default, and setup some sort of class methods on a top level class that checks the registry for the requested adapter. If it exists, either do nothing or return an instance of it. If it doesn't exist, perform the require and update the registry with the fact that it was required. Maybe return the instance.
20:48
<
leitz >
So if class DataMine did a lazy require, then sqlite would only get loaded if an instance of the subclass SQLiteDataMine were created?
20:49
<
leitz >
And if the registry were in place, a second instance of a SQLiteDataMine would not traverse the load path since sqlite3 is already loaded.
20:50
ramfjord has quit [Ping timeout: 246 seconds]
20:50
banisterfiend has joined #ruby
20:51
ap4y has joined #ruby
20:51
beanie__ has quit [Ping timeout: 258 seconds]
20:53
<
adam12 >
leitz: Gotta bounce. Good luck.
20:53
Nicmavr has quit [Read error: Connection reset by peer]
20:53
<
leitz >
adam12, thanks!
20:55
Nicmavr has joined #ruby
20:56
NL3limin4t0r is now known as NL3limin4t0r_afk
20:59
openCircuit__ has joined #ruby
21:00
troulouliou_div2 has joined #ruby
21:02
ramfjord has joined #ruby
21:03
openCircuit__ has quit [Ping timeout: 244 seconds]
21:04
AJA4350 has joined #ruby
21:04
banisterfiend has quit [Read error: Connection reset by peer]
21:05
banisterfiend has joined #ruby
21:06
skryking has quit [Quit: WeeChat 2.4]
21:06
Rapture has joined #ruby
21:14
troulouliou_div2 has quit [Remote host closed the connection]
21:25
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:29
bambanx has joined #ruby
21:29
psilly0 has quit [Quit: psilly0]
21:30
psilly0 has joined #ruby
21:36
dr_mdma_md has quit [Quit: Connection closed for inactivity]
21:39
krawchyk has quit [Quit: krawchyk]
21:40
banisterfiend has quit [Read error: Connection reset by peer]
21:40
hiroaki has quit [Ping timeout: 246 seconds]
21:44
john2496 has quit [Remote host closed the connection]
21:46
bambanx has quit [Quit: Leaving]
21:51
banisterfiend has joined #ruby
21:52
psilly0 has quit [Quit: psilly0]
21:54
absolutejam3 has quit [Ping timeout: 245 seconds]
21:55
psilly0 has joined #ruby
22:01
poontangmessiah has joined #ruby
22:06
ramfjord has quit [Ping timeout: 245 seconds]
22:12
psilly0 has quit [Quit: psilly0]
22:13
absolutejam3 has joined #ruby
22:13
psilly0 has joined #ruby
22:15
psilly0 has quit [Client Quit]
22:15
fphilipe has joined #ruby
22:15
_Joes_ has quit [Ping timeout: 245 seconds]
22:16
dbugger has quit [Quit: Leaving]
22:17
dbugger has joined #ruby
22:17
chunkypuffs has joined #ruby
22:17
reber has quit [Remote host closed the connection]
22:18
mkaito_ has quit [Ping timeout: 245 seconds]
22:19
fphilipe has quit [Ping timeout: 245 seconds]
22:19
jhass has quit [Ping timeout: 264 seconds]
22:23
jhass has joined #ruby
22:23
mkaito_ has joined #ruby
22:24
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:24
Ven`` has joined #ruby
22:24
Ven`` has quit [Client Quit]
22:25
absolutejam3 has quit [Ping timeout: 244 seconds]
22:26
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:31
jhass has quit [Ping timeout: 276 seconds]
22:32
<
SeepingN >
he's got a short. look out he's gonna blow
22:32
jhass has joined #ruby
22:40
sameerynho has quit [Ping timeout: 246 seconds]
22:55
Fernando-Basso has joined #ruby
22:57
spacesuitdiver has joined #ruby
23:00
Guest11997 has quit [Ping timeout: 258 seconds]
23:01
involans has quit [Quit: involans]
23:02
involans has joined #ruby
23:02
dviola has joined #ruby
23:09
john2496 has joined #ruby
23:10
john2496_ has joined #ruby
23:14
john2496 has quit [Ping timeout: 246 seconds]
23:14
ramfjord has joined #ruby
23:17
Guest11997 has joined #ruby
23:21
yqt has joined #ruby
23:23
dbugger has quit [Quit: Leaving]
23:27
jrafanie has joined #ruby
23:28
SeepingN has quit [Quit: The system is going down for reboot NOW!]
23:30
oetjenj has joined #ruby
23:34
Azure has quit [Read error: Connection reset by peer]
23:34
emptyflask has joined #ruby
23:35
banister_ has joined #ruby
23:36
banisterfiend has quit [Read error: Connection reset by peer]
23:38
cnsvc has joined #ruby
23:40
banister_ has quit [Ping timeout: 240 seconds]
23:42
john2496_ has quit [Remote host closed the connection]
23:43
cnsvc has quit [Remote host closed the connection]
23:43
cnsvc has joined #ruby
23:47
openCircuit__ has joined #ruby
23:48
jaequery has joined #ruby
23:49
dasher00 has joined #ruby
23:51
openCircuit__ has quit [Ping timeout: 246 seconds]
23:52
lucasb has quit [Quit: Connection closed for inactivity]
23:56
b0nn has quit [Read error: Connection reset by peer]
23:56
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:56
oetjenj has joined #ruby
23:57
b0nn has joined #ruby
23:57
oetjenj has quit [Client Quit]
23:57
oetjenj has joined #ruby
23:58
oetjenj has quit [Client Quit]
23:58
oetjenj has joined #ruby
23:58
oetjenj has quit [Client Quit]
23:59
oetjenj has joined #ruby
23:59
oetjenj has quit [Client Quit]