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

Kx Product Insights: Inter-Trading Alert

5 Dec 2018 | , , ,

by Aidan O’Neill Kx has a broad list of products and solutions built on the time-series database platform kdb+ that capitalize on its high-performance capabilities when analyzing very large datasets. Kx for Surveillance is a robust platform widely used by financial institutions for monitoring trades for regulatory compliance. The Surveillance platform instantly detects known trading […]

Kx extends relationship with NASA Frontier Development Lab and the SETI Institute

The Exploration of Space Weather at NASA FDL with kdb+

4 Dec 2018 | , , , ,

Our society is dependent on GNSS services for navigation in everyday life, so it is critically important to know when signal disruptions might occur. Physical models have struggled to predict astronomic scintillation events. One method for making predictions is to use machine learning (ML) techniques. This article describes how kdb+ and embedPy were used in the ML application.