If you want to avoid those dynamic type checks and not use TYPED, another
alternative is "declare":
{ object array fixnum } declare
> On Jan 25, 2015, at 9:12 AM, Björn Lindqvist wrote:
>
> 2015-01-18 2:44 GMT+00:00 John Benediktsson :
>> Also, minor comment, instead of:
>>
>>length
2015-01-18 2:44 GMT+00:00 John Benediktsson :
> Also, minor comment, instead of:
>
> length [ 0 ] { } replicate-as ;
>
> You can just do:
>
> length 0
Thanks!
> And instead of the array-nth stuff, you can just do some type declarations
> and the compiler should make it the same as your a
Also, minor comment, instead of:
length [ 0 ] { } replicate-as ;
You can just do:
length 0
And instead of the array-nth stuff, you can just do some type declarations
and the compiler should make it the same as your array words:
{ fixnum array } declare nth-unsafe ;
{ array }
Factor is pretty fast already, but there are also some pretty low-hanging
fruit like these:
* Lift generic dispatch out of loops, for example this 30% win for
iterating over slices:
https://github.com/slavapestov/factor/issues/1213
https://github.com/slavapestov/factor/issues/839
* Fixn
Hello all,
Someone made a benchmark on github to compare performance of different
languages on a simple pathfinding problem:
https://github.com/logicchains/LPATHBench/blob/master/writeup.md
It's getting popular and people are quoting the results they get from
it to show that a language is really