From: Derek Fawcus <dfawcus+lists-tuhs@employees.org>
To: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: Re: [TUHS] Lorinda Cherry
Date: Sun, 20 Feb 2022 17:29:52 +0000 [thread overview]
Message-ID: <YhJ6kFZKIC253QiG@clarinet.employees.org> (raw)
In-Reply-To: <4E3028A1-EC08-424A-B814-CC2AEEEAEC7B@iitbombay.org>
On Thu, Feb 17, 2022 at 01:44:07PM -0800, Bakul Shah wrote:
> MacOS (m1 pro, prob. 2Ghz)
> $ command time dc <<< '2p3p[dl!d2+s!%0=@l!l^!<#]s#[s/0ds^]s@[p]s&[ddvs^3s!l#x0<&2+l.x]ds.x' > xxx
> time: command terminated abnormally
> 1.00 real 0.98 user 0.01 sys
> [2] 37135 segmentation fault command time dc <<< > xxx
> $ wc xxx
> 7342 7342 42626 xxx
> $ size `which dc`
> __TEXT __DATA __OBJC others dec hex
> 32768 16384 0 4295016448 4295065600 100018000
So macOS has got worse, or the systems have:
$ sysctl machdep.cpu.brand_string
machdep.cpu.brand_string: Intel(R) Core(TM)2 Duo CPU U9400 @ 1.40GHz
$ uname -a
Darwin Old-MBA.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 21 20:07:40 PDT 2018; root:xnu-3248.73.11~1/RELEASE_X86_64 x86_64
Old-MBA:~ derek$ time dc <<< '2p3p[dl!d2+s!%0=@l!l^!<#]s#[s/0ds^]s@[p]s&[ddvs^3s!l#x0<&2+l.x]ds.x' > xxx
Segmentation fault: 11
real 0m14.982s
user 0m12.608s
sys 0m0.206s
$ wc xxx
7868 7868 45782 xxx
My old machine computed more primes before the program crashed!
Given the comment about the GNU s/w running out of stack, I guess the x86 version uses smaller stack frames.
DF
next prev parent reply other threads:[~2022-02-20 17:41 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-15 22:31 Douglas McIlroy
2022-02-15 23:32 ` Steve Nickolas
2022-02-15 23:43 ` Jim Capp
2022-02-15 23:51 ` Larry McVoy
2022-02-16 0:54 ` Will Senn
2022-02-16 2:58 ` Steve Nickolas
2022-02-16 0:09 ` George Michaelson
2022-02-16 0:24 ` Dave Horsfall
2022-02-16 7:54 ` arnold
2022-02-16 8:13 ` markus schnalke
2022-02-16 14:54 ` Leah Neukirchen
2022-02-16 22:27 ` Dave Horsfall
2022-02-16 22:40 ` Andrew Diller
2022-02-17 10:14 ` Peter Jeremy via TUHS
2022-02-17 15:50 ` Adam Thornton
2022-02-17 20:23 ` Dave Horsfall
2022-02-17 10:24 ` Andy Kosela
2022-02-17 16:05 ` Andrew Hume
2022-02-17 16:38 ` Warner Losh
2022-02-16 22:42 ` Larry McVoy
2022-02-16 22:56 ` Clem Cole
2022-02-16 23:49 ` Paul Winalski
2022-02-16 23:49 ` [TUHS] Benchmarks Bakul Shah
2022-02-17 1:02 ` Larry McVoy
2022-02-17 12:36 ` [TUHS] Lorinda Cherry Stuart Remphrey
2022-02-17 19:59 ` Tom Ivar Helbekkmo via TUHS
2022-02-17 21:18 ` Dave Horsfall
2022-02-17 21:44 ` Bakul Shah
2022-02-18 8:33 ` Otto Moerbeek
2022-02-22 10:39 ` Ralph Corderoy
2022-02-22 15:53 ` Otto Moerbeek
2022-02-20 17:29 ` Derek Fawcus [this message]
2022-02-17 22:00 ` David Arnold
2022-02-18 9:58 ` Tom Ivar Helbekkmo via TUHS
2022-02-16 14:34 ` [TUHS] dc after bc Ralph Corderoy
2022-02-16 19:08 ` [TUHS] Lorinda Cherry Diomidis Spinellis
2022-02-16 20:55 ` John P. Linderman
2022-02-16 21:17 ` Andrew Hume
2022-02-16 21:59 ` Marshall Conover
2022-02-17 5:51 ` arnold
2022-02-17 22:09 ` Will Senn
2022-02-16 0:35 ` Andrew Hume
2022-02-16 8:02 ` Thomas Paulsen
2022-02-16 14:05 ` [TUHS] Shower of Dogs Ralph Corderoy
2022-02-16 14:09 ` Andrew Hume
2022-02-16 15:01 ` Larry McVoy
2022-02-16 16:57 ` Douglas McIlroy
2022-02-16 17:03 ` Dennis Boone
2022-02-16 17:18 ` Warner Losh
2022-02-16 14:09 ` Chet Ramey
2022-02-16 14:35 ` Ron Natalie
2022-02-16 14:41 ` Ralph Corderoy
2022-02-16 15:08 ` Rich Morin
2022-02-16 21:21 ` Dave Horsfall
2022-02-16 21:25 ` John Cowan
2022-02-17 3:31 ` Chet Ramey
-- strict thread matches above, loose matches on Subject: below --
2022-02-22 0:02 [TUHS] Lorinda Cherry Brian Walden
2022-03-01 21:51 ` Terry Jones
2022-02-18 3:18 Norman Wilson
2022-02-18 9:10 ` Peter Jeremy via TUHS
2022-02-15 21:17 John P. Linderman
2022-02-15 21:26 ` Dave Horsfall
2022-02-15 21:33 ` Jeffrey Joshua Rollin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YhJ6kFZKIC253QiG@clarinet.employees.org \
--to=dfawcus+lists-tuhs@employees.org \
--cc=tuhs@tuhs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).