00:00
TCZ has quit [Quit: Leaving]
00:00
fluxAeon has quit [Ping timeout: 240 seconds]
00:02
fluxAeon has joined #ruby
00:04
cschneid_ has quit [Ping timeout: 256 seconds]
00:04
cschneid has joined #ruby
00:04
GodFather has quit [Ping timeout: 258 seconds]
00:11
Exuma has joined #ruby
00:18
noboruma has quit [Remote host closed the connection]
00:36
vondruch has quit [Remote host closed the connection]
00:37
vondruch has joined #ruby
00:44
millerti has quit [Ping timeout: 256 seconds]
00:53
tabakhase has joined #ruby
00:55
TCZ has joined #ruby
01:12
LDonoughe has joined #ruby
01:13
sphex has quit [Ping timeout: 260 seconds]
01:15
sphex has joined #ruby
01:30
Exuma has joined #ruby
01:37
pandakekok9 has joined #ruby
01:41
troulouliou_dev has joined #ruby
01:43
troulouliou_dev has quit [Remote host closed the connection]
01:43
ellcs has quit [Ping timeout: 240 seconds]
01:47
drincruz_ has joined #ruby
01:52
drincruz_ has quit [Ping timeout: 256 seconds]
01:57
m27frogy has joined #ruby
01:59
ellcs has joined #ruby
01:59
ellcs has quit [Max SendQ exceeded]
02:00
ellcs has joined #ruby
02:00
ellcs has quit [Max SendQ exceeded]
02:00
ellcs has joined #ruby
02:07
ellcs has quit [Ping timeout: 240 seconds]
02:11
cschneid_ has joined #ruby
02:12
cschneid has quit [Ping timeout: 265 seconds]
02:18
ellcs has joined #ruby
02:18
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:23
iNs has joined #ruby
02:23
iNs_ has quit [Remote host closed the connection]
02:29
ur5us has joined #ruby
02:37
LDonoughe has quit [Ping timeout: 256 seconds]
02:38
TomyLobo has quit [Read error: Connection reset by peer]
02:39
LDonoughe has joined #ruby
02:44
Exuma has joined #ruby
02:49
ellcs has quit [Ping timeout: 240 seconds]
02:50
LDonoughe has quit [Ping timeout: 264 seconds]
02:57
ur5us has quit [Ping timeout: 256 seconds]
02:58
ChmEarl has quit [Quit: Leaving]
03:00
ChmEarl has joined #ruby
03:02
cd has quit [Quit: cd]
03:03
ellcs has joined #ruby
03:03
TCZ has quit [Quit: Leaving]
03:04
TCZ has joined #ruby
03:09
alfiemax has joined #ruby
03:14
ChmEarl has quit [Quit: Leaving]
03:14
alfiemax has quit [Ping timeout: 256 seconds]
03:14
TCZ has quit [Quit: Leaving]
03:16
havenwood has joined #ruby
03:23
LDonoughe has joined #ruby
03:25
havenwood has joined #ruby
03:28
LDonoughe has quit [Ping timeout: 264 seconds]
03:40
Esa_ has quit [Ping timeout: 256 seconds]
03:57
ellcs has quit [Ping timeout: 256 seconds]
04:05
braincrash has quit [Quit: bye bye]
04:10
braincrash has joined #ruby
04:11
tpanarch1st has quit [Ping timeout: 265 seconds]
04:14
ellcs has joined #ruby
04:16
LDonoughe has joined #ruby
04:19
cschneid has joined #ruby
04:19
cschneid_ has quit [Ping timeout: 240 seconds]
04:21
LDonoughe has quit [Ping timeout: 250 seconds]
04:29
gdonald has quit [Ping timeout: 256 seconds]
04:32
cthu| has quit [Ping timeout: 250 seconds]
04:47
gix has joined #ruby
04:49
zcserei has joined #ruby
04:49
<
zcserei >
Hi there!
04:49
<
zcserei >
I'm trying to access a private method from another private method in the same class but it doesn't seem to work.
04:50
<
zcserei >
Is this normal behaviour or am I overlooking something?
04:56
zcserei has quit [Remote host closed the connection]
05:08
<
leftylink >
ah too bad
05:08
<
leftylink >
could have answered
05:14
regreg_ has joined #ruby
05:17
regreg has quit [Ping timeout: 256 seconds]
05:32
alfiemax has joined #ruby
05:32
kinduff has quit [Read error: Connection reset by peer]
05:32
bvdw has quit [Read error: Connection reset by peer]
05:33
kinduff has joined #ruby
05:33
bvdw has joined #ruby
05:36
alfiemax has quit [Ping timeout: 250 seconds]
05:48
sergioro has quit [Read error: Connection reset by peer]
05:49
sergioro has joined #ruby
05:50
sauvin has joined #ruby
05:54
howdoi has quit [Quit: Connection closed for inactivity]
05:56
jmcgnh has quit [Read error: Connection reset by peer]
05:59
jmcgnh has joined #ruby
06:00
cliluw has quit [Remote host closed the connection]
06:00
cliluw has joined #ruby
06:06
cliluw has quit [Ping timeout: 256 seconds]
06:06
cliluw has joined #ruby
06:11
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:22
donofrio has quit [Remote host closed the connection]
06:25
cschneid_ has joined #ruby
06:26
cschneid has quit [Ping timeout: 256 seconds]
07:03
gix has quit [Ping timeout: 250 seconds]
07:13
Jonopoly has joined #ruby
07:15
kyrylo has joined #ruby
07:18
arcaos has quit [Read error: Connection reset by peer]
07:19
arcaos has joined #ruby
07:20
ur5us has joined #ruby
07:30
schne1der has joined #ruby
07:34
xco has joined #ruby
07:34
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
07:39
kevinburke has quit [Quit: Connection closed for inactivity]
07:39
xco has quit [Client Quit]
07:39
jetchisel has joined #ruby
07:40
schne1der has quit [Ping timeout: 256 seconds]
07:41
vondruch has quit [Quit: vondruch]
07:41
vondruch has joined #ruby
07:44
ur5us has quit [Quit: Leaving]
07:44
roadie has joined #ruby
07:49
ropeney has quit [Ping timeout: 240 seconds]
07:52
xco has joined #ruby
07:56
ropeney has joined #ruby
08:00
sergioro has quit [Quit: leaving]
08:14
Jonopoly has quit [Quit: WeeChat 2.5]
08:22
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:23
SeepingN has quit [Quit: The system is going down for reboot NOW!]
08:24
arahael2 has quit [Ping timeout: 252 seconds]
08:24
xco has joined #ruby
08:25
ur5us has joined #ruby
08:26
<
xco >
morning havenwood, do you know if any good resource on Ruby and encoding?
08:31
alexherbo2 has joined #ruby
08:32
ur5us has quit [Ping timeout: 240 seconds]
08:33
cschneid_ has quit [Ping timeout: 264 seconds]
08:33
cschneid has joined #ruby
08:51
arahael2 has joined #ruby
09:02
dionysus69 has joined #ruby
09:06
alexherbo23 has joined #ruby
09:07
alexherbo2 has quit [Read error: Connection reset by peer]
09:07
MrCrackPot has joined #ruby
09:09
code_zombie_ has quit [Quit: Leaving]
09:10
alexherbo2 has joined #ruby
09:11
alexherbo23 has quit [Ping timeout: 256 seconds]
09:11
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:12
cschneid has joined #ruby
09:12
MrCrackPot has quit [Client Quit]
09:16
vondruch has quit [Quit: vondruch]
09:17
vondruch has joined #ruby
09:30
pandakekok9 has quit [Ping timeout: 265 seconds]
09:34
markopasha has joined #ruby
09:41
pandakekok9 has joined #ruby
09:42
kinduff has quit [Read error: Connection reset by peer]
09:43
chalkmonster has joined #ruby
09:43
kinduff has joined #ruby
09:51
vondruch has quit [Ping timeout: 258 seconds]
09:53
alexherbo2 has quit [Ping timeout: 265 seconds]
09:58
conta has joined #ruby
10:06
gdonald has joined #ruby
10:09
conta has quit [Quit: conta]
10:10
sagax has quit [Read error: Connection reset by peer]
10:19
cd has joined #ruby
10:19
sagax has joined #ruby
10:24
markopasha has quit [Remote host closed the connection]
10:25
markopasha has joined #ruby
10:31
vondruch has joined #ruby
10:33
yelloB has joined #ruby
10:41
yelloB has quit [Remote host closed the connection]
10:42
<
madduck >
Hey, I don't know ruby, but am in need to write some code for Puppet to do the following: recursively scan a directory for files called "data.txt", and add the content of each file to a hash indexed by the path. Shouldn't be hard, but I have no idea how to even start ;)
10:43
yelloB has joined #ruby
10:43
yelloB has quit [Remote host closed the connection]
10:43
<
madduck >
Dir.glob? Find.find?
10:44
<
leftylink >
oh. I was about to suggest Dir.glob. I didn't know Find.find exists.
10:44
<
leftylink >
thank you for teaching me about it
10:45
SCHAPiE has joined #ruby
10:48
<
leftylink >
interesting interface Find.find has... (the prune is what I mean)
10:48
<
madduck >
i suppose it mimics posix find
10:48
xco has joined #ruby
10:52
<
madduck >
ruby -e 'h={}; Dir.glob("output/**/fullchain.pem") { |f| h[File.basename(File.dirname(f))] = File.read(f) }'
10:53
<
madduck >
suggestions of improvement are very welcome!
10:56
<
leftylink >
I see that it would be possible to use Enumerable#to_h with block, but I have not been convinced that using it would be an improvement
10:59
<
madduck >
how would that work? I have no idea what you're talking about ;)
11:00
<
leftylink >
it would work as &ri Enumerable#to_h specifies it does.
11:00
<
leftylink >
&ri Enumerable#to_h
11:01
<
madduck >
okay, i understand. not as expressive though
11:03
silviu24 has quit [Read error: Connection reset by peer]
11:13
Sina has joined #ruby
11:14
drincruz_ has joined #ruby
11:18
cschneid has quit [Ping timeout: 258 seconds]
11:18
drincruz_ has quit [Ping timeout: 256 seconds]
11:19
cschneid has joined #ruby
11:32
bvdw has quit [Read error: Connection reset by peer]
11:33
bvdw has joined #ruby
11:47
hassox has joined #ruby
11:52
hassox has quit [Ping timeout: 265 seconds]
11:52
gix has joined #ruby
11:57
romanlevin4 has joined #ruby
11:59
romanlevin has quit [Ping timeout: 264 seconds]
12:00
romanlevin4 is now known as romanlevin
12:05
Vaevictu1 has joined #ruby
12:06
Vaevictu1 has left #ruby [#ruby]
12:17
alfiemax has joined #ruby
12:26
legit has joined #ruby
12:34
<
havenwood >
xco: The best resource on Ruby and encoding is apeiros!
12:35
canton7 has joined #ruby
12:35
<
havenwood >
xco: I don't know a great Ruby-specific source, but I'd love to hear about it if you find one.
12:36
<
xco >
i've found a few through google
12:36
<
xco >
only a couple are Ruby specific, rest general
12:37
<
xco >
oh these look good, google didn't show me these
12:38
TCZ has joined #ruby
12:40
<
havenwood >
madduck: Find.find('output') do |path|
12:41
<
havenwood >
madduck: It's particularly nice if you want to "prune" certain paths, where there are dirs you don't need to look in.
12:42
jingjinghack has joined #ruby
13:06
<
siery >
Is there a 'magic variable' in ruby to refer to array length?
13:07
GodFather has joined #ruby
13:07
<
havenwood >
siery: You can ask an Array its size. What would a magic variable look like?
13:07
<
havenwood >
siery: [].size #=> 0
13:10
<
siery >
ya, I mean like in perl you can just use array name like: `arr[arr]`
13:12
dionysus69 has quit [Ping timeout: 265 seconds]
13:12
<
havenwood >
siery: I don't follow. The last index is -1 or you can do an endless Range.
13:12
<
havenwood >
siery: arr[0..-1]
13:13
<
havenwood >
siery: arr[0..]
13:13
<
havenwood >
siery: Those are the same ^
13:13
<
havenwood >
siery: arr.size # To lazily get the size.
13:14
<
havenwood >
siery: #size tends to be lazily sized up front and #count tends to actually count.
13:20
<
siery >
what doe't it mean that something is lazily in ruby? c:
13:20
<
siery >
lake lazely .map.. o.0
13:21
<
havenwood >
siery: That the size is known up front and doesn't actually need to be counted.
13:21
<
havenwood >
siery: There're lazy Enumerators too, but that's a different thing.
13:23
<
siery >
hmm, so it's more efficient to use size in stead of length?
13:24
alfiemax has quit [Ping timeout: 265 seconds]
13:24
<
havenwood >
siery: More efficient in terms of typing, but it's an alias. :P
13:24
<
havenwood >
siery: Or at least it tends to be an alias for #size.
13:26
<
havenwood >
siery: By convention, #count is different from #size and #length. I see #size and #count used most often.
13:26
cschneid has quit [Ping timeout: 256 seconds]
13:26
cschneid has joined #ruby
13:27
<
siery >
hm.. ya, cound is mmore complex in definition
13:27
cliluw has quit [Ping timeout: 240 seconds]
13:29
alfiemax has joined #ruby
13:30
oneeggeach has joined #ruby
13:31
<
al2o3-cr >
&>> [String, Array, Hash, Range].each { _1.module_eval { define_method(:~@) { size } } }; [~"abc", ~[1,2,3], ~{a:1, b:2, c:3}, ~(1..3)]
13:32
<
al2o3-cr >
i like this ;)
13:34
alfiemax has quit [Ping timeout: 250 seconds]
13:37
<
al2o3-cr >
i should of used alias ~@ size, ah nvm
13:38
NODE has quit [Quit: changing servers]
13:39
NODE has joined #ruby
13:39
alexherbo2 has joined #ruby
13:41
alfiemax has joined #ruby
13:43
pandakekok9 has quit [Quit: good night]
13:48
roadie has quit [Ping timeout: 260 seconds]
13:48
hassox has joined #ruby
13:49
roadie has joined #ruby
13:51
nyuszika7h has joined #ruby
13:53
hassox has quit [Ping timeout: 256 seconds]
13:55
brendan- has quit [Ping timeout: 256 seconds]
13:57
<
havenwood >
al2o3-cr: And a refinement!
13:58
brendan- has joined #ruby
13:59
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
14:01
roadie has joined #ruby
14:03
<
al2o3-cr >
havenwood: yes, let me refactor. :)
14:04
<
al2o3-cr >
havenwood: beautiful :P
14:04
<
al2o3-cr >
i don't know why i always forget about refinements.
14:04
<
havenwood >
al2o3-cr: beauty is my middle name. Shannon Corey Beauty Petree Skipper.
14:05
<
havenwood >
al2o3-cr: They're nice, huh? I don't see them used as much as I'd like to.
14:05
<
al2o3-cr >
havenwood: really?
14:06
<
al2o3-cr >
havenwood: yeah, i like refinements.
14:06
<
havenwood >
al2o3-cr: All but the Beauty is true. I've been thinking about names since I wanted to add "Danger" to our daughter's name, Andromeda "Danger" Quinn Skipper.
14:07
alfiemax has quit [Ping timeout: 256 seconds]
14:07
<
al2o3-cr >
where did petree come from?
14:07
<
havenwood >
Then again, I like "SkyCaptain" so...
14:07
<
havenwood >
al2o3-cr: My mother's mother's maiden name.
14:09
oneeggea_ has joined #ruby
14:10
GodFather has quit [Ping timeout: 265 seconds]
14:10
<
havenwood >
al2o3-cr: I was Baby Boy Skipper for a year.
14:10
<
havenwood >
al2o3-cr: My parents refused to name me. Naming things is hard.
14:12
<
havenwood >
At least no off-by-one error I know of.
14:12
<
al2o3-cr >
haha, that reminds me i had a cat called ct cat with the a
14:12
oneeggeach has quit [Ping timeout: 240 seconds]
14:12
<
havenwood >
ct.scan
14:13
<
al2o3-cr >
i was going to be named michael or lee
14:15
<
al2o3-cr >
i'm the only one who doesn't have a middle name.
14:15
<
havenwood >
al2o3-cr: I think they're superfluous.
14:16
<
al2o3-cr >
yes, to an extent. generally older generations don't have them, this generation can have quite a few.
14:17
jingjinghack has quit [Quit: WeeChat 2.1]
14:17
coniptor has quit [Quit: ]
14:19
<
al2o3-cr >
havenwood: oh, while you here can you test something for me about arc4random_buf if your not busy. (i'm to lazy to set up a VM)
14:19
<
havenwood >
al2o3-cr: sure, which OS?
14:23
<
al2o3-cr >
havenwood: try this in irb/pry but keep it open.
14:24
<
al2o3-cr >
buf = Fiddle::Pointer.malloc(64); f = Fiddle::Function.new(Fiddle::Handle::DEFAULT['arc4random_buf'], [TYPE_VOIDP, TYPE_SIZE_T], TYPE_VOID); f.(buf, buf.size); buf.to_str
14:25
<
havenwood >
al2o3-cr: #!> NameError (uninitialized constant TYPE_VOIDP)
14:26
<
al2o3-cr >
havenwood: buf = Fiddle::Pointer.malloc(64); f = Fiddle::Function.new(Fiddle::Handle::DEFAULT['arc4random_buf'], [1, -5], 0); f.(buf, buf.size); buf.to_str
14:27
<
havenwood >
al2o3-cr: #=> `bytes`
14:27
<
havenwood >
al2o3-cr: 64 of them.
14:27
<
al2o3-cr >
havenwood: ok, that's good. now call Fiddle.free(buf) twice
14:28
<
havenwood >
al2o3-cr: #=> nil #=> nil
14:28
<
al2o3-cr >
hmm. now ctrl+d
14:28
<
havenwood >
al2o3-cr: prompt
14:30
<
al2o3-cr >
i thought that should aborted with `free(): double free detected in tcache 2`
14:33
<
al2o3-cr >
havenwood: does this abort: buf = Fiddle::Pointer.malloc(64); 2.times { Fiddle.free(buf) }
14:34
sphex has quit [Ping timeout: 264 seconds]
14:34
<
havenwood >
al2o3-cr: Nope.
14:35
<
al2o3-cr >
that's very strange.
14:36
sphex has joined #ruby
14:40
oneeggea_ has quit [Quit: Leaving...]
14:41
<
al2o3-cr >
i think i'll just use Random.urandom
14:42
davispuh has joined #ruby
14:43
DTZUZU has joined #ruby
14:45
DTZUZU2 has quit [Ping timeout: 265 seconds]
14:56
NODE has quit [Quit: changing servers]
14:57
drincruz_ has joined #ruby
14:58
NODE has joined #ruby
14:59
GodFather has joined #ruby
15:06
brendan- has quit [Ping timeout: 256 seconds]
15:07
GGMethos has joined #ruby
15:11
Azure has quit [Read error: Connection reset by peer]
15:11
brendan- has joined #ruby
15:11
Azure|dc has joined #ruby
15:11
NODE has quit [Remote host closed the connection]
15:12
NODE has joined #ruby
15:14
Tungki has joined #ruby
15:18
dionysus69 has joined #ruby
15:18
dasher00 has joined #ruby
15:19
schne1der has joined #ruby
15:20
TCZ has quit [Quit: Leaving]
15:30
DTZUZU has quit [Ping timeout: 250 seconds]
15:34
cschneid_ has joined #ruby
15:34
johnny56 has quit [Ping timeout: 240 seconds]
15:34
cschneid has quit [Ping timeout: 250 seconds]
15:37
DTZUZU has joined #ruby
15:39
Frobozz has joined #ruby
15:39
johnny56 has joined #ruby
15:49
chalkmonster has quit [Quit: WeeChat 2.7.1]
15:49
hassox has joined #ruby
15:53
hassox has quit [Ping timeout: 240 seconds]
15:54
fluxAeon has quit [Ping timeout: 256 seconds]
15:57
drincruz_ has quit [Ping timeout: 256 seconds]
16:00
ChmEarl has joined #ruby
16:01
alfiemax has joined #ruby
16:02
lineus has quit [Remote host closed the connection]
16:03
lineus has joined #ruby
16:06
TCZ has joined #ruby
16:10
akz has joined #ruby
16:10
Frobozz has quit [Quit: quit]
16:13
alfiemax has quit [Ping timeout: 240 seconds]
16:21
LDonoughe has joined #ruby
16:26
LDonoughe has quit [Ping timeout: 264 seconds]
16:26
romanlevin has quit [Remote host closed the connection]
16:27
romanlevin has joined #ruby
16:41
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:41
brendan- has quit [Ping timeout: 265 seconds]
16:42
lineus_ has joined #ruby
16:44
brendan- has joined #ruby
16:44
lineus has quit [Ping timeout: 240 seconds]
16:55
Tempesta has quit [Quit: See ya!]
16:58
oneeggeach has joined #ruby
16:59
oneeggea_ has joined #ruby
17:02
oneeggeach has quit [Ping timeout: 256 seconds]
17:03
sergioro has joined #ruby
17:14
KeyJoo has joined #ruby
17:23
TCZ has quit [Quit: Leaving]
17:24
sergioro has quit [Quit: leaving]
17:24
sergioro has joined #ruby
17:32
bvdw has quit [Read error: Connection reset by peer]
17:33
bvdw has joined #ruby
17:33
Tempesta has joined #ruby
17:38
jmcgnh has quit [Read error: Connection reset by peer]
17:41
cschneid has joined #ruby
17:42
cschneid_ has quit [Ping timeout: 250 seconds]
17:43
oneeggea_ has quit [Quit: Leaving...]
17:44
jmcgnh has joined #ruby
17:50
kinduff has quit [Quit: Ping timeout (120 seconds)]
17:55
Arkantos has joined #ruby
17:55
tpanarch1st has joined #ruby
17:57
markopasha has quit [Remote host closed the connection]
17:58
markopasha has joined #ruby
18:00
kinduff has joined #ruby
18:01
arcaos has quit [Remote host closed the connection]
18:02
oneeggeach has joined #ruby
18:08
chalkmonster has joined #ruby
18:13
oneeggeach has quit [Quit: Leaving...]
18:14
alexherbo2 has quit [Ping timeout: 265 seconds]
18:14
chalkmonster has quit [Quit: WeeChat 2.7.1]
18:22
henninb has joined #ruby
18:22
henninb has quit [Client Quit]
18:23
sergioro has quit [Quit: leaving]
18:26
orbyt_ has joined #ruby
18:27
jmcgnh has quit [Ping timeout: 250 seconds]
18:29
jmcgnh has joined #ruby
18:29
coniptor has joined #ruby
18:38
chalkmonster has joined #ruby
18:45
LDonoughe has joined #ruby
18:46
Azure|dc has quit [Read error: Connection reset by peer]
18:47
Azure has joined #ruby
18:49
alfiemax has joined #ruby
18:49
alfiemax has quit [Remote host closed the connection]
18:50
alfiemax has joined #ruby
18:51
sergioro has joined #ruby
18:53
NODE has quit [Quit: changing servers]
18:54
NODE has joined #ruby
18:55
alfiemax has quit [Ping timeout: 256 seconds]
18:56
davispuh has quit [Ping timeout: 240 seconds]
18:59
oneeggeach has joined #ruby
18:59
oneeggeach has quit [Client Quit]
18:59
davispuh has joined #ruby
19:04
davispuh has quit [Client Quit]
19:07
davispuh has joined #ruby
19:12
noboruma has joined #ruby
19:16
roadie has quit [Ping timeout: 258 seconds]
19:17
markopasha has quit [Remote host closed the connection]
19:19
markopasha has joined #ruby
19:19
markopasha has quit [Max SendQ exceeded]
19:21
markopasha has joined #ruby
19:23
noboruma has quit [Remote host closed the connection]
19:23
dasher00 has quit [Ping timeout: 240 seconds]
19:25
dasher00 has joined #ruby
19:26
chalkmonster has quit [Quit: WeeChat 2.7.1]
19:31
xco has joined #ruby
19:31
paraxial has joined #ruby
19:45
<
xco >
"🦁".codepoints => [129409]
19:45
<
xco >
"🇺🇸".codepoints => [127482, 127480]
19:46
akz has quit [Quit: Leaving]
19:46
<
xco >
will i be right in saying the lion is NOT a grapheme cluster, the US flag is? since it has 2 codepoints?
19:46
oneeggeach has joined #ruby
19:46
SeepingN has joined #ruby
19:48
cschneid_ has joined #ruby
19:48
cschneid has quit [Ping timeout: 264 seconds]
19:54
<
al2o3-cr >
&>> "\u{1f1f9}\u{1f1ed}" the best flag ;)
19:54
<
rubydoc >
stderr: -e:4: syntax error, unexpected local variable or method, expecting `end'... check link for more (
https://carc.in/#/r/8sas )
19:54
<
al2o3-cr >
&>> "\u{1f1f9}\u{1f1ed}" # the best flag ;)
19:55
<
al2o3-cr >
well the food hehe
20:02
brendan- has quit [Ping timeout: 240 seconds]
20:08
<
akem >
It doesn't display the same in gnome-terminal for the flags.
20:09
<
akem >
And doesn't display at all in urxvt :P
20:09
<
akem >
Anyway, that's funny.
20:10
alfiemax has joined #ruby
20:12
alexherbo2 has joined #ruby
20:13
brendan- has joined #ruby
20:14
Arkantos has quit [Ping timeout: 256 seconds]
20:15
alfiemax has quit [Ping timeout: 258 seconds]
20:16
oneeggeach has quit [Remote host closed the connection]
20:17
oneeggeach has joined #ruby
20:19
LDonoughe has quit [Ping timeout: 265 seconds]
20:19
<
havenwood >
xco: Grapheme clusters are "user-perceived characters," so they're both clusters even if single-code-point ones.
20:20
<
havenwood >
xco: "X" is a grapheme cluster too, afaik.
20:20
<
havenwood >
&>> "xco".grapheme_clusters
20:20
<
havenwood >
xco: It's just a newish addition to Ruby. It's what one should use in place of #chars these days.
20:21
<
havenwood >
&>> "🇺🇸".chars # xco
20:21
<
havenwood >
&>> "🇺🇸".grapheme_clusters # xco
20:22
oneeggeach has quit [Ping timeout: 256 seconds]
20:25
<
xco >
al2o3-cr i didn't get your comments :D
20:25
<
xco >
al2o3-cr not sure what you want to tell me :P
20:25
<
al2o3-cr >
it's the thai flag
20:26
<
xco >
al2o3-cr yes i know.... you just posted for the fun of it or wanted to show me something hahah?
20:27
<
al2o3-cr >
just for fun. you know how bored i am lol ;)
20:27
Tungki has quit [Remote host closed the connection]
20:28
lucasb has joined #ruby
20:29
<
akem >
al2o3-cr, Yeah. :)
20:29
<
al2o3-cr >
akem: :P
20:29
<
xco >
havenwood i'm getting confused look:
20:29
<
xco >
A grapheme is a sequence of one or more code points that are displayed as a single, graphical unit that a reader recognizes as a single element of the writing system.
20:30
<
xco >
if the above is right, then why border bring up "grapheme cluster"
20:30
<
xco >
instead of just saying "grapheme"
20:30
<
xco >
would could mean the char has >= 1 codepoints?
20:30
<
xco >
what's the point!?!
20:31
_phaul has quit [Ping timeout: 256 seconds]
20:31
<
havenwood >
xco: Elixir, for example has String.graphemes/1 but Matz wanted to spell it out as #grapheme_clusters.
20:31
<
havenwood >
xco: Matz left it open to alias #graphemes later, but didn't want to do it for now.
20:31
<
havenwood >
xco: Matz felt "grapheme clusters" was the full, proper name.
20:32
<
havenwood >
xco: A cluster appears to the reader as a single unit. "Grapheme clusters" is the same as saying "graphemes."
20:32
<
xco >
havenwood well good job Matz, cause now you confused the shit out of me :P
20:33
<
havenwood >
xco: Think of #grapheme_clusters as what you mean by "characters."
20:33
<
xco >
> A cluster appears to the reader as a single unit. "Grapheme clusters" is the same as saying "graphemes." 👏 nice and easy
20:33
<
havenwood >
xco: The #chars method actually shows codepoints. :P
20:33
<
al2o3-cr >
Grapheme cluster. a cluster of code points that form a grapheme.
20:33
<
xco >
havenwood any reference i could get from how Matz decided to call it "graphem_clusters?
20:34
<
al2o3-cr >
matz is right.
20:34
<
havenwood >
xco: I show Elixir's graphemes and clusters functions in that ^ issue too.
20:35
<
havenwood >
&>> "🇺🇸🇦🇫".chars
20:35
_phaul has joined #ruby
20:36
<
xco >
havenwood thank you
20:36
<
havenwood >
xco: Ruby's String#chars is like Elixir's String.codepoints/1 and String#grapheme_clusters is like String.graphemes/1.
20:36
<
havenwood >
xco: you're welcome
20:37
<
xco >
the naming trips me up. but with the Elixir reference everything makes sense
20:37
<
xco >
i'll just map Ruby names to Elixir's meanings hahahha
20:44
brendan- has quit [Ping timeout: 240 seconds]
20:44
oneeggeach has joined #ruby
20:46
Jonopoly has joined #ruby
20:49
brendan- has joined #ruby
20:54
banisterfiend has joined #ruby
20:56
LDonoughe has joined #ruby
20:58
brendan- has quit [Ping timeout: 256 seconds]
20:59
dionysus69 has quit [Ping timeout: 256 seconds]
21:00
ellcs has quit [Remote host closed the connection]
21:00
LDonoughe has quit [Ping timeout: 265 seconds]
21:01
chalkmonster has joined #ruby
21:04
ellcs has joined #ruby
21:21
code_zombie has joined #ruby
21:24
orbyt_ has joined #ruby
21:29
oneeggeach has quit [Quit: Leaving...]
21:36
LDonoughe has joined #ruby
21:38
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:39
chalkmonster has quit [Quit: WeeChat 2.7.1]
21:39
jmcgnh has quit [Read error: Connection reset by peer]
21:40
banisterfiend has joined #ruby
21:40
LDonoughe has quit [Ping timeout: 258 seconds]
21:43
jmcgnh has joined #ruby
21:56
cschneid has joined #ruby
21:56
cschneid_ has quit [Ping timeout: 265 seconds]
21:58
oneeggeach has joined #ruby
21:59
oneeggeach has quit [Client Quit]
22:11
cd has quit [Quit: cd]
22:13
lunarkitty has joined #ruby
22:15
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:19
CalimeroTeknik has quit [Max SendQ exceeded]
22:23
CalimeroTeknik has joined #ruby
22:26
<
lunarkitty >
Why did python become so popular instead of ruby? I mean ruby isn't unpopular, it's still top 10~15 depending on who you ask, but python is very hyped now. Ruby imo is much nicer to work with than python and all of the popular DS libs pythong has seem to just be c bindings, which could easily be brought to ruby
22:26
wildtrees has joined #ruby
22:27
wildtrees has quit [Client Quit]
22:28
<
lunarkitty >
I just did kind of a round trip looking at different web frameworks and don't really see why ruby is falling behind there either, there really isn't anything you can't do with ruby webserver wise, and it's a lot more concise usually to create apis in the big ruby frameworks compared to other techs I've looked at
22:28
<
lunarkitty >
And then there's opal for client side
22:28
banisterfiend has joined #ruby
22:29
<
lunarkitty >
Speed was used as an argument against using ruby when node was on the hype train, but now everyone is going to python, which is about the same speed as ruby pfft
22:35
alfiemax has joined #ruby
22:39
alfiemax has quit [Ping timeout: 240 seconds]
22:43
<
sergioro >
ruby is a great language for web development that's why so many arguably successful startups use ruby (github, stripe, etc). i know python is used for AI research.
22:45
sergioro has quit [Quit: leaving]
22:46
sergioro has joined #ruby
22:50
LDonoughe has joined #ruby
22:53
alexherbo2 has quit [Ping timeout: 264 seconds]
22:53
ur5us has joined #ruby
22:53
regreg_ has quit [Ping timeout: 256 seconds]
22:57
Fire-Dragon-DoL has quit [Ping timeout: 272 seconds]
23:03
Fire-Dragon-DoL has joined #ruby
23:04
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:05
drincruz_ has joined #ruby
23:09
Jonopoly has quit [Quit: WeeChat 2.5]
23:19
Seich has quit [Remote host closed the connection]
23:23
TCZ has joined #ruby
23:25
drincruz_ has quit [Ping timeout: 264 seconds]
23:33
TCZ is now known as jealousy
23:39
Seich has joined #ruby
23:40
xorl has joined #ruby
23:40
drincruz_ has joined #ruby
23:40
LDonoughe has quit [Ping timeout: 265 seconds]
23:44
ur5us has quit [Ping timeout: 240 seconds]
23:57
jealousy has quit [Quit: Leaving]