GithubHelp home page GithubHelp logo

Comments (5)

iainctduncan avatar iainctduncan commented on June 13, 2024

Hi, yes it definitely needs warning cleanup! Thanks for working on this. I would be happy to cut the main version over to your fork if you manage to clean it up and get it building better. When I started the project my C chops were very rusty, and the SDK was not using the new build system, so there is lots of cruft.

Regarding the defer calls: that is the function call to defer the message to the low thread. I guess you have a different error threshold on your compiler than I was working with. I don't have capacity to dig into this at the moment, but I suspect that all is needed is for it each of those to be changed to a call to defer and then a void return. The reason all of those exist is to support having the external run in only one thread - those calls put scheduler thread messages on to the main thread queue. It's not elegant but seems to work properly.

When you get your fork doing what you'd like please let me know so I can help you test it! There is an automated test patch too.

from scheme-for-max.

iainctduncan avatar iainctduncan commented on June 13, 2024

Here is the relevant docs page: https://cycling74.com/sdk/max-sdk-7.3.3/group__threading.html#gaa24a0c9896f1ad241e45590065c3f643

I see that defer is actually returning a void pointer rather than void, that must be the root of my error! Perhaps a cast on those is all that is required?

from scheme-for-max.

shakfu avatar shakfu commented on June 13, 2024

Hi Iain

Glad to help as much as I can.

To that end, I've managed to fix the errors referred to above in my last commit and brought down the warnings from 399 to 327, but the result remains untested. The rest of the warnings are somewhat application specific and so require your attention. I've dumped them to a file and they are attached below:

warnings.txt.zip

from scheme-for-max.

iainctduncan avatar iainctduncan commented on June 13, 2024

Hi Shakeeb, most of the warnings, in case you feel inclined to chip away at more, are just cast issues. I started originally copying the s7 docs which eliminated the verbose casts. So you can see some places where I have them and others (most) don't, typically for going back and forth from the s7_pointer type to max's types, or C types.

It is also probably now at the size where header declarations should have gone in their own file!

Would it make sense for you to move your work to a branch on the main repo so we can test and merge more easily? I'm happy to add you as a commiter.

from scheme-for-max.

shakfu avatar shakfu commented on June 13, 2024

Hi Iain

Would it make sense for you to move your work to a branch on the main repo so we can test and merge more easily? I'm happy to add you as a commiter.

Thank Iain. Feel free to copy the current fork to a branch on your main repo. I'd love to help more but outside of my day job, I'm in the middle of a repo spring clean which is leaving me with little spare bandwidth right now.

from scheme-for-max.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.