00:18
aesthetikx has quit [Ping timeout: 240 seconds]
00:22
ruby-eval has quit [Remote host closed the connection]
00:23
ruby-eval has joined #ruby
00:25
roadie has joined #ruby
00:25
pvalenta_ has quit [Ping timeout: 246 seconds]
00:26
pvalenta has joined #ruby
00:35
roadie has quit [Ping timeout: 248 seconds]
00:37
ruby-eval has quit [Remote host closed the connection]
00:38
ruby-eval has joined #ruby
00:43
ruby-eval has quit [Quit: lol]
00:44
ruby-eval has joined #ruby
00:46
ruby-eval has quit [Remote host closed the connection]
00:46
ruby-eval has joined #ruby
00:46
ruby-eval has quit [Client Quit]
00:47
ruby-eval has joined #ruby
00:47
ruby-eval has quit [Client Quit]
00:49
ruby-eval has joined #ruby
00:49
ruby-eval has quit [Client Quit]
00:49
ruby-eval has joined #ruby
00:49
ruby-eval has quit [Remote host closed the connection]
00:51
ruby-eval has joined #ruby
01:02
roadie has joined #ruby
01:12
roadie has quit [Ping timeout: 248 seconds]
01:36
shokohsc9 has joined #ruby
01:37
shokohsc has quit [Ping timeout: 256 seconds]
01:38
shokohsc9 is now known as shokohsc
01:38
roadie has joined #ruby
01:41
hansolo has quit [Remote host closed the connection]
01:48
roadie has quit [Ping timeout: 248 seconds]
01:56
<
mooff >
now we have endless methods, is it time for endless defless methods?
01:56
<
mooff >
uppercase(str) = str.upcase
02:05
lena64t has quit [Remote host closed the connection]
02:05
lena64t has joined #ruby
02:10
shokohsc9 has joined #ruby
02:11
sickdyd has joined #ruby
02:11
shokohsc has quit [Ping timeout: 268 seconds]
02:11
shokohsc9 is now known as shokohsc
02:15
roadie has joined #ruby
02:25
roadie has quit [Ping timeout: 248 seconds]
02:30
<
johnjaye >
mooff: run what now on a dreamcast?
02:31
Guest92 has joined #ruby
02:41
Guest92 has quit [Quit: Client closed]
02:52
roadie has joined #ruby
03:02
roadie has quit [Ping timeout: 248 seconds]
03:08
optimi has joined #ruby
03:12
dalan0382 has quit [Quit: dalan0382]
03:13
dalan0382 has joined #ruby
03:25
ur5us has joined #ruby
03:29
roadie has joined #ruby
03:36
optimi has quit [Ping timeout: 240 seconds]
03:39
roadie has quit [Ping timeout: 248 seconds]
03:50
roadie has joined #ruby
03:54
roadie has quit [Ping timeout: 248 seconds]
04:00
<
havenwood >
isene: You can cache compiled intermediary representation (YARB) to memory disk, like Bootsnap does with Rails by default.
04:02
<
havenwood >
It can save about 30% of execution time, depending.
04:03
<
havenwood >
Languages like Elixir build the feature in. Ruby has the functionality, so projects like Rails can utilize it, but it's not built into RubyGems.
04:04
<
havenwood >
I think it'd be a good idea for RubyGems to compile automatically on install and use that YARB unless the SHA changes.
04:05
<
havenwood >
Better yet would be to compile all `ruby` scripts.
04:06
<
havenwood >
Currently, the best way to get ruby to run quickly is `--disable-gems`, since loading RubyGems is pretty heavy.
04:07
roadie has joined #ruby
04:17
Linux_Kerio has joined #ruby
04:18
roadie has quit [Ping timeout: 248 seconds]
04:23
grenierm has joined #ruby
04:30
ur5us has quit [Ping timeout: 250 seconds]
04:45
roadie has joined #ruby
04:49
muzzle41 has joined #ruby
04:54
ur5us has joined #ruby
04:54
roadie has quit [Ping timeout: 248 seconds]
05:00
roadie has joined #ruby
05:00
muzzle41 has quit [Ping timeout: 268 seconds]
05:05
roadie has quit [Ping timeout: 248 seconds]
05:21
roadie has joined #ruby
05:31
roadie has quit [Ping timeout: 248 seconds]
05:48
roadie has joined #ruby
06:10
ur5us has quit [Ping timeout: 240 seconds]
06:17
allott has joined #ruby
06:46
infinityfye has joined #ruby
07:12
crespire1 has joined #ruby
07:12
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
07:37
ur5us has joined #ruby
07:53
invent has joined #ruby
07:55
Shell has joined #ruby
07:55
allott has quit [Ping timeout: 268 seconds]
07:58
hindsi77 has joined #ruby
08:01
invent has quit [Ping timeout: 268 seconds]
08:03
hindsi77 has quit [Ping timeout: 240 seconds]
08:28
ur5us has quit [Ping timeout: 250 seconds]
08:34
Linux_Kerio has quit [Ping timeout: 240 seconds]
08:35
jvalleroy has joined #ruby
08:53
___nick___ has joined #ruby
08:56
ur5us has joined #ruby
09:00
_ht has joined #ruby
09:09
<
isene >
Can that be done from inside the script (rsh or rtfm in this case)?
09:22
comeli89 has joined #ruby
09:25
lena64t1 has joined #ruby
09:27
grenierm has quit [Ping timeout: 245 seconds]
09:28
lena64t has quit [Ping timeout: 240 seconds]
09:33
___nick___ has joined #ruby
09:35
___nick___ has quit [Client Quit]
09:35
comeli89 has quit [Ping timeout: 268 seconds]
09:35
madprops has left #ruby [Leaving]
09:37
___nick___ has joined #ruby
09:53
polishdub has quit [Ping timeout: 240 seconds]
10:05
sickdyd has quit [Ping timeout: 240 seconds]
10:05
polishdub has joined #ruby
10:36
ur5us has quit [Ping timeout: 240 seconds]
10:48
sickdyd has joined #ruby
10:59
sickdyd has quit [Ping timeout: 265 seconds]
11:11
sickdyd has joined #ruby
11:47
roadie has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.91)]
12:21
perrierjouet has quit [Quit: WeeChat 3.8]
12:39
johnjaye has quit [Ping timeout: 265 seconds]
12:41
johnjaye has joined #ruby
12:53
Linux_Kerio has joined #ruby
13:02
blackmetal has joined #ruby
13:11
joto has joined #ruby
13:21
gr33n7007h has quit [Ping timeout: 240 seconds]
13:21
tomtmym has joined #ruby
13:21
tomtmym has quit [Changing host]
13:21
tomtmym has joined #ruby
13:23
gr33n7007h has joined #ruby
13:29
gr33n7007h has quit [Ping timeout: 264 seconds]
13:29
gr33n7007h has joined #ruby
13:48
TomyLobo has joined #ruby
13:56
gemmaro has joined #ruby
14:01
perrierjouet has joined #ruby
14:05
blackmetal has quit [Quit: Lost terminal]
14:09
shokohsc5 has joined #ruby
14:09
shokohsc has quit [Ping timeout: 240 seconds]
14:09
shokohsc5 is now known as shokohsc
14:37
rvalue has joined #ruby
14:59
gemmaro has quit [Remote host closed the connection]
15:27
tomtmym has quit [Quit: Gone.]
15:30
tomtmym has joined #ruby
15:30
tomtmym has joined #ruby
15:30
tomtmym has quit [Changing host]
15:40
ruby-eval has quit [Excess Flood]
15:41
ruby-eval has joined #ruby
15:52
hansolo has joined #ruby
16:40
Linux_Kerio has quit [Ping timeout: 240 seconds]
16:54
szkl has quit [Quit: Connection closed for inactivity]
16:57
gr33n7007h has quit [Ping timeout: 240 seconds]
16:59
gr33n7007h has joined #ruby
17:58
roadie has joined #ruby
18:14
aesthetikx has joined #ruby
18:23
<
aesthetikx >
Does ruby have an equivalent of rust's &str, e.g. the ability to create multiple 'slices' of a shared string without copying each time?
18:24
<
aesthetikx >
e.g. if I have x = "somestring".freeze and then later y = x[3..4], is that copying bytes to a new string if y is not subsequently mutated?
18:27
<
mooff >
good question
18:31
<
johnjaye >
yes i agree as well. good question.
18:46
Linux_Kerio has joined #ruby
18:52
nmollerup has quit [Ping timeout: 265 seconds]
18:54
<
aesthetikx >
I know perl recently added this, I didn't think ruby did. I have some rust program that I wrote that is pretty efficient, that I want to port to ruby because rust is so painful
18:55
<
aesthetikx >
the bulk of the program is comparing tons of substrings from a file to a known string, which doesn't seem like a very ruby optimal task
18:55
<
aesthetikx >
performance is not that important, but would be nice.
18:55
<
aesthetikx >
nice to at least do it properly, anyway, even if the overall runtime is worse
18:56
nmollerup has joined #ruby
18:57
nmollerup has quit [Remote host closed the connection]
18:58
nmollerup has joined #ruby
18:59
nmollerup has quit [Remote host closed the connection]
18:59
nmollerup has joined #ruby
19:15
<
mooff >
aesthetikx: try making a 500MB string, freezing it, then taking a subslice
19:15
<
mooff >
then check the memory use of the interpreter
19:45
<
aesthetikx >
it does appear to use more memory, based on my quick test
19:58
<
mooff >
i think there are String methods to check regex from a given offset
19:58
<
mooff >
at least something like that rings a bell
20:04
___nick___ has quit [Ping timeout: 240 seconds]
20:22
A_Dragon has quit [Killed (Stx (*Kiss of death*))]
20:22
A_Dragon has joined #ruby
20:23
_ht has quit [Quit: _ht]
20:34
tomtmym has quit [Quit: Gone.]
20:38
johnjaye has quit [Ping timeout: 240 seconds]
20:39
Linux_Kerio has quit [Ping timeout: 256 seconds]
20:41
johnjaye has joined #ruby
21:01
Sankalp- has joined #ruby
21:01
Sankalp has quit [Ping timeout: 264 seconds]
21:01
Sankalp- is now known as Sankalp
21:15
infinityfye has quit [Quit: Leaving]
21:20
roadie has quit [Ping timeout: 248 seconds]
21:31
ur5us has joined #ruby
21:46
roadie has joined #ruby
22:00
ruby[bot] has quit [Remote host closed the connection]
22:00
ruby[bot] has joined #ruby
22:03
pantin has joined #ruby
22:05
roadie has quit [Ping timeout: 248 seconds]
22:09
lena64t2 has joined #ruby
22:11
lena64t1 has quit [Ping timeout: 240 seconds]
22:31
roadie has joined #ruby
22:34
pantin has quit [Ping timeout: 268 seconds]
22:39
SunClonus has joined #ruby
22:39
SunClonus has quit [Read error: Connection reset by peer]
22:39
roadie has quit [Ping timeout: 248 seconds]
22:56
creeds has joined #ruby
23:02
french77 has joined #ruby
23:03
creeds has quit [Ping timeout: 256 seconds]
23:05
roadie has joined #ruby
23:16
roadie has quit [Ping timeout: 248 seconds]
23:42
roadie has joined #ruby
23:46
philos33 has joined #ruby
23:49
french77 has quit [Ping timeout: 268 seconds]
23:51
heathe62 has joined #ruby
23:53
roadie has quit [Ping timeout: 248 seconds]
23:54
philos33 has quit [Ping timeout: 268 seconds]
23:59
heathe62 has quit [Ping timeout: 264 seconds]