Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 May, 2013, 13:18:10 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 [2]   Go Down
  Print  
Author Topic: A New Programming Language -  (Read 1135 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Total Post Ratings: +42

View Profile
« Reply #15 on: 07 March, 2012, 03:08:01 »
0

If > and < are input and output, what would the greater and less than signs be? << and >>? I guess that would work.

Naming suggestions... Idk

Nice project though!  Cheesy
Logged

Ki1o
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 26 April, 2013, 00:22:15
Date Registered: 30 January, 2012, 22:19:11
Location: Behind my computer
Posts: 88

Topic starter
Total Post Ratings: +2

View Profile
« Reply #16 on: 07 March, 2012, 03:17:13 »
0

@cyanophycean314, no it check to see if its the beginning of a line if so then it is read as input or output.  If not then it is comparison operation.
Logged

Co-developer of Quasar (formerly M4trix)
Axe programmer - lvl 2
Spoiler for Projects:
Rebirth: The Soul of Icarus (R:TSoI): (5%): Planning Stages
Vulcan's Labyrinth: (0%): Backstory Only
williamvanr
LV0 Newcomer (Next: 5)

Offline Offline

Last Login: 07 March, 2012, 04:08:39
Date Registered: 07 March, 2012, 02:49:39
Posts: 3

Total Post Ratings: 0

View Profile
« Reply #17 on: 07 March, 2012, 03:26:23 »
0

Hello, I am working with Ki1o on the programming language, and I am posting to clarify our intentions for the programming language. We were eventually going to implement the lexer, parser, and interpreter in C++. However, we decided we wanted the language to be more portable, so we decided to implement the lexer and parser in Java and the interpreter in C++ (for performance reasons). Now we are just going to implement the whole project in Java and compile directly to Java bytecode. We plan to create a dynamically typed and easy to use (and eventually object oriented) programming language. We hope to reduce the verbosity of some other programming languages languages. Our reasoning for implementing the whole project in Java is that Java is easier to use (in my opinion) than C++, more portable, and more secure. We are still deciding on a name and would love any suggestions.

Just to show the simplicity of this language, Ki1o has already posted the methods for input/output.
< "Output"; // output
> variable;  // input
< "You entered " + variable; // Output expression

@cyanophycean314 you raise a good point and the way we will differentiate between these and the greater than and less than operators is by the context. If > or < is used by itself on a line, it implies input/output, if used as an operator (2 < 3) then it will be treated as a greater or less than operator.
Logged
cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Total Post Ratings: +42

View Profile
« Reply #18 on: 07 March, 2012, 03:29:07 »
0

Ok, that works too. Once again, keep up the good work!  Cheesy

Edit:  Get Ninja'd
« Last Edit: 07 March, 2012, 03:30:41 by cyanophycean314 » Logged

BlakPilar
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 20 February, 2013, 02:38:22
Date Registered: 16 July, 2011, 02:50:55
Posts: 735


Total Post Ratings: +43

View Profile
« Reply #19 on: 07 March, 2012, 03:29:11 »
0

Sorry I didn't reply before, I didn't get an email for some reason.

As for names, I prefer colors for some reason lol. I have a sort of VM I'm writing called Red, and I was thinking about changing my .NET language to Blue. I also think things dealing physics have cool names, like quasars and novas.

Now for bytecode, do you mean actual Java bytecode, or your own implementation of it?
Logged
Ki1o
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 26 April, 2013, 00:22:15
Date Registered: 30 January, 2012, 22:19:11
Location: Behind my computer
Posts: 88

Topic starter
Total Post Ratings: +2

View Profile
« Reply #20 on: 07 March, 2012, 03:36:33 »
0

Java bytecode.
Logged

Co-developer of Quasar (formerly M4trix)
Axe programmer - lvl 2
Spoiler for Projects:
Rebirth: The Soul of Icarus (R:TSoI): (5%): Planning Stages
Vulcan's Labyrinth: (0%): Backstory Only
BlakPilar
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 20 February, 2013, 02:38:22
Date Registered: 16 July, 2011, 02:50:55
Posts: 735


Total Post Ratings: +43

View Profile
« Reply #21 on: 07 March, 2012, 03:37:49 »
0

So literally the same byte structure as a .class file?
Logged
williamvanr
LV0 Newcomer (Next: 5)

Offline Offline

Last Login: 07 March, 2012, 04:08:39
Date Registered: 07 March, 2012, 02:49:39
Posts: 3

Total Post Ratings: 0

View Profile
« Reply #22 on: 07 March, 2012, 03:43:14 »
0

@BlakPilar Yes, the bytecode structure of a .class file following the Oracle JVM spec: http://docs.oracle.com/javase/specs/
Logged
BlakPilar
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 20 February, 2013, 02:38:22
Date Registered: 16 July, 2011, 02:50:55
Posts: 735


Total Post Ratings: +43

View Profile
« Reply #23 on: 07 March, 2012, 03:55:13 »
0

So essentially programs written in your language will be able to be run on any computer with a Java VM on it. Very nice. Are you going to support classes, enums, methods, etc.?
Logged
williamvanr
LV0 Newcomer (Next: 5)

Offline Offline

Last Login: 07 March, 2012, 04:08:39
Date Registered: 07 March, 2012, 02:49:39
Posts: 3

Total Post Ratings: 0

View Profile
« Reply #24 on: 07 March, 2012, 04:04:20 »
0

Yes, it will be able to run on any computer with a JVM. We are still learning, so we are going to start with basic features such as input, output, variables, and arithmetic. We will later add support for functions, if/else if/else statements, loops, arrays, and eventually classes and objects.
Logged
Ki1o
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 26 April, 2013, 00:22:15
Date Registered: 30 January, 2012, 22:19:11
Location: Behind my computer
Posts: 88

Topic starter
Total Post Ratings: +2

View Profile
« Reply #25 on: 07 March, 2012, 04:09:50 »
0

Yes, right now we are studying the JVM specs so we can interpret and compile the instrctions.
Logged

Co-developer of Quasar (formerly M4trix)
Axe programmer - lvl 2
Spoiler for Projects:
Rebirth: The Soul of Icarus (R:TSoI): (5%): Planning Stages
Vulcan's Labyrinth: (0%): Backstory Only
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.183 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.