Hacker News new | ask | show | jobs
by gabereiser 1022 days ago
I welcome programming English++ with open arms so long as I can scold it when it makes mistakes and it doesn’t require move semantics.

I’m joking of course but I do think LLM’s will become part of the programming language lexer of some kind. If not already being looked into.

1 comments

Introducing non-deterministic inputs into programs is already wild.

I think once we get past "make the LLM generate #$%!#@ JSON" we will start seeing a lot more of this, since we will then be able to constrain the code-paths that are followed.

I could absolutely see LLM-powered operators being introduced at some point, that we use just like an if statement.

Imagine "if(input like LLM(greeting))" or while(LLM(input) like "interested")

essentially distilling unstructured inputs into a canonical form to be used in control flows:

Switch(LLM(input)): - case request - case question - case query

Why not the other way around? LLM interfaced with a controller which recognizes commands in text stream and can insert data.

If it's too dark call 'HAL.lights_on' with the current room as a parameter.

"Tell me how old Napoleon would be today." "Today Napoleon, assuming he is alive, would be calc(today - data.Napoleon.birthdate).year"