Home

Purplejs Unites JAVA, javascript development

IT | Oct 26, 2016 | Master3395

Melding Java and JavaScript, PurpleJS is emerging as a framework for running lightweight JavaScript server applications without the complexity of the Node.js asynchronous programming model.

Atop the JVM (Java Virtual Machine), open source PurpleJS can be used when developers want to build multithreaded applications in JavaScript. It allows developers to run the same code in the browser and on the server, and it enables them to employ JavaScript while working with existing Java projects.

"PurpleJS is a simple and capable framework for creating performant web applications without leaving JavaScript," main developer Sten Roger Sandvik said. "It's created in Java to give the flexibility and performance Java provides."

But PurpleJS is not a replacement for Node.js, the popular server-side JavaScript platform, he stressed. "It's a totally different model since we, for now, do not use async. This fit our needs and was much simpler to program for our initial users." PurpleJS will support the async programming approach in the future, though.


Applications are built using the Gradle build system, and the Java SDK. Java serves as the runtime, but coding is done in JavaScript. Developers also can use PurpleJS Boot, a server running the Jetty HTTP server. "It's very easy to develop in 'dev' mode and you will not need to restart the server as long as you stick with JavaScript coding," Sandvik said.

The APIs in PurpleScript are starting to become more stable, but the framework needs work, Sandvik cautioned. "Application configuration is one thing that's missing now and should be in place before 1.0. Also, more libraries are needed -- SQL, MongoDB, Influx, Freemarker and Velocity to name a few." He's also in the process of implementing support for CLIs made with PurpleJS.

Sandvik works at Enonic, which offers its Enonic XP Web Operating System. PurpleJS currently is a separate project from Enonic but it features code donated by Enonic; Sandvik is hopeful PurpleJS one day could be featured as part of Enonic’s platform.

Keywords: Purplejs, JAVA,, javascript, development

Author: Master3395

Comments:

comments powered by Disqus
Discord

Page 1 of 375  >  >>

New Window Defender Extension Launches - Insecure Websites Open in Edge

microsoft-edge-application-guard.jpg

Mar 19, 2019 | Category: General | Comments

Works in Chrome and Firefox.

read more…

Now the extensions have appeared - public testing is approaching

microsoft-edge-chromium.jpg

Mar 18, 2019 | Category: General | Comments

Found 82 extensions for new Edge.

As we interpret recently Microsoft's activity, we are not the long wait from a public testing period of their new Chromium-based browser. Last week we got a sneak peek at new Edge in some photos you can see here, and it was explained that the first tests only had support in 64-bit Windows 10.

read more…

Check out the crazy sum EA paid Ninja to pour Apex Legends

maxresdefault.jpg

Mar 17, 2019 | Category: IT | Comments

Earned millions of dollars to play for a few hours.

Tyler Blevins, better known as the Ninja in the gaming world, was one of the profiled streams paid by EA to play Apex Legends during launch.

read more…

Page 1 of 375  >  >>