• Advertisement

Archived

This topic is now archived and is closed to further replies.

C# as a scripting parser

This topic is 5124 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was lurking in flame threads, C# vs. C++; vets. confusing n00bs "C# is really slow, you''ll never make a good game with it" or " C++ is too hard, you''ll never learn it, and every program you make will have memory leaks ''cause there''s no garbage collector". Well, I really wanted to participate, but I didn''t know C# well enough to diss it. I set out learning it. Then I realized that while slow, C# would make an excellent scripting parser! Garbage collection, rather high runtime speed (about 15% slower than C++, still fast), and ease of programming (rapid development) made it perfect for scripting use (note, the easy part is what turned me on )! I want to hear what you guys think. Would C# make a good programming language to program script parsers in?

Share this post


Link to post
Share on other sites
Advertisement
Why would you program a script parser in a language that is just-in-time compiled? Essentially, you can use the language itself as script, compiling it just before execution. Further, you can use several languages to extend it, thanks to the .NET Framework''s language agnosticism.

This thread covers the topic and includes an example of using JScript.NET as a scripting language.

Share this post


Link to post
Share on other sites

  • Advertisement