Sujet : Re: Why Python When There Is Perl?
De : nospam (at) *nospam* dfs.com (DFS)
Groupes : comp.os.linux.advocacyDate : 24. Mar 2024, 17:33:24
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <utph43$e824$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Betterbird (Windows)
On 3/24/2024 9:35 AM, vallor wrote:
rather than eating humble pie, he (tries to) call
out 'froup denizens who didn't inform him of his mistake.
He once posted some of his crap .asm code. When I didn't notice how bad a section of it was:
-----------------------------------------------------------------------
But the original asm code that I posted did contain a GLARING
ERROR and you missed it completely.
That error should be EXTREMELY OBVIOUS to any competent programmer
but you missed it totally.
I won't even give you a hint. Let's see if you can locate it.
But you won't. Ha, ha, ha, ha, ha! You can't.
The only reason that the error was there is because, in my haste,
I blindly cut and pasted some code.
The fact, however, that you MISSED IT COMPLETELY only proves
that you haven't a fucking clue.
-----------------------------------------------------------------------
Mommy!!!
> ObLinux:
$ man primes
to screen
$ time primes 1 100000000 (100M)
real 0m26.515s
user 0m0.943s
sys 0m5.111s
to file
$ time primes 1 100000000 > primes.txt (also 100M)
real 0m0.319s
user 0m0.309s
sys 0m0.010s
primes.txt is 49.9MB, contains 5,761,455 prime numbers.
3/10ths of a second to generate 5.7M primes and write them to a file? I must say: C on Linux is my performance hero.
https://www.unix.com/man-page/netbsd/6/primes/BUGS
primes won't get you a world record.
Per wikipedia, the world record biggest prime is 2^82,589,933 − 1, which has 24,862,048 digits when written in base 10.
source
https://github.com/vattam/BSDGames/blob/master/primes/primes.c