BernardK

BernardK

Programming Ruby 3.2 (5th Edition): B1.0 page 203, sentences difficult to understand

@noelrappin

page 203, first paragraph, line 2-3 :

ractor. The entrance lines are infinite, and the sending call is guaranteed not to block
for “if this goes wrong you have much larger problems” meanings of “guaranteed.”

I have read again and again and don’t really understood. For what I have experimented until now, I would be satisfied with :

The entrance lines are infinite, and the sending call is guaranteed not to block.

+++++ paragraph 5, last line :

… … … … … … … … … … … … … … … … … … The only
way to get a value into a ractor is via send.

I can imagine “get” as obtaining that a new value is introduced into the ractor, but combined with the following “into” and “send”, I would feel more natural to say set :

The only way to set a value into a ractor is via send.

+++++ paragraph 7, second bullet :

The code block hits a Ractor.recieve call, in which case it waits for a call to send, the

Not clear at first glance. I would say :

in which case it waits for another ractor calling send with this [known] ractor as a receiver, …

known is not indispensable, just to echo the first line of this page.

First Post!

noelrappin

noelrappin

Author of Modern Front-End Development for Rails

The sending call is not quite guaranteed not to block, but if it doesn’t block, you almost certainly have bigger problems.

Hmm… how about “The only way to have a value be visible to a ractor is via send.”

How about "in which case it waits to receive another call to send

Popular Pragmatic topics Top

kuroneko
Whilst the author has been careful to provide exact results for the tests elsewhere in the book (such as surds with the transformation te...
New
iPaul
page 37 ANTLRInputStream input = new ANTLRInputStream(is); as of ANTLR 4 .8 should be: CharStream stream = CharStreams.fromStream(i...
New
HarryDeveloper
Hi @venkats, It has been mentioned in the description of ‘Supervisory Job’ title that 2 things as mentioned below result in the same eff...
New
rmurray10127
Title: Intuitive Python: docker run… denied error (page 2) Attempted to run the docker command in both CLI and Powershell PS C:\Users\r...
New
patoncrispy
I’m new to Rust and am using this book to learn more as well as to feed my interest in game dev. I’ve just finished the flappy dragon exa...
New
jskubick
I’m under the impression that when the reader gets to page 136 (“View Data with the Database Inspector”), the code SHOULD be able to buil...
New
nicoatridge
Hi, I have just acquired Michael Fazio’s “Kotlin and Android Development” to learn about game programming for Android. I have a game in p...
New
akraut
The markup used to display the uploaded image results in a Phoenix.LiveView.HTMLTokenizer.ParseError error. lib/pento_web/live/product_l...
New
jonmac
The allprojects block listed on page 245 produces the following error when syncing gradle: “org.gradle.api.GradleScriptException: A prob...
New
Keton
When running the program in chapter 8, “Implementing Combat”, the printout Health before attack was never printed so I assumed something ...
New

Other popular topics Top

AstonJ
What chair do you have while working… and why? Is there a ‘best’ type of chair or working position for developers?
New
wolf4earth
@AstonJ prompted me to open this topic after I mentioned in the lockdown thread how I started to do a lot more for my fitness. https://f...
New
New
AstonJ
In case anyone else is wondering why Ruby 3 doesn’t show when you do asdf list-all ruby :man_facepalming: do this first: asdf plugin-upd...
New
PragmaticBookshelf
A Hero’s Journey with Chris Pine @chrispine Chris Pine, author of Learn to Program, Third Edition, discusses his journey to beco...
New
AstonJ
Saw this on TikTok of all places! :lol: Anyone heard of them before? Lite:
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
New
AstonJ
Was just curious to see if any were around, found this one: I got 51/100: Not sure if it was meant to buy I am sure at times the b...
New
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New

Latest in PragProg

View all threads ❯