GitHub: Ready, Set, Go!

31 Aug 2016 | , , ,
Share on:

By Fintan Quill

 

 

Looking through the newly enhanced Kx GitHub index recently my attention was caught by the kdbgo project.

Released in 2009, the Go programming language created by Google has been increasing in popularity year on year. The compiled language, which has many of its roots in C, recently jumped from 95 to 20 in the TIOBE programming language index in 2016.

Google has several secretive internal projects developed in Go. There are also many large scale projects being implemented outside of Google, with the most notable being the container software Docker.

Created by Kx tech team member Sergey Vidyuk, the kdbgo project allows bi-directional communication between kdb+ & Go, allowing Kx technology to be accessed more easily by thousands of programmers in different geographies & industries.

To get started, ensure Go is installed and correctly configured. For kdbgo first install the glog & gouuid dependent libraries as follows:

go get github.com/golang/glog

go get github.com/nu7hatch/gouuid

Then finally install the kdbgo package itself:

go get github.com/sv/kdbgo

There you have it, you’re ready to Go.

There are sample test files within the kdbgo project. I have also created a separate sample test file.

This test file shows how to:

  • create a connection
  • return different kdb+ data types
  • async call
  • single insert
  • bulk insert
  • primitive prettyprint functions for dictionaries, tables and keyed tables

To try this, simply run the following command:

go run test.go

I have also created a listener script at GitHub for subscribing to a ticker plant in kdb+tick.

This can be run using the command:

go run listener.go

SUGGESTED ARTICLES

Kdb+ Transitive Comparisons

6 Jun 2018 | ,

By Hugh Hyndman, Director, Industrial IoT Solutions. A direct comparison of the performance of kdb+ against InfluxData and, by transitivity, against Cassandra, ElasticSearch, MongoDB, and OpenTSDB

Kx provides rapid access to unstructured data

Insights into kdb+ 3.6

5 Jun 2018 | , ,

At Kx25, the international kdb+ user group conference held on May 18th, we released kdb+ version 3.6. With this release, we are opening up new possibilities for kdb+ application developers.
It provides a lot of new capabilities and streamlines previously complex processes so that programmers will be able to take a simpler approach to writing systems compared to what they did in the past.