Giter Site home page Giter Site logo

Comments (3)

jhanna-kx avatar jhanna-kx commented on July 26, 2024 1

Added .p.xunwrap to do this recursive unwrap in 1.2.0 release

from embedpy.

awilson-kx avatar awilson-kx commented on July 26, 2024

Hey Michael

This was a design/performance decision, as recursive type checking proved too expensive.

When passing arguments using embedPy

  • A native q object will be converted as appropriate (int -> int, float-array -> float-array)
  • An embedPy object will be unwrapped (exposing the foreign Python object)

Unwrapping of embedPy objects inside q 'containers' (lists, dictionaries, tables etc) will not take place by default.
In most cases, no conversion is even necessary (as the argument consists solely of q data) and the performance hit is too great.

from embedpy.

mcg1969 avatar mcg1969 commented on July 26, 2024

Understood. I'd like to suggest, then, that the documentation offer an explicit caution about this (if it doesn't already; I may have missed it!). You've made it quite easy of course to use the backtick to do a "full" unwrapping, so I really don't find it too inconvenient, it's just good to know it's necessary sometimes.

from embedpy.

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.