Skip to content

Instantly share code, notes, and snippets.

View arseniiv's full-sized avatar
🌜

Arsenii A. arseniiv

🌜
View GitHub Profile
@arseniiv
arseniiv / README.md
Last active February 28, 2021 20:55
(The great) snail evaluation campaign, fixed once

(The great) snail evaluation campaign

Behold!

Then write a snail strategy and evaluate it for good measure. We need more of actually competent ones.

Okay, I don’t currently have any plans for maintaining this so just take it and may it make your day more interesting.

This uses Python 3, the latest. You can downport it if you want!

import ceylon.collection {
ArrayList,
Stack
}
shared abstract class ComplexTrampoline<Type>()
of ComplexReturn<Type> | ComplexCall<Type> {
shared formal Type result;
}
@arseniiv
arseniiv / README.md
Last active February 23, 2016 09:05
Performance test for different implementations of `letter`

On my computer, results are as follows (several runs):

Implementation 1: 0.51096861 s
Implementation 2: 0.08305151000000001 s

Implementation 1: 0.49112112700000005 s
Implementation 2: 0.06993395000000001 s

Implementation 1: 0.5380552780000001 s

Implementation 2: 0.083535994 s