Planned intervention: On Wednesday April 3rd 05:30 UTC Zenodo will be unavailable for up to 2-10 minutes to perform a storage cluster upgrade.
Published May 3, 2021 | Version v1
Conference paper Open

A Scheme Foreign Function Interface to JavaScript Based on an Infix Extension

  • 1. Université de Montréal

Description

This paper presents a JavaScript Foreign Function Interface for a Scheme implementation hosted on JavaScript and supporting threads. In order to be as convenient as possible the foreign code is expressed using infix syntax, the type conversions between Scheme and JavaScript are mostly implicit, and calls can both be done from Scheme to JavaScript and the other way around. Our approach takes advantage of JavaScript’s dynamic nature and its support for asynchronous functions. This allows concurrent activities to be expressed in a direct style in Scheme using threads. The paper goes over the design and implementation of our approach in the Gambit Scheme system. Examples are given to illustrate its use.

Files

els2021_belm_mfeeley_final.pdf

Files (539.0 kB)

Name Size Download all
md5:1ca8c5a02ed44d09e38bd69557af42e0
539.0 kB Preview Download

Additional details

Related works

Compiles
2677-3465 (ISSN)