madsmtm / objc2

Bindings to Apple's frameworks in Rust
https://docs.rs/objc2/
MIT License
349 stars 40 forks source link

Direction of the project #631

Open not-jan opened 3 months ago

not-jan commented 3 months ago

Continued from https://github.com/madsmtm/objc2/issues/345

Sorry for hijacking this issue - I guess it's where my research ended up. My original project was to mess with ScreenCaptureKit, which ended me up at this crate. I've then found out that while ScreenCaptureKit is supported - the actual API I want to use, captureImage, is not. I've noticed that we need CoreGraphics for that which I was able to "somewhat" add until I've encountered that it required Dispatch which ended me up with an error I can't really figure out with my limited MacOS/ObjC experience.

I have a bit of experience with working with LLVM from Rust so actually adding support for CoreGraphics wasn't the hard part. What's kind of hard for me was testing my changes and figuring out in which direction I should be going now. Should I be adding more framework crates using the current header-translator when the Swift mode is being planned?

Same goes for the async issue. Working with callbacks is a huge pain point in my current objc2 experience as it's very verbose. Does it make sense implementing a temporary (?) solution if the codegen backend will be switched in the foreseeable future? I suppose this is the least important issue at the moment.

Does it make sense working on automatic documentation import if header-translator is about to experience a big rewrite?

I do have some time I can spend on this project, but I'd like to spend it on something sustainable.

simlay commented 3 months ago

Does it make sense working on automatic documentation import if header-translator is about to experience a big rewrite?

I tried this with https://github.com/madsmtm/objc2/pull/435. It's been a year since I authored it. I don't recall if I managed to get reasonable documentation. I personally think that automatic documentation generation with header-translator would be super helpful. Feel free to take up from where I left off.

madsmtm commented 3 months ago

Hey @not-jan, thanks for the offer to help out! I'm a bit mentally busy the last few and next few days, and am not really organized to accept help at the moment, but would really like to become so!

Would you be able to do an online meeting over Matrix, Discord, Google Meet, or some other such platform? I'm free at 18:00 UTC Wednesday, 20:00 UTC Thursday, 15:00 UTC Friday or 6:00 to 13:00 UTC Saturday? That might make it easier to talk a few things through, though I realize it's a bit of a big ask / may break some social norms for what's expected on the internet, if you don't feel comfortable doing so, then that's totally fine.

Thinking about it, I'd actually also like to invite @silvanshade and @simlay, I've been wanting to "meet" you people anyway ;)

In any case then I'll try to respond here about my plans for the project in more detail soon.

simlay commented 3 months ago

Would you be able to do an online meeting over Matrix, Discord, Google Meet, or some other such platform? I'm free at 18:00 UTC Wednesday, 20:00 UTC Thursday, 15:00 UTC Friday or 6:00 to 13:00 UTC Saturday? I've been wanting to "meet" you people anyway ;)

Sure!

Wednesdays at 18 UTC, Thursdays at 20 UTC or Fridays at 15 UTC are amenable to me. I tend to be doing non-computer stuff on the weekends but can make an exception if that's better for everyone. I'm simlay#3120 on discord, @simlay on matrix and firstname.lastname at gmail if google meet is suggested.

silvanshade commented 3 months ago

Sure I could do an online meeting.

I'm UTC-6 but those times are generally fine for me. If on Saturday, I could probably do UTC 12.

I'm silvanshade on discord, @ darinmorrison:matrix.org, or same firstnamelastname at gmail.

not-jan commented 3 months ago

Hi, I'm not sure I'll be able to make a meeting on the weekend but just getting in a chat together would probably already be beneficial :p I've created a room with @silvanshade and @simlay on Matrix. I'm @jan:chaos.jetzt on Matrix, DM me your handle or post it here and I'll add you as well @madsmtm

jan commented 3 months ago

@not-jan so we finally meet.