2 ms·
I only know about it because I do the same thing in dynamic programming languages. In Ruby you can redefine methods at any point, but in my implementation I on
by chrisseaton 10y ago
I only know about it because I do the same thing in dynamic programming languages.
In Ruby you can redefine methods at any point, but in my implementation I only check if they have been redefined once per loop in the program. If another thread wants to redefine a method, it just waits a little while until all the other threads are ready.
This means we can basically ignore the problem of method redefinition - as we only allow it when we are ready and then we can handle it slow-time.