← Back to context

Comment by lionkor

3 hours ago

Curious why you do this with AI instead of just writing it yourself?

You should be able to whip up a Lexer, Parser and compiler with a couple weeks of time.

It would be very new to me. I'd have to learn a lot to do that. And I can't spare the time or attention. It's more of a fun side project.

The machine code would also be tedious, tho fun. But I really can't spare the time for it.

Because he did it in a day, not a few weeks.

If I want to go from Bristol to Swindon, I could walk there in about 12 hours. It's totally possible to do it by foot. Or I could use a car and be there in an hour. There and back, with a full work day in-between done, in a day. Using the tool doesn't change what you can do, it speeds up getting the end result.

  • If you could also automate away the reason for being in Swindon in the first place, would you still go?

    • The only reason for going to Swindon was to walk there?

      If so then of course you still should go.

      But the point making of a computer program usually isn't for "the walk".

  • There is no end result. It's a toy language based on a couple of examples without a grammar where apparently the LLM used its standard (plagiarized) parser/lexer code and reiterated until the examples passed.

    Automating one of the fun parts of CS is just weird.

    So with this awesome "productivity" we now can have 10,000 new toy languages per day on GitHub instead of just 100?

    • That was exactly my thought. Why automate the coding part to create something that will be used for coding (and in itself can be automated , going buy the same logic)? This makes zero sense.

I'm not the previous user, but I imagine that weeks of investment might be a commitment one does not have.

I have implemented an interpreter for a very basic stack-based language (you can imagine it being one of the simplest interpreters you can have) and it took me a lot of time and effort to have something solid and functional.

Thus I can absolutely relate to the idea of having an LLM who's seen many interpreters lay out the ground for you and make you play as quickly as possible with your ideas while procrastinating delving in details till necessary.