passing data in IPC and IPC format

215 views
Skip to first unread message

Markus Sieber

unread,
Sep 13, 2013, 8:50:23 AM9/13/13
to kona...@googlegroups.com
Hi,

in current k (from kdb+) i can pass k objects in IPC:

process 1:
  \p 1025
  pl:{x+y}

process 2:
  h:<:`::1025
  h "pl[3;4]" /execute string given
  h (`pl;3;4) /call function pl with arguments 3 and 4 - how can I do this in kona?




in kona 
process 1: start with -i 1025

process 2:
  h: 3:(`"localhost";1025)
  h 4: "2+3"   /execute string
 




how can I call a function with data as in k4:  h (`pl;3;4)

is there a more elegant way to open a connection to a localhost port as it is in kdb's k?

regards, Markus

Kevin Lawler

unread,
Sep 14, 2013, 12:33:10 AM9/14/13
to kona...@googlegroups.com
> is there a more elegant way to open a connection to a localhost port as it is in kdb's k?

h:3:(`;1025)   /empty symbol resolves to localhost

how can I call a function with data as in k4:  h (`pl;3;4)

--
You received this message because you are subscribed to the Google Groups "Kona Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kona-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

C.-J. Mei

unread,
Aug 22, 2016, 3:12:10 PM8/22/16
to Kona Developers
Hi, there,

   Is this user group still alive? Is any body still monitoring it?

   C.-J.

Tom Szczesny

unread,
Aug 22, 2016, 9:09:34 PM8/22/16
to Kona Developers
Yeah, still here (but not very active currently).
What's up?

C.-J. Mei

unread,
Aug 23, 2016, 9:38:26 AM8/23/16
to Kona Developers
That's great! Thank you very much, Tom, for coming back to me. Statistics says that there are less than 1000 k-programmers world wide. It's understandable that the user group is not too hot.

I've been using k (kx k) for 4 years. I love it. I left the company I worked for and I'm looking for another k resource. I found your implementation, thank God. I wonder if there is a gap list how your implementation differs from kx k? Is yours close to k2, k3 or k4? Do you have a UNIX/LINUX compilation of it?

Thank you.

C.-J.

Tom Szczesny

unread,
Aug 23, 2016, 12:56:57 PM8/23/16
to Kona Developers
Binaries for 32-bit kx k2.8 are available.
See another topic in this same group.  https://groups.google.com/forum/#!topic/kona-dev/FmKodC-geac.

I will post a Linux compilation to the Kona github site (hopefully late tonight).

C.-J. Mei

unread,
Aug 23, 2016, 2:10:04 PM8/23/16
to Kona Developers
Thank you, Tom. Do you mean the original kx k-2.8, or the kx k-2.8 like Kona implementation? The 2 billion limit of the 32 bit system is very inconvenient. Is there a 64 bit version? Please do notify when you post the LINUX compilation. Do you have more detailed documentation, especially about IPC programming?

Thanks.

C.-J. 

Tom Szczesny

unread,
Aug 23, 2016, 10:55:10 PM8/23/16
to kona...@googlegroups.com
The Dennis Shasha site has the original 32-bit kx k-2.8.
Was the company that you worked for using a 64-bit version?  What company was that?

I thought that I was going to be back home by late tonight ... but I won't be back home till very late tomorrow night.
The earliest for a Linux compilation would be sometime on Thursday, 8/25.  I will notify you.

I don't have more detailed documentation than what is available on the Kona Github site.
The intent of Kona is that it work as similar to k3.2 and k2.8.
As differences are identified with k3.2 or k2.8 they are documented as issues on the site.

To unsubscribe from this group and stop receiving emails from it, send an email to kona-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

C.-j. Mei

unread,
Aug 29, 2016, 12:16:48 PM8/29/16
to kona...@googlegroups.com
Hey, Tom,

   Here I have a question to ask you. This is a function I've never used before. How do I call an external library, like .dll or some thing like that? I have a customer binary file to read. There is C library to read the file. How do I call it in k? Or, even simpler, can I read binary files through k?

   C.-J.

--
You received this message because you are subscribed to a topic in the Google Groups "Kona Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kona-dev/Dr70VA-O210/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kona-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

C.-J. Mei

unread,
Aug 31, 2016, 1:55:09 PM8/31/16
to Kona Developers
Hi, Tom,

   Can you share some experience reading binary files?

C.-J.
For more options, visit https://groups.google.com/d/optout.

Tom Szczesny

unread,
Sep 1, 2016, 10:53:54 AM9/1/16
to Kona Developers
Hi C.-J.

Do you have a copy of the k2 reference manual?
If not, there is a link for one on the Kona site on github.
See pages 182 and 183.

Kona should provide this functionality.
Any shortfall should be reported as a bug.

Sorry for the delay in posting a  unix or linux compiliation.
Things have been crazy here.

Tom

C.-J. Mei

unread,
Sep 1, 2016, 1:24:11 PM9/1/16
to Kona Developers

Hi, Tom,
values
   I appreciate all your help. I do have the reference. But it doesn't seem to work. I started from mapping txt files. That even failed what's described.

   eg.:

       I tried to use (c;s) 0: f to read/map a txt file, it always gives me length error, although the line length and the sum +/ s matches.

   A binary file was read in with

       "c" 1: file_name

which reads in the whole file byte by byte. But there are 4 bits, 32 bits 64 bits values. The reading can not be right.

   Do you have any more experience?

   C.-J.

Tom Szczesny

unread,
Sep 2, 2016, 10:40:44 PM9/2/16
to Kona Developers
Hi C.-J.
From what you describe, it sounds like there are some major problems in Kona's handling of binary files.
Realistically, the earliest that I could look into this is sometime in October.

Frankly, I don't have a lot of experience using Kona on binary files.
Most of my work experience was using APL.

Like you, I got interested in Kona because K just was not available elsewhere.
There was a lot of work to be done on Kona when I got involved.
Kona is open source ... you do have the option of going in and fixing it.

You mentioned that the Windows version of k2.8 from Dennis Shasha did not work.
Does the Linux version work?

Best,
Tom
Reply all
Reply to author
Forward
0 new messages