[#101179] Spectre Mitigations — Amel <amel.smajic@...>
Hi there!
5 messages
2020/12/01
[#101180] Re: Spectre Mitigations
— Chris Seaton <chris@...>
2020/12/01
I wouldn’t recommend using Ruby to run in-process untrusted code in the first place. Are people doing that?
[#101694] Ruby 3.0.0 Released — "NARUSE, Yui" <naruse@...>
We are pleased to announce the release of Ruby 3.0.0. From 2015 we
4 messages
2020/12/25
[ruby-core:101524] [Ruby master Feature#17404] Ractor `move:` API to allow shareability check
From:
ko1@...
Date:
2020-12-18 21:10:42 UTC
List:
ruby-core #101524
Issue #17404 has been updated by ko1 (Koichi Sasada). marcandre (Marc-Andre Lafortune) wrote in #note-2: > ko1 (Koichi Sasada) wrote in #note-1: > > `#send_ref(message)` and raise an error if message is not a sharable? > > There would be an easy way to deep-copy or deep-move an object, right? If you mean that the default should be `pass: :share`, then that seems fine by me. not sure what you mean. I mean: ```ruby def send_ref(obj) raise unless Ractor.shareable?(obj) send(obj) end ``` > We have to consider impact for passing arguments to `Ractor.new(...)`. Right now these are copied; would it also raise if the arguments are not shareable? Would you add `pass:` option there too (see #17286)? I guess it is different topic. ---------------------------------------- Feature #17404: Ractor `move:` API to allow shareability check https://bugs.ruby-lang.org/issues/17404#change-89309 * Author: marcandre (Marc-Andre Lafortune) * Status: Open * Priority: Normal * Assignee: ko1 (Koichi Sasada) ---------------------------------------- I'd like to `ractor.send(message)` and express that `message` should be shareable. Currently I'm given two choices: `move: true` and `move: false` / nothing, neither of which have an effect if my `message` is shareable, and neither of which will tell me in case there's a bug in my program and `message` is not shareable. Could we consider a slightly different API (for 3.0 or 3.1)? ```ruby ractor.send(message, pass: :copy) # => like current `move: false` ractor.send(message, pass: :move) # => like current `move: true` ractor.send(message, pass: :share) # => raise in case message is not shareable ractor.send(message) # => same as `pass: :copy` ``` -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>