Steven Sheldon

Results 52 comments of Steven Sheldon

I've been trying to mimic how clang does codegen for selectors. If you, say, call the `hash` method on an object it generates: ``` asm .section __TEXT,__objc_methname,cstring_literals L_OBJC_METH_VAR_NAME_: ## @OBJC_METH_VAR_NAME_...

Ooh interesting, good find with `#[link_section]`. I think it might not matter whether the strings are inside the `__objc_methname` section, I can't find any reference to it being read in...

@kvark is it certain methods being called in a tight loop that are causing a problem for gfx-backend-metal? If you can identify the methods, you could avoid this by registering...

I was never able to successfully static link a selector :/ @mystor were you seeing success with the macro crate you posted? I never got around to trying it myself.

Unfortunately not, the compiler doesn't seem to be able to tell what we mean by that cast. Gives an error like: ``` error[E0277]: the trait bound `extern "C" fn(_): declare::MethodImplementation`...

@quadrupleslap ... huh, that's very weird. I was able to repro with this error message: ``` error[E0277]: the trait bound `for extern "C" fn(&'r mut objc::runtime::Object, objc::runtime::Sel, &'s mut objc::runtime::Object):...

@madsmtm would it help anything if we stopped trying to have `&`/`&mut` references to `Object`? I've been thinking that in practice it's probably never truly safe to have a Rust...

I've become disillusioned that much of this is meaningful/valuable. Originally I was really frustrated by Objective-C's lack of safety and I thought Rust could provide a much safer way to...

Hey @madsmtm! I don't feel that any of the open PRs currently merit the undertaking of users updating to a new breaking version of objc. But for example, I think...

@Josh015 regarding a lack of updates to this crate over the last 2 years: are there any issues or bugs you would've liked to see addressed?