devicemap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werner Keil <>
Subject Re: Polyglot JVM Clients
Date Mon, 20 Apr 2015 23:54:04 GMT
I guess the gentleman who did this for Ruby showed, it doesn't have to be
restricted to the JVM, though.
There is also a Clojure wrapper around a certain version of the Java
Classifier/client: that's of
course affected by wrong, missing our outdated content on while the Ruby port thanks to
its Gem caching is pretty immune;-)
Which may relatively easy work at least for the common JVM languages or
even some DSLs like Eclipse Xtext (if they have a need for device
recognition somewhere)


On Mon, Apr 20, 2015 at 8:38 PM, Volkan Yazıcı <>

> Hello,
> One of the things I like most about Apache DeviceMap is its simple API:
> *DeviceMapClient client = new DeviceMapClient(...);*
> *Map<String, String> attributes = client.classify(userAgent);*
> Simply intuitive. Given the fact that I really enjoy coding Scala in my
> daily job, I do not think we need to have a particular support for any
> other JVM languages except Java itself. That is, see the same code in
> Scala:
> *val client = new DeviceMapClient(...)*
> *val attributes = client.classify(userAgent)*
> You know that it will 99% look the same in Groovy, Clojure, Kotlin, Ceylon,
> etc. Hence, exposing and maintaining a separate code base for making no
> functional revenue at all will be waste of resources, I believe.
> Best.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message