towo_ has quit [Quit: I am the vanguard of your destruction. This exchange is over.]
towo has joined #ruby
ur5us_ has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
<TrufflePump>
Is there a ractor tutorial? I'm trying to build a pipeline and trying to close the output when the input is closed, but without dropping anything along the way. Currently I'm catching my read fail and doing Ractor.current.close_outgoing which cascades to the next. But unclaimed outgoing messages can't be read after this.
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
<TrufflePump>
havenwood: Thanks.
Xeago has joined #ruby
TrufflePump has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 260 seconds]
dinfuehr_ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
gix has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Xeago has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
miojo has quit [Ping timeout: 256 seconds]
TrufflePump has joined #ruby
Xeago has joined #ruby
TrufflePump has quit [Ping timeout: 256 seconds]
duderonomy has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
TCZ has quit [Quit: Czesc]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
TrufflePump has joined #ruby
s3nd1v0g1us has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bsdbandit-01 has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
TrufflePump has quit [Ping timeout: 265 seconds]
Swyper has quit [Remote host closed the connection]
bsdbandit-01 has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
baojg has joined #ruby
Xeago has joined #ruby
MalkbabY has joined #ruby
work_ has quit [Quit: Connection closed for inactivity]
bsdbandit-01 has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
s3nd1v0g1us has joined #ruby
robs has quit [Quit: Ping timeout (120 seconds)]
robs has joined #ruby
TorpedoSkyline has joined #ruby
mozzarella has joined #ruby
Technodrome has joined #ruby
maroloccio has joined #ruby
TorpedoSkyline has quit [Ping timeout: 264 seconds]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Ping timeout: 256 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robs has quit [Read error: Connection reset by peer]
robs has joined #ruby
jenrzzz has joined #ruby
gearnode has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
bsdbandit-01 has joined #ruby
Rudd0 has quit [Ping timeout: 245 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
Swyper has quit [Remote host closed the connection]
TrufflePump has joined #ruby
GodFather has quit [Remote host closed the connection]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
TrufflePump has quit [Ping timeout: 265 seconds]
TorpedoSkyline has joined #ruby
TrufflePump has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
m27frogy has quit [Ping timeout: 245 seconds]
TorpedoSkyline has quit [Ping timeout: 260 seconds]
Rudd0 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
ChmEarl has quit [Quit: Leaving]
Xeago has quit [Ping timeout: 256 seconds]
ur5us_ has quit [Ping timeout: 258 seconds]
Xeago has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
dinfuehr has quit [Ping timeout: 245 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has joined #ruby
StarOnD has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
bsdbandit-01 has joined #ruby
dinfuehr has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
akem has quit [Quit: leaving]
Rounin has joined #ruby
akem has joined #ruby
akem has quit [Client Quit]
Furai has quit [Quit: WeeChat 3.1]
Furai has joined #ruby
_whitelogger_ has joined #ruby
jenrzzz has joined #ruby
al2o3-cr has quit [Quit: WeeChat 3.1]
akem__ has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
akem has joined #ruby
jenrzzz has joined #ruby
maroloccio has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 258 seconds]
maroloccio_ has joined #ruby
roadie has joined #ruby
akem has quit [Quit: leaving]
baojg has quit [Remote host closed the connection]
akem has joined #ruby
baojg has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 272 seconds]
kaivai has quit [Ping timeout: 265 seconds]
kaivai has joined #ruby
Swyper_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
jmcgnh has quit [Ping timeout: 256 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
Inoperable has quit [Quit: All your buffer are belong to us!]
Inoperable has quit [Quit: All your buffer are belong to us!]
kenichi_ has joined #ruby
User4588 has quit [Ping timeout: 244 seconds]
User4588 has joined #ruby
StarOnD has quit [Ping timeout: 240 seconds]
klaas_ has joined #ruby
kenichi has quit [Ping timeout: 258 seconds]
klaas has quit [Ping timeout: 258 seconds]
s3nd1v0g1us has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jmcgnh has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
cd has quit [Quit: cd]
hahuang65 has joined #ruby
Inoperable has joined #ruby
hahuang65 has quit [Max SendQ exceeded]
hahuang65 has joined #ruby
hahuang65 has quit [Max SendQ exceeded]
hahuang65 has joined #ruby
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
MalkbabY has quit [Remote host closed the connection]
naftilos76 has joined #ruby
MalkbabY has joined #ruby
StarOnD has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
<akem>
Hey, is there a simple command line tool to compile simple ruby code(no external libs or gem) to executable binary on linux? I've seen ruby2exe and allinoneruby, but they are gems and it looks weird<
jenrzzz has joined #ruby
<akem>
Or maybe ruby2C translator would be good.
jenrzzz has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ruby
momoruby has joined #ruby
postmodern has joined #ruby
split-brain has joined #ruby
momoruby has quit [Ping timeout: 256 seconds]
momoruby has joined #ruby
hiroaki has joined #ruby
gearnode has joined #ruby
ur5us_ has joined #ruby
momoruby has quit [Ping timeout: 256 seconds]
maroloccio_ has joined #ruby
momoruby has joined #ruby
roadie has quit [Remote host closed the connection]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
Nahra` has joined #ruby
Nahra has quit [Quit: leaving]
Nahra` has quit [Remote host closed the connection]
Nahra has joined #ruby
stryek has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
skryking has quit [Quit: Konversation terminated!]
<akem>
I wonder why ruby is so slow, for loading a text file of 2000 lines, modifying newlines, like inserting \r\n at each lines and displaying it, it takes 10 times more than the C version.
<akem>
Without doing anything fancy.
<akem>
Maybe 'Turbo Ruby' would be a good idea, like there was 'Turbo C' and all back in the days ;P
elcuervo has quit [Read error: Connection reset by peer]
<adam12>
akem: Hard to say without comparables.
vondruch has quit [Quit: vondruch]
<adam12>
akem: Ruby is probably doing more tho. ie. Garbage Collection.
vondruch has joined #ruby
TCZ has quit [Quit: Czesc]
<akem>
adam12: yeah...and maybe untyped variables when moving/copying memory..
elcuervo has joined #ruby
<adam12>
akem: All those strings in Ruby are objects too; not just small allocations of memory. So there are some tradeoffs naturally.
roadie has joined #ruby
<adam12>
I think there’s some ways to bypass it, but just turning off the GC for that block might be OK if you know you’re not going to be memory constrained.
<akem>
adam12: Yeah. Much bigger, and side logic 'in background' for the object oriented model.
<akem>
But my ruby to C test doesn't work good, even if i'm not using libs etc, some ruby 'nodes' are not implemented, and it bugged out. Only work for very simple ruby code.
roadie has quit [Ping timeout: 272 seconds]
BTRE has quit [Ping timeout: 256 seconds]
bsdbandit-01 has joined #ruby
BTRE has joined #ruby
<akem>
Looks like i was wrong, my last test is very fast, there must be something weird going on in my other program.
bsdbandit-01 has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
<akem>
I got an array a=[]; and it is filling it by using a += [1]; for 30000 times that takes so long.
<adam12>
That makes sense in some ways, since the Array has to be re-allocated every X times to fit more elements.
<akem>
adam12: But using a.append(1) is instant! just try both methods it's crazy.
<adam12>
Oooh! I see
<adam12>
You’re re-assigning with +=, and mutating with .append
<adam12>
When you re-assign, you’re creating a new Array each time, with the elements of the previous + the new one.
<akem>
Yeah, i didn't know, i always favor operators instead of methods when i can, looks like i shouldn't :P
<adam12>
It likely depends, since << is probably just as fast as append.
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
<akem>
I never use << but now i fixed my problem completly! it's as fast as the C version ;P You know i was looking for a compiler because of that, i thought it was because the object language etc, you ruby is known to be slower than others.
<akem>
+know
ChmEarl has joined #ruby
tabakhase__ has joined #ruby
tabakhase has quit [Ping timeout: 240 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
shtirlic has joined #ruby
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
roadie has joined #ruby
shtirlic has quit [Remote host closed the connection]
shtirlic has joined #ruby
bsdbandit-01 has joined #ruby
shtirlic has quit [Remote host closed the connection]
bsdbandit-01 has quit [Read error: Connection reset by peer]
moldorcoder7 has quit [Read error: Connection reset by peer]
moldorcoder7 has joined #ruby
shtirlic has joined #ruby
Swyper has quit [Remote host closed the connection]
TCZ is now known as Elif
Elif is now known as TCZ
akem has quit [Ping timeout: 240 seconds]
akem has joined #ruby
momoruby has quit [Quit: Lost terminal]
lockweel has joined #ruby
GodFather has joined #ruby
spectra has quit [Ping timeout: 272 seconds]
momoruby has joined #ruby
<momoruby>
hi
<momoruby>
I am working with REXML
bsdbandit-01 has joined #ruby
<momoruby>
If I handle an Element (<head>text</head>) I tried Element.name to get "head" and Element.text to get "text"
<momoruby>
so Element.name gives me a weird datatype back and not "head" as I would expect.
jenrzzz has joined #ruby
hassox has quit [Ping timeout: 272 seconds]
bsdbandit-01 has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
hassox has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
<adam12>
momoruby: Can you make something reproducible? Your example is hard to follow.
jenrzzz has quit [Ping timeout: 264 seconds]
akem has quit [Ping timeout: 265 seconds]
cd has joined #ruby
<adam12>
momoruby: My guess is that you’re calling `name` on something that’s not a `REXML::Element` instance. Maybe try guarding against that and see if I’m right. raise “#{node} is not an Element, but a #{node.class}” unless node.is_a?(REXML::Element)
<adam12>
Unless you expect other element types of course. I’m not familar with REXML
akem has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
TorpedoSkyline has quit [Ping timeout: 264 seconds]
Swyper has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has joined #ruby
k4yl42008 has joined #ruby
Technodrome has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
TomyWork has joined #ruby
bsdbandit-01 has joined #ruby
cyberarm has quit [Ping timeout: 268 seconds]
TCZ has quit [Quit: Czesc]
bsdbandit-01 has quit [Read error: Connection reset by peer]
salvor has quit [Ping timeout: 264 seconds]
cyberarm has joined #ruby
salvor has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
jeromelanteri has joined #ruby
akem has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
akem has joined #ruby
momoruby has quit [Ping timeout: 256 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
s3nd1v0g1us has joined #ruby
TomyWork has quit [Quit: Leaving]
greengriminal has joined #ruby
duderonomy has joined #ruby
cow[moo] has joined #ruby
postmodern has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
greengriminal has quit [Quit: Leaving]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
wallacer has quit [Ping timeout: 244 seconds]
bsdbandit-01 has joined #ruby
Swyper has quit [Remote host closed the connection]
bsdbandit-01 has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
<TrufflePump>
How do you multithread within a Ractor? Can I use Ractor.receive/Ractor.yield directly, like a queue, or do I need an actual queue in there? I ask because I'm getting some unexpected nil messages after a multithreaded Ractor.
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
wallacer has joined #ruby
wallacer has quit [Max SendQ exceeded]
wallacer has joined #ruby
wallacer has quit [Max SendQ exceeded]
bsdbandit-01 has joined #ruby
wallacer has joined #ruby
wallacer has quit [Max SendQ exceeded]
wallacer has joined #ruby
wallacer has quit [Max SendQ exceeded]
wallacer has joined #ruby
wallacer has quit [Max SendQ exceeded]
wallacer has joined #ruby
wallacer has quit [Max SendQ exceeded]
bsdbandit-01 has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
tabakhase__ is now known as tabakhase
tabakhase has quit [Changing host]
tabakhase has joined #ruby
<havenwood>
TrufflePump: Doing it for fun or need parallel processing?
<havenwood>
TrufflePump: Share your code?
<havenwood>
TrufflePump: Use Async with Fibers for concurrent I/O or Ractors for parallel computation. You can use Queues and Threads with Ractors, but don't necessarily need to and they're experimental and prone to errors at the moment.
<ruby[bot]>
TrufflePump: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
split-br_ has joined #ruby
split-brain has quit [Ping timeout: 256 seconds]
Rudd0 has quit [Ping timeout: 264 seconds]
work_ has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roadie has joined #ruby
s3nd1v0g1us is now known as patr0clus
akem has quit [Ping timeout: 268 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
ShekharReddy has joined #ruby
Technodrome has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
akem has joined #ruby
split-br_ has quit [Remote host closed the connection]
<Synthead>
If I have a class called MyClass, and it's nested, i.e. This::Is::Where::Iam::Putting::MyClass, what would you call the "chain"? A class path? Namespace? Class chain?
<havenwood>
Synthead: Yeah, "namespace."
<leftylink>
hmm... I would call that the fully-qualified name
jenrzzz has joined #ruby
<havenwood>
Synthead: Like you'd say something like "finding a constant in the parent namespace using lexical scope."
<havenwood>
- Ruby Under a Microscope
niv has joined #ruby
work_ has quit [Quit: Connection closed for inactivity]
niv has quit [Client Quit]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
TorpedoSkyline has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
niv has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
niv has quit [Client Quit]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
niv has joined #ruby
niv has quit [Read error: Connection reset by peer]
niv has joined #ruby
niv has quit [Client Quit]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
gearnode has joined #ruby
niv has joined #ruby
Rounin has quit [Ping timeout: 265 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
stryek has quit [Quit: Connection closed for inactivity]
cow[moo] has joined #ruby
lockweel has quit [Quit: Leaving]
Axy has joined #ruby
Axy has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Mia has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
RougeR has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeR has quit [Remote host closed the connection]