4 ms·
I want to take an existing Python application (which is 100% a 'sufficiently complicated concurrent program in another language contains an ad hoc informally-sp
by whalesalad 2y ago
I want to take an existing Python application (which is 100% a 'sufficiently complicated concurrent program in another language contains an ad hoc informally-specified bug-ridden slow implementation of half of Erlang.'[0]) and port it to Elixir.
Retaining the core business logic, but re-homing it inside of idiomatic elixir with a supervision tree. At the end of the day it is just orchestrating comms between PSQL, RMQ and a few other services. Nothing is unique to Python (its a job runner/orchestrator).
Is this tool going to be useful for that? Are there other tools that exist that are capable of this?
I am trying to rewrite the current system in a pseudocode language of high-level concepts in an effort to make it easier for an LLM to help me with this process (versus getting caught up on the micro implementation details) but that is a tough process in and of itself.
[0] - https://www.goodreads.com/author/quotes/423160.Robert_Virding https://www.goodreads.com/author/quotes/423160.Robert_Virdin...
- vessenes 2y agoHow big is this codebase? gpto-preview and claude sonnet are both fairly capable. Claude has longer context windows and is a little less lazy. aider.chat is working on an architect / coder model right now that's verrrry effective. Essentially - paste your whole codebase into 4o-preview, ask it to rearchitect to spec, and output a design document and list of tasks suitable for a senior dev. Dump that plus your tarball into claude as two separate pastes, and be like "Do task 1".
- machiaweliczny 2y agoWould love a more specific example of this. How to use this architect mode. BTW surprised that tarballs work - aren’t these compressed?
- vessenes 2y agoJust incant tar cvf and leave off the z or j: there’s a tiny binary header but Claude won’t mind. Check out the aider GitHub repository for details but 4o is responsive to text requests too.
- whalesalad 2y agoya for extra clarification - a tarball or .tar file is an uncompressed container for files. It can also be compressed (.tar.gz, .tar.bz2, etc) ultimately though the end user is not really concerned with this. the tarball needs to be un-tar'd regardless of whether it is compressed. (some nuance here as certain compression formats might not be supported by the host... but gzip and bzip2 are common) I haven't tested a compressed tarball yet but I would imagine chatgpt won't have issues with that.
- vessenes 2y agoActually I literally just paste the raw tar file in to Claude. Gpt does not like this as much.