Conversation
|
My first thoughts (on waking up this morning) are:
Out of interest, as well as the time gained back, is it easy to measure the comparative memory footprint of the two versions? |
I don't know how I could do that I'm afraid |
|
You can throw in |
|
without-K: cubical-compatible: |
|
OK, IIUC, the change takes 75% of time, and roughly the same for memory as well. Sold! |
| Highlights | ||
| ---------- | ||
|
|
||
| * Modules that previously used `--cubical-compatible` once again use `--without-K`. |
There was a problem hiding this comment.
I admire the understatement, but I think that this is (probably) why I'd rather have this as a v3.0 change... and be documented/announced/released as such.
While I agree with @JacquesCarette 's arguments on #2792 that this was a change we should not have made for v2.x, now that we have, I'd be happier if the v2.x line of stdlib were the cubical-compatible releases, but with our overall strategy for v3.0 to make clean breaks with all kinds of legacy, this one included, that we start the v3.y line with the reversion enacted here.
There was a problem hiding this comment.
Philosophically, this makes sense.
Pragmatically, I'm afraid that v3.0 might take quite a lot of time, and so we would be waiting for the benefits quite a while. I guess if we planned to have v3.0.1, v3.0.2, v3.0.3, in quick succession, all of them being breaking before eventually stabilizing, I'd be happy with that.
But I don't want to wait a full year or more to have a released version of stdlib in its current state.
There was a problem hiding this comment.
@JacquesCarette I absolutely agree. It's already a year (or more!) since we decided to delay v3.0 in favour of v2.4. But I maybe hoped that we could tie off v2.4 soon ('for a suitable definition of soon'), rather than wait yet another year. Maybe some of @MatthewDaggitt 's more cautious/conservative approach to these things has rubbed off on me!
Very rough benchmarks (running
time make testaftergit clean -fxd:--without-K:--cubical-compatibleSo,
--without-Ktakes about three quarters the time of--cubical-compatible.I don't think we have a clear use case for using
--cubical-compatible. If it turns out there is one, we should put some effort into fixing the unsupported index matches, warnings for which we're currently hiding.