News for hackers. Stuff that matters.
Re:Vert.x native: how to run a JVM app in 10Mb of RAM by yunyu on Sunday August 12, 2018 @02:38PM (#17745736)
Vert.x is a framework for developing server applications using an event loop (think Node.js but for the JVM, with the ability to fallback to normal threads). If you've heard of Spring Boot or Spark, it's a lighter/faster alternative to those (which are generally based off of heavier webservers like Tomcat or Jetty).

Graal compiles JVM bytecode to native code, so that's the critical factor for your CLI app use case. You'd only need Vert.x if you were writing a server.

Re:Vert.x native: how to run a JVM app in 10Mb of RAM by dominotw on Sunday August 12, 2018 @03:04PM (#17745873)
> Spark

I thought u were talking about big data spark. But I think you are talking about http://sparkjava.com/

Re:Vert.x native: how to run a JVM app in 10Mb of RAM by needusername on Sunday August 12, 2018 @03:32PM (#17746021)
> Spring Boot

Vert.x is nothing like Spring Boot. Spring Boot combines Spring with autoconfiguration and the ability to run in its own container. Spring Boot can run on Undertow which the other branch of JBoss marketing promotes a lighter weight than Netty.

Re:Vert.x native: how to run a JVM app in 10Mb of RAM by Areading314 on Sunday August 12, 2018 @03:51PM (#17746106)
But they're both frameworks for writing a server right?
Re:Vert.x native: how to run a JVM app in 10Mb of RAM by needusername on Sunday August 12, 2018 @05:01PM (#17746390)
Not Spring Boot. Spring Boot is a framework for implementing a server side application. For example you use Spring Boot to implement a RESTful server side application including persistence and security. You do not use Spring Boot to write an HTTP server, instead Spring Boot uses an existing HTTP server.
Re:Vert.x native: how to run a JVM app in 10Mb of RAM by threeseed on Sunday August 12, 2018 @05:37PM (#17746542)
Vert.x uses an existing HTTP server as well: Netty.
Re:Vert.x native: how to run a JVM app in 10Mb of RAM by needusername on Monday August 13, 2018 @12:19AM (#17747976)
I look at Netty as an async IO library. You use Netty to build your own servers. Yes, I know, Netty ships with an HTTP client and server.
Re:Vert.x native: how to run a JVM app in 10Mb of RAM by chrisseaton on Sunday August 12, 2018 @11:24PM (#17747851)
> But they're both frameworks for writing a server right? reply

> Not Spring Boot. Spring Boot is a framework for implementing a server side application.

'server side application' and 'server' or 'web server' are two terms for the same thing in many people's vocabulary. You two are arguing at cross-purposes.

Re:Vert.x native: how to run a JVM app in 10Mb of RAM by needusername on Monday August 13, 2018 @12:16AM (#17747967)
Then people need to use these words more carefully. 'server side application' and 'web server' are not even close to being the same thing.
Re:Vert.x native: how to run a JVM app in 10Mb of RAM by jsight on Monday August 13, 2018 @10:12AM (#17750205)
Right, but you don't use Vert.x to "write an HTTP server" either. In both cases you use the server from the framework, though in the case of Spring Boot that is also pluggable.
Re:Vert.x native: how to run a JVM app in 10Mb of RAM by yunyu on Sunday August 12, 2018 @08:11PM (#17747205)
Sorry, Vert.x web would be a more appropriate comparison.
Re:Vert.x native: how to run a JVM app in 10Mb of RAM by needusername on Monday August 13, 2018 @12:26AM (#17747995)
Even Vert.x web has no equivalent to Spring which forms the basis of Spring Boot. Spring is a complete application framework that combines dependency injection, AOP and enterprise integration.

To my knowledge Vert.x and Vert.x web have no equivalent to Spring Boots autoconfiguration.

I am not saying Vert.x or Vert.x web are worse than Spring Boot but they do very different things.

Re:Vert.x native: how to run a JVM app in 10Mb of RAM by signal11 on Monday August 13, 2018 @07:41AM (#17749350)
Spring's WebFlux is the closest analogue I could find to Vert.x web (https://docs.spring.io/spring/docs/current/spring-framework-...). However WebFlux is quite new and looks like it's targeted to existing projects that use Spring and need some reactive features.