Code Monkey home page Code Monkey logo

Comments (4)

jeapostrophe avatar jeapostrophe commented on June 20, 2024

That function is not supported in ChezScheme --- https://docs.racket-lang.org/foreign/foreign_pointer-funcs.html#%28def._%28%28quote._~23~25foreign%29._make-sized-byte-string%29%29

from zeromq.

Cazra avatar Cazra commented on June 20, 2024

Are there any plans to add compatibility to this project to support socket-recv! in ChezScheme?

from zeromq.

jeapostrophe avatar jeapostrophe commented on June 20, 2024

I have no plans and I assume that @mflatt can't support make-sized-byte-string. If you find a way to make something similar works, I'd merge it!

from zeromq.

mflatt avatar mflatt commented on June 20, 2024

It looks like the use here

 (make-sized-byte-string (msg-data-pointer m) (msg-size m))

could be replaced with

(let ([s (make-bytes (msg-size m))])
  (memcpy s (msg-data-pointer m) (msg-size m))
  s)

This copies data out of the message instead of pointing inside message. But socket-recv! was copying anyway, and the bytes-copy there could be removed.

from zeromq.

Related Issues (5)

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.