9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] COND LIST on vlong
@ 2004-03-05 13:25 David Tolpin
  2004-03-05 13:40 ` David Presotto
  0 siblings, 1 reply; 12+ messages in thread
From: David Tolpin @ 2004-03-05 13:25 UTC (permalink / raw)
  To: 9fans


Hi,

COND LIST and COMMA are not supported by C compiler for vlong. 
Is it a feature or an omission?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] COND LIST on vlong
  2004-03-05 13:25 [9fans] COND LIST on vlong David Tolpin
@ 2004-03-05 13:40 ` David Presotto
  2004-03-05 13:45   ` David Tolpin
  2004-03-05 17:00   ` Russ Cox
  0 siblings, 2 replies; 12+ messages in thread
From: David Presotto @ 2004-03-05 13:40 UTC (permalink / raw)
  To: 9fans

> 
> COND LIST and COMMA are not supported by C compiler for vlong. 
> Is it a feature or an omission?

Its clearly an omission and I know that ken intended it.  Is that
what you're asking?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] COND LIST on vlong
  2004-03-05 13:40 ` David Presotto
@ 2004-03-05 13:45   ` David Tolpin
  2004-03-05 13:50     ` David Presotto
  2004-03-05 17:00   ` Russ Cox
  1 sibling, 1 reply; 12+ messages in thread
From: David Tolpin @ 2004-03-05 13:45 UTC (permalink / raw)
  To: 9fans

> Its clearly an omission and I know that ken intended it.  Is that
> what you're asking?
>

graphviz has a package tools/sfio which is of not much use under
plan9 (and not used by basic graphviz tools), but which macros
rely heavily on COMMA. 

If not supporting COMMA is phisolophy, I will be trying to rewrite
those macros to compile, but there are really a lot things to change.

If it is an omission, I can leave sfio out of the port and write
a comment about it in hope it will be implemented sometimes in
the future.

David


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] COND LIST on vlong
  2004-03-05 13:45   ` David Tolpin
@ 2004-03-05 13:50     ` David Presotto
  2004-03-05 13:54       ` David Tolpin
  0 siblings, 1 reply; 12+ messages in thread
From: David Presotto @ 2004-03-05 13:50 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

I'm assuming that by COMMA you mean expressions separated by
COMMAs?  If so, that is supported.  I thought you meant vlong
comma separated expressions or is that really what you mean?

[-- Attachment #2: Type: message/rfc822, Size: 2626 bytes --]

From: David Tolpin <dvd@davidashen.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] COND LIST on vlong
Date: Fri, 5 Mar 2004 17:45:05 +0400 (AMT)
Message-ID: <200403051345.i25Dj5CJ009753@adat.davidashen.net>

> Its clearly an omission and I know that ken intended it.  Is that
> what you're asking?
>

graphviz has a package tools/sfio which is of not much use under
plan9 (and not used by basic graphviz tools), but which macros
rely heavily on COMMA. 

If not supporting COMMA is phisolophy, I will be trying to rewrite
those macros to compile, but there are really a lot things to change.

If it is an omission, I can leave sfio out of the port and write
a comment about it in hope it will be implemented sometimes in
the future.

David

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] COND LIST on vlong
  2004-03-05 13:50     ` David Presotto
@ 2004-03-05 13:54       ` David Tolpin
  2004-03-05 13:58         ` David Presotto
  0 siblings, 1 reply; 12+ messages in thread
From: David Tolpin @ 2004-03-05 13:54 UTC (permalink / raw)
  To: 9fans

> I'm assuming that by COMMA you mean expressions separated by
> COMMAs?  If so, that is supported.  I thought you meant vlong
> comma separated expressions or is that really what you mean?

cpu% cat testv.c
#include <u.h>

vlong foo() {
  vlong x=1;
  vlong y=2;
  vlong z;
  
  z=x,y;
  
  return z;
}

cpu% 8c -c testv.c
testv.c:8 unknown vlong COMMA



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] COND LIST on vlong
  2004-03-05 13:58         ` David Presotto
@ 2004-03-05 13:55           ` dbailey27
  2004-03-05 14:13             ` boyd, rounin
  2004-03-05 14:21             ` C H Forsyth
  2004-03-05 14:03           ` David Tolpin
  2004-03-06 10:43           ` Bruce Ellis
  2 siblings, 2 replies; 12+ messages in thread
From: dbailey27 @ 2004-03-05 13:55 UTC (permalink / raw)
  To: presotto, 9fans; +Cc: brucee

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

Dave said:
> If and when brucee does his thing and we have new vlong support,
> it will work.  Right now, vlong is a very strangely supported type.

What is entailed in (fixing?) vlong support?

[-- Attachment #2: Type: message/rfc822, Size: 2347 bytes --]

From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] COND LIST on vlong
Date: Fri, 5 Mar 2004 08:58:03 -0500
Message-ID: <4c1c0d3934feb2e46663047bdc455f2b@plan9.bell-labs.com>

right, no vlong COMMA.  Your previous message confused me, it said
that COMMA was not supported which it is in general.

If and when brucee does his thing and we have new vlong support,
it will work.  Right now, vlong is a very strangely supported type.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] COND LIST on vlong
  2004-03-05 13:54       ` David Tolpin
@ 2004-03-05 13:58         ` David Presotto
  2004-03-05 13:55           ` dbailey27
                             ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: David Presotto @ 2004-03-05 13:58 UTC (permalink / raw)
  To: 9fans

right, no vlong COMMA.  Your previous message confused me, it said
that COMMA was not supported which it is in general.

If and when brucee does his thing and we have new vlong support,
it will work.  Right now, vlong is a very strangely supported type.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] COND LIST on vlong
  2004-03-05 13:58         ` David Presotto
  2004-03-05 13:55           ` dbailey27
@ 2004-03-05 14:03           ` David Tolpin
  2004-03-06 10:43           ` Bruce Ellis
  2 siblings, 0 replies; 12+ messages in thread
From: David Tolpin @ 2004-03-05 14:03 UTC (permalink / raw)
  To: 9fans

>
> If and when brucee does his thing and we have new vlong support,
> it will work.  Right now, vlong is a very strangely supported type.
>

Ok, so typedef long long off_t; expressions are left for later support
when available in the compiler.

David


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] COND LIST on vlong
  2004-03-05 13:55           ` dbailey27
@ 2004-03-05 14:13             ` boyd, rounin
  2004-03-05 14:21             ` C H Forsyth
  1 sibling, 0 replies; 12+ messages in thread
From: boyd, rounin @ 2004-03-05 14:13 UTC (permalink / raw)
  To: 9fans

> What is entailed in (fixing?) vlong support?

fixing and a shitload of testing.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] COND LIST on vlong
  2004-03-05 13:55           ` dbailey27
  2004-03-05 14:13             ` boyd, rounin
@ 2004-03-05 14:21             ` C H Forsyth
  1 sibling, 0 replies; 12+ messages in thread
From: C H Forsyth @ 2004-03-05 14:21 UTC (permalink / raw)
  To: 9fans

>>What is entailed in (fixing?) vlong support?

the compiler quite early on converts most vlong operators to function calls.
fixing it requires implementing it properly, which eventually requires
changing all the code generators, not just 8c/8l.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] COND LIST on vlong
  2004-03-05 13:40 ` David Presotto
  2004-03-05 13:45   ` David Tolpin
@ 2004-03-05 17:00   ` Russ Cox
  1 sibling, 0 replies; 12+ messages in thread
From: Russ Cox @ 2004-03-05 17:00 UTC (permalink / raw)
  To: 9fans

> > COND LIST and COMMA are not supported by C compiler for vlong. 
> > Is it a feature or an omission?
> 
> Its clearly an omission and I know that ken intended it.  Is that
> what you're asking?

It's an omission.  Ken decided it was too hard.

Russ



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] COND LIST on vlong
  2004-03-05 13:58         ` David Presotto
  2004-03-05 13:55           ` dbailey27
  2004-03-05 14:03           ` David Tolpin
@ 2004-03-06 10:43           ` Bruce Ellis
  2 siblings, 0 replies; 12+ messages in thread
From: Bruce Ellis @ 2004-03-06 10:43 UTC (permalink / raw)
  To: 9fans

please don't make me sad.  i had a lot of it done but i had -
yes - a double disk crash in a brownout.  i've been silly
and playing music in-between trying to recover data.
it's cool with me now - i know how to do it and the code
may be cleaner this time.  damn that ax/dx need for MUL.

brucee
----- Original Message ----- 
From: "David Presotto" <presotto@closedmind.org>
To: <9fans@cse.psu.edu>
Sent: Saturday, March 06, 2004 12:58 AM
Subject: Re: [9fans] COND LIST on vlong


> If and when brucee does his thing and we have new vlong support,
> it will work.  Right now, vlong is a very strangely supported type.



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-03-06 10:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-05 13:25 [9fans] COND LIST on vlong David Tolpin
2004-03-05 13:40 ` David Presotto
2004-03-05 13:45   ` David Tolpin
2004-03-05 13:50     ` David Presotto
2004-03-05 13:54       ` David Tolpin
2004-03-05 13:58         ` David Presotto
2004-03-05 13:55           ` dbailey27
2004-03-05 14:13             ` boyd, rounin
2004-03-05 14:21             ` C H Forsyth
2004-03-05 14:03           ` David Tolpin
2004-03-06 10:43           ` Bruce Ellis
2004-03-05 17:00   ` Russ Cox

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).