• Stars
    star
    184
  • Rank 209,187 (Top 5 %)
  • Language
    Nim
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Nim - Java bridge

jnim - JNI library for Nim language Build Status nimble

Native language integration with Java VM has never been easier!

import jnim

# Import a couple of classes
jclass java.io.PrintStream of JVMObject:
  proc println(s: string)
jclass java.lang.System of JVMObject:
  proc `out`: PrintStream {.prop, final, `static`.}

# Call!
System.`out`.println("This string is printed with System.out.println!")

Overview

The list of the main features:

  • API splitted in two parts: low and high level.
  • It supports Java inheritance and generics.

The documentation is coming soon. Now you can look the examples in the tests directory. For example, tests/test_java_lang.nim and tests/test_java_util.nim shows how to use high level API.

If you want to run the tests, use nimble test command.

Installation

nimble install jnim

Thanks

  • The current version of the library is a complete rewrite done by @vegansk.
  • Also thanks a lot to all the contributors

More Repositories

1

nimpy

Nim - Python bridge
Nim
1,293
star
2

nimx

GUI library
Nim
1,091
star
3

rod

Cross-platform game engine
Nim
136
star
4

nimsl

Shaders in Nim language
Nim
98
star
5

iface

Nim
71
star
6

wasmrt

Nim
64
star
7

variant

Variant type and type matching for Nim
Nim
56
star
8

jsbind

Nim
51
star
9

sound

Cross-platform sound mixer library
Nim
47
star
10

kiwi

Constraint solving library
Nim
45
star
11

nim-sdl-template

Cross-platform SDL/Nim skeleton
Java
45
star
12

asyncthreadpool

Awaitable threadpool for nim
Nim
45
star
13

darwin

Bindings for MacOS/iOS frameworks
Nim
40
star
14

android

Nim
37
star
15

coverage

Code coverage library for Nim
Nim
36
star
16

ecs

Entity Component System
Nim
27
star
17

nimble-tag

22
star
18

threadpools

Nim
21
star
19

yasync

Nim
21
star
20

cassandra

Nim bindings to cassandra db driver
Nim
15
star
21

closure_compiler

Nim binding to closure compiler
Nim
12
star
22

webdriver

Nim webdriver for Chrome and Firefox
Nim
12
star
23

minecraft

Nim
10
star
24

clipboard

Nim
10
star
25

wayland

Nim bindings for wayland
Nim
10
star
26

nim-docker

Auto-built docker image with latest Nim devel version
Shell
10
star
27

emacs

Create emacs modules in nim
Nim
9
star
28

async_http_request

Basic http_request implementation for JS and native targets
Nim
9
star
29

typelists

Typelists in Nim
Nim
9
star
30

clurp

Slurp C libraries into nim packages
Nim
8
star
31

wasmer

Wasmer wrapper - embed wasm in nim
Nim
8
star
32

plists

plist library for Nim
Nim
7
star
33

bicubic-interpolation-image-processing

Automatically exported from code.google.com/p/bicubic-interpolation-image-processing
C
7
star
34

persistent_enums

Define enums which values preserve their binary representation upon inserting or reordering
Nim
5
star
35

asyncssh

High level async libssh2 wrapper
Nim
4
star
36

ddparser

Port of Dparser to D language
C
4
star
37

cassowary.d

Cassowary constraint solving library for D language
D
4
star
38

rect_packer

Pack rects into bigger rect
Nim
4
star
39

ttf

Nim
4
star
40

preferences

Nim
4
star
41

imgtools

Nim
3
star
42

gplay

Google Play APK Uploader
Nim
3
star
43

nimx_nanovg

Nimx + nanovg demo.
Nim
2
star
44

tesseract

Nim
2
star
45

cocoa.d

DLang <-> Objective-C bridge
D
2
star
46

olm

libolm bindings
Nim
1
star
47

nim-chess

Plain chess game, written from scratch, GTK3 GUI with unicode pieces, written in Nim
Nim
1
star
48

wgpu

WebGPU API
C
1
star
49

linktools

Nim
1
star
50

rethinkdb

RethinkDB driver in Nim
Nim
1
star
51

adbclient

Nim
1
star
52

wafli

Nim
1
star
53

dataview

DataView for Nim, like in JS
Nim
1
star
54

vktest

Nim
1
star