POV-Ray : Newsgroups : povray.off-topic : All good fun Server Time
6 Sep 2024 19:22:16 EDT (-0400)
  All good fun (Message 21 to 26 of 26)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Darren New
Subject: Re: All good fun
Date: 16 Dec 2008 19:06:57
Message: <494842a1$1@news.povray.org>
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>>> 2. How much slower would the whole contraption be? (I'm guessing it 
>>> would make Vista look *fast*...)
> 
>> It would be about 30% faster.
> 
>   If it would indeed by 30% faster, that would only be a sign that the
> current codebase sucks. (Of course being MS, that would hardly surprise
> anyone.)

No. It's the same codebase, one running under the OS doing VMM, address 
mapping, and kernel ring protections, the other running under the OS with 
that turned off. If you actually turn off bounds checking, you get another 
5% speed increase.

But just like staying in the cache gives you good performance, not 
*flushing* that cache every time you (say) allocate a block of memory or get 
an interrupt helps. Not having to do VM map lookups helps a bunch too. The 
numbers and costs of different bits of hardware are all analyzed separately, 
so you can decide if you like having (for example) virtual memory but not 
needing kernel trap protection ring overhead.

You don't get the 30% increase in speed from using a safe language. You get 
the ability to turn off protection from other users from using a safe 
language, which in turn gives you speed. If you want to use AmigaOS, with no 
protection from other users blasting your memory, then you would see about a 
5% performance decrease for the bounds checking.

http://research.microsoft.com/apps/pubs/default.aspx?id=71996
This points to a paper published at ACM SIGPLAN, which of course you'd have 
to pay for, but if you grope around the project you can find it in the 
source code I think. (Unless they took it out since I downloaded it.)

http://channel9.msdn.com/shows/Going+Deep/Singularity-III-Revenge-of-the-SIP/ 
has an extensive interview about "software isolated processes". Check 
starting about 30 minutes in. I'll see if I can dig up the actual URL to the 
paper with the graphs and such in it free, when I next dig out my "old 
stuff" disk.

-- 
   Darren New, San Diego CA, USA (PST)
   The NFL should go international. I'd pay to
   see the Detroit Lions vs the Roman Catholics.


Post a reply to this message

From: Darren New
Subject: Re: All good fun
Date: 16 Dec 2008 19:13:12
Message: <49484418$1@news.povray.org>
Warp wrote:
>   You can do *anything* with C. You can exactly replicate the machine code
> run by SQL or prolog in C. It may be more laborious to do in C than in SQL
> or prolog, but it will certainly not run slower.

That's just the Turing completeness argument. :-) It's not always true, tho, 
depending on your underlying CPU architecture. I've used systems where C 
can't be compiled.

-- 
   Darren New, San Diego CA, USA (PST)
   The NFL should go international. I'd pay to
   see the Detroit Lions vs the Roman Catholics.


Post a reply to this message

From: Darren New
Subject: Re: All good fun
Date: 16 Dec 2008 19:14:34
Message: <4948446a$1@news.povray.org>
Darren New wrote:
> the paper with the graphs and such in it free, when I next dig out my 
> "old stuff" disk.

http://www.google.com/search?q=mspc2006_deconstructingisolation.pdf

I think the paper is probably still in the download, but they've probably 
taken if off their site since it got published in ACM. (You have to turn 
over your copyright to ACM to get published in SIGPLAN.) And sadly the "view 
as HTML" leaves out the charts.

-- 
   Darren New, San Diego CA, USA (PST)
   The NFL should go international. I'd pay to
   see the Detroit Lions vs the Roman Catholics.


Post a reply to this message

From: Jim Henderson
Subject: Re: All good fun
Date: 16 Dec 2008 20:42:17
Message: <494858f9$1@news.povray.org>
On Tue, 16 Dec 2008 16:46:03 -0500, Warp wrote:

> Would
> a change in programming language make them less incompetent?

Depends on how well they know the language they're switching to, and if 
the problems with their code are syntactical or structural.

Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: All good fun
Date: 16 Dec 2008 20:43:41
Message: <4948594d$1@news.povray.org>
On Tue, 16 Dec 2008 20:48:42 +0000, Orchid XP v8 wrote:

> And people still write all OS and application software in C because...??

Um, they don't?

Jim


Post a reply to this message

From: Invisible
Subject: Re: All good fun
Date: 17 Dec 2008 04:37:18
Message: <4948c84e$1@news.povray.org>
Warp wrote:

>   Of because the vast majority of libraries out there you need to write
> something like an OS are written in C.

Ain't that the truth...

>   Also C is conveniently low-level so that you can quite accurately access
> asm and hardware directly.

That's useful for OS construction. I'm not immediately seeing why that 
makes it a good language for writing (say) a web browser.

>   Do languages like Haskell even support inline asm, linking to asm routines,
> or accessing hardware directly (other than with wrappers around existing
> C libraries)?

Inline? No.

But if you write it and assemble it as a seperate object file, it's not 
difficult to link to it. (Takes a 1-line Haskell import declaration.)

Apparently somebody *did* write an OS in Haskell. It was called "House". 
Obviously, like everything to do with Haskell, it was an experimental 
research project which is now long dead...


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.