Java Foreign Linker bindings to Lua

Related tags

GUI jpanlua
Overview

jpanlua

Java bindings to liblua using JEP 398: Foreign Linker API.

Requires JDK 16 or above.

Requires -Dforeign.restricted=permit JRE flag.

Exports package tf.bug.jpanlua under module tf.bug.jpanlua.

usage

running a file

lua_State *L = luaL_newstate();
luaL_openlibs(L);
luaL_dofile(L, "script.lua");
lua_close(L);
// `new Lua(54)` searches for Lua 5.4.
// - On Windows, this means lua54.dll
// - On Linux, this means liblua54.so
//
// On other systems, implementation is dependent on either
// - The dlfcn.h implementation
// - The JVM
Lua lua = new Lua(54);

// LuaState implements AutoClosable
try(LuaState state = lua.newState()) {
    state.openLibs();
    state.doFile("script.lua");
}

assumptions

Below is a list of assumptions put in place due to either JVM limitations or Lua's default configuration. In other words, support is only planned for the intersection of platforms that both mainline Lua is already built to and official versions of JDKs are built to.

  • sizeof(intptr_t) == sizeof(size_t) == sizeof(void*)
  • LUA_FLOAT_TYPE == double
You might also like...

📊 Exposing charts from Java to JavaFX and the Web!

📊 Exposing charts from Java to JavaFX and the Web!

Exposing charts from Java to JavaFX and to the Web! JavaFX · Charts · Websockets · Jetty · Web JavaFxDataviewer is an open-source data visualization t

Oct 26, 2022

Provides a Java API to use the JavaScript library d3.js with the JavaFx WebView

Provides a Java API to use the JavaScript library d3.js with the JavaFx WebView

javafx-d3 Provides a Java API for using the JavaScript library d3.js with JavaFx Applications. Many thanks to the authors of the projects gwt-d3 [1] a

Dec 19, 2022

Java implementation of BSP based CSG (Constructive Solid Geometry)

Java implementation of BSP based CSG (Constructive Solid Geometry)

JCSG Java implementation of BSP based CSG (Constructive Solid Geometry). It is the only simple and free Java implementation I am aware of. This implem

Sep 25, 2022

JSilhouette provides additional shapes for Java applications

JSilhouette JSilhouette provides additional shapes for Java applications. Currently JavaFX is supported. Installing You can get the latest version of

Nov 7, 2022

A 3D chart library for Java applications (JavaFX, Swing or server-side).

A 3D chart library for Java applications (JavaFX, Swing or server-side).

Orson Charts (C)opyright 2013-2020, by Object Refinery Limited. All rights reserved. Version 2.0, 15 March 2020. Overview Orson Charts is a 3D chart l

Sep 27, 2022

This repository contains all java related sources of the Dolphin Platform.

This repository contains all java related sources of the Dolphin Platform.

Dolphin Platform This repository contains all Java related sources of the Dolphin Platform. Clients for other languages can be found in seperate repos

Sep 5, 2022

An IDE built specifically for Modding Minecraft Java Edition, containing many useful features that will be helpful for modders.

Modding-IDE An IDE built specifically for Modding Minecraft Java Edition, containing many useful features that will be helpful for modders. Trello: ht

Jul 16, 2022

A 3D graphics engine created in Java. The project was inspired by javidx9's series on YouTube.

3D Graphics Engine A 3D graphics engine created in Java. The project was inspired by javidx9's series on YouTube. Installation Clone this repository o

Sep 16, 2022

A cross-platform interface for FutureRestore, written in Java with Swing

A cross-platform interface for FutureRestore, written in Java with Swing

Futurerestore GUI A GUI implementation for FutureRestore written in Java. Installation Download from releases. No Java download required (it's bundled

Dec 30, 2022
Owner
Aly Cerruti
Aly Cerruti
Custom JavaFX bindings made easy with lambdas.

EasyBind EasyBind leverages lambdas to reduce boilerplate when creating custom bindings, provides a type-safe alternative to Bindings.select* methods

Tomas Mikula 146 May 29, 2022
🍏 A collection of partial JNA bindings for various macOS frameworks. (e.g. Foundation, AppKit, etc.)

JNApple ?? A collection of partial JNA bindings for various macOS frameworks. (e.g. Foundation, AppKit, etc.) Usage These are just some common example

Iridescent 3 Jun 19, 2022
RxJava bindings for Android

RxAndroid: Reactive Extensions for Android Android specific bindings for RxJava 3. This module adds the minimum classes to RxJava that make writing re

ReactiveX 19.7k Dec 28, 2022
SynchronizeFX - a library for JavaFX 2 and later that enables property bindings between different JVMs

SynchronizeFX - a library for JavaFX 2 and later that enables property bindings between different JVMs, both on a local computer and over the network.

Manuel Mauky 8 Jul 24, 2020
Utilizando do Java swing e do banco de dados MySQL, criei esse projeto com intuito de práticar a conexão do Java com MySQL e as janelas do Java swing

MeusCursos.com Meu primeiro projeto sozinho Utilizando do Java swing e do banco de dados MySQL, criei esse projeto com intuito de práticar a conexão d

João Vitor Ferreira Peixoto 1 Apr 2, 2022
Everything I code in java / Learn in Java I will post here to show my Progress :)

This repository contains all the codee i have written or used to help me learn This is going to be a repository that holds the source files for codene

unofficialdxnny 2 Jan 10, 2022
A Java framework for creating sophisticated calendar views (JavaFX 8, 9, 10, and 11)

CalendarFX A Java framework for creating sophisticated calendar views based on JavaFX. A detailed developer manual can be found online: CalendarFX 8 D

DLSC Software & Consulting GmbH 660 Jan 6, 2023
Controls for adding Parallax effects for Java (JavaFX)

FXParallax Parallax framework for Java (JavaFX). This framework adds controls to add Parallax effects to JavaFX application, this effect can add a sen

Pedro Duque Vieira 36 Sep 30, 2022
Ribbon control for Java, created in JavaFX

FXRibbon Ribbon control for Java, using JavaFX framework, based on Microsoft Ribbon. If you want to support the development of this library consider a

Pedro Duque Vieira 224 Dec 27, 2022
Icon packs for Java applications

Ikonli Ikonli provides icon packs that can be used in Java applications. Currently Swing and JavaFX UI toolkits are supported. Installing You can get

Kordamp 415 Dec 28, 2022