libpmemobj binding for go

24 views
Skip to first unread message

zhiting

unread,
Feb 12, 2019, 6:18:24 PM2/12/19
to pmem
Hi,

Is there a golang binding for libpmemobj?

Thanks,
Zhiting

Andy Rudoff

unread,
Feb 12, 2019, 6:49:29 PM2/12/19
to pmem
Not yet.  A few of us have fiddled with it, but nobody has produced something worth using yet as far as I know.  We're definitely interested in Go bindings, so if you put any effort into it, please share your work!

As a side note, it is possible to call C from Go, and there are also Go libraries for "off heap storage" which might be usable on pmem.  So it may be possible to cobble something together.  But in my opinion, any maintainable solution should be idiomatic for Go programmers, not just something bolted together.  That's the challenging part (but also the interesting part).

Thanks.

-andy

Sean Jensen-Grey

unread,
Feb 12, 2019, 7:45:28 PM2/12/19
to Andy Rudoff, pmem
Andy and Zhiting,

I was just exploring this use case, I was thinking of extending 


to allocate from a pmem segment. 

My workload is almost entirely reads and NOT the point of record so integrity is a little easier to deal with.

Happy to post any updates once I have them.

Sean





--
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pmem+uns...@googlegroups.com.
To post to this group, send email to pm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pmem/f119ad2a-5173-4f16-b726-836b7eb6dd81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

zhiting

unread,
Feb 13, 2019, 2:04:56 PM2/13/19
to pmem
Thanks for the information. Searching through GitHub, I find this repo: https://github.com/llugin/pmdk-go This binds a few API but seems a good starting point. The transaction API is another question. I'm not a seasoned Go developer. Does Go understand the setjmp/longjmp used in C API?
Reply all
Reply to author
Forward
0 new messages