Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument
1–10 of 56 posts
Re: Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument
#2* LLMs don't understand the syntax of q (or any other programming language).
* LLMs don't understand the semantics of q (or any other programming language).
* Limited training data, as compared to kanguages like Python or javascript.
All of the above contribute to the failure modes when applying LLMs to the generation or "understanding" of source code in any programming language.
Re: Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument
#3From what I understand, the terseness of array languages (Q builds on K) serves a practical purpose: all the code is visible at once, without the reader having to scroll or jump around. When reviewing an LLM's output, this is a quality I'd appreciate.
Re: Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument
#4> I think the aesthetic preference for terseness should give way to the preference for LLM accuracy, which may mean more verbose code From what I understand, the terseness of array languages (Q builds on K) serves a practical purpose: all the code is visible at once, without the reader having to scroll or jump around. When reviewing an LLM's output, this is a quality I'd appreciate.
Re: Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument
#5I think that there are a few critical issues that are not being considered: * LLMs don't understand the syntax of q (or any other programming language). * LLMs don't understand the semantics of q (or any other programming language). * Limited training data, as compared to kanguages like Python or javascript. All of the above contribute to the failure modes when applying LLMs to the generation or "understanding" of so…
I use my own APL to build neural networks. This is probably the correct answer, and inline with my experience as well.
I changed the semantics and definition of a bunch of functions and none of the coding LLMs out there can even approach writing semidecent APL.
Re: Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument
#6> I think the aesthetic preference for terseness should give way to the preference for LLM accuracy, which may mean more verbose code From what I understand, the terseness of array languages (Q builds on K) serves a practical purpose: all the code is visible at once, without the reader having to scroll or jump around. When reviewing an LLM's output, this is a quality I'd appreciate.
I agree with you, though in the q world people tend to take it to the extreme, like packing a whole function into a single line rather than a single screen. Here's a ticker plant standard script from KX themselves; I personally find this density makes it harder to read, and when reading it I put it into my text editor and split semicolon-separated statements onto different lines: https://github.com/KxSystems/kdb-tick…
Re: Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument
#7It’s a bizarre language.
Re: Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument
#8> I think the aesthetic preference for terseness should give way to the preference for LLM accuracy, which may mean more verbose code From what I understand, the terseness of array languages (Q builds on K) serves a practical purpose: all the code is visible at once, without the reader having to scroll or jump around. When reviewing an LLM's output, this is a quality I'd appreciate.
I agree with you, though in the q world people tend to take it to the extreme, like packing a whole function into a single line rather than a single screen. Here's a ticker plant standard script from KX themselves; I personally find this density makes it harder to read, and when reading it I put it into my text editor and split semicolon-separated statements onto different lines: https://github.com/KxSystems/kdb-tick…
Re: Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument
#9The bigger issue is that LLMs haven’t had much training on Q as there’s little publically available code. I recently had to try and hack some together and LLMs couldn’t string simple pieces of code together. It’s a bizarre language.
Re: Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument
#10> I think the aesthetic preference for terseness should give way to the preference for LLM accuracy, which may mean more verbose code From what I understand, the terseness of array languages (Q builds on K) serves a practical purpose: all the code is visible at once, without the reader having to scroll or jump around. When reviewing an LLM's output, this is a quality I'd appreciate.
Human language has roughly, say, 36% encoding redundancy on purpose. (Or by Darwinian selection so ruthless we might as well call it "purpose".)