On Mon, Oct 27, 2014 at 8:12 PM, David Crayford <[email protected]> wrote:

> On 28/10/2014 4:20 AM, John McKown wrote:
>
>> This is likely a silly question. Does lua4z use HFP (zArch) or BFP (IEEE)
>> floating point? If I had to guess, I'd _guess_ HFP.
>>
>
> You guessed wrong :). Lua numbers are double precision IEEE BFP. This did
> cause some problems. For example, the DB2 ODBC driver only supports HFP so
> I had to do manual
> conversions in LuaSQL.


​Most excellent! That makes it totally compatible with the SQLite port for
z/OS, which also uses BFP as its "native" floating point.​ I am working on
a new port of SQLite, version 3.8.7, and thought that I might look at a lua
package as well. I think that I have a basic understanding of how to use
the dynamic linking. Basically, create a "shared object" named, say,
"sqlite3.so" which contains a function called luaopen_sqlite3 & put it in
the "lib/lua/5.1" subdirectory. I know how to create an executable (main)
program using C, but I've never created a shared object. What I may do is
first create this package using my Linux system, then "port" it to z/OS.


-- 
The temperature of the aqueous content of an unremittingly ogled
culinary vessel will not achieve 100 degrees on the Celsius scale.

Maranatha! <><
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to