Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


Prads

Member Since 27 May 2010
Offline Last Active Jun 22 2013 01:13 AM

Posts I've Made

In Topic: Writing my own programming language

28 February 2013 - 03:50 AM

Nice work, even if just for the learning experience.  That said this seems remarkably similar to C or java with just a slight syntactic change.  What advantage does your language have over say just writing a VM for C?  Was there a reason you made your own over using one of the many out there?  Not that there's anything wrong with that, just curious.

 

btw: I'm with Ectara and Ravyne, in that I like braces and semi-colons.  I really don't like having forced formatting.

 

Well, the benifit of it is that even at this stage (just released version 0.03 bug fixes for compiler), you can grab it and make a simple 2d games with it (Check out the Break Out game I created with it, links on the project site). What I mean to say is, it is pretty straight forward  and you don't need to learn anything else (graphic library like OpenGL or DirectX) beside language  in order to write simple 2d games with the system. And since the syntax is very similar to C, anyone who has the knowledge of C, C++, java, or C# can just learn it in half an hour.

Another reason is portability, I am going to make VM for wide variety of devices.

Another reason is that it's open source, if you want any changes, you can tell me to add it (if I find it useful I will definitely add it) or just tweak the code yourself.

 

 

If the OP is still lurking around, here's my input:

Screw all this debate about semicolons and semantic whitespace and all the other religious nonsense that programmers will argue about.

Make the language you want to use. (Note that this is not the same as making the language you want to make. The idea of using it is critical.)

 

Thanks!!! smile.png That's what I plan to do.


In Topic: Writing my own programming language

27 February 2013 - 03:07 AM

I just started this project some months ago, so it looks raw. But I want to develop it further so that homebrew developers can make portable games using this language. (I know there are other language but I'm not concerned with that). I will write the VM for most of the modern platforms.

Besides that I started this project just for the challenge and fun. I am going for Bachelors of Computer Science next year and hope knowing these kind of stuffs will give me head start...


In Topic: Simulating keystrokes for directx application

27 March 2012 - 08:21 PM

Whoops, nevermind. It's working now. I guess the sizeof(in) should have been sizeof(INPUT). Silly mistake. lol

In Topic: Wave frequency question

10 October 2011 - 09:15 AM

Wow, Thank you so much for all those information. I am going to look into DFT and zero crossing that you mentioned and try to come up with a solution. :)

In Topic: Wave frequency question

10 October 2011 - 01:57 AM

I have a 13 bit frequency in which the sound in the buffer should be played at. To change sound frequency, I need to calculate the frequency ratio (so that I can use it in XAudio2::SetFrequencyRatio function) which is equal to '13 bit frequency / frequency of the tone' ('13 bit frequency / 375' in your above example).

PARTNERS