Coder Social home page Coder Social logo

anthonyvdotbe / panama-foreign Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openjdk/panama-foreign

0.0 1.0 0.0 407.71 MB

http://openjdk.java.net/projects/panama/

License: GNU General Public License v2.0

Makefile 0.01% Shell 0.21% JavaScript 0.03% M4 0.12% sed 0.01% Roff 0.18% HTML 0.35% CSS 0.01% Python 0.05% Java 78.41% C++ 14.29% XSLT 0.22% Perl 0.01% Batchfile 0.01% C 5.70% DTrace 0.01% Assembly 0.02% GDB 0.01% Objective-C 0.38% AppleScript 0.01%

panama-foreign's Introduction

Welcome to the JDK!

For information about building the JDK, including how to retrieve all of the source code, please see either of these files:

  • doc/building.html (html version)
  • doc/building.md (markdown version)

See http://openjdk.java.net/ for more information about the OpenJDK Community and the JDK.


About Project Panama

This repository contains changes which aim at improving the interoperability between the Java programming language and native libraries, which is one of the main goals of Project Panama. More information can be found at: https://openjdk.java.net/projects/panama/

The Project Panama JBS dashboard can be found at: https://bugs.openjdk.java.net/Dashboard.jspa?selectPageId=18412

Early acccess (EA) binary snapshots can be found at: http://jdk.java.net/panama/

About the panama-foreign repository

This repository houses three main branches:

  • foreign-memaccess: Contains the developement of the foreign memory access API for JEP 370, which can be used to interact with different kinds of memory resources, including so-called off-heap or native memory.
  • foreign-abi: Contains the developement of the foreign function interface (FFI), which can be used to call native code in a .dll/.so/.dylib, or to create a native function pointer to a Java method which can be passed to code in a native library.
  • foreign-jextract: Contains the development of an API to parse native headers, which can be used to create an abstract representation (declarations) from a C header file. This branch also provides an accompanying extraction tool (jextract), which is built on top of the API, and can be used to generate Java bindings to access functions and/or structs in a native library described by a given header file.

The foreign-jextract branch depends on the foreign-abi branch, which in turn depends on the foreign-memaccess branch. As such, the foreign-jextract branch is the most complete of the three and therefore the default branch of this repository.

Building notes

Jextract requires LLVM 9.x as a dependency. So, to build the foreign-jextract branch, the flag --with-libclang=/path/to/llvm/root must be supplied when generating a build configuration. Please see doc/building.md for general building instructions.

Samples

Please see doc/panama_jextract.md for examples on how to use jextract to work with common native libraries.

panama-foreign's People

Contributors

jonathan-gibbons avatar prrace avatar erikj79 avatar jddarcy avatar chrishegarty avatar coleenp avatar mcimadamore avatar jesperirl avatar wangweij avatar sundararajana avatar mrserb avatar magicus avatar stefank avatar iignatev avatar cl4es avatar rwestrel avatar shipilev avatar lahodaj avatar tobihartmann avatar zhengyu123 avatar seanjmullan avatar hns avatar xueleifan avatar pliden avatar szegedi avatar prsadhuk avatar dfuch avatar joewang-java avatar naotoj avatar goelin avatar

Watchers

James Cloos 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.