How can I write a set of functions that can be invoked from (almost) any programming language?
I’d like to find a way to write an API that can be accessed from any other programming language via language bindings (or some other framework). Is it possible to do this? If so, which programming language would be the most suitable for writing a “cross-language” API? My goal is to create a single set of functions that I can access from any programming language that I’m working with, so that I won’t need to manually re-write the entire API in each language.
Is it possible to call a Javascript function from C?
I’d like to find a way to call Javascript functions from C. Are there any language bindings available for this purpose? I’m trying to make a library of Javascript functions accessible from C. (Something like a C -> Javascript foreign function interface would be suitable for this purpose, but I haven’t been able to find one so far.)
Java Dynamic Binding
I am having trouble understanding the OOP Polymorphic principl of Dynamic Binding ( Late Binding ) in Java. I looked for question pertaining to java, and wasn’t sure if a overall answer to how dynamic binding works would pertain to Java Dynamic Binding, I wrote this question.
Where does the “mm” come from in GTKmm, glibmm, etc
I understand that the “mm” suffix [in various GTK-associated C++ binding libraries] means “minus minus,” but where exactly does it come from?
How we call an RPC that not only calls external functions but also updates data structures?
I have a simple C++ RPC that lets you have remote class instances that support live members (data structures) update as well as method calls. For example I had a class declared like this (pseudocode):
In Scheme, what is formally a program’s state?
I think i’ve understood more or less what a parsed Scheme program looks like (a binary tree with atomic values on the leaves, if i have understood correctly). Can anybody please define to me, or give a reference, what a state (or a computation) of a Scheme program is? Is it just the current binding plus a position, or a stack of positions, on the syntax tree? (In such a case, i would appreciate a reference for a formal definition of Scheme binding as well :).)
How to make support for bindings for a scripting language
Main I’m making a scripting language using C++. I plan to use it with a simple test game editor. But I have to make a support for bindings to call game engine’s nodes’ methods to update positions, rotations, etc. What are the main approaches for this? The game engine I plan to use also supports […]
Why does DrRacket IDE considers some identifiers as “symbols” and some as “keywords”? What is the difference?
Why does DrRacket (kind of Scheme) IDE highlights some of the identifiers as “keywords” (for example define
, lambda
, send*
), and the others as “symbols” (user defined identifiers, +
, -
, abs
, send
, send+
, etc.)?
Why does DrRacket IDE considers some identifiers as “symbols” and some as “keywords”? What is the difference?
Why does DrRacket (kind of Scheme) IDE highlights some of the identifiers as “keywords” (for example define
, lambda
, send*
), and the others as “symbols” (user defined identifiers, +
, -
, abs
, send
, send+
, etc.)?
Why does DrRacket IDE considers some identifiers as “symbols” and some as “keywords”? What is the difference?
Why does DrRacket (kind of Scheme) IDE highlights some of the identifiers as “keywords” (for example define
, lambda
, send*
), and the others as “symbols” (user defined identifiers, +
, -
, abs
, send
, send+
, etc.)?