Re: My thoughts on C# and gaming.

Richard <[email protected]>
Newsgroups gmane.games.devel.sweng
Organization multi-cellular, biological
Message-ID <[email protected]>
In article <[email protected]>,
    Bill Kelly <[email protected]>  writes:

> Thanks for the tip regarding Spirit, I was indeed unaware of it.

Its a parsing framework I've been evaluating to replace the formula
and parameter parsers in the fractal generator id, formerly known as
fractint.  Spirit is relatively new to the C++ scene, but if you're
doing art pipeline work and have to deal with lots of file formats, it
could save you some time.

> However, it's unlikely I would have used that library in this case,
> [...]

I only see this snippet out of context and compared with a ruby
equivalent in the comments.  What I got out of the discussion was a
lamentation that you couldn't be as concise in C++.  If I wrote the
ruby code in the equivalent low-level algorithms as the C++ code, I'm
guessing it wouldn't be a one-liner anymore either.

So the comparison seems a bit off to me.  Its like comparing a big
number crunching set of formulas from Mathematica to the equivalent
naked C++ with no library support.  The reason something like
Mathematica or ruby is more concise within a particular problem domain
is that the framework is there to support that problem domain.  If you
remove that problem domain support and compare apples to apples in
terms of algorithms, then C++ starts to look more reasonable by
comparison.

My feeling about C++ is that its flexible enough at the language level
to allow you build the necessary support to allow you to operate within
your domain instead of at the base level of C++.  In FORTH (thanks for
that example, Bill Kelly) you literally write new words for the
language creating a domain specific vocabulary.  In C++, we call them
functions, structs, classes, templates, libraries, etc., instead of
words but the process is the same: lift yourself up from the base
language and build knowledge of the domain.

Out of the box, C++ is no Mathematica.  But I could build a library
that would support Mathematica like constructs and with the operator
overloading I could reasonably create a domain specific language that
is actually C++.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
 <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>

      Legalize Adulthood! <http://legalizeadulthood.wordpress.com>
_______________________________________________
Sweng-Gamedev mailing list
[email protected]
http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.