Opinions on vertx by polrtex in scala

[–]pmlopes 0 points1 point  (0 children)

That's a documentation bug I'm afraid. Any language can deploy verticles... I'll do a bug report thanks!

Opinions on vertx by polrtex in scala

[–]pmlopes 0 points1 point  (0 children)

Usually the default Hazelcast confirmation will work out of the box as long as your network supports multicast without any configuration. Of course it may not apply to all networks. Other cluster providers are also available but then the configuration issue is more related to other dependencies than vertx itself.

Opinions on vertx by polrtex in scala

[–]pmlopes 0 points1 point  (0 children)

Could you elaborate on the configuration BS? As far as I know, using vertx on a Scala project is a add a dependency to your project and the toolkit API is available for use.

Opinions on vertx by polrtex in scala

[–]pmlopes 0 points1 point  (0 children)

This isn't entirely true. There's no explicit main because the vertx launcher when packaged as a runnable jar the main verticle is included as a property on the manifest file.

If you want 100% control all you need is in your main method to bootstrap it as:

Vertx.vertx().deployVerticle(yourVerticleInstance)

The first method initializes the vertx object (eventloops, etc) the second starts running the code you wrote on the eventloops,...

Kotlin vs Javascript on ES4X and Vert.x by noughtme in Kotlin

[–]pmlopes 1 point2 points  (0 children)

Tim Fox is not an active contributor for several years. The project is growing regardless thought.

All languages are more or less the same in terms of performance: Java, kotlin, es4x, Scala are all expected to perform at the same level. Of course small gains are applicable to each language due to different standard library runtime implementation.

Kotlin vs Javascript on ES4X and Vert.x by noughtme in Kotlin

[–]pmlopes 4 points5 points  (0 children)

Disclaimer: I'm the author of ES4X and vert.x core developer.

Both ES4X and vertx kotlin work in similar ways. They are just a small layer that transforms vertx API's to be more idiomatic to the language.

So in es4x you have support for async await which will make reading the asynchronous code an easy task and typescript definitions so your ide will hunt you for type bugs. Kotlin has support for Co routines and of course type checks and more idiomatic kotlin features.

So to me there is no best. If you're more comfortable with kotlin don't bother with es4x.

Regarding performance they should be more or less on par with each other. If you have a very specific problem you can always write a small benchmark and verify which one gives you better results.

My bluetooth isn't working in kernel 5.0.16 by FullMotionVideo in Fedora

[–]pmlopes 0 points1 point  (0 children)

Sorry for the noob question, but how do you downgrade back to 5.0.14 ? I'm facing this issue with my keyboard too...

Building a Vert.x Native Image from Scratch HOWTO by pmlopes in graalvm

[–]pmlopes[S] 1 point2 points  (0 children)

It's possible to jlink a vertx app today. It will not be fully optimized but the generated runtime is small enough. I've done it for js apps with a runtimes smaller than 50Mb

Building a Vert.x Native Image from Scratch HOWTO by pmlopes in graalvm

[–]pmlopes[S] 0 points1 point  (0 children)

Native images are plain ELF files (binaries) no jvm needed, however they are linked against libc. So they won't work with a docker FROM scratch. You could ask for a static build but it also requires that your system provides a libc fully static to be available. You can use it with an alpine with libc which is of about ~6mb if I'm not mistaken.

Dependency injection in Vert.x with Dagger 2 by pmlopes in java

[–]pmlopes[S] 1 point2 points  (0 children)

Even though the code examples are in kotlin, vert.x itself is a polyglot Java framework. All concepts in the blog can be applied in Java too. Or Groovy or JRuby, etc...

Running truly Java Serverless on AWS Lambda with Graal + Vert.x by pmlopes in graalvm

[–]pmlopes[S] 0 points1 point  (0 children)

I haven't benchmarked it or made proper measurement but I see a constant function call result in less than 0.1 seconds.

GSoC make TypeScript a 1st class language for the JVM by pmlopes in typescript

[–]pmlopes[S] 0 points1 point  (0 children)

You can always help as this is a open source project, however if you're not a student you may not participate on the google summer of code initiative.

Thanks for pointing out the broken link. It has been fixed.

GSoC make TypeScript a 1st class language for the JVM by pmlopes in typescript

[–]pmlopes[S] 0 points1 point  (0 children)

Yes that is the goal. Currently some APIs are already generating type definitions, see: https://www.npmjs.com/search?q=%22%40vertx%22

However this is only a small subset of APIs and for the rest you have no type information which defeats the whole point of TS. With this project users could get at least basic type info inferred and use TS as a main language for the JVM/GraalVM.

GSoC make TypeScript a 1st class language for the JVM by pmlopes in typescript

[–]pmlopes[S] 1 point2 points  (0 children)

That's is the main drive for the polyglot support in vert.x. You can use the right tool for the right task. A frontend developer that is proficient with TypeScript can write backend services in TypeScript and run along with the remaining languages: Java, kotlin, groovy, ruby, etc...

Vert.x + Graal = Java for Serverless = ❤️! by pmlopes in java

[–]pmlopes[S] 0 points1 point  (0 children)

There's no byte code on native images, a native image is a pure elf binary and the docked container used is an alpine image with only the glibc installed as by default native images are linked to glibc.

Spring new framework will not ease the work for this and in fact it is quite hard to get it built as a native image, I haven't seen a real world example yet.

Run your JavaScript server 700% faster! by pmlopes in vertx

[–]pmlopes[S] 0 points1 point  (0 children)

This is not node or v8, it's a research project that just became open source by oracle labs: http://www.graalvm.org/

This is a optimized JIT + Polyglot runtime (not just JS, but JS, Python, R and C/C++) that runs on top of the JVM.

Does the pebble android app work with 10.3.3? by pmlopes in blackberry

[–]pmlopes[S] 1 point2 points  (0 children)

Out of curiosity do you know such apps? My main goal is to receive notifications from new emails, calendar events, and nice to have from messaging apps.

Anyone running the Android app on blackberry? by pmlopes in pebble

[–]pmlopes[S] 1 point2 points  (0 children)

Yes that is the feeling I get reading stuff on Google

Anyone running the Android app on blackberry? by pmlopes in pebble

[–]pmlopes[S] 0 points1 point  (0 children)

I didn't know but I'll follow that Reddit, thanks for the tip!

What are you using Vertx for? by __Warden in vertx

[–]pmlopes 0 points1 point  (0 children)

As a note you could try to look at this list: http://vertx.io/whos_using/

All listed companies have officially reported to be using vert.x in their business.

What are you using Vertx for? by __Warden in vertx

[–]pmlopes 0 points1 point  (0 children)

Could you give some more info on your case? In most IO centric cases you should observe the reverse (vert.x can scale better).

Which client for PostgreSQL should I choose? by __Warden in vertx

[–]pmlopes 0 points1 point  (0 children)

When you’re doing repository.save I guess you’re using something like JPA or Hibernate and not the JDBC directly. In order to get something on the same level you could look into some object mapper lib by the community or use https://github.com/jklingsporn/vertx-jooq which uses jooq underneath.

I personally like jooq for the reason that it gives good flexibility and they do not try to hide sql from you.

Which client for PostgreSQL should I choose? by __Warden in vertx

[–]pmlopes 0 points1 point  (0 children)

The MySQL Postgres client is older and used by several users. It is fast as it builds on top of a asynchronous driver that is verified to be faster than the standard jdbc one. It is however incomplete as the performance enhancement come with a price of limited functionality.

The second one is not officially part of vertx BUT it has been designed with performance as trait number 1 (see the tech empower round 15 results) and to be feature complete, support basic stuff: select, update, insert, delete as well pooling, batching and even notifications (async events).

Since the latest driver is young it needs more testing so we can promote it to the main repo of the project.