DeadCodeProductions / dead

Other
50 stars 5 forks source link

[RFC] [dead diopter] Rewrite of dead using diopter #43

Closed thetheodor closed 2 years ago

thetheodor commented 2 years ago

This is a minimal proof of concept for a diopter-based dead. (I took some parts of didead.py but left others out). Everything works in didead2.py: generating code, filtering interesting cases, reductions, bisections. The goal of this PR is to iterate and "smoothen" diopter's API.

I did not include any database related code as it was too intertwined with the logic in didead.py and it would have taken me too long to figure it (and sqlalchemy) out. I think it needs a bit more massaging and modularization, so let's figure out the core dead/diopter first and then we can iterate on that.

Instead of building a full blown command line tool, I suggest treating dead as a library that sits on top of diopter that let's us write full blown end-to-end pipelines in <50 lines of python code. And once we have this, writing a cmd tool should be trivial.

Here are a few observations:

thetheodor commented 2 years ago

It should be possible to merge back to mainline some of these changes: