pothosware / pothos-util Goto Github PK
View Code? Open in Web Editor NEWCommon utility modules used in other Pothos modules
Common utility modules used in other Pothos modules
passing by reference is currently or will be causing an ownership deletion badness issue. Make it an sptr so block eval can own a reference.
The returned object from the compile and load is sitting on module memory, the object has to be deleted before the module can be unloaded. Problem: we want the object, we dont want the module. Lazy solution: serialize and de-serialize into a new object of the same contents. Problems: slow, unnecessary, serialization not supported for all types.
The expressions are used in the PothosGUI parameters and in the JSON topology markup. Currently, simple expressions are parsed like numbers and strings, and complicated expressions are compiled and the resulting Object is extracted from the compiled library.
Although it doesnt sound like it, this was the lazy/quick solution. But it has drawbacks:
Basically, we need to split expressions into tokens, and figure out which tokens are functions, constants, and variables.
We support jSON formatting for containers when possible
The result will be a Pothos::Object containing a Pothos::ProxyVector, Pothos::ProxyMap (respectively). The system already knows how to deal with these data types and convert them.
this should return a std::vector of an numeric type
This may or may not be a POCO bug, or perhaps a misunderstanding of how to deal properly with utf8 unicode escaping. Currently working around it: https://github.com/pothosware/gnuradio/blob/pothos_support/GrPothosUtil/GrPothosUtil.py#L657
The bug happens when a unicode escape is converted from string into JSON, and then back into a string with the stringify() call. Used here: https://github.com/pothosware/pothos-util/blob/master/DocUtils.cpp
This bug is to investigate the root cause
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.