Re: The importers are about to get much simpler

2022-08-16 Thread Edward K. Ream
On Tuesday, August 16, 2022 at 7:25:43 AM UTC-5 Edward K. Ream wrote: Today is an important milestone in the history of Leo's importers. The code > probably can't much simpler. > All the importers are now significantly smaller. The cython importer has shrunk from 581 lines to 57. Most other imp

Re: The importers are about to get much simpler

2022-08-16 Thread Edward K. Ream
On Monday, August 15, 2022 at 6:43:06 AM UTC-5 Edward K. Ream wrote: > Vitalije's importer code has primed the psychological pump. The effect on > the importers will be a spectacular collapse in complexity. > Indeed yes. The work is complete. See PR #2741

Re: The importers are about to get much simpler

2022-08-15 Thread Edward K. Ream
On Mon, Aug 15, 2022 at 7:09 AM tbp1...@gmail.com wrote: > It might be interesting to know if the framework could support brainf*ck > (but I won't be the one to > try to actually write the importer...). > I'll leave this as an exercise for the reader

Re: The importers are about to get much simpler

2022-08-15 Thread tbp1...@gmail.com
It might be interesting to know if the framework could support brainf*ck (but I won't be the one to try to actually write the importer...). On Monday, August 15, 2022 at 7:43:06 AM UTC-4 Edward K. Ream wrote: > Vitalije's importer code has primed the

The importers are about to get much simpler

2022-08-15 Thread Edward K. Ream
Vitalije's importer code has primed the psychological pump. The effect on the importers will be a spectacular collapse in complexity. *Aha 1*: A new method, *i.scan_all_lines*, can calculate all scan states in a single pass. There is no need to store "helper" values in scan states! Instead, i.