Igor Żuk
Igor Żuk
There is another reason to add `UnsafeFn`: currently `unsafe fn`s don't implement `Fn`. There is no way to pass `unsafe fn` as a function argument, they are second class citizen:...
@alexreg Ok, I'll prepare it in spare time. Unfortunately I lack knowledge and experience to actually implement it or even fully understand the idea.
I'm afraid that it's not THAT simple. I've tried it before, when I was submitting this issue and AFAIK it requires wrapping the footer and the content in a flex...
It seems that that as of `forge 0.2.0 (63ed109 2022-08-09T00:03:50.892098571Z)` this issue is solved.
> we might be able to create a loop of some sort that keeps checking if the verification is pending? That would be awesome, from what you wrote that does...
Yes, if this PR goes through, we can add these optimizations there too. One thing at a time :smiley:
I've pushed an optimization of the memory writing loop. I don't exactly understand why, streamlining the loop and putting the `iszero` command as the last thing of the loop just...
I don't have a particular use case in mind, I just thought that it may be useful for somebody as OZ is the unofficial Solidity std-lib :shrug: Binary heap is...
That's a neat quicksort implementation! I can't wait to benchmark it against heapsort. Before I've implemented heapsort I was experimenting with quicksort too and the gas usage was much worse....
The second commit cuts gas by ~1/3 by switching memory access from Solidity to Yul, there's no way around index checking overhead in pure Solidity. The memory location is calculated...