Comments (9)
Can be closed i guess…
SodiumFRP/sodium-cxx#7
from sodium.
Good news, it appears as if my mingw came with a pthreads by default (found this out after trying out a precompiled one from the net).
So, I fixed this by changing a little in sodium\transaction.h
I changed this:
#ifdef __linux
#include <pthread.h>
#else
#include <pthread/pthread.h>
#endif
into this:
#ifdef __linux
#include <pthread.h>
#elif __MINGW32__
#include <pthread.h>
#else
#include <pthread/pthread.h>
`#endif``
It looks like the compile finished ok now. (have not yet tested if it works)
BR/ Christoffer
from sodium.
I attempted to write a simple hello world style application with Sodium and it did not go so well, I am guessing the compililation was not done correctly.
The code:
#include <iostream>
#include <sodium/sodium.h>
using namespace std;
int main() {
cout << "Hello world!" << endl;
sodium::transaction<> trans;
return 0;
}
If the line sodium::transaction<> trans;
is commented out this application prints hello world as expected, but if it is not commented out then the application does not print anything out, just exits. This is a little too odd for me to know what is going on.
from sodium.
Sorry about the delay in replying. I didn't get notified for some reason. I would really like to sort these kinds of issues out. I'll have time to do so when I have finished the book, which is really soon.
from sodium.
@the-real-blackh: Is there any chance to see Sodium work with Visual Studio?
Why the dependency on pthreads
? Aren't std
or boost
threads and associated utilities sufficient?
from sodium.
I'd certainly appreciate help with this. I have a lot of things on my priority list before I get to that. Here are my priorities at the moment:
I'm using the C++ version in a commercial project so the code is pretty solid. Having said that, there is a very tricky memory management issue to do with cycles and the use of reference counting pointers. This will affect you if you use a 'switch' a lot. I am working on a solution for this in a directory called v2/
Now that I've finished the book writing, the Java version is the model, but I need to bring the other implementations up to the same standard. This will mostly involve code for generating the same test cases in different languages.
from sodium.
If you split the project into the component languages I am sure that the
community will help with ports and contributions. As it stands it is nigh
on impossible to just pull the C++ version without pulling the other
versions along with it.
GR
Sent from my Nexus 5.
On 4 Feb 2016 7:56 p.m., "the-real-blackh" [email protected] wrote:
I'd certainly appreciate help with this. I have a lot of things on my
priority list before I get to that. Here are my priorities at the moment:I'm using the C++ version in a commercial project so the code is pretty
solid. Having said that, there is a very tricky memory management issue to
do with cycles and the use of reference counting pointers. This will affect
you if you use a 'switch' a lot. I am working on a solution for this in a
directory called v2/Now that I've finished the book writing, the Java version is the model,
but I need to bring the other implementations up to the same standard. This
will mostly involve code for generating the same test cases in different
languages.—
Reply to this email directly or view it on GitHub
#53 (comment).
from sodium.
OK - I'll do that.
from sodium.
The C++ version is now a separate repo 'sodium-cxx'. I'd love to see some work on getting this going on Windows.
from sodium.
Related Issues (20)
- Add Test For Transaction Regen To C# Version
- Fix Transaction Regen Bug In C# Version
- Add Test For Transaction Regen to Java Version
- Add Test For Transaction Regen To Scala Version
- Improve Transaction.Post
- Fix Send allowed in Operator
- Fix Send allowed in Operator
- Fix Send allowed in Operator
- Fix Send allowed in Operator
- More aggressive cleanup for switchC / switchS HOT 2
- FRP book, javascript code refactoring HOT 1
- Check whether rank bug needs to be fixed in Java version
- Check whether rank bug needs to be fixed in C# version HOT 1
- C# Cell Lift firing twice, but only propogating value from single execution HOT 2
- [1.17/dev] Game crashed after joined the server HOT 1
- Simultaneous timer events HOT 4
- Causality in the Haskell denotational semantics
- Alternative to ranks & priority queue
- Cannot create account on sodium.nz because https is down
- Cell WPF binding HOT 2
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 sodium.