Code Monkey home page Code Monkey logo

jnano's Introduction

jnano

Java binding for the nanomsg library.

What is this?

This package contains a JNI-based Java binding for nanomsg, the communications and synchronization library.

How to Use

You will need the following:

  1. A copy of the JDK. The binding has been tested on v1.7.0_21 running on a Windows 7 machine.

  2. A copy of ant. I use v1.8.4.

  3. A C compiler. I use MSVC 2010.

  4. A copy of cpptasks, an ant helper that automates compilation of C code. I use v1.0b5. You can find a copy in the lib/ant directory; therefore, you can run ant with ant -lib lib/ant/cpptasks-1.0b5.jar jar to use the included cpptasks.

  5. Look at the build.<OS>.properties file for your OS. Pay particular attention to the value of dir.jni.headers.

Once your environment is set up and you have downloaded jnano, you can do any of these:

  • ant jar -- create all JARs.

  • ant test -- run all unit tests (none for now).

  • ant run -- run a specific class in one of the JARs (such as Tester).

  • ant perf -- run performance tests.

To run a basic tester class:

ant -Dcn=org.nanomsg.Tester run

To run the two performance tests for inproc-based sockets:

ant -Dcn=org.nanomsg.inproc_lat -Dargs="1 100000" perf

ant -Dcn=org.nanomsg.inproc_thr -Dargs="1 100000" perf

Status

Work in progress. Right now both performance tests for inproc-based sockets work, with a performance comparable to what you get on C.

License

This project is released under the MIT license, as is the native libnanomsg library. See COPYING for more details.

jnano's People

Contributors

gonzus avatar

Watchers

 avatar  avatar

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.