Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  Off-Topic: Java and Framework Alternatives - 'Friendly' Discussion.  (Read 3872 times)
0 Members and 1 Guest are viewing this topic.
Offline gene9

Senior Member


Medals: 9



« Reply #30 - Posted 2013-10-29 16:24:43 »

I'll just leave this here: Rust

Nice language. A bit buggy though, and incomplete (impossible to make a doubly-linked-list without unsafe code), but that's to be expected as it is still under development.

Also, it's AOT compiled, and can run on most common platforms, but the standard libraries only work on Win/Mac/Linux.

Once this is complete I would consider using it as well as, or instead of Java.

I mentioned Rust. The language design looks extremely similar to Scala. Almost every Scala pro I mentioned applies identically to Rust.

- Similar variable and function declaration syntax. Optional types on the right after a colon. Defaults to type inference
- Avoids null. Both Scala and Rust use identically named "Option"
- Rust has an identical pattern matching mechanism to Scala.
- code blocks return values. if expressions make the ternary operator unnecessary.
- void type is called Unit.
- Both have native tuples.

The big difference is Rust is designed to work in a native, C-centric world, while Scala is designed to work in the JVM managed code world.

For some apps, such as a Firefox type web browser, the JVM is not an option. I imagine that is what the Rust team at Mozilla have in mind. That needs to work at a lower level. For a video game targeting Mac/Win/Linux, JVM seems ideal. The downside of JVM for games, is there is that the entire community is C based and JVM has terrible runtime options for consoles and iOS and even with Android, Dalvik is a high performance runtime like desktop Java.

I think the integration with the C world is much more important than AOT compilation. There are AOT compillation options with Java, they aren't polished, but even if they were, I think that's less important that C world integration.

Other Rust v Scala differences:

- Rust has more direct control over low level memory issues, which I imagine has both pros and cons depending on the scenario. Rust has more support for stack allocation, exposes pointers, optional, more manual garbage collection.
- Rust arrays use a disjoint syntax from other generics classes. IMO, this is a mistake.
- I've never used Rust but it's clearly a rare more obscure language, so it will not have the fleshed out community and tools and library ecosystem that Scala has.





Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

E.R. Fleming (15 views)
2014-07-29 03:07:13

E.R. Fleming (5 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!