Live data from Hacker News

Maccarone: AI-managed code blocks in Python

github.com

51–60 of 75 posts

Re: Maccarone: AI-managed code blocks in Python

#51
post #22

similar to this? https://www.askmarvin.ai/welcome/quickstart/#ai-functions

I think they're spiritually related, but my understanding is that Marvin actually invokes the LLM at runtime to execute an AI Function (which is why it can perform, e.g., sentiment analysis). Maccarone invokes the LLM to generate code during development.

Re: Maccarone: AI-managed code blocks in Python

#52
post #7

Earlier quoted context omitted.

How would not having the source code be present/pre-generated, and thus needing to generate it at runtime, be an example of a decorator having no runtime effects?

OP has to be doing some parsing somewhere, so you just switch to seeking decorators rather than magic comments. It's still before the code reaches the interpreter. The potential issue I see here is that comments are valid anywhere while decorators may not be, but the parser is hopefully resilient to that. You could see a multi-phase LLM that uses the interpreter to ensure the code runs / works as expected

I’m not objecting to what you say. The latter part of my comment is simply considering cases where you only want to replace a part of the function (the author have some examples on the project page), where a decorator wouldn’t be flexible enough to support. Of course you can also argue those can be easily rewritten to be function scoped, but that is a design tradeoff you make that author did not (or didn’t want to).

Re: Maccarone: AI-managed code blocks in Python

#59
post #45
post #42

Earlier quoted context omitted.

Maybe I misunderstand, but my understanding is that (at least some languages) can be given proofs of correctness for some pre and post conditions. See e.g., https://arxiv.org/pdf/2303.05491.pdf Conceptually, you tell the computer how to validate that the conditions you state are correct with your proof, and it checks that each step follows.

To me, it seems like there will be a finite set of pre and post conditions ever needed for 99% of future programming, and eventually everything will be a catalog of the conditions to working code. One just needs a language to write those conditions in.

I'm not sure how to phrase this, but it seems like there's some trade off between how easy it is to express a condition, and how easy it is to verify that it holds in an imperative language.

One the one hand you have declarative languages, and on the other imperative languages.

Not sure where I'm going with this, but I think there's something there.

Re: Maccarone: AI-managed code blocks in Python

#60
post #53

> What prevents my program from behaving differently after each preprocessing run? >The strength of your faith in GPT-4. I got a chuckle out of that

The strength of my faith in GPT-4 has been getting stronger every year since 2016.

What happened in 2016?
Post reply on HN