General

Profile

dsferreira (Daniel Ferreira)

  • Login: dsferreira
  • Registered on: 05/18/2014
  • Last sign in: 08/10/2018

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 3 5 8

Activity

08/14/2018

09:00 AM Ruby Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
normalperson@yhbt.net wrote:
> I am thinking of adding preemption support to this feature for
compatibility with 1.8
non-preemptive vs preemptive.
coroutines are non-preemptive.
threads are preemptive.
Are we talking about havi...
dsferreira (Daniel Ferreira)

05/18/2018

08:19 AM Ruby Feature #14758: Add a first-class support for isolated bounded packages / modules / contexts
grzesiek (Grzegorz Bizon) wrote:
> I guess that this is usually a bad idea, but it depends on what you are using your tests for. When I have to develop a complex module I usually follow TDD because TDD is a design tool for me, not a t...
dsferreira (Daniel Ferreira)

05/15/2018

10:38 AM Ruby Feature #14758: Add a first-class support for isolated bounded packages / modules / contexts
Hi Robert,
I agree that we should not change current ruby behaviour.
I see the proposal as an extra functionality not a behaviour change.
Regarding allowing ruby hackers to do all they want:
* Ruby allows developers to find their...
dsferreira (Daniel Ferreira)
08:37 AM Ruby Feature #14758: Add a first-class support for isolated bounded packages / modules / contexts
Sorry. I just corrected the typo:
`private_constant :Foo`
should read:
`private_constant :Bar`
dsferreira (Daniel Ferreira)
08:33 AM Ruby Feature #14758: Add a first-class support for isolated bounded packages / modules / contexts
Hi Grzegorz,
My proposal regarding the implementation of Internal Interfaces (internal access modifier) https://bugs.ruby-lang.org/issues/9992
was pondered when thinking around those terms but applies to internal classes/modules that...
dsferreira (Daniel Ferreira)

03/09/2018

07:18 AM Ruby Bug #14541: Class variables have broken semantics, let's fix them
shevegen (Robert A. Heiler) wrote:
> A bit similar to the doc that explains the "Symbol versus String" situation that has been added recently.
Can you please paste here the link to the “Symbol versus String” doc?
dsferreira (Daniel Ferreira)

03/04/2018

11:33 PM Ruby Feature #4824: Provide method Kernel#executed?
phluid61 (Matthew Kerwin) wrote:
> For what it's worth, I think __main__ is best, or main?
I would agree with `main` in the following way:
```ruby
# Kernel#main method to be overridden and only run if __FILE__ == $0
def main
...
dsferreira (Daniel Ferreira)
11:26 PM Ruby Feature #4824: Provide method Kernel#executed?
graywolf (Gray Wolf) wrote:
> Exactly, and the condition is: was this file directly executed?.
We have two different contexts:
* File context (FILE#executed?) - Was the file executed?
* Code context (`Kernel#executable?`) - Is...
dsferreira (Daniel Ferreira)
11:12 PM Ruby Feature #4824: Provide method Kernel#executed?
graywolf (Gray Wolf) wrote:
> So Kernel#executable? tells me that something is able to be executed, not that
it was in fact executed.
Correct, `Kernel#executable?` infers if the code is able to be executed.
Usually when we use
...
dsferreira (Daniel Ferreira)
04:45 PM Ruby Feature #4824: Provide method Kernel#executed?
Why not:
```ruby
Kernel#executable?
# => true if FILE == $0
```
meaning: Is the file good to be executed?
dsferreira (Daniel Ferreira)

Also available in: Atom