3 ms·
> the constraint of "all the code has to be in this language." No that is not a usual constraint, many implementations use third party libraries. E.g., regexdn
by qznc 11y ago
> the constraint of "all the code has to be in this language."
No that is not a usual constraint, many implementations use third party libraries. E.g., regexdna implementations usually rely on some regex library and pidigits just measures libgmp.
- steveklabnik 11y agoThe "third party" bit is hard to define as well. For example, Rust doesn't include regular expressions in the standard library, because we have made an explicit choice to keep the standard library small. But the regex package is maintained by the Rust team, so it's not _exactly_ third party. But some languages with regexes in the language just have bindings to PCRE or something similar... so it's "first party" in the sense that it's built-in, but "third party" in the sense that the code wasn't really written and isn't maintained by them.
- mcguire 11y agoIt is a valid constraint, though. Many long-standing complaints from the Java side of things were along the lines of "We can't use libgmp."
- igouy 11y agohttp://benchmarksgame.alioth.debian.org/u64q/program.php?test=pidigits&lang=java&id=2#sourcecode http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...