Comments (2)
Thanks for the report!
This certainly needs better documentation and some code cleanup. The node.js runtime does not support a worker implementation currently, due to
- The API differences between WebWorkers and Node's
child_process
module made this not free (unless there is a better way). - There is no renderer process in node.js, so I was originally unclear that subprocess instantiation of the node.js was even warranted.
The intention of the documentation was to show the 2 separate ways to access the the perpsective
module symbol, In The Browser for using the worker()
method to get a perspective
module symbol, and In Node.js for acquiring the same symbol simply by importing it. This is wildly insufficient, so I'll be cleaning up the documentation to make this easier to understand and will close this issue once it is merged.
Separately, I am completely open to adding a subprocess API to the node.js runtime as well. If you're interested in contributing such a change, PRs are always welcome - if you would just like to request and track progress on this, feel free to open a separate issue detailing your use case so we can better understand how best to implement it.
from perspective.
Regarding node-gyp
- I think we'd need some clear explanation of what this would bring to the project over the WebAssembly runtime. From my (albeit limited) scope, node-gyp
would seem to add quite alot of additional build complexity, potentially a separate c++ API for binding, and a loss of portability; while the performance gain has at best not been explored, and I have reason to suspect it is minimal in Perspective's case.
from perspective.
Related Issues (20)
- Right-side Y-Axis disappears when grouping by date using Perspective Viewer 'Y Line' plugin
- Uncaught (in promise) TypeError: l.init is not a function
- Important Broken Link In Docs: View configuration options Documentation link is broken
- Microsoft Edge Performance Issue.
- Exit edit mode with ESC
- Step plot HOT 4
- Percentile aggregator
- Context Menu copy/export throw error
- Charts are not being scaled down on data change
- perspective-viewer-d3fc: Double group-by in Y-Bar not grouping bars correctly
- [Context Menu] "Export" and "Copy" items throw exception when selected HOT 1
- Missing distutils dependency on python 3.12+
- Docs: Broken link on website to Expression Columns API HOT 4
- Simple PerspectiveWidget errors restoring its own saved config
- Incorrect serialization of infinite values: Floats to 'null', Integers to '-2147483648' HOT 2
- [Datagrid] In column formatting, allow sequence of "Series" cell colors
- [Treemap] Text labels do not respond appropriately after "Group By" navigation
- Javascript User Guide Installation Documentation gives Yarn command when saying how to install with NPM
- Count Aggregation with a 'not in' Filter Leading to Miscalculated Total Value
- Catching error messages to show meaningful explanation of failures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perspective.