<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>HyperDex on Roads Less Taken</title><link>https://goran.krampe.se/categories/hyperdex/</link><description>Recent content in HyperDex on Roads Less Taken</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 16 Oct 2014 00:00:00 +0000</lastBuildDate><atom:link href="https://goran.krampe.se/categories/hyperdex/index.xml" rel="self" type="application/rss+xml"/><item><title>Nim wrapping C</title><link>https://goran.krampe.se/2014/10/16/nim-wrapping-c/</link><pubDate>Thu, 16 Oct 2014 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2014/10/16/nim-wrapping-c/</guid><description>&lt;p>Nim has all the language mechanisms needed to smoothly interoperate with C and C++. The rather &lt;a href="https://github.com/Araq/Nimrod/tree/devel/lib/wrappers" target="_blank" rel="noopener noreferrer">large collection of wrapped C libraries&lt;/a>
 (and that&amp;rsquo;s only those in the standard libs) is also a testament to this fact. In this article I explain my personal findings testing out the waters of wrapping a simple C library.&lt;/p>
&lt;p>The basic approach to wrapping a simple C library is:&lt;/p>
&lt;ol start="0">
&lt;li>Install Nim.&lt;/li>
&lt;li>Install c2nim using Babel or manually clone c2nim from github and build it.&lt;/li>
&lt;li>Use c2nim to translate the C header file(s) to a so called Nim wrapper.&lt;/li>
&lt;li>Make a small test showing it works.&lt;/li>
&lt;li>Write a so called &lt;em>&amp;ldquo;impure&amp;rdquo;&lt;/em> intermediary library that uses the wrapper (next article)&lt;/li>
&lt;li>Make a test green and declare Victory (next article)&lt;/li>
&lt;/ol>
&lt;p>Okidoki&amp;hellip; (roll up sleeves)&lt;/p></description></item><item><title>HyperDex on Ubuntu 12.10 from source</title><link>https://goran.krampe.se/2013/01/16/hyperdex-on-ubuntu-12.10-from-source/</link><pubDate>Wed, 16 Jan 2013 00:00:00 +0000</pubDate><guid>https://goran.krampe.se/2013/01/16/hyperdex-on-ubuntu-12.10-from-source/</guid><description>&lt;p>So ok, I really like looking at new interesting NoSQL databases. Up until yesterday I felt &lt;a href="http://basho.com" target="_blank" rel="noopener noreferrer">Riak&lt;/a>
 was the most interesting one (have also coauthored &lt;a href="http://www.smalltalkhub.com/#!/~gokr/Phriak" target="_blank" rel="noopener noreferrer">Phriak&lt;/a>
 - a Riak binding for &lt;a href="http://www.pharo-project.org" target="_blank" rel="noopener noreferrer">Pharo Smalltalk&lt;/a>
) but after an evening of discussing choices of key/value backends for the &lt;a href="https://goran.krampe.se/categories/oak" >Oak&lt;/a>
 project I decided to &amp;ldquo;google a bit&amp;rdquo; and stumbled upon &lt;a href="http://hyperdex.org" target="_blank" rel="noopener noreferrer">HyperDex&lt;/a>
.&lt;/p></description></item></channel></rss>