Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (546)
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 [3]
  ignore  |  Print  
  JDK: upcoming features  (Read 7108 times)
0 Members and 1 Guest are viewing this topic.
Online Roquen
« Reply #60 - Posted 2013-04-03 15:35:10 »

Further evidence that Oracle wants people to use the JRE as application embedded solution: JEP 178: Statically-Linked JNI Libraries.  Proposed in Feb of this year and already quite a bit of work as been done on implementing it.
Online Roquen
« Reply #61 - Posted 2013-05-21 12:19:28 »

John Rose is mocking me...basic support is being considered for:  Tuples/structs, foreign data views & macros (templates in C++ speak).

Slides: http://cr.openjdk.java.net/~jrose/pres/201207-Arrays-2.pdf
Video: (I haven't watched this) http://medianetwork.oracle.com/video/player/1785452137001
Offline HeroesGraveDev

JGO Kernel


Medals: 244
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #62 - Posted 2013-05-21 19:57:31 »

I hope operator overloading is coming in the future.  Pointing

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online Roquen
« Reply #63 - Posted 2013-05-21 19:59:45 »

Me too, but I'm not even holding my breath for stuff their actually talking about.
Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #64 - Posted 2013-05-21 20:09:50 »

Well I got too disappointed by how the java developers added features. Really. Probably they had no choice, but making it like that, but it's still ugly. I hate the new Lambdas in JDK 8, for example. They're nothing but little syntax sugar (+ clojures, but you can fake them very easy too).

So in JDK 8 it's like that:
1  
2  
3  
4  
5  
// main:
int result = 0;
new Thread(() -> {
    result = 5;
}).start();


And in JDK 7 it could be translated like that:
1  
2  
3  
4  
5  
6  
7  
8  
9  
class Closure {
    int result = 0;
}
final Closure closure = new Closure();
new Thread(new Runnable() {
    public void run() {
        closure.result = 5;
    }
}).start();


So I started switching to scala.
1  
2  
var result = 0
new Thread(() => result = 5).start();

Or much cooler stuff:
1  
2  
3  
4  
List("Hello", " ", "world").foreach(println)
// prints "Hello world"
"Hello world".split(" ").foreach(println(_ + " "))
// prints "Hello world "

Anyways, enough code rambling, also, lambdas aren't the only thing which made me switch to java. Also, I started learning scala and scheme before trying out JDK 8 lambdas. And they pretty much disappointed me. They're still explicit classes. Really? :/

One last thing I'd like to show, which is always handy for me Wink
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
def time(thunk: => Unit) = {
  val begin = System.currentTimeMillis()
  thunk
  System.currentTimeMillis()-begin
}
val timeInMillisceconds = time {
  computePi()
}
// or:
val timeInMilliseconds = time(computePi)

So, KTHXBYE Smiley

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline sproingie

JGO Kernel


Medals: 202



« Reply #65 - Posted 2013-05-21 20:49:18 »

JDK8 lambdas are not translated to inner classes.  That they can be used as syntax sugar for some inner classes is just that, syntax sugar, but the implementation of lambdas is much more direct than that.  And no, there's still not first-class function types, don't hold your breath for those in Java.

And BTW, it's "closure".  The name of the Clojure language is a pun on the word.
Offline princec

JGO Kernel


Medals: 360
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #66 - Posted 2013-05-22 08:13:19 »

It all looks great. Will be a while before we get it though.

Cas Smiley

Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #67 - Posted 2013-05-22 08:31:31 »

JDK8 lambdas are not translated to inner classes.  That they can be used as syntax sugar for some inner classes is just that, syntax sugar, but the implementation of lambdas is much more direct than that.  And no, there's still not first-class function types, don't hold your breath for those in Java.

Okey, so that sounds good, since then scala can make use of that too, probably.

And BTW, it's "closure".  The name of the Clojure language is a pun on the word.

Fixed Smiley

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline concerto49

Junior Member





« Reply #68 - Posted 2013-05-22 09:29:47 »

And so JDK8 is delayed anyhow...

High performance, fast network, affordable price VPS - Cloud Shards
Available in Texas, New York & Los Angeles
Need a VPS Upgrade?
Offline gimbal

JGO Knight


Medals: 25



« Reply #69 - Posted 2013-05-22 11:45:51 »

The JavaFX group is already working on something like this and hopefully it won't be limited to JavaFX.

Apparently, it is already here:

http://blog.robovm.org/2013/05/javafx-openjfx-on-ios-using-robovm.html
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online Roquen
« Reply #70 - Posted 2013-05-22 15:41:04 »

And no, there's still not first-class function types, don't hold your breath for those in Java.
I haven't thought this through, but you might be able to fake first class functions (to an extent) via java.lang.invoke.  Ya know if you squint your left eye, grit your teeth and love boilerplate.
Pages: 1 2 [3]
  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.

atombrot (20 views)
2014-08-19 09:29:53

Tekkerue (21 views)
2014-08-16 06:45:27

Tekkerue (21 views)
2014-08-16 06:22:17

Tekkerue (12 views)
2014-08-16 06:20:21

Tekkerue (19 views)
2014-08-16 06:12:11

Rayexar (55 views)
2014-08-11 02:49:23

BurntPizza (37 views)
2014-08-09 21:09:32

BurntPizza (27 views)
2014-08-08 02:01:56

Norakomi (35 views)
2014-08-06 19:49:38

BurntPizza (64 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!