Jump to content
  • Advertisement
Sign in to follow this  
qpingu

New programming language

This topic is 3834 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'll keep this short and to the point. I've been working on a new programming language (based on Java) and I just want to see if anybody is particularly desperate for a certain feature. That's all. I can't reveal what I've done thus far, but the suggestions would be fantastic and could go a long way. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Ruby was developed some 15 years ago. It has only now taken off and proven its usefulness. And Ruby was based off lessons from Lisp and Smalltalk.

Therefore, don't hide your language like it's next world dominating paradigm. It's not. The sooner you open it and have people using it and commenting on it, the sooner you'll see what to focus on.

As for suggestions? You didn't even mention if your language is imperative or functional. Or perhaps it's logical. What does it currently support?

Share this post


Link to post
Share on other sites
Quote:
Original post by Antheus
Ruby was developed some 15 years ago. It has only now taken off and proven its usefulness. And Ruby was based off lessons from Lisp and Smalltalk.

Therefore, don't hide your language like it's next world dominating paradigm. It's not. The sooner you open it and have people using it and commenting on it, the sooner you'll see what to focus on.

As for suggestions? You didn't even mention if your language is imperative or functional. Or perhaps it's logical. What does it currently support?


Yes he did. He said its based on java. perhaps that is more of a hint tho.

p.s. i agree

Share this post


Link to post
Share on other sites
My best suggestion would be to make it as little like java as you can. Other then that, powerful macro functionality (akin to lisp) goes along way.

Indy

Share this post


Link to post
Share on other sites
Thoughts of the day:

If your language doesn't support first class functions or at least some half-assed implementation like .NET delegates I will promptly and unconditionally ignore it.

If you do not supply 'string+string' (or similar convenience stuff like Java doesn't) I will probably ignore it unless there's a good reason or you're doing something else cool.

If your language tries to do as much as possible in one line (often by making things into obscure operators) I will beat you with a stick.

If your language requires syntactically meaningful whitespace I will beat you with a stick.

Share this post


Link to post
Share on other sites
First class functions with short and pretty syntax.
Lexical scoping (and closures).
Variants and pattern matching (see Haxe's enum/switch construct, but make matching recursive please).
A good type system (no primitives like 'int', everything should be classes/interfaces).
Consistency in naming (no size() vs. getLength() - it's wrong in multiple ways).
Orthogonality in features (no "properties" if there are methods, and no fields if there is lexical scoping and methods).
Automatic memory management.
Deterministic resource disposal for critical stuff (see C#'s "using" or do something with closures).
No NULL! Or at least, no nulls by default.
Local type inference.

I don't care much for whitespace, but readability and consistency is important. Having to write "public static final" ten times is however just redundant verbosity.

And that's all I can rant today. Look at Scala, it has half of these features (plus a lot that I didn't mention), is Java-like and is a pretty decent language.

Share this post


Link to post
Share on other sites
crappy delegates are C# not .NET. I hate them too.

but other .NET languages like Nemerle and F# have proper support for closures and first class function. The difference is akin to that between digging with a bulldozer or a broken shovel.

Share this post


Link to post
Share on other sites
Quote:
Original post by Daerax
crappy delegates are C# not .NET. I hate them too.

but other .NET languages like Nemerle and F# have proper support for closures and first class function. The difference is akin to that between digging with a bulldozer or a broken shovel.


True true. Though I'm not sure how the F# FastFunc things exist as .NET types compared to System.Delegate; haven't gotten that far yet.

Share this post


Link to post
Share on other sites
Quote:
Original post by Telastyn
Quote:
Original post by Daerax
crappy delegates are C# not .NET. I hate them too.

but other .NET languages like Nemerle and F# have proper support for closures and first class function. The difference is akin to that between digging with a bulldozer or a broken shovel.


True true. Though I'm not sure how the F# FastFunc things exist as .NET types compared to System.Delegate; haven't gotten that far yet.


Oh i c what you mean. .NET doesnt inherently support functions as types, F# ones are implemented in terms of regular classes and generics.

but then neither does the processor. having too much built in support in your framework makes it bulky and unweildy, better to have a general but powerfully flexible set of building blocks.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!