Approaches to C++/Javascript communication for scientific visualization [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a scientific simulation package written in C++, with poor visualization capabilities---it's hard to see what the simulation is actually doing at any one time. I would like to create a Javascript/WebGL based viewer, which would exchange data AJAX-style with the C++ simulation as it runs and visualize the results. The visualization data would comprise a few kilobytes of floating point data, and would be sent every few seconds. Communication would need to be bidirectional so that the user could specify what information is required to be visualized.
My question: what are the available libraries/technologies to be using on both sides (in the C++ application, and in the Javascript) to exchange this data?
Note: I see that similar questions to this (none of them a duplicate) have been asked and closed. I think my question is a valid one---certainly my need is genuine---and surely this is the best place to get answers. So, if there's some more productive way I should be phrasing my question, please let me know and I will do that.

One possibility is to use WebSockets for the communication. The Qt library includes support for a WebSocket server which the JavaScript client could connect to, after which bidirectional communication is possible. This also allows the exchange of binary data, which should allow you to send floating point data from the C++ side and use it at the JavaScript side as e.g. a Float32Array.

Related

Which Framework do i use for checking on confirmed transaction on Bitcoin Blockchain? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm writing a small gambling site where you can gamble with bitcoins.
As on the large currency exchange sites i want the user to log in. He then can create a new bitcoin address and send a amount of coins to that address.
When the transaction is six times confirmed the site should know about this status and give the user the sent amount of money on the site.
Now my question ist: Which Framework do i use.
The site will be written in Node.js. I have experience in working with the Blockchain Websocket API, but i think it is not reliable enough, so i looked into bitcoinjs.
What do you guys think? Which Framework is the best for determine these things?
Unless you are planning to use blockchain.info as your casino's wallet, I would stay away from their (or any other external) wallet management services, APIs, etc.
The traditional way of interfacing with bitcoin is by running bitcoind on your server, which is a fully fledged bitcoin client (and would need a full copy of the blockchain, so prepare for a big download there). You can communicate with it through its JSON RPC and it will keep track of different wallets/addresses you have & their balances, as well make payments when that is necessary.
That said, there appears to be a native nodejs bitcoind alternative ("bitcoinjs" that you mentioned as well) which would probably be easier to set up. My personal recommendation would be against using an unofficial/alternative implementation. Bitcoind is bitcoin, you can't go wrong with it. Bitcoinjs is far more likely to have bugs than bitcoind, and will presumably be behind bitcoind on updates, which are sometimes crucial.
Here's a getting-started-in-PHP tutorial. I know you aren't going to use PHP, but the principles are all the same. Hope it helps.

Need to understand behind scenes | node.js [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I would like to know, how can I write something(small) like node in native lanuage(c,cpp). I read that c,c++ experts developed node.js and made it available with javascript interface. This interface is much much simpler to start with node.js applications.
This is not about re-inventing the wheel,(only learning) but I want to learn/understand the way where to start if I want to create a server that work like node, it is not performance or scalability or simplicity oriented. nothing like that.
Any book or any c,cpp topic that will help me to start with websockets, broadcasting data and such important features of node. I am new to c,cpp also but need to understand what is making node such a strong technology.
Any other solutions than taking source code of node.js ?
Node.js is powered by libuv - it's an asynchronous crossplatform io library, written in C. Basically, it does everything node does, but exposes only C interfaces.

Persist data on server with JavaScript? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'd like to create a small JS, HTML & CSS-only web application for my personal use with some kind of MVC-framework (like ember.js). My big requirement is that I want to persist the data permanently on the server where I run the web-application.
Is that achievable and what are good frameworks for it?
If something needs to run on the server I want it to be lightweight and easy to setup.
I need to be able to query the data. After a while there will be a few thousand rows in the database. Joins etc. won't be required.
It's highly possible, but you'll need somethign running on the server to swallow the data.
Typically you have serverside code which interacts with your data store to prevent users from manipulating your databases.
You can stick with JSON/Javascript and use CouchDB: http://couchdb.apache.org/.
It allows you to read/write data directly from Javascript, so you don't have to write server side code.
Other ideas to stay in the JSON/Javascript world - you can write from client side to a Node.js machine that writes to Mongo. Pure JSON/Javascript all the way down.

Database in cloud with REST API and ACL [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Is there a database, which can meet the following requirements
hosted in cloud
REST API
support for different API keys with different access rights (especially Read-Only)
free pricing program
I looking for database for Javascript application, without my own middle layer as provider between database and client application.
you have a lot of choices but still you can use free license for development
you can try those
https://parse.com (its very good one and they have a lot of libraries almost for programming language)
"http://couchdb.apache.org" (this is very good choice if you want to build local DB with JSON response )

Javascript conversion/ETL library? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm considering creating a new Open Source library in Javascript to handle common data format conversions, but I would love to avoid re-inventing the wheel if possible. Is there an existing library that has the following features?
Modular loaders to read input from different data formats (e.g. XML, CSV, JSON, SQL dump, fixed-width text, potentially some binary formats, custom formats, etc)
Data loaded into a Javascript data structure and optional custom transform functions applied
Modular exporters/emitters to output to different data formats (as above)
I know various libraries that can handle some of these data types, but usually in specific circumstances or combinations, and without the modular input/output structure I'm imagining.
Does a Javascript data format conversion library currently exist?

Categories