POV-Ray : Newsgroups : povray.off-topic : Learning C# Server Time
28 Jul 2024 20:28:42 EDT (-0400)
  Learning C# (Message 1 to 10 of 32)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Orchid Win7 v1
Subject: Learning C#
Date: 28 Sep 2012 10:13:04
Message: <5065b070@news.povray.org>
OK, so most companies don't seem to be interested in Java any more. Most 
of them are asking for something.net, and the most popular one is C#, 
unsurprisingly. So I'm sitting hear reading some C# books.

Like anything else, there are some good things, and not so good things. 
The one that really tickles me is the author insisting that because 
assemblies are loaded dynamically, and because CIL takes up less space 
than machine code and is JIT-compiled, you can "drastically reduce the 
working set of your application".

Uhuh. Erm... you realise this thing uses a GC for memory management, 
right? ;-)

I also love the way it raves about why "metadata" is so great, without 
actually explaining precisely what it solves.

But anyway, early days...


Post a reply to this message

From: scott
Subject: Re: Learning C#
Date: 28 Sep 2012 10:21:47
Message: <5065b27b$1@news.povray.org>
> OK, so most companies don't seem to be interested in Java any more. Most
> of them are asking for something.net, and the most popular one is C#,
> unsurprisingly. So I'm sitting hear reading some C# books.

I assume you've downloaded and installed MS Visual C# Express already? 
If not do it now :-)


Post a reply to this message

From: Orchid Win7 v1
Subject: Re: Learning C#
Date: 28 Sep 2012 10:51:22
Message: <5065b96a$1@news.povray.org>
On 28/09/2012 03:21 PM, scott wrote:
>> OK, so most companies don't seem to be interested in Java any more. Most
>> of them are asking for something.net, and the most popular one is C#,
>> unsurprisingly. So I'm sitting hear reading some C# books.
>
> I assume you've downloaded and installed MS Visual C# Express already?

Twice, in fact.

First I downloaded the full install. Apparently the only way to do that 
is to download an ISO image. Which means you have to burn it to a CD 
before you can access it. [Unless you use Unix. :-P ] Unfortunately, 
when I tried to install, I got a CRC32 error, and it died half way 
through the installation.

So then I had to try again. I've now got it to the point where VS opens. 
I don't know if it actually works yet, or whether I need to completely 
reinstall Windows to fix it...


Post a reply to this message

From: Jim Henderson
Subject: Re: Learning C#
Date: 28 Sep 2012 11:40:05
Message: <5065c4d5$1@news.povray.org>
On Fri, 28 Sep 2012 15:51:34 +0100, Orchid Win7 v1 wrote:

> Apparently the only way to do that is to download an ISO image. Which
> means you have to burn it to a CD before you can access it. [Unless you
> use Unix. :-P ]

Daemon Tools.

Jim


Post a reply to this message

From: Orchid Win7 v1
Subject: Re: Learning C#
Date: 28 Sep 2012 12:57:26
Message: <5065d6f6$1@news.povray.org>
On 28/09/2012 03:13 PM, Orchid Win7 v1 wrote:
> So I'm sitting hear reading some C# books.

Heh. It amuses me that run-time polymorphism via inheritance is /the/ 
central contribution of the OO movement, and here I am reading a book 
warning me not to use inheritance under any circumstances unless 
absolutely unavoidable...


Post a reply to this message

From: Francois Labreque
Subject: Re: Learning C#
Date: 28 Sep 2012 13:39:03
Message: <5065e0b7$1@news.povray.org>

> On 28/09/2012 03:21 PM, scott wrote:
>>> OK, so most companies don't seem to be interested in Java any more. Most
>>> of them are asking for something.net, and the most popular one is C#,
>>> unsurprisingly. So I'm sitting hear reading some C# books.
>>
>> I assume you've downloaded and installed MS Visual C# Express already?
>
> Twice, in fact.
>
> First I downloaded the full install. Apparently the only way to do that
> is to download an ISO image. Which means you have to burn it to a CD
> before you can access it. [Unless you use Unix. :-P ]

You can mount ISOs as a file system under Windows.  Microsoft has an 
utility for it, but in only works up to Vista.  For Windows 7 or 8, you 
need Virtual Clonedrive ( http://www.slysoft.com/en/download.html )

-- 
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/*   gmail.com     */}camera{orthographic location<6,1.25,-6>look_at a }


Post a reply to this message

From: Francois Labreque
Subject: Re: Learning C#
Date: 28 Sep 2012 13:41:47
Message: <5065e15b$1@news.povray.org>

> On 28/09/2012 03:13 PM, Orchid Win7 v1 wrote:
>> So I'm sitting hear reading some C# books.
>
> Heh. It amuses me that run-time polymorphism via inheritance is /the/
> central contribution of the OO movement, and here I am reading a book
> warning me not to use inheritance under any circumstances unless
> absolutely unavoidable...

So, what's their solution?  You have to reinvent the wheel all the time?
So if you need a linked list of widgets and a linked list of gizmos, you 
have to have two complete sets of add(), remove() and iterate() methods?

-- 
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/*   gmail.com     */}camera{orthographic location<6,1.25,-6>look_at a }


Post a reply to this message

From: nemesis
Subject: Re: Learning C#
Date: 28 Sep 2012 14:05:00
Message: <web.5065e646a7abe40febb90cbd0@news.povray.org>
Orchid Win7 v1 <voi### [at] devnull> wrote:
> On 28/09/2012 03:13 PM, Orchid Win7 v1 wrote:
> > So I'm sitting hear reading some C# books.
>
> Heh. It amuses me that run-time polymorphism via inheritance is /the/
> central contribution of the OO movement, and here I am reading a book
> warning me not to use inheritance under any circumstances unless
> absolutely unavoidable...

forget all those silly concepts from olde ages.  Apps today are just a
multi-tiered assemblage of multiple layers of API calls to multiple frameworks.
The language you use is irrelevant, which is why .net allows you to use your
favorite language syntax to call the APIs.

it's all dynamic and marshaled in real-time wrapped in zipped xml sent
asynchronously via http. bwahahahaha


Post a reply to this message

From: Warp
Subject: Re: Learning C#
Date: 28 Sep 2012 16:27:15
Message: <50660823@news.povray.org>
Orchid Win7 v1 <voi### [at] devnull> wrote:
> Heh. It amuses me that run-time polymorphism via inheritance is /the/ 
> central contribution of the OO movement, and here I am reading a book 
> warning me not to use inheritance under any circumstances unless 
> absolutely unavoidable...

Does it explain why?

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: Learning C#
Date: 28 Sep 2012 16:32:37
Message: <50660965@news.povray.org>
Orchid Win7 v1 <voi### [at] devnull> wrote:
> Like anything else, there are some good things, and not so good things. 
> The one that really tickles me is the author insisting that because 
> assemblies are loaded dynamically, and because CIL takes up less space 
> than machine code and is JIT-compiled, you can "drastically reduce the 
> working set of your application".

I don't even understand what that means.

I have seen several arguments in the past (but I think they have mostly
died alongside the prejudice against C++ and templates) that C++ templates
are bad because they increase code size, thus increasing memory usage.

That's one of the stupidest arguments ever. The reason is that the
alternative proposed by these critics is to use runtime polymorphism.

Yes, rather than have the same function repeated for each used type you
will have one single function that handles all the types. However, if all
your objects are dynamically allocated and dynamically bound (which is
necessary for runtime polymorphism) they will end up taking enormously
more memory than duplicating that function a few times (optimized to handle
each type statically).

In other words, their solution to the "huge" "problem" of increased code
size is to increase memory usage ten-fold in order to make the executable
binary slightly smaller. Great job.

-- 
                                                          - Warp


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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