https://www.scylladb.com/2019/05/06/introducing-scylla-enterprise-2019-1/
According to the Foreign Function Interface section of the Haskell--
2010 report, you import a C++ function by simply specifying the calling convention cplusplus. Unfortunately, no Haskell compiler actually supports this calling convention, so we have to use the C calling convention instead.
The standard method for dealing with this is to write C++ code that uses extern "C" to export the methods unmangled. Of course, you still have to uniquify the method names, but *you* get to pick the names instead of
letting the compiler do whatever wacky method it wants.
The method presented on this page does not use that method — it just
calls the mangled names directly. So far this seems to work OK...
On the other hand, since Haskell does not provide a ScyllaDB
interface, the answer is, equally trivially, NO. On the third hand,
Haskell allows you to WRITE ScyllaDB, so the answer again becomes YES.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 77:02:10 |
Calls: | 6,489 |
Files: | 12,096 |
Messages: | 5,276,369 |