Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #31  
Old May 29th, 2009, 10:59 AM
Hugh of Borg's Avatar
Hugh of Borg Hugh of Borg is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: Switzerland
Posts: 853 Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 3 h 19 m 34 sec
Reputation Power: 703
Alright. Many programming languages have multiple ways of defining numbers: decimal, hexadecimal, binary, octal... Which of those do you want to support and how should they look? Remember to define them in a way that you can still discern them even if they consist only of 1's and 0's.

You can't say that
F1B2D3 is hex because
123456 could also be hex.
_______________________

Also since you have no visible end to a statement and considering you're pretty much following VB I assume that statements are terminated at line end. Is that right?

If so do you provide a way to make one statement span multiple lines?
_______________________

When you've got that all you can start with a first coding exercise: Write a program that reads a text file and checks every line if that line is a valid number (according to your definitions above).

ie:
123456 ... number
12.456 ... number
foo ... not a number
bar 1 ... not a number
__________________
- Hugh of Borg

The first thing young borg are taught: Keep away from Microsoft software!

Reply With Quote
  #32  
Old May 31st, 2009, 06:10 AM
Buzzy661 Buzzy661 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 43 Buzzy661 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 12 h 6 m 56 sec
Reputation Power: 0
Quote:
Many programming languages have multiple ways of defining numbers: decimal, hexadecimal, binary, octal... Which of those do you want to support and how should they look?


Decimals. (Easiest)
Exactly like:
10.01
10
1.001
1.01
1
0.1
0.01
0.001

And so on...

Quote:
Also since you have no visible end to a statement and considering you're pretty much following VB I assume that statements are terminated at line end. Is that right?


Yeah, quite right.
It is quite similar to VB

But maybe an starting and ending statement:

{
Your Code here
}

{ = starting
} = ending

Quote:
If so do you provide a way to make one statement span multiple lines?


Code:
String as [SpanMultipleLines]
SpanMultipleLines = $Duplicate_Number

While SpanMultipleLines;
A statement here...
1 <code here>
2 <more code here>
3 <even more code here>
4 <some more code here>
End SpanMultipleLines


$Duplicate_Number = Statement duplicating into multiple lines

Code:
You then add while [var name];
A state ment here.
Code here, numbered like:

If Thisbuttonpressed Then
1 Msgbox "Hello"
2 Msgbox "Hello Again"
3 Msgbox "Hello Again Again.."


So on...

Is that correct span multiple lines cause i don't really know ; just give me any example of a correct span multiple lines.

Quote:
When you've got that all you can start with a first coding exercise: Write a program that reads a text file and checks every line if that line is a valid number (according to your definitions above).


Are you suppose to write a program on visual basic or visual c++.

If it is Visual Basic, please give me come code for it. If it is C++ then i need code for C++.

Quote:
Write a program that reads a text file and checks every line if that line is a valid number


How do you do that?

Reply With Quote
  #33  
Old May 31st, 2009, 11:24 PM
imcashsaver imcashsaver is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2009
Location: Auckland, New Zealand
Posts: 4 imcashsaver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 29 m 29 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Facebook MySpace
Arrow ONLINE Tutorials

Quote:
Originally Posted by Buzzy661
I started reading "The Programming Language Wiki" and i read First Steps and it says you need to have a game programming language and game engine.

I want to know how to make my own game engine and my own game programming language, but if someone gives my any help of making my own programming language or game engine, i can proceed on reading!

What program could make my own program language, like C++ or vb but i want to make my own!

Please, i need help!



There are actually so many Online Tutorials in making your own program.

I used to do Online Tutorial when i was in college
and i used it in our thesis project..
You just have to be very patient i reading the guidelines..
and also, it is also important to get info from Programming books ....
Books are still helpful...

But assistance from experts is the best solution...
So how is it?

Reply With Quote
  #34  
Old June 1st, 2009, 04:46 AM
Hugh of Borg's Avatar
Hugh of Borg Hugh of Borg is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: Switzerland
Posts: 853 Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level)Hugh of Borg User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 3 h 19 m 34 sec
Reputation Power: 703
Quote:
Originally Posted by Buzzy661
Decimals. (Easiest)
*snip*

No. In Java an C# you have to possibility to write numbers in multiple ways. When you have something like an amount, a speed or something else like that to define Decimal format is fine but sometimes want to define a bit pattern or a long series of bytes. Many programmers prefer to write such things in hex or binary format and this is how it looks:
java Code:
Original - java Code
  1. int somenumber = 1234;
  2. byte[] somebytes = new byte[] {0x1a, 0x2B, 0x3c, 0x4d};
  3. short somebitpattern = 0b1100100111001110;

If you want to have the same options you need to define it. As for the way java does it note how every hex or bin number starts with a zero and then the x or b. With this trick the parsing is simplyfied because everything that is a number starts with a digit...

Quote:
Originally Posted by Buzzy661
Is that correct span multiple lines cause i don't really know ; just give me any example of a correct span multiple lines.
Sometimes you write a statement or expression that gets really long. It can help readability if you break it into multiple lines. In C# or Java that is no problem since a statement is not finished until a semicolon is encountered. See:
java Code:
Original - java Code
  1. integer result = MyUtilClass.difficultCalculation(this.value1, this.value2, this.value3 > THRESHOLD ? Math.floor(this.value3) : Math.ceil(this.value3));
  2. integer result = MyUtilClass.difficultCalculation(
  3.         this.value1,
  4.         this.value2,
  5.         this.value3 > THRESHOLD ? Math.floor(this.value3) : Math.ceil(this.value3)
  6. );

This is not so much a technical problem but a readability issue. It helps readers determine where a new statement starts. If you don't have a visible statement terminator I would help if you specified a visible statement connector. I believe that VB uses the _ to indicate that the statement is continued on the next line. It should work without it too though.

Quote:
Originally Posted by Buzzy661
Are you suppose to write a program on visual basic or visual c++.

If it is Visual Basic, please give me come code for it. If it is C++ then i need code for C++.
Just pick whatever language you feel most confident in. Look for tutorials on how to read files and give it a try.

Reply With Quote
  #35  
Old June 1st, 2009, 05:29 AM
Buzzy661 Buzzy661 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 43 Buzzy661 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 12 h 6 m 56 sec
Reputation Power: 0
Quote:
Originally Posted by Hugh of Borg
java Code:
Original - java Code
  1. int somenumber = 1234;
  2. byte[] somebytes = new byte[] {0x1a, 0x2B, 0x3c, 0x4d};
  3. short somebitpattern = 0b1100100111001110; 


Yes, quite similar to my script, all you write is:

Code:
Integer as [Somenumber] = 1234
Byte as [Somebyte] = {0x1a, 0x2B, 0x3c, 0x4d}
Short as [Somebitpattern] = 0b1100100111001110


That is how you define some sort of decimal in the my script.

Quote:
Originally Posted by Hugh of Borg
java Code:
Original - java Code
  1. integer result = MyUtilClass.difficultCalculation(this.value1, this.value2, this.value3 > THRESHOLD ? Math.floor(this.value3) : Math.ceil(this.value3));
  2. integer result = MyUtilClass.difficultCalculation(
  3.         this.value1,
  4.         this.value2,
  5.         this.value3 > THRESHOLD ? Math.floor(this.value3) : Math.ceil(this.value3)
  6. )


Code:
{
Integer Result = MyUtilClass.DifficultCaculation;
[value1, value2, value3 > THERESHOLD ? Math.floor (value3) :: Math.Ceil (value3)]
Integer Result = MyUtilClass.DifficultCaculation(;
      Value1,
      Value2,
      Value3 > THERESHOLD ? Math.floor (value3) :: Math.Ceil (value3)]
}


That is the basic code when you write a statement and it gets really long (on my code).

And to indicate the continuing the next line, this uses a ; function.

Quote:
Just pick whatever language you feel most confident in. Look for tutorials on how to read files and give it a try.


What websites do you look on to find these websites?

Reply With Quote
  #36  
Old June 7th, 2009, 07:13 AM
Buzzy661 Buzzy661 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 43 Buzzy661 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 12 h 6 m 56 sec
Reputation Power: 0
Quote:
I believe that VB uses the _ to indicate that the statement is continued on the next line. It should work without it too though.


I tried using it without a _ but it said an error so I had to put in the _ in.

Reply With Quote
  #37  
Old June 7th, 2009, 09:31 AM
TomGlenn TomGlenn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 64 TomGlenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 11 m 30 sec
Reputation Power: 6
I don't mean to be funny or anything... But you clearly do not understand the amount of time, effort, skill and patience you must have in order to create YOUR OWN programming language...

You would be far better learning a simple language like BASIC (Perhaps Visual Basic? Or heck, if you really want to make a game, checkout DARK BASIC) and building your own framework on top of it.

I have gone through this entire thread, and you seem to assume that all this is going to take is for someone to send you a list of lines to paste into notepad, tell you what compiler to use, make some adjustments and there you have it...

In your second to last post you gave an example of how a snippet of code would look in your language, but you even included the same class and method calls... (Math.Floor for example)

I respect Hugh of Borg for trying to help you achieve your goal, but I really do not feel your quite aware that what you are attempting to do is incredibly difficult for even the most skilled of programmers...

To make your own language, your going to need a very thorough understanding of C/C++ or some other low level programming language... Which kind of defeats the purpose of creating your own, because by the time you have enough knowledge to actually make your language, you might as well just create the game in the language you learned...

Reply With Quote
  #38  
Old June 8th, 2009, 04:36 AM
Buzzy661 Buzzy661 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 43 Buzzy661 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 12 h 6 m 56 sec
Reputation Power: 0
I'll try to learn C++ by reading some tutorials, which I need to google-up to find some tutorials on C++..

Reply With Quote
  #39  
Old June 9th, 2009, 07:17 AM
TomGlenn TomGlenn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 64 TomGlenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 11 m 30 sec
Reputation Power: 6
Quote:
Originally Posted by Buzzy661
I'll try to learn C++ by reading some tutorials, which I need to google-up to find some tutorials on C++..


That's probably the best idea.

Reply With Quote
  #40  
Old June 12th, 2009, 12:23 PM
MHardee MHardee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 7 MHardee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 m 21 sec
Reputation Power: 0
I agree with him but i doubt it will happen

Reply With Quote
  #41  
Old July 3rd, 2009, 06:38 AM
280Z28 280Z28 is offline
Turning coffee into code
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Location: UT Austin, TX
Posts: 164 280Z28 User rank is Second Lieutenant (5000 - 10000 Reputation Level)280Z28 User rank is Second Lieutenant (5000 - 10000 Reputation Level)280Z28 User rank is Second Lieutenant (5000 - 10000 Reputation Level)280Z28 User rank is Second Lieutenant (5000 - 10000 Reputation Level)280Z28 User rank is Second Lieutenant (5000 - 10000 Reputation Level)280Z28 User rank is Second Lieutenant (5000 - 10000 Reputation Level)280Z28 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 20 h 37 m
Reputation Power: 89
Send a message via AIM to 280Z28
Quote:
Originally Posted by TomGlenn
I respect Hugh of Borg for trying to help you achieve your goal, but I really do not feel your quite aware that what you are attempting to do is incredibly difficult for even the most skilled of programmers...

To make your own language, your going to need a very thorough understanding of C/C++ or some other low level programming language... Which kind of defeats the purpose of creating your own, because by the time you have enough knowledge to actually make your language, you might as well just create the game in the language you learned...


I too have great respect for people with that kind of patience (Hugh of Borg).

I've been in commercial development for over a decade, professional game development for 5 years, and compiler/language/runtime implementations for 2 years. At this point, I can do a decent job of identifying strengths and weaknesses of languages, but there is no way in hell I'd try to create my own language with any expectation of utility.

For games, the programming language and game engine need to provide the following:
* Efficient use of computational resources (the CPU) - need a well established compiler among other things
* Efficient use of space (consoles have significantly limited memory compared to desktops) - this removes several functional languages from the table
* Elegant support for event-driven and data-driven programming paradigms

Edit: I'm really torn on what to post here. You've (the OP) literally requested an encyclopedia worth of knowledge in just a thread. It's all going to come down to how serious you are. If this is something you're going to make happen no matter how long it takes, then we need to reset you on the right track: learning how to program, followed much later by learning how to program games.

Last edited by 280Z28 : July 3rd, 2009 at 06:58 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesGame Development > Create my own programming language


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek