Giter Club home page Giter Club logo

Comments (9)

Confuset avatar Confuset commented on August 10, 2024 1

Can be closed i guess…
SodiumFRP/sodium-cxx#7

from sodium.

Heuristics avatar Heuristics commented on August 10, 2024

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.

Heuristics avatar Heuristics commented on August 10, 2024

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.

the-real-blackh avatar the-real-blackh commented on August 10, 2024

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.

adishavit avatar adishavit commented on August 10, 2024

@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.

the-real-blackh avatar the-real-blackh commented on August 10, 2024

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.

grahamreeds avatar grahamreeds commented on August 10, 2024

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.

the-real-blackh avatar the-real-blackh commented on August 10, 2024

OK - I'll do that.

from sodium.

the-real-blackh avatar the-real-blackh commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.