frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument

https://medium.com/@gabiteodoru/dont-force-your-llm-to-write-terse-code-an-argument-from-information-theory-for-q-kdb-developers-04077c5b7038
23•gabiteodoru•6d ago

Comments

icsa•6d ago
I 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 source code in any programming language.

chewxy•2h ago
> Limited training data, as compared to kanguages like Python or javascript.

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.

sanjayjc•4d ago
> 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.

gabiteodoru•4d ago
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/blob/master/tick.q E.g. one challenge I've had was generating a magic square on a single line; for odd-size only, I wrote: ms:{{[(m;r;c);i]((.[m;(r;c);:;i],:),$[m[s:(r-1)mod n;d:(c+1) mod n:#:[m]];((r+1)mod n;c);(s;d)])}/[((x;x)#0;0;x div 2);1+!:[x*x]]0}; / but I don't think that's helping anyone
krackers•1h ago
When Q folks try to write C: https://github.com/kparc/ksimple
lynx97•27m ago
Hey, another language with smileys! Like haskell, which has (x :) (partial application of a binary operator)
benjaminwootton•1h ago
The 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.

haolez•21m ago
I don't think that's the biggest problem. I think it's the tokenizer: it probably does a poor job with array languages.

Entire Linux Network stack diagram (2024)

https://zenodo.org/records/14179366
155•hhutw•2h ago•13 comments

Space Elevator

https://neal.fun/space-elevator/
52•kaonwarb•1h ago•2 comments

Introduction to reverse-engineering vintage synth firmware

https://ajxs.me/blog/Introduction_to_Reverse-Engineering_Vintage_Synth_Firmware.html
56•jmillikin•3h ago•3 comments

Novo Nordisk's Canadian Mistake

https://www.science.org/content/blog-post/novo-nordisk-s-canadian-mistake
321•jbm•9h ago•158 comments

Forth: The programming language that writes itself

https://ratfactor.com/forth/the_programming_language_that_writes_itself.html
116•suioir•5h ago•35 comments

Doing well in your courses: Andrej's advice for success (2013)

https://cs.stanford.edu/people/karpathy/advice.html
483•peterkshultz•13h ago•153 comments

Don't Force Your LLM to Write Terse [Q/Kdb] Code: An Information Theory Argument

https://medium.com/@gabiteodoru/dont-force-your-llm-to-write-terse-code-an-argument-from-informat...
23•gabiteodoru•6d ago•9 comments

Duke Nukem: Zero Hour N64 ROM Reverse-Engineering Project Hits 100%

https://github.com/Gillou68310/DukeNukemZeroHour
138•birdculture•9h ago•48 comments

Gleam OTP – Fault Tolerant Multicore Programs with Actors

https://github.com/gleam-lang/otp
93•TheWiggles•8h ago•32 comments

QuickDrawViewer: A Mac OS X utility to visualise QuickDraw (PICT) files

https://github.com/wiesmann/QuickDrawViewer
47•ibobev•6h ago•13 comments

Airliner hit by possible space debris

https://avbrief.com/united-max-hit-by-falling-object-at-36000-feet/
275•d_silin•12h ago•145 comments

Subway station study reveals fungal communities

https://phys.org/news/2025-09-subway-station-reveals-fungal-communities.html
6•PaulHoule•1w ago•0 comments

From Hollywood to horticulture: Cate Blanchett on a mission to save seeds

https://www.bbc.com/news/articles/cwy7ekl4yl8o
33•RickJWagner•6h ago•2 comments

Dosbian: Boot to DOSBox on Raspberry Pi

https://cmaiolino.wordpress.com/dosbian/
118•indigodaddy•11h ago•50 comments

Oskar Speck's 1932 Kayak Journey from Germany to Australia

https://nswskc.wordpress.com/2002/10/24/incredible-journey-50/
29•dividendpayee•1w ago•4 comments

Compare Single Board Computers

https://sbc.compare/
141•todsacerdoti•12h ago•55 comments

A Tiny Typo May Explain Centuries-Old Mystery Bout Chaucer's 'Canterbury Tales'

https://www.smithsonianmag.com/smart-news/a-tiny-typo-may-explain-a-centuries-old-mystery-about-c...
9•keepamovin•5d ago•2 comments

What's Behind the Mysterious Ancient Wall in the Gobi Desert?

https://news.artnet.com/art-world/the-hunt-gobi-wall-mongolia-2674588
41•derbOac•1w ago•25 comments

GNU Octave Meets JupyterLite: Compute Anywhere, Anytime

https://blog.jupyter.org/gnu-octave-meets-jupyterlite-compute-anywhere-anytime-8b033afbbcdc
125•bauta-steen•14h ago•36 comments

Look at how unhinged GPU box art was in the 2000s (2024)

https://www.xda-developers.com/absolutely-unhinged-gpu-box-art-from-the-early-2000s/
144•m-hodges•4h ago•46 comments

LoC Is a Dumb Metric for Functions

https://theaxolot.wordpress.com/2025/10/18/loc-is-a-dumb-metric-for-functions/
26•Axol•6h ago•29 comments

The Spilhaus Projection: A world map according to fish

https://southernwoodenboatsailing.com/news/the-spilhaus-projection-a-world-map-according-to-fish
116•zynovex•1w ago•14 comments

Comparing the power consumption of a 30 year old refrigerator to a new one

https://ounapuu.ee/posts/2025/10/14/fridge-power-consumption/
155•furkansahin•5d ago•182 comments

Nvidia has produced the first Blackwell wafer on US soil

https://www.xda-developers.com/nvidia-produced-first-blackwell-wafer-us-soil/
78•kristianp•4h ago•25 comments

Deterministic multithreading is hard (2024)

https://www.factorio.com/blog/post/fff-415
88•adtac•21h ago•9 comments

Pawn is a simple, typeless, 32-bit extension language with a C-like syntax

https://www.compuphase.com/pawn/pawn.htm
21•unleaded•1w ago•5 comments

Discussion of the Benefits and Drawbacks of the Git Pre-Commit Hook

https://yeldirium.de/2025/10/09/pre-commit-hooks/index.html
15•hambes•1w ago•11 comments

The Cancer Imaging Archive (TCIA)

https://www.cancerimagingarchive.net/
46•1970-01-01•6d ago•5 comments

Could the XZ backdoor been detected with better Git/Deb packaging practices?

https://optimizedbyotto.com/post/xz-backdoor-debian-git-detection/
91•ottoke•12h ago•73 comments

Show HN: Duck-UI – Browser-Based SQL IDE for DuckDB

https://demo.duckui.com
193•caioricciuti•19h ago•57 comments