News for hackers. Stuff that matters.
Re:You can use C-Reduce for any language by DRMacIver on Thursday November 28, 2024 @04:09PM (#42268538)
FWIW shrinkray gets to 162 bytes if I leave it to run for about 10 minutes. https://gist.github.com/DRMacIver/ee025c90b4867125b382a13aaa...

I think it might do a little but not a lot better if I left it to run for longer but it looked to have mostly stalled then so I got bored and killed it.

Re:You can use C-Reduce for any language by judofyr on Friday November 29, 2024 @02:26AM (#42271688)
I actually tried to Shrinkray it myself, but after ~3 minutes it crashed with the following stack trace:

      (4 nested BaseExceptionGroup: Exceptions from Trio nursery (1 sub-exception), and then:
      +-+---------------- 1 ----------------
        | Traceback (most recent call last):
        |   File "/nix/store/5cdw4sa0n0lwym47rd99a1q6b4dj7nr9-python3.12-shrinkray-0.0.0/lib/python3.12/site-packages/shrinkray/work.py", line 221, in parallel_map
        |     yield receive_out_values
        |   File "/nix/store/5cdw4sa0n0lwym47rd99a1q6b4dj7nr9-python3.12-shrinkray-0.0.0/lib/python3.12/site-packages/shrinkray/work.py", line 71, in map
        |     yield v
        | GeneratorExit
        +------------------------------------
Not sure if this is a known issue? Note that I ended up not respecting all of the version requirements in the pyproject.toml since I tried to run it all in Nix and there the Poetry support is currently quite lacking.
Re:You can use C-Reduce for any language by DRMacIver on Friday November 29, 2024 @07:59AM (#42273545)
Interesting. I've not seen that before. My best guess is that it might be an old trio version or something, but I'm not sure.