d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Jdk 8
12Next
Add Reply New Topic New Poll
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Apr 17 2014 06:07pm
just got around to reading the features. yeah yeah i know i'm late. whatevs.

http://www.oracle.com/technetwork/java/javase/8-whats-new-2157071.html

java finally got lambda expressions, only 7 years after c# got it. afaik closures still aren't supported, but i didn't look very thoroughly. i gotta go back to learning groovy/scala. started them briefly, but had some pains debugging. havent touched them in a while.

/edit: meant to say java 8 in the title. bloody hell.

This post was edited by carteblanche on Apr 17 2014 06:08pm
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Apr 17 2014 07:43pm
And they are still no where near as flexible as C# delegates.

Definitely a step in the right direction though :)
Member
Posts: 2,095
Joined: Apr 15 2003
Gold: 100.08
Apr 18 2014 06:33am
Quote (carteblanche @ 18 Apr 2014 02:07)
just got around to reading the features. yeah yeah i know i'm late. whatevs.

http://www.oracle.com/technetwork/java/javase/8-whats-new-2157071.html

java finally got lambda expressions, only 7 years after c# got it. afaik closures still aren't supported, but i didn't look very thoroughly. i gotta go back to learning groovy/scala. started them briefly, but had some pains debugging. havent touched them in a while.

/edit: meant to say java 8 in the title. bloody hell.


Lambda is a nice feature for sure. Didn't test them myself in Java 8 yet, but I've heard that the performance should be pretty bad. Does anyone have any experiences on this?
Member
Posts: 2,267
Joined: Jan 3 2006
Gold: 1,399.31
Jun 4 2014 01:09am
Quote (Minkomonster @ Apr 18 2014 01:43am)

Definitely a step in the right direction though :)


That it is.

I thought Oracle would utterly ruin java (and it wasn't in the great spot anyway), but they've completely turned it around.

I'm actually excited for java, because both SE and EE should go through shorter product release cycles.

Java 8 date api and functional interfaces are yummy and as far as I know java 9 is the only, or one of the few languages to support currency as build in type.

Might not seem like a big deal, but for any work in financial industry it's primary type in use and you always had to model it yourself.

Changes from the past 3~4 years helped a bunch of developers stay with java and the future is bright indeed.
Member
Posts: 1,241
Joined: Jun 25 2011
Gold: Locked
Jun 9 2014 01:18pm
Hijacking this topic to ask a question about java: Would you guys consider it a viable language for a commercial-quality game? I'm not talking about the next crysis here but your average game really. It seems 99% of them are c/c++ and I'm wondering if java really stands the comparison nowadays

This post was edited by m0hawk on Jun 9 2014 01:19pm
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
Jun 9 2014 02:38pm
Quote (m0hawk @ Jun 9 2014 02:18pm)
Hijacking this topic to ask a question about java: Would you guys consider it a viable language for a commercial-quality game? I'm not talking about the next crysis here but your average game really. It seems 99% of them are c/c++ and I'm wondering if java really stands the comparison nowadays


Do you have a particular reason to use Java for the project?
Member
Posts: 1,241
Joined: Jun 25 2011
Gold: Locked
Jun 9 2014 02:41pm
Quote (rockonkenshin @ Jun 9 2014 10:38pm)
Do you have a particular reason to use Java for the project?


Well I know java already and I know how pedantic CPP can be so I was wondering
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
Jun 9 2014 06:26pm
Quote (m0hawk @ Jun 9 2014 03:41pm)
Well I know java already and I know how pedantic CPP can be so I was wondering


You aren't going to get good graphics performance out of Java without using native libraries which really kills a good chunk of the reason why you would use Java anyway.
Member
Posts: 1,241
Joined: Jun 25 2011
Gold: Locked
Jun 10 2014 05:08am
Quote (rockonkenshin @ Jun 10 2014 02:26am)
You aren't going to get good graphics performance out of Java without using native libraries which really kills a good chunk of the reason why you would use Java anyway.


I had read on these forums somewhere that java had reached the point where it was almost as fast as C++ and other non-vm languages because of the improvements in the language itself and the additional power today's computers have. Maybe that still doesn't apply to graphics though

This post was edited by m0hawk on Jun 10 2014 05:11am
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
Jun 10 2014 07:51am
Quote (m0hawk @ Jun 10 2014 06:08am)
I had read on these forums somewhere that java had reached the point where it was almost as fast as C++ and other non-vm languages because of the improvements in the language itself and the additional power today's computers have. Maybe that still doesn't apply to graphics though


As far as graphics are concerned it is the exception as Java doesn't have direct access to the underlying hardware unless you use native libraries. Feel free to look into things like JMonkeyEngine and see if it fits what you need. Honestly I would just use C# and Unityif you wanted a more modern and nicer language than C++.
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll