Re: Why C?



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.


.



Relevant Pages

  • Re: Why C?
    ... To add more 'word processing' features - delete text box; replace with rich ... versus a lean Windows compiler, ... >>> Part of the size difference may be that AFAIK, VB uses UNICODE strings ... > BCET Basic Compiler Page: http://www.arargh.com/basic/index.html ...
    (comp.compilers.lcc)
  • Re: Another bug in Suns compiler
    ... Rich Townsend wrote: ... B= initializations, then sadly the code still gives the wrong answer. ... I think it is likely there is a problem with the compiler. ... Giulia Paramour giulia_paramourpostmaster.co.uk ...
    (comp.lang.fortran)
  • Re: C Compiler
    ... nice Rich, do you have a copy or not lol ... >>Does anybody have a copy of Microchip's MPLAB C18 C Compiler or ...
    (comp.arch.embedded)
  • Re: Looking for Basic compiler, was Generating a simple hand-coded like recursive descent parser
    ... intermediate code and then translating that to native code, ... BCET compiles to MASM assembler source. ... BCET Basic Compiler Page: http://www.arargh.com/basic/index.html ...
    (comp.compilers)
  • Re: Interpreter for old basic programs from the line number era
    ... I don't know of any other BASIC interpreter or compilers that ... can interpret or compile their own source code. ... BCET Basic Compiler Page: http://www.arargh.com/basic/index.html ...
    (comp.lang.basic.misc)