Sign in to follow this  
oamsath

Unity A New Game Programming Language Idea

Recommended Posts

oamsath    100
Hello GameDev Community..

I'm currently pursuing Bachelor Degree in Computer Science, and currently brainstorming some ideas for my Graduation Project. My interests include Compiler Theory and Game programming. I've been using XNA for years and some OpenGL.

I've came up with an idea that I'm hammering right now for flaws and things I may not have considered. and some friend suggested that I should post into forums concerning with games. and Here I'm :D

My idea is creating a new language for games, making game development easier. It will be object oriented and supporting many high-level gaming features like:

auto-implementing state machines
an enhanced pipeline for loading resources (sounds, models, textures, ....)
defining auto templates for screens, memory management, and other things.

Another thing is that I'm fascinated with the drag and drop code snippets from x-code and unity IDE. I'm hoping that I can make my language as easy to write as that !

The idea that it will not be compiled into machine code but to existing class library i will make in c++ and open-GL. then use a c++ compiler to produce a ready game.
This will enable future enhancements to include another compiler to objective-c and java for mobiles, and maybe to java-script or action-script for web.
The same code for all platforms :D

I'm currently open to all new ideas. Can i hear your thoughts about other features or things to research in? Thanks.

Share this post


Link to post
Share on other sites
SteveDeFacto    109
[quote name='oamsath' timestamp='1310665551' post='4835349']
Hello GameDev Community..

I'm currently pursuing Bachelor Degree in Computer Science, and currently brainstorming some ideas for my Graduation Project. My interests include Compiler Theory and Game programming. I've been using XNA for years and some OpenGL.

I've came up with an idea that I'm hammering right now for flaws and things I may not have considered. and some friend suggested that I should post into forums concerning with games. and Here I'm :D

My idea is creating a new language for games, making game development easier. It will be object oriented and supporting many high-level gaming features like:

auto-implementing state machines
an enhanced pipeline for loading resources (sounds, models, textures, ....)
defining auto templates for screens, memory management, and other things.

Another thing is that I'm fascinated with the drag and drop code snippets from x-code and unity IDE. I'm hoping that I can make my language as easy to write as that !

The idea that it will not be compiled into machine code but to existing class library i will make in c++ and open-GL. then use a c++ compiler to produce a ready game.
This will enable future enhancements to include another compiler to objective-c and java for mobiles, and maybe to java-script or action-script for web.
The same code for all platforms :D

I'm currently open to all new ideas. Can i hear your thoughts about other features or things to research in? Thanks.
[/quote]

I did something similar awhile ago but abandoned the project because after I really thought about it I realized it was pointless.

Share this post


Link to post
Share on other sites
oamsath    100
If you may, please be more elaborate. Perhaps showing me why you thought it was pointless?
On a perfect assumption, if done correctly. it will serve as THE GAME PROGRAMMING LANGUAGE. one code to make for all platforms. the learning slope will be low, and it will produce results quickier. Why would you say other wise?

Share this post


Link to post
Share on other sites
SteveDeFacto    109
[quote name='oamsath' timestamp='1310668241' post='4835366']
If you may, please be more elaborate. Perhaps showing me why you thought it was pointless?
On a perfect assumption, if done correctly. it will serve as THE GAME PROGRAMMING LANGUAGE. one code to make for all platforms. the learning slope will be low, and it will produce results quickier. Why would you say other wise?
[/quote]

I switched my attention to just writing a video game library because I soon realize that the over head of a scripting language was just a wast when I could get C++ to do nearly as clean code with only minor compromise.

Share this post


Link to post
Share on other sites
Telastyn    3777
[quote name='oamsath' timestamp='1310668241' post='4835366']
On a perfect assumption, if done correctly. it will serve as THE GAME PROGRAMMING LANGUAGE. one code to make for all platforms. the learning slope will be low, and it will produce results quickier. Why would you say other wise?
[/quote]

Because people have been trying to make the one last programming language for ages. It will be easy to use, it will run everywhere, it can be simple drag an drop... And none of them have ever come close. Programming is an exercise in competing trade-offs. A project with so many implications as a programming language only exacerbates those trade-offs.

Share this post


Link to post
Share on other sites
oamsath    100
thanks for taking time to write this detailed reply :)

[quote]
[list][*]Give up the notion that anyone will ever use it, period. Nobody will. This is not meant to be disparaging, but just a realistic fact of programming. I've been working on a very ambitious programming language for years and nobody uses it except me. This is not to say that you shouldn't design it for other people's needs - just don't get your hopes up that anyone will care. If you can do this for your own enjoyment and education, so much the better; if you're only in it because you want to change the world, you're in for a very disappointing experience.[/list][/quote]
I'm looking at this from the learning angle. Something bright to put on my CV and to prove to myself that I didn't waste college years. I'm not heading for then next big-seller :)
[quote]
[list][*]Scale your goals back as much as possible. The more you try to make your language do, the more difficult it will be to design and implement. Start with something simple - [i]especially[/i] if you are not already a world-class expert on language design and implementation. For instance, just making a language for state machines/AI scripting/etc. would be a challenge in and of itself, so why not start there? It's always easier to add more things to your project once you get a few features done, than it is to scale back when you realize you've bitten off far more than you can chew.[/list][/quote]
This is a point well taken. and will be discussed in detail with the team.
[quote]
[list][*]Remember that you have to finish this for a graduation project. It does not behoove you to think big. You should focus on making something small, cool, [i]and very well polished[/i]. A large scale, ambitious project will not help you graduate if you utterly fail to accomplish anything with it.[/list] [/quote]
Regarding the college part. I'm not proud of the next statement but here we go: the GP for any graduate isn't done for the college. it is done for himself. the college can pass ANY project. and i mean ANY. small MYSQL examples can pass :( . So even if i didn't finish it in 9 months. i can still work on it after graduation. this is a very ambitious project
[quote]
[list][*]You cannot achieve cross-platform support using abstraction and expect games to use it universally. This is the painful but vital lesson of Java, and to a lesser extent of the .Net ecosystem. At some point, games have to touch the hardware more or less directly, or as directly as possible. This is true on PCs but even moreso on consoles. If your tool gets in the way of working with low-level details, nobody will want it. Maybe it'll be nice for people who just want to crank out a game as fast as they can, but you're going to be competing with major players like XNA at that point, and I guarantee that an army of specialists can write a better game framework than you can. (Nothing personal!)[/list] [/quote]

someone from college suggested that I make it for only 2D games to make sure it will be finished correctly. with leaving the door open for extending. And for the low-level details. I can ensure that most of the options are available through ready commands and implement them myself on other platforms.

waiting for your reply.

Share this post


Link to post
Share on other sites
pabloreda    1107
HI

I have a Languaje for making video game in progress but with diferent aproach.
A derivative of nobody know languaje called ColorForth, has a very interesting properties, very small source code and other surprises.
some ideas of forth languajes are in oposite direction from "normal" languajes.

[url="http://code.google.com/p/reda4/"]http://code.google.com/p/reda4/[/url]

you can see examples for making shaders in forth here [url="http://forthsalon.appspot.com/"]http://forthsalon.appspot.com/[/url]

ApochPIQ have reason !, very goods points!

Too many languajes...

Share this post


Link to post
Share on other sites
issch    479
If my uni project experience is anything to go by, I would say its much more valuable (grade-wise) to make something flashy that is easy to understand, appeals to the person grading you and, as ApochPiQ said, is very polished, than it is to make something technically advanced, innovative or even useful.

Also, as someone with similar interests (I guess everybody in this thread is interested in programming languages and compilers[size="2"]), let me say that developing a solid language and compiler is a tremendous amount of work. It always seems much easier and less effort than it turns out to be, but its also not impossible. I would advise you to split the project into modular chunks[/size] so that you can stop after any chunk and still have a fairly complete work. That way if you run out of time or lose interest, you are not left with something useless. This is worth doing regardless of the project, just in case you have unforeseeable problems or setbacks!


[size="1"](PS: Sorry ApochPiQ & Telastyn for [i]still [/i]not having replied to your replies to the Epoch thread, after you kindly replied to my questions [img]http://public.gamedev.net/public/style_emoticons/default/sad.gif[/img] pretty embarrassed not to have made the time to do so...)[/size]

Share this post


Link to post
Share on other sites
6510    151
[quote name='oamsath' timestamp='1310665551' post='4835349']
I'm currently open to all new ideas. Can i hear your thoughts about other features or things to research in? Thanks.
[/quote]

Some things to research:
- First of all, get the real reasons why software development in general is hard and often delayed. What is the responsibility of the programming language ? What are the special characteristics of game programming ?
- Clearly differentiate between language and library features.
- Scripting languages. Why have they become popular (look at UnrealScript) ?
- Threading support ? Very important and ambitious.
- Event support.
- Test support ? Integration testing for multithreaded and distributed code is a real pain. Look at those useful but ugly mock frameworks. Could a programming language help ?
- What has drag&drop to do with programming languages ?
- What is the role of tools in the development environment ?

Share this post


Link to post
Share on other sites
Krohm    5030
[quote name='ApochPiQ' timestamp='1310669911' post='4835382']Give up the notion that anyone will ever use it, period. Nobody will. This is not meant to be disparaging, but just a realistic fact of programming. I've been working on a very ambitious programming language for years and nobody uses it except me. This is not to say that you shouldn't design it for other people's needs - just don't get your hopes up that anyone will care. If you can do this for your own enjoyment and education, so much the better; if you're only in it because you want to change the world, you're in for a very disappointing experience.[/quote]Just to elaborate on this: Epoch, ApochPiQ's language is fairly smooth. I still don't use it as I use my own. Which says everything, I think.

Share this post


Link to post
Share on other sites
oamsath    100
[quote name='pabloreda' timestamp='1310686707' post='4835483']
HI

I have a Languaje for making video game in progress but with diferent aproach.
A derivative of nobody know languaje called ColorForth, has a very interesting properties, very small source code and other surprises.
some ideas of forth languajes are in oposite direction from "normal" languajes.

[url="http://code.google.com/p/reda4/"]http://code.google.com/p/reda4/[/url]

you can see examples for making shaders in forth here [url="http://forthsalon.appspot.com/"]http://forthsalon.appspot.com/[/url]

ApochPIQ have reason !, very goods points!

Too many languajes...
[/quote]

I will look into it. thanks.

[quote name='dublindan' timestamp='1310697353' post='4835541']
If my uni project experience is anything to go by, I would say its much more valuable (grade-wise) to make something flashy that is easy to understand, appeals to the person grading you and, as ApochPiQ said, is very polished, than it is to make something technically advanced, innovative or even useful.

Also, as someone with similar interests (I guess everybody in this thread is interested in programming languages and compilers[size="2"]), let me say that developing a solid language and compiler is a tremendous amount of work. It always seems much easier and less effort than it turns out to be, but its also not impossible. I would advise you to split the project into modular chunks[/size] so that you can stop after any chunk and still have a fairly complete work. That way if you run out of time or lose interest, you are not left with something useless. This is worth doing regardless of the project, just in case you have unforeseeable problems or setbacks!
[/quote]


A good advice :)

[quote name='6510' timestamp='1310710671' post='4835577']

Some things to research:
- First of all, get the real reasons why software development in general is hard and often delayed. What is the responsibility of the programming language ? What are the special characteristics of game programming ?
- Clearly differentiate between language and library features.
- Scripting languages. Why have they become popular (look at UnrealScript) ?
- Threading support ? Very important and ambitious.
- Event support.
- Test support ? Integration testing for multithreaded and distributed code is a real pain. Look at those useful but ugly mock frameworks. Could a programming language help ?
- What has drag&drop to do with programming languages ?
- What is the role of tools in the development environment ?
[/quote]

Thanks

Share this post


Link to post
Share on other sites
Frank Taylor    191
[quote name='oamsath' timestamp='1310665551' post='4835349']
Hello GameDev Community..

I'm currently pursuing Bachelor Degree in Computer Science, and currently brainstorming some ideas for my Graduation Project. My interests include Compiler Theory and Game programming. I've been using XNA for years and some OpenGL.

I've came up with an idea that I'm hammering right now for flaws and things I may not have considered. and some friend suggested that I should post into forums concerning with games. and Here I'm :D

My idea is creating a new language for games, making game development easier. It will be object oriented and supporting many high-level gaming features like:

auto-implementing state machines
an enhanced pipeline for loading resources (sounds, models, textures, ....)
defining auto templates for screens, memory management, and other things.

Another thing is that I'm fascinated with the drag and drop code snippets from x-code and unity IDE. I'm hoping that I can make my language as easy to write as that !

The idea that it will not be compiled into machine code but to existing class library i will make in c++ and open-GL. then use a c++ compiler to produce a ready game.
This will enable future enhancements to include another compiler to objective-c and java for mobiles, and maybe to java-script or action-script for web.
The same code for all platforms :D

I'm currently open to all new ideas. Can i hear your thoughts about other features or things to research in? Thanks.
[/quote]

Hi oamsath,

Visual Scripting is in high demand by many Game Dev Hobbyist who don't desire to code. In fact, its one of my motivators for developing [url="http://www.gamedev.net/topic/605917-mmo-super-3d-game-platform-open-source"]The Super 3D Game Platform[/url]. I've looked into approaches used by [url="http://research.microsoft.com/en-us/projects/kodu/"]Kodu[/url], [url="http://www.udk.com/features-scripting.html"]Kismet[/url], [url="http://www.alice.org/index.php?page=what_is_alice/what_is_alice"]Alice[/url]. What really caught my attention was [url="http://www.google.com/url?sa=t&source=web&cd=3&sqi=2&ved=0CCEQtwIwAg&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDoeqPMVwio8&rct=j&q=little%20big%20planet%202%20logic%20gates&ei=eO8fTuyiKJGtgQfqhZnkBQ&usg=AFQjCNE_u7mIvnA8E60DH63-i8lS5kV2Zw&sig2=45RGsRlgDUe5bg16j0mRhg&cad=rja"]LBP Logic Gates[/url]. Although not a Visual Scripting perse, LBP Logic Gates provides a interactive and visually entertaining way of creating conditional statements. That experience changed my perspective on editing in general and inspired me to start developing a unique type of 3D GUI system. A GUI system to support a serious Game Creation Suite that is [i]fun to play[/i].

The Game Creation Suite will also include Visual Scripting. I've written a [url="http://www.hpquest.com/techlord/apps/blitzscript/help/index.html"]Script Engine[/url] (its about the closest I want to get to writing a compiler) with a stack-based bytecode virtual machine. Based on that experience, my desire is to translate the Stack and a small Instruction Set into some form of visually entertaining and intuitive representation for the Visual Scripter.

Share this post


Link to post
Share on other sites
wodinoneeye    1689
What you are describing isnt a 'language' but more like a game 'engine' with libraries and tools (and as you will probably find a half dozen different laguages/scripts used to define and crossreference and script the many aspects of a game).

Its a very large project that you might want to pare down to something you could accompilsh in you projects allowed time.

Maybe a state engine library for an existing language (hierarchical with exception fallthru mechanism) that would get you off the hook for having to recreate the the general program language part.

If you want to do a visual language the project might be better as a demonstration of why the complexity of game code gets out of hand very quickly and the limitations for a visual interface (being able to see so little logic at one view because of the logic non-density due to the 'visual' presentations overhead and clutter).

I looked at visual 'building block' logic for FSMs over 10 years ago and came to the conclusion that real logic of sufficient complexity quickly becomes unwieldy and visualization of sufficient amounts of a 'program' declined too much -- even with nifty visual navigation mechanisms helping.

Share this post


Link to post
Share on other sites
LorenzoGatti    4442
[quote name='oamsath' timestamp='1310665551' post='4835349']
My idea is creating a new language for games, making game development easier. It will be object oriented
[/quote]
By "object oriented", do you mean similar to C++, similar to Smalltalk, or something more exotic? Please explain what you consider novel about your design. If it is like existing languages, how can it be better?
[quote]
and supporting many high-level gaming features like:

auto-implementing state machines
[/quote]
How do you compete with existing state machine code generators? What if one doesn't want state machines?
[quote]
an enhanced pipeline for loading resources (sounds, models, textures, ....)
[/quote]
Enhanced over what perceived shortcomings of current techniques? This seems a very mature area that doesn't allow significant technical progress.
[quote]
defining auto templates for screens, memory management, and other things.
[/quote]
Please explain what valuable "templates" you want in your framework. What's the alternative if they don't fit the needs of the game?
[quote]
Another thing is that I'm fascinated with the drag and drop code snippets from x-code and unity IDE. I'm hoping that I can make my language as easy to write as that !
[/quote]
Are you designing a language and framework, or an IDE? You would be wise to focus on the former.
[quote]
The idea that it will not be compiled into machine code but to existing class library i will make in c++ and open-GL. then use a c++ compiler to produce a ready game.
[/quote]
If you are committed to C++ and OpenGL, you are leaving out many platforms.
[quote]
This will enable future enhancements to include another compiler to objective-c and java for mobiles, and maybe to java-script or action-script for web.
The same code for all platforms :D
[/quote]
This will never happen.
You are talking about a substantial standard library, and implementing it five or more times is an herculean, desperate and useless effort. You should focus on one platform (C++/OpenGL on proper computers) instead of making more compromises than you really need to in order to support different platforms that potential users aren't interested in.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this