quickJS documentation and/or well commented projects [closed] - quickjs

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I am porting an in-house system from Duktape to quickJS to take advantage of the support for ES6 features and good module support (including dynamic imports).
Have ported some simple class libraries to be imported as shared object modules. But getting stumped with more advanced inter-operation issues. quickjs.h contains approximately 400 entries, but there are less than 2 pages of documentation for the C-API.
Any suggestions as to where more detailed documentation could be found?
Failing that pointers to any well documented project using quickJS might help. Yes, I have Googled and haven't found anything useful.

I am also in the same boat,QuickJS docs & examples are hard to find here are the best ones I found so far :
https://github.com/sntg-p/QuickJS-raylib : very nice as it wraps a good portion of the relatively large RayLib API
https://github.com/saghul/txiki.js might also have some nice things (as it wraps libuv amomngs other things
a more simple example https://github.com/calbertts/async-quickjs
hope the above examples help !

Related

Is there any JSON-RPC implementation in C++ that is transport-agnostic? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am currently looking for a JSON-RPC library that implements the 2.0 specification and is, or at least can be easily adapted to be, transport-agnostic, implemented in c++ and have as few dependencies as possible.
In my search for it, I already looked for on the obvious places and the more comprehensive collections below:
http://json-rpc.org/wiki/implementations (outdated info)
https://en.wikipedia.org/wiki/JSON-RPC
Header-only / standard c++11 implementation, for a quick drop in a new project, that can be used on different platforms is a plus!
Please note that I am not looking for a recommendation on which one is best or not, as I can most likely judge that myself. What I am asking is if anybody else know about a library that meet those technical requirements above, or at least already found a way to work around those requirements using an implementation that is public available.
Thank you.
After a lot of digging, the closest I could find that meet those requirement, specifically the one to be able to be adapted to be transport-agnostic was:
https://github.com/erijo/xsonrpc
It is still not a header-only implementation, and it has some external dependencies that makes it cumbersome to compile/use on different platforms and projects, but it was still the closest one I could find.
I might adapt this one to make it 100% in compliance with the original requirements of my question. Will update the question when I do so.
UPDATE
Using xsonrpc as a starting point, I put together an implementation that satisfy all those requirements and published as an opensource project:
https://github.com/uskr/jsonrpc-lean - include-only, transport-agnostic JSON-RPC 2.0 client/server implementation

A tool to tell you what source files are needed in a C++ project? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am porting a large, messy, 10 year old cold base in C++ from Metrowerks on OS X to XCode. There are so many files and all the other people that touched this over the years are gone. Nobody know what files are actually needed and which are just cruft.
Is there any tool that I could run and have it produce a list of what files are ACTUALLY needed?
You could run doxygen on your project and have it generate inheritance diagrams for your classes. It can also generate caller graphs to help you find dead code.
You can try searching this static code analyzer list in Wikipedia. The ones that I've seen in actions would be cppdep and Include Hierarchy Viewer, although the first one is a little rough and the latter is a Windows analyzer only for the include tree. Also that still might not give you all the info if the dependencies are not explicit.
Edit: Also, the following StackOverflow search query seems to have results that might interest you:
https://stackoverflow.com/search?q=c%2B%2B+dependency

Where to find open-source widgets for Qt library? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have found quite good stuff here. If you know other sites that have some good code for Qt library (some additional codes, good examples, except the Qt standard examples, of course), please share with us.
Also please look at Qt Solutions
For plotting and technical purpose, there are Qwt and QtiPlot. There may be others, but often a self-made widget is faster, smaller, and better than what someone could find on the net (except qwt and qtiplot of course).
If you're looking to extend Qt a bit more, look into KDE. It is also (experimentally) available on Windows. It adds quite a bit of functionality, but also a lot of dependencies.

Concurrent system modeling tools [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm currently taking a course in concurrent software design, and we're focusing a lot on modeling. I see the value in this, but I am not sure if the tool we are using is horrible, good, or somewhere in between, because I can't find any other examples. We're currently using LTS Analyzer, with some more information here.
So my question is, for anyone who has done concurrent system design, do you model you application before implementing, and if so what tools do you use to do so? Thanks.
While I haven't used is myself I've heard some good things about JPF (planning to use it soon).
One of the more widely known tools for modelling & verification of concurrent/distributed systems in various industries is the SPIN model checker: http://spinroot.com/spin/
However keep in mind that no matter how correct your design and/or verified your model is, your implementation still needs to follow suit. This is where many projects fail in one way or another.

qpThreads documentation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there any documentation on qpThreads? In what way is it different from pthreads?
It looks like qpthread has become a sourceforge project. It hasn't changed in four or five years from the CVS repository and doesn't seem to contain any documentation. Chances are that if you don't have docs on it, then none exist save for the source code and headers of course.
I grabbed the source out of curiosity and it looks like a pretty standard threading implementation that is layered over pthreads. The largest difference is that pthreads is a C-style interface and qpThreads is an OO interface more akin to what you might find in Java. I haven't delved into it very deeply, but you might want to look at the interfaces like java.util.Timer and java.util.concurrent. Some of the interfaces look quite similar to what qpThreads offers.
You might want to investigate replacing it with Boost.thread or something more recent. Chances are that you will have better luck maintaining it. It shouldn't be that hard to do depending on how much code you have to deal with.
From a cursory look at google search results, qpThreads seems to be an obscure C++ threading class library. pthreads is a very widely used, POSIX-compliant, multi-platform threading C API.
The most important thing about using libraries is making sure they are actively maintained.
You should use a well known and heavily used library if possible. This way you will also have a vast number of people to ask questions if you have any.
Please see this similar SO question for more details:
Good c++ lib for threading (or use the search box for more).
Found some documentation finally.
Sourceforge qpthreads