9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] porting XaoS3.0 to plan9 (problems)
@ 1997-09-08  9:47 Jan
  0 siblings, 0 replies; 7+ messages in thread
From: Jan @ 1997-09-08  9:47 UTC (permalink / raw)


Hi
yesterday I got first version of XaoS of plan9 vorking but it still has
following serious problems:
XaoS sometimes calcualtes thinks like 1.0/0.0 and expect that result will
be Inf or any other garbage. It still produces correct results. I decided
for this way because it avoids many if (x<epsilon) statements in code and
makes sources more readable and program faster.
Problem is that plan9 (unlike UNIXes) generates floating point exception
in this cases. It is possible to ignore this exception (I know that plan9
has notes instead of signals, is there any note for SIGFPE?)
Best case is of course to set coprocesor into ignoring mode, if there is
any way to do that, it should be much faster, since it avoids unnecesary
SIGFPES.

Another problem is with compiler. XaoS became really fatware(tm) at least
from plan9 point of view (it is approx. 400 kb long and acid thinks that
it is X source :( I will try to make it smaller. But main XaoS loops are
generated by large coprocessor construction, where I always define FORMULA
to formula I want and then include another file that generates custom
internal loop code for this formula. I know that it is not plan9 way to
do thinks, but speed is really significant for XaoS, so I sometimes vote
for speed instead of simplicity/elegancy when required. At this file
8c crases with message that starts with <eof>. (I can send you full
text of this message tommorow). When I uncoment last 5 formulas everything
works, so problem don't seems to be in included file source nor in
formulas (since they compiles well at all other platform). So do you have
any idea what caused this problem?

BTW how does typedefs in plan9 works? Why code
#ifndef AAA
#define AAA
typedef double test;
#endif
won't work when included twice?

BTW is there any users of XaoS for plan9? or I am making this port just
for my own fun? :)

Honza
-- 
------------------------------------------------------------------------------
                   Have you browsed my www pages? Look at:
                       http://www.paru.cas.cz/~hubicka
      Koules-the game for Svgalib,X11 and OS/2,  Xonix-the game for X11
      czech documentation for linux index, original 2D computer art and
              funny 100 years old photos and articles are there!




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

* [9fans] porting XaoS3.0 to plan9 (problems)
@ 1997-09-10  8:44 Jan
  0 siblings, 0 replies; 7+ messages in thread
From: Jan @ 1997-09-10  8:44 UTC (permalink / raw)


On Tue, Sep 09, 1997 at 08:08:38AM +0000, forsyth@caldo.demon.co.uk wrote:
> >>so I have plan9 manpages at my linux box. Reboot always you need some
> >>help is not very nice. At least I should copy them to dos partition and
> 
> there are several packages for Plan 9 out on the net that make
> a user-level file server that will allow you to read, or even read and write,
> a Linux ext2fs partition.  that might make things a little easier for you.
Sounds great! I have to rebrowse 9fans ftp sites :)
Is that safe? Plan9 once damaged fat partitions so I am bit more curefull
now...

BTW is there some other interesting news about plan9? Something changed
in distribution poilticy? (I really want to see sources once...)
whats about brazil?
> 
> Plan 9's man is just an rc script; it's a close relative of the example
> in the tom duff's rc paper.
OK. I will download it soon!

Many thanks
Honza
-- 
------------------------------------------------------------------------------
                   Have you browsed my www pages? Look at:
                       http://www.paru.cas.cz/~hubicka
      Koules-the game for Svgalib,X11 and OS/2,  Xonix-the game for X11
      czech documentation for linux index, original 2D computer art and
              funny 100 years old photos and articles are there!




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

* [9fans] porting XaoS3.0 to plan9 (problems)
@ 1997-09-10  6:46 forsyth
  0 siblings, 0 replies; 7+ messages in thread
From: forsyth @ 1997-09-10  6:46 UTC (permalink / raw)


>>Is that safe? Plan9 once damaged fat partitions so I am bit more curefull
>>now...

that had to do with the handling or interpretation of the partition table
especially on installation, and was fairly quickly changed.
the ext2fs servers are distinct programs, and might have bugs
of their own, of course, though no one has mentioned it.
the one i did gave read-only access; someone else wrote a server
that would allow full read/write access.  i haven't had a linux
partition for several years now, and haven't tested the latter myself.




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

* [9fans] porting XaoS3.0 to plan9 (problems)
@ 1997-09-09 10:37 Frank
  0 siblings, 0 replies; 7+ messages in thread
From: Frank @ 1997-09-09 10:37 UTC (permalink / raw)



------ =_NextPart_000_01BCBD04.0650AAC0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit



  I use it to soak up idle time.

  plan9, fun >= 2

frankg
      >....

>BTW is there any users of XaoS for plan9? or I am making this port just
>for my own fun? :)

>Honza
>-- 

------ =_NextPart_000_01BCBD04.0650AAC0
Content-Type: application/ms-tnef
Content-Transfer-Encoding: base64

eJ8+IiwIAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAENgAQAAgAAAAIAAgABBJAG
ABABAAABAAAADAAAAAMAADADAAAACwAPDgAAAAACAf8PAQAAAEEAAAAAAAAAgSsfpL6jEBmdbgDd
AQ9UAgAAAAA5ZmFuc0Bjc2UucHN1LmVkdQBTTVRQADlmYW5zQGNzZS5wc3UuZWR1AAAAAB4AAjAB
AAAABQAAAFNNVFAAAAAAHgADMAEAAAASAAAAOWZhbnNAY3NlLnBzdS5lZHUAAAADABUMAQAAAAMA
/g8GAAAAHgABMAEAAAAUAAAAJzlmYW5zQGNzZS5wc3UuZWR1JwACAQswAQAAABcAAABTTVRQOjlG
QU5TQENTRS5QU1UuRURVAAADAAA5AAAAAAsAQDoBAAAAAgH2DwEAAAAEAAAAAAAAA8AtAQiABwAY
AAAASVBNLk1pY3Jvc29mdCBNYWlsLk5vdGUAMQgBBIABADAAAABSRTogWzlmYW5zXSBwb3J0aW5n
IFhhb1MzLjAgdG8gcGxhbjkgKHByb2JsZW1zKQC1DwEFgAMADgAAAM0HCQAJAAkAJQAXAAIALQEB
IIADAA4AAADNBwkACQAJACIAKQACADwBAQmAAQAhAAAAODlDRDY2NDBGNjI4RDExMUIxNzc0NDQ1
NTM1NDAwMDAAyAYBA5AGAOQCAAASAAAACwAjAAAAAAADACYAAAAAAAsAKQAAAAAAAwA2AAAAAABA
ADkAYCo0mPu8vAEeAHAAAQAAADAAAABSRTogWzlmYW5zXSBwb3J0aW5nIFhhb1MzLjAgdG8gcGxh
bjkgKHByb2JsZW1zKQACAXEAAQAAABYAAAABvLz7mCxAZs2KKPYR0bF3REVTVAAAAAAeAB4MAQAA
AAUAAABTTVRQAAAAAB4AHwwBAAAAEwAAAGZyYW5rZ0BoYWxjeW9uLmNvbQAAAwAGEHyOsJkDAAcQ
dAAAAB4ACBABAAAAZQAAAElVU0VJVFRPU09BS1VQSURMRVRJTUVQTEFOOSxGVU49MkZSQU5LR0JU
V0lTVEhFUkVBTllVU0VSU09GWEFPU0ZPUlBMQU45P09SSUFNTUFLSU5HVEhJU1BPUlRKVVNURk9S
TVkAAAAAAgEJEAEAAABUAQAAUAEAALcCAABMWkZ1lj3gNv8ACgEPAhUCqAXrAoMAUALyCQIAY2gK
wHNldDI3BgAGwwKDMgPFAgBwckJxEeJzdGVtAoMzdwLkBxMCgH0KgAjPCdk78RYPMjU1AoAKgQ2x
C2DgbmcxMDMUUAsKFFF1C/JjAEAgCoUKhRvASSQgdRGwIGkFQHRvoCBzb2FrHABwHEDUZGwcMHQH
cS4a/gtRQG45LCBmdQOgPjg9IDIa/ANQAHBrZzMbZyFiPi4h4QqLbGlcMzYN8BncE1BvE9BjNwVA
CocZ7z4jTyRUQlTmVxxABCB0aASQHDAAcAZ5HAIRoCBvZiBYvGFvBfACEAXAHtM/KTCjBcAb8GFt
IADAawuAlmcoMSgRcBWxIGocEF50JL8lzyO+KcJtKMBvzncDoB9BKlA6KRr8LL/LLc8kJ0gCIHph
MP8yD1kjvi0tGuYVMQA4YAMAEBAAAAAAAwAREAAAAABAAAcwQIGpN/u8vAFAAAgwQIGpN/u8vAEe
AD0AAQAAAAUAAABSRTogAAAAAK2+

------ =_NextPart_000_01BCBD04.0650AAC0--





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

* [9fans] porting XaoS3.0 to plan9 (problems)
@ 1997-09-09  8:15 Jan
  0 siblings, 0 replies; 7+ messages in thread
From: Jan @ 1997-09-09  8:15 UTC (permalink / raw)


On Mon, Sep 08, 1997 at 08:39:34AM +0000, forsyth@caldo.demon.co.uk wrote:
> >>Best case is of course to set coprocesor into ignoring mode, if there is
> >>any way to do that, it should be much faster, since it avoids unnecesary
> 
> man 2 getfcr ?
Ok thank you very much, I will read it soon.
BTW it is possible to get man for plan9? My demo instalation don't have them,
so I have plan9 manpages at my linux box. Reboot always you need some
help is not very nice. At least I should copy them to dos partition and
read them using acme :)

Honza

-- 
------------------------------------------------------------------------------
                   Have you browsed my www pages? Look at:
                       http://www.paru.cas.cz/~hubicka
      Koules-the game for Svgalib,X11 and OS/2,  Xonix-the game for X11
      czech documentation for linux index, original 2D computer art and
              funny 100 years old photos and articles are there!




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

* [9fans] porting XaoS3.0 to plan9 (problems)
@ 1997-09-09  7:08 forsyth
  0 siblings, 0 replies; 7+ messages in thread
From: forsyth @ 1997-09-09  7:08 UTC (permalink / raw)


>>so I have plan9 manpages at my linux box. Reboot always you need some
>>help is not very nice. At least I should copy them to dos partition and

there are several packages for Plan 9 out on the net that make
a user-level file server that will allow you to read, or even read and write,
a Linux ext2fs partition.  that might make things a little easier for you.

Plan 9's man is just an rc script; it's a close relative of the example
in the tom duff's rc paper.




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

* [9fans] porting XaoS3.0 to plan9 (problems)
@ 1997-09-08  7:39 forsyth
  0 siblings, 0 replies; 7+ messages in thread
From: forsyth @ 1997-09-08  7:39 UTC (permalink / raw)


>>Best case is of course to set coprocesor into ignoring mode, if there is
>>any way to do that, it should be much faster, since it avoids unnecesary

man 2 getfcr ?




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

end of thread, other threads:[~1997-09-10  8:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-08  9:47 [9fans] porting XaoS3.0 to plan9 (problems) Jan
  -- strict thread matches above, loose matches on Subject: below --
1997-09-10  8:44 Jan
1997-09-10  6:46 forsyth
1997-09-09 10:37 Frank
1997-09-09  8:15 Jan
1997-09-09  7:08 forsyth
1997-09-08  7:39 forsyth

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