Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » VSand: a game with Vulkan, EMF and JLink.
VSand: a game with Vulkan, EMF and JLink. [message #1801380] Thu, 17 January 2019 22:54 Go to next message
Aurélien Mora is currently offline Aurélien MoraFriend
Messages: 38
Registered: July 2014

I developed a little game, using mainly Vulkan and EMF. If you want to know more/launch it, here the link:

Basically, I use EMF/Xcore to describe the model of the game, and lots of Adapters to run it, display it, react to changes and so on.
EMF standalone to run it, but I take benefits of the generated editor to write the model.

To build the application, I now use Jlink; It creates a minimal JVM, dedicated to run the application. The benefit is that the user don't need to setup java anymore, at the cost of something like 15MB more in the build.
The main difficulty about Jlink is that it requires everything in your code to be a true Java 9 module (with a, including all dependencies. The eclipse plugins are not for now, they are simply considered as "automatic modules", but jlink refuse to work with that. So I forked the basic projects of EMF (common, core and xmi), removed the eclipse relative code, the SQL dependency, and add a It's quick and dirty, but it's working. If somebody is interested, I put the sources on this repo:

If someday you factorize the standalone code from the eclipse one in modular projects, I would be very interested :D. I really run after the time, but maybe I could contribute?

By the way, now I can tell that EMF core run smoothly at 60 (even 120) frames per seconds, even with "lots" of adapters. It's not really a surprise, and my model is not too big, but it worth being said.

That's all, I just wanted to describe this little project, and let you know that something like that exists. Thank you very much for EMF. The standalone part is very practical to me, and XCore too.
I believe that coding with model and adapters deserve more popularity. Using that every day, I have the feeling that it could even be easier, I mean... a new language? Something like wiring adapter and model would be automatic, and accessing the methods of the adapter directly from the model object...
Re: VSand: a game with Vulkan, EMF and JLink. [message #1801439 is a reply to message #1801380] Sat, 19 January 2019 07:42 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31774
Registered: July 2009
Senior Member
That's cool. Thanks for sharing.

I'd certainly not be so happy trying to refactor EMF to use Java 9 modules. It's been rather frustrating to see how newer versions of Java have slowly become incompatible with existing applications; up until Java 8, changes to Java have been kind of painless and unnoticed, but now, we have too many cases of "it won't run on Java 9, because you need the magic open-modules parameter, or it won't run on Java 11, because it removed JAX-* something or other. If EMF really shipped modules no doubt some clients doing admittedly ugly reflective hacks would stop working...

Ed Merks
Professional Support:
Previous Topic:[EMF] XMI loading option XMLResource.OPTION_DEFER_IDREF_RESOLUTION and "non unique" ERefer
Next Topic:EMF Serialization of collection
Goto Forum:

Current Time: Wed Mar 03 07:13:31 GMT 2021

Powered by FUDForum. Page generated in 0.01749 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top