OK, turing.

<- leave blank

Wed Jul 29 20:38:44 EDT 2020

From: Doug McIlroy <doug@cs.dartmouth.edu>
Date: Thu, 23 Jul 2020 14:33:23 -0400
To: tuhs@tuhs.org
Subject: Re: [TUHS] Groff on Windows (for PDF output)?
Errors-To: tuhs-bounces@minnie.tuhs.org
Sender: "TUHS" <tuhs-bounces@minnie.tuhs.org>

Echoing other answers, I regularly use groff in Cygwin.
If you're into Unix/Linux, Cygwin is a great tool with a
remarkably clean installation process.  I use default
PostScript output by choice, because I can tinker with
PostScript but not with PDF.  ps2pdf (available from
Cygwin) has always worked when I need PDF.

I must admit, tough, that this approach will be pretty
onerous if you do not want Cygwin for any other
reason.  And I should add that PoscScript requires a
special viewer; I use gsview.

Doug



Wed Jul 29 20:38:20 EDT 2020
From robpike@gmail.com Thu Jul 23 00:32:39 EDT 2020
ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa
key
 sha256) header.d=gmail.com header.i=@gmail.com header.b=ugWB3RLX
 header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass
 policy.published-domain-policy=none
 policy.published-subdomain-policy=quarantine policy.applied-disposition=none
 policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none)
 policy.policy-from=p header.from=gmail.com; spf=pass
 smtp.mailfrom=robpike@gmail.com smtp.helo=mail-vs1-f50.google.com;
 x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body
 has been altered)) (Message modified while forwarding at Topicbox)
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=
	topicbox.com; h=mime-version:references:in-reply-to:from:date
	:message-id:subject:to:content-type:list-help:list-id:list-post
	:list-subscribe:reply-to:content-transfer-encoding
	:list-unsubscribe; s=sysmsg-1; t=1595478749; bh=0T0cT7Yqj0VMcHeW
	32N5QJENJM42AHO/vyV+SxwN9NQ=; b=Rp+LcK8II3DvUZioGCzo+wyvi/ihrbjB
	CaG4HV7sgZxI2vX/Ipv+wN1mg8GnU+FiOdjsAKjjwRdzkahuiNN9QjrGJuaMfUVz
	z0n5MUgRP3cJXwYhE28rGSb3nEdR0g6ghW5KWNXedLG3Hs6rBnihyj43ffRCamyF
	I8M83Q3+PO4=
ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t=
	1595478749; b=kiOoyPzraYv0Z7WdapKaUpbWlQ9PVwE/5sgD1IpClFmrKtiC6I
	vQ+DPtTyPo2eOZDOCVZpFhWk0uFjDtfeEZkr2aaIGfVl27sBmdjZa/cKeM2CyEBW
	lBX8TxkzS2EeJzhgsPY7EQKpEkgZNcoLKbndXglOyDpRuk4WG27ycuaPI=
Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key
 sha256) header.d=gmail.com header.i=@gmail.com header.b=ugWB3RLX
 header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass
 policy.published-domain-policy=none
 policy.published-subdomain-policy=quarantine policy.applied-disposition=none
 policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none)
 policy.policy-from=p header.from=gmail.com; spf=pass
 smtp.mailfrom=robpike@gmail.com smtp.helo=mail-vs1-f50.google.com;
 x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body
 has been altered)) (Message modified while forwarding at Topicbox)
ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t=
    1595478672; b=fHCNkGLN6foGVi/IJnIF7LZlEw3FvNWXC4fxJ83SYdu7T9i1XP
    LrUW6P1BrxyBsQnZWGrnAjP6bTvk0bM7ah9br2MvQrhDPANKxKgoty33A3KgnreT
    SVhvEUbO8UKUColhKpDvXJYrJML8ory2ZmdtZKDOrzIDNjG5iM+WtvL5rIQeHc5A
    rD1XeKAGEljScuofraLI5/RgivnubcogIjfELRh+h11HLUE74bvSL18KnpjjTJRz
    UDL7OWj7VXUsnb7UFkZvOEViqM9RN7eEvNoltMLjcA+Kjz5aP7c0Ktuz2peXq+gs
    mdGJ+DlwDVvhLaOqGPVovEh9KLmnRwmUn+OQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=
    topicbox.com; h=mime-version:references:in-reply-to:from:date
    :message-id:subject:to:content-type; s=arcseal; t=1595478672;
    bh=MUh8PHh8woo7dNz46v/IKI1dVe+QuLxPSGjkNhCwv1Y=; b=rgMhi4YStKFU
    SpQkDvtmX0W85LR6Ae7Nc7m2VrmZQMwrO0ox4+tqWB3FGRBiLI+Ng+n1xzkFjsLQ
    t/Zj9AoOpzreY61SWHdnxaBi5c7C7wavRpnUTrMpf5GmLivSDDSz5ZLnuqbYTvBg
    ttI1KnctAYxfh2CaRe+XgyWvUD6qGVJtxhUEuQW60jirR9L6BcWZ97Vw42Rq+6e5
    dCbL3KZMHEeRd1CIpAwWW4gCwPH1i0ay5GizD6UFEDxKE/qjNcgebeRgmG88/HwL
    gZN8JFY9eiiMGnCSLlKDcdAyZjwJjrwlvZpGKad6t8zQ8+OORftrdkO6Q1+MCpG4
    aZRbLtFu6g==
ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures
found);
    bimi=none (Domain is not BIMI enabled);
    dkim=pass (2048-bit rsa key sha256) header.d=gmail.com
    header.i=@gmail.com header.b=ugWB3RLX header.a=rsa-sha256
    header.s=20161025 x-bits=2048;
    dmarc=pass policy.published-domain-policy=none
    policy.published-subdomain-policy=quarantine
    policy.applied-disposition=none policy.evaluated-disposition=none
    (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p
    header.from=gmail.com;
    iprev=pass smtp.remote-ip=209.85.217.50 (mail-vs1-f50.google.com);
    spf=pass smtp.mailfrom=robpike@gmail.com
    smtp.helo=mail-vs1-f50.google.com;
    x-aligned-from=pass (Address match);
    x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net
    header.i=@1e100.net header.b=UCN4zzrj;
    x-ptr=pass smtp.helo=mail-vs1-f50.google.com
    policy.ptr=mail-vs1-f50.google.com;
    x-return-mx=pass header.domain=gmail.com policy.is_org=yes
    (MX Records found:
    gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com);
    x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes
    (MX Records found:
    gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com);
    x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384
    smtp.bits=256/256;
    x-vs=clean score=0 state=0
Received-SPF: pass
    (gmail.com ...  _spf.google.com: Sender is authorized to use
    'robpike@gmail.com' in 'mfrom' identity (mechanism
    'include:_netblocks.google.com' matched))
    receiver=tb-mx0.topicbox.com;
    identity=mailfrom;
    envelope-from="robpike@gmail.com";
    helo=mail-vs1-f50.google.com;
    client-ip=209.85.217.50
From: Rob Pike <robpike@gmail.com>
Date: Thu, 23 Jul 2020 14:31:00 +1000
Subject: Re: [9fans] Acme fonts
To: 9fans <9fans@9fans.net>
Topicbox-Policy-Reasoning: allow: sender is a member
Topicbox-Message-UUID: 59aad174-cc9d-11ea-96ca-f78e24b0d5a8
Archived-At:
<https://9fans.topicbox.com/groups/9fans/T9673b88bfb3c3d3b-M83d3d78bd7b32d700bee5a3d>
Reply-To: 9fans <9fans@9fans.net>
Topicbox-Delivery-ID:
 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:f44f5dc2-eb83-11e9-92f5-7ab8f5b1d025:M83d3d78bd7b32d700bee5a3d:1:y3X9xcmYBkF7P-Qza9b2-dSF0ANRY9gP2G6sx8-txlg

I see, yes.  Well, that's not too terrible.

-rob


On Thu, Jul 23, 2020 at 1:40 PM <ori@eigenstate.org> wrote:

> > I don't understand that.  Acme knows the characters' location or it
> couldn't
> > draw them.  Are you sure it's not just the frame library's lousy
handling
> of
> > italic fonts?
>
> Unless I'm misunderstanding how this works, ',' (0x2c) gets mangled
> to something like 0x10002c.
>
> So, acme knows the location, but not the character types.  That means
> 'foo,bar,baz' with a mangled ',' codepoint would treat ',' as a word
> character instead of a separator.  Double clicking within foo would
> select [foo,bar,baz] rather than just foo.
>

------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T9673b88bfb3c3d3b-M83d3d78bd7b32d700bee5a3d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription




Wed Jul 29 20:37:59 EDT 2020
Authentication-Results: minnie.tuhs.org;
	dkim=fail reason="signature verification failed" (1024-bit key;
	unprotected) header.d=yaccman.com header.i=@yaccman.com
	header.b="mqeAcZ0R";
	dkim-atps=neutral
Date: Wed, 22 Jul 2020 21:13:21 -0700
From: scj@yaccman.com
To: Warren Toomey <wkt@tuhs.org>
Subject: Re: [TUHS] AT&T Research
Cc: tuhs@tuhs.org
Errors-To: tuhs-bounces@minnie.tuhs.org
Sender: "TUHS" <tuhs-bounces@minnie.tuhs.org>

I think that's an interesting topic.  I interned at BTL for three
summers before coming on permanently in 1967.  At the time, it was
running an IBM 7090 (later 7094) with a home-grown operating system.
Punched card decks were put on mag tape and fed to the system in
batches.  There was no memory protection, so after running one job the
system would checksum itself to make sure it was sane.  At one point,
someone was testing a sort routine that ran amock and sorted a good
portion of the OS, but not the checksum routine, which did an exclusive
OR of the instructions and attempted to run the next job.  The
instruction core dump was quite amusing.

One of the first computer games I became aware of happened on that
mainframe.  It was called "Darwin", and was a contest.  Each contestant
submitted a card deck, and there was a monitor that ran the program--its
object was to attack other programs by returning an address.  If the
address was protected, you died and the other program reproduced itself
in your place.  Otherwise, they died and you reproduced yourself.  The
game ran for several weeks until a program described to me as "all
teeth, claws and sex organs" proved to be unbeatable.

In my opinion, the initial view of Unix at Bell Labs was quite negative.
  After all, these were the people who promised Multics with great hype
and failed to deliver.  When I started work in 1067, I was given a memo
that began "In six months, we expect the dominant programming language
at Bell Labs to be PL/1."
There were some amazing simulation programs written in assembler with
macros -- all of these were lost when the comp center pushed everyone on
to FORTRAN.

I actually think it was a good thing that Unix in the early days was not
taken seriously.  Having users is a mixed blessing when the rate of
change was rapid.  For example, the transition from B to C to C with
strong typing would have driven most application developers bonkers when
they were trying to serve their customers.

One of the things that got me interested in management was visiting a
number of groups with my then boss, Eliot Pinson, to try to "sell" Unix.
  It was amazing to me that some groups that urgently needed it were
unwilling to try it, while groups that were doing just fine without it
embraced it and ran with it.  The technical people I met all seemed
competent -- it must be the management that was the difference...

---


On 2020-07-11 13:30, Warren Toomey wrote:
> On Sat, Jul 11, 2020 at 11:36:35AM -0400, Clem Cole wrote:
>> https://spinroot.com/pico/watertower.jpg
>
> So there's a question.  Obviously all the anecdotes I've heard about
> Bell Labs have come from Unix people.  But there were many others
> working and researching there.
>
> How was the interaction between the Unix people and the non-Unix people
> at the Labs?  Especially when Unix became "big"?  Did the non-Unix people
> also pull pranks like the watertower?
>
> Cheers, Warren



Wed Jul 29 20:36:27 EDT 2020
ARC-Seal: i=2; a=rsa-sha256; t=1595462548; cv=pass;
	d=google.com; s=arc-20160816;
	b=IsPT0b2j/9mBoVwaNHP50iu46UybXPOXy5DgXBSPyY3d7f1gVI/hf0apE0ck8loSII
	 SPme+vvnRKAMANrWUAF2v7zutR1JgXrR6y5bDR21NjPh7CgS4qZgmADc5PEHDaLhc0xh
	 dDTAn/i+XEI5hqt9S6ivwdmzrZQ50Vz9gRoif29oV6NJhd1ItY0VdS42sX3YLM3i5jQO
	 8ef8Z+WkELzsbo1C9XI3N52ftIbqy+5CBdY4AXQ7mNSOmZXlAAYU83vhHOmfT54o1kOA
	 M1F9V7xzEbUldx2nVyNPVwwAyyu2S24sT0xTiS+BQ7CI0APX+ravZtIj6cDeZzpcF8gM
	 jGJw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
	h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
	 :list-id:mailing-list:precedence:cc:to:subject:message-id:date:from
	 :in-reply-to:references:mime-version:sender:dkim-signature;
	bh=bJoFI4ipRoBBlsX1W0QH2C1dBKwsi+LM+15lqv+BAkE=;
	b=bnmiPaZftXfCQjVm8HUkcYODnKP4zsV5/aFmXw5TJMzP1UfbYTOQbBjuUZMZwU+7EH
	 Dvv5ME6k34kbrz8JjlQnfJOImEvRmPHS6a2kW4gVgy+a4npTPGihNsSuJSyD89x7d4ep
	 mauR3MY9BqgeE0E9o3AEykXeVNw1nrwkxHM69XOn+fDjkv89U5o+bPND1XaeFpQCKo4S
	 iUqJZ6FYx4at7ys/RKL4Ay1KQn+snwnhflvMExM6Nb2mIBwgUr910yQftS2hoz7M49fk
	 wvW2JfEjlGvUb5EdznHNMWC25EVuj4EI423vGtFMUGIPb9zMWlRouJfJ49bCiD+D3ho3
	 5I8Q==
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       dkim=pass header.i=@golang-org.20150623.gappssmtp.com header.s=20150623
       header.b=C5TIYbbW;
       spf=pass (google.com: domain of rsc@golang.org designates
       2607:f8b0:4864:20::22a as permitted sender) smtp.mailfrom=rsc@golang.org;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=golang.org
Sender: golang-nuts@googlegroups.com
ARC-Seal: i=1; a=rsa-sha256; t=1595462545; cv=none;
	d=google.com; s=arc-20160816;
	b=PFWywizEVqVgS+1pMFNgSsTI+l0vw5u4TxvssDAWJntU9D9xz6el3wA4G72Tk82cuX
	 3l4G3T3jGZ8J+NFJj1/Ql6NlcsbeVD8CeHWb992AnX9csvKajWpmG9WwUjMPjOA1NsCN
	 a0vi5BkOGVyBTDKaOdcGP2JNbBNZ305GtlWQ3DJ5iLefQonyj+SKRiSUsMKs3h0klTYJ
	 ormodhBS2+1PRmg40nmtxodtlkhlzkBLcr6SeC9W3IoyUzk6evs/5gJSptIEcE31jo6/
	 0WbCzu1nk3118SKoCxnMdtBtBA2BSFFWR7fHOm2hTmFCsbrWDloUcjDHfanGFJwHPx5Q
	 uXZw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
	h=cc:to:subject:message-id:date:from:in-reply-to:references
	 :mime-version:dkim-signature;
	bh=Ah5aI1OKtbY4YGh2JoZICDDai1JOnUTGidwBGYPIeF4=;
	b=n2BdUGnToEMpiDidBKMp45P3aLOOXVHZ35xE/Cu5OT/ZXP72uVRHL3fLtg2wcW76Yk
	 qf1ybw62Skr0db7htuoinCCLYpLnvDlWYEYGpnx7Ou88anr4lbZhppOk2/bryPJ16T56
	 W+JNjfp40klM5Gb6aAa8QJTeC+ip48qjgMj43gVE+yPO5PQE7RjG4n8D/1mpZg0eYnt0
	 wrAzj6IYBddYL2EweP/iT4Ai1RyCA/4ohgaBheJ3z0uBJpy67UhNc7ShOl4KOtB8eawC
	 HCN5KlrzDhMlCslyWLnOLlWY4LRQ+t0TXhWJH60et2hlhq9P5JsoSFlMEjqKs3VIHu+Z
	 jc2A==
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@golang-org.20150623.gappssmtp.com header.s=20150623
       header.b=C5TIYbbW;
       spf=pass (google.com: domain of rsc@golang.org designates
       2607:f8b0:4864:20::22a as permitted sender) smtp.mailfrom=rsc@golang.org;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=golang.org
Received-SPF: pass (google.com: domain of rsc@golang.org designates
2607:f8b0:4864:20::22a as permitted sender) client-ip=2607:f8b0:4864:20::22a;
From: Russ Cox <rsc@golang.org>
Date: Wed, 22 Jul 2020 20:02:14 -0400
Subject: Re: [go-nuts] Generics and parentheses
To: Denis Cheremisov <denis.cheremisov@gmail.com>
Cc: golang-nuts <golang-nuts@googlegroups.com>
Mailing-list: list golang-nuts@googlegroups.com; contact
golang-nuts+owners@googlegroups.com

So it sounds like everyone is in favor of the entire generics proposal and
all the semantics, and all we have left to hammer out is the bracket
characters?  Do I have that right?

Best,
Russ

--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
golang-nuts+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/CAA8EjDRrEBeOgs2Yax%2BgtHp-oJqCApjGJJEsop-S1OzOJbU3xA%40mail.gmail.com.




Wed Jul 29 15:35:11 EDT 2020
#!/bin/rc
upasname=$1
shift
if (~ $winid '')
	err=`{echo -n Cannot find window id}
if (!  test -d /mnt/acme/^$winid)
	err=`{echo -n usage: Must be run in Acme}
if (~ $upasname '')
		err=`{echo -n usage: Must set upasname}
if (!  ~ $err '') {
	echo $err
	status=$err
	exit
}
if (!  test -f /tmp/from.$upasname)
	echo From: $upasname >/tmp/from.$upasname
#echo `{date} >> /sys/log/mailfrom
#cat /tmp/from.$upasname /mnt/acme/$winid/body >> /sys/log/mailfrom
cat /tmp/from.$upasname /mnt/acme/$winid/body | upas/marshal -8 $*
rm /tmp/from.$upasname


Wed Jul 29 14:07:40 EDT 2020
diff -r c5110aa667d8 sys/src/cmd/cc/lex.c
--- a/sys/src/cmd/cc/lex.c Wed Jul 29 13:56:03 2020 +0930
+++ b/sys/src/cmd/cc/lex.c Wed Jul 29 11:07:39 2020 -0700
@@ -444,7 +444,7 @@
 yylex(void)
 {
	vlong vv;
- long c, c1, t;
+ long c, c1, t, w;
	char *cp;
	Rune rune;
	Sym *s;
@@ -844,7 +844,8 @@
		yyerror("overflow in constant");

	vv = yylval.vval;
- if(c1 & Numvlong) {
+ w = (c1 & Numdec) ? 31 : 32;
+ if(c1 & Numvlong || (uvlong)vv >= 1ULL<<w){
		if((c1 & Numuns) || convvtox(vv, TVLONG) < 0) {
			c = LUVLCONST;
			t = TUVLONG;


Wed Jul 29 10:57:41 EDT 2020
dfghfghfgh

Tue Jul 28 22:13:43 EDT 2020
ewoJImFsZyI6ICJFUzI1NiIsCgkiandrIjogewoJCSJrdHkiOiAiRUMiLAoJCSJjcnYiOiAiUC0yNTYiLAoJCSJ4IjogInNUZWFjOFNuMDdYSmoyaDlmZmVWOFVhQ2xNWDRyYnRwaDNZWVRHMGxaMzgiLAoJCSJ5IjogIm9HQUhXRnVwRHg0bG1qMUtQRmdrdXAwZjN1Y3h4YXpwb2RBc1ZDRHc3UmciCgl9LAoJIm5vbmNlIjogIjAwMDF1akROa0RSeDR0VUxGaDFrOUZJNFY2VDBqQk16UG1vTXExYWhlU3hoSFkwIiwKCSJ1cmwiOiAiaHR0cHM6Ly9hY21lLXYwMi5hcGkubGV0c2VuY3J5cHQub3JnL2FjbWUvbmV3LWFjY3QiCn0.eyJ0ZXJtc09mU2VydmljZUFncmVlZCI6IHRydWV9.OXtdifqkh6x52Qbr033O9K-JfuPSqA8fJFLUIpWJFKoXoxBfVzwK6hiNHbEOeLW7UtWf0JL4PZmv-xXuzYj0UQ

Tue Jul 28 22:07:11 EDT 2020
ewoJImFsZyI6ICJFUzI1NiIsCgkiandrIjogewoJCSJrdHkiOiAiRUMiLAoJCSJjcnYiOiAiUC0yNTYiLAoJCSJ4IjogIi1PVi01alMzRExLWHRKVnI5ekFTTmJJRWNFbGx4Rk4tYmg1RHo0dEYtVU0iLAoJCSJ5IjogIl9WZHB4UHF4b211OUdTcUxQR05vejhCZm1tdU9ybmZuVHBYQzZBXzdlTDgiCgl9LAoJIm5vbmNlIjogIjAxMDFQbnltNTl5eXBTUU10WHJ1VE9BcmxVNWQtQnNpY2FtUlJuNGpQQnc1Vl9jIiwKCSJ1cmwiOiAiaHR0cHM6Ly9hY21lLXYwMi5hcGkubGV0c2VuY3J5cHQub3JnL2FjbWUvbmV3LWFjY3QiCn0.eyJ0ZXJtc09mU2VydmljZUFncmVlZCI6IHRydWV9.EkxfrN9bl_YmYF_oHYZfm9tAbR6AFQfMp-OEZQMXXd1km3Amfze4orXpkXG7slqFGLdcIfYVxgMRMHyHrJ7k3g

Tue Jul 28 18:28:42 EDT 2020
https://spacepub.space/videos/watch/1619c000-7c44-4330-9177-29a0854bd759


Tue Jul 28 10:59:12 EDT 2020
--- /mnt/git/object/60b5822dca47196b6bb02279974fcc01fb0f8b0d/tree/pack.c Fri Jun
19 20:31:13 2020
+++ pack.c Tue Jul 28 07:58:59 2020
@@ -938,7 +938,7 @@ int
 indexpack(char *pack, char *idx, Hash ph)
 {
	char hdr[4*3], buf[8];
- int nobj, nvalid, nbig, n, i, step;
+ int nobj, nvalid, nbig, n, i, pcnt, x;
	Object *o, **objects;
	DigestState *st;
	char *valid;
@@ -961,19 +961,21 @@ indexpack(char *pack, char *idx, Hash ph
	nobj = GETBE32(hdr + 8);
	objects = calloc(nobj, sizeof(Object*));
	valid = calloc(nobj, sizeof(char));
- step = nobj/100;
- if(!step)
- step++;
	while(nvalid != nobj){
- fprint(2, "indexing (%d/%d):", nvalid, nobj);
+ fprint(2, "indexing (%d/%d): 0%%", nvalid, nobj);
		n = 0;
+ pcnt = 0;
		for(i = 0; i < nobj; i++){
			if(valid[i]){
				n++;
				continue;
			}
- if(i % step == 0)
- fprint(2, ".");
+ x = (i*100) / nobj;
+ if(x > pcnt){
+ pcnt = x;
+ if(pcnt%10 == 0)
+ fprint(2, "\b\b\b\b%-3d%%", pcnt);
+ }
			if(objects[i] == nil){
				o = emalloc(sizeof(Object));
				o->off = Boffset(f);
@@ -993,7 +995,7 @@ indexpack(char *pack, char *idx, Hash ph
			if(objectcrc(f, o) == -1)
				return -1;
		}
- fprint(2, "\n");
+ fprint(2, "\b\b\b100%%\n");
		if(n == nvalid){
			sysfatal("fix point reached too early: %d/%d: %r", nvalid,
			nobj);
			goto error;


prev | next