Giter Club home page Giter Club logo

Comments (6)

9214 avatar 9214 commented on August 19, 2024

Change of a single line is not enough, as there are other usages of handle! in the source code, nor does it solve the actual problem.

Red/System rightfully warns you and rejects such macro redefinition (that's the reason of compilation error - there's a type mismatch in library call, because old definition is still being used), as it's a ticking bomb that may cause serious trouble, e.g. Red runtime relies on handle! pretty heavily, esp. in OS APIs.

Anyway, this code is not maintained for a long time and serves only as a PoC, you shouldn't use it as-is for your project. Red itself will likely have ZeroMQ port in the future.

from code.

Intey avatar Intey commented on August 19, 2024

Yes, i understood that it's not nice fix.
And i'm ok with that not maintained - i too just playing with red (try to implement IPython kernel with red).
It's ok, to change handle! definition to something another name or remove it?

from code.

9214 avatar 9214 commented on August 19, 2024

@Oldes ☝️

from code.

Oldes avatar Oldes commented on August 19, 2024

@Intey what if you just remove this line?

#define handle! byte-ptr!

Apparently there was no handle! used in Red's runtime when I was working with it.

from code.

Oldes avatar Oldes commented on August 19, 2024

As in the source is handle! used mostly instead of void *, it should be ok.

from code.

Intey avatar Intey commented on August 19, 2024

@Oldes I think about this. But I meet nice idea of name types explicit. Something like context-ptr! like with socket-ptr!. I prepare PR to show this

Sent with GitHawk

from code.

Related Issues (14)

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.