[#103241] [Ruby master Bug#17777] 2.6.7 fails to build on macOS: implicit declaration of function 'rb_native_mutex_destroy' is invalid in C99 — eregontp@...
Issue #17777 has been reported by Eregon (Benoit Daloze).
17 messages
2021/04/05
[#103305] [Ruby master Feature#17785] Allow named parameters to be keywords — marcandre-ruby-core@...
Issue #17785 has been reported by marcandre (Marc-Andre Lafortune).
21 messages
2021/04/08
[#103342] [Ruby master Feature#17790] Have a way to clear a String without resetting its capacity — jean.boussier@...
Issue #17790 has been reported by byroot (Jean Boussier).
14 messages
2021/04/09
[#103388] [ANN] Multi-factor Authentication of bugs.ruby-lang.org — SHIBATA Hiroshi <hsbt@...>
Hello,
5 messages
2021/04/12
[#103414] Re: [ANN] Multi-factor Authentication of bugs.ruby-lang.org
— Martin J. Dürst <duerst@...>
2021/04/13
Is there a way to use this multi-factor authentication for (like me)
[#103547] List of CI sites to check — Martin J. Dürst <duerst@...>
Hello everybody,
4 messages
2021/04/22
[#103596] [Ruby master Feature#17830] Add Integer#previous and Integer#prev — rafasoaresms@...
Issue #17830 has been reported by rafasoares (Rafael Soares).
9 messages
2021/04/26
[ruby-core:103208] Re: [Ruby master Feature#5446] at_fork callback API
From:
Eric Wong <normalperson@...>
Date:
2021-04-04 20:40:48 UTC
List:
ruby-core #103208
eregontp@gmail.com wrote: > > Is there a way to expose Ruby methods/procs as C function pointers with JIT? > > @normalperson That feels very hacky to me. fork() seems hacky now that Ractor exists, and Process.spawn/popen/system use vfork (along with cloexec being the default) > JIT'ing a function which is only called once seems suboptimal > (and difficult to do before it's even called once). > Also some Ruby state likely needs to be restored before > running any `after_fork` hook. Maybe not "JIT", but just-ahead-of-time or on-demand-compiled. Something like "Proc#compile_to_c" returning an Integer pointer. It would be generally useful for Fiddle to pass callbacks implemented in Ruby around, but I agree tricky to get right because Ruby state could be indeterminate when the C function is called... > @byroot I agree, we should at least have `after_fork` (or `at_fork(when, &block)`). For projects where I'm stuck having to fork, I find "prepare" (before_fork) just as useful. I've only used "parent" (after fork), once, however. > Honestly I don't understand why we don't have this yet, it's > obviously needed and every forking webserver out there ends up > having its own hook. With Ractor, perhaps fork() shouldn't be encouraged/promoted, anymore. > And BTW the current workaround of checking pid is slower also > on platforms not supporting `fork`, so it is inefficient for > all platforms and webservers. Agreed. Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>