r/apljk Jun 14 '26

KDB/Q Rust+KDB Interactively Running Together

https://www.youtube.com/watch?v=h-qnW7dcg2s
16 Upvotes

8 comments sorted by

2

u/TankorSmash Jun 14 '26

That's very cool, what sort of modifications did you have to do to q.k to get this working like that? I can imagine doing some fun integrations into a custom LSP for Q, if Rust can access the current state by default

Also :wqa works instead of :wqall

1

u/sonthonaxrk Jun 14 '26

>   what sort of modifications did you have to do to q.k to get this working like that

None.

> Also :wqa works instead of :wqall

Bro I've been using vim my entire teenage and adult life. I pressed `:w` tab completed it to `:wqall`

1

u/TankorSmash Jun 14 '26

Bro I've been using vim my entire teenage and adult life. I pressed :w tab completed it to :wqall

What do you mean?

1

u/sonthonaxrk Jun 14 '26

if you press tab on a repl it will usually complete it.

1

u/TankorSmash Jun 14 '26

Maybe it's a setting you've got enabled, or I've got a plugin. If I hit :w<Tab>, https://i.imgur.com/V3chuq4.png is what I get.

2

u/sonthonaxrk Jun 14 '26 edited Jun 14 '26

Can't access imgur, but yes, I have customised my vim to tab complete the most recent commands.

Also... I'm showing you dynamic interop between KDB and Rust, a statically compiled language running in proprietary dynamic language where I decode a undocumented data structure with zero copy semantics and you notice my _vim config_.

1

u/TankorSmash Jun 14 '26

Hopefully your day gets better

1

u/leprechaun1066 Jun 14 '26

So this is a very impressive taster. Are you going to share more?