Foreign Function Interface

Jai provides a straight-forward foreign function interface.

For example, printf() calls out to C’s printf implementation: 1

printf := (s: string, args: ...) -> int #foreign;

See the #foreign directive for more details.


  1. a straight-forward foreign function interface allows things like calling out to C for printf.
    “Demo: Base language, compile-time execution.” YouTube, uploaded by Jonathan Blow, Oct 31, 2014, https://youtu.be/UTqZNujQOlA?t=1599 

jailang 2019 pixeldroid
https://github.com/pixeldroid/jailang
programming pages theme v0.5.21 (https://github.com/pixeldroid/programming-pages)