Re: Why C?
- From: "Max" <bilbo@xxxxxxxxxxx>
- Date: Wed, 09 Nov 2005 19:52:52 GMT
But in Visual Basic that notepad would be created as:
1. A form
2. A multi-line text box
3. A basic menu
4. Some code to handle save and load
Done.
Doable in maybe 10 minutes.
Visual Basic - rapid production of a program that does just enough.
C - for a more honed version; but possibly also more fun with tracking
memory leaks.
Subsequent support - the Visual Basic would potentially be a single file
(from the IDE view) with a few tens of lines, if that.
To add more 'word processing' features - delete text box; replace with rich
text box. Replace custom file load/save with rich text box methods that
handle all this for you.
Sensibly, if you want to squeeze the ultimate out of the PC/Windows, don't
use VB. But if you want to get 'good enough' rapidly, use VB. And with
VB.NET, remember that C++.NET, if used as C.NET, should compile to the same
code as the VB.NET version - so you are probably comparing closer to .NET
versus a lean Windows compiler, than VB.NET versus C.
<ararghmail511NOSPAM@xxxxxxxxxxxxxxxxx> wrote in message
news:ncsqm1t05ec5j8on39qh2kt484ijggmbj6@xxxxxxxxxx
> On Sat, 05 Nov 2005 20:41:08 +0100, jacob navia
> <jacob@xxxxxxxxxxxxxxxx> wrote:
>
>>ararghmail511NOSPAM@xxxxxxxxxxxxxxxxx a écrit :
>>> On Sat, 05 Nov 2005 20:29:33 +0100, jacob navia
>>> <jacob@xxxxxxxxxxxxxxxx> wrote:
>>>
>>> <snip>
>>>
>>>>The numbers speak by themselves.
>>>
>>>
>>> Part of the size difference may be that AFAIK, VB uses UNICODE strings
>>> - 16 bits per character. I don't know what wedit uses.
>>>
>>> And the C version should run faster. :-)
>>>
>>
>>True, .NET uses 16 bit characters. Maybe this is a progress...
> IMO, having the ability would be. Forcing its use, NOT.
>
>>In any case C can use UNICODE too.
> Yes, but you have a choice. You don't HAVE to use them.
>
>>Probably memory consumption would go a bit higher.
> Double for strings. One of the many reasons I wrote BCET.
>
> --
> ArarghMail511 at [drop the 'http://www.' from ->] http://www.arargh.com
> BCET Basic Compiler Page: http://www.arargh.com/basic/index.html
>
> To reply by email, remove the garbage from the reply address.
.
- References:
- Why C?
- From: jacob navia
- Re: Why C?
- From: ararghmail511NOSPAM
- Re: Why C?
- From: jacob navia
- Re: Why C?
- From: ararghmail511NOSPAM
- Why C?
- Prev by Date: Re: Why C?
- Next by Date: Re: Why C?
- Previous by thread: Re: Why C?
- Next by thread: Re: Why C?
- Index(es):
Relevant Pages
|
|