Hacker Newsnew | past | comments | ask | show | jobs | submit | mandubian's commentslogin

and naturally it provides real Json validation with error aggregation which is interesting in many cases (not only Web actually)


And even before I had twitted it myself :D Rich Hickey pre-redeems Future[ApiForDatomic] to tell it in Scala ;)


Why would Japid be faster than Scala templates?


http://www.jtict.com/blog/rails-wicket-grails-play-lift-jsp/

This benchmark is based on Play 1 but you can see Japid is 4 - 5 times faster than the Scala template


play1.x with scala was quite experimental (play2 is really different and robustly designed) and those benchmarks always generate trolls... Anyway, I can't make people change their mind about those points even if I had numbers to show because everyone sees what he wants to see. This is just subjectivity ;)


Just an expression for transition, nothing more... why ironic?


because typo


oups :D Sorry: in French, there are 2 n in "perfectionniste" and in English, I never know when I must remove one "n" :D


should be corrected now ;)


Not really alive at least and not compiled for Scala 2.10


You're welcome! The idea is to simplify writing basic Reads/Writes for simple Scala structures. In this way, you can focus on writing more complex JSON validation/transformation when you need it... For JSON coast-to-coast design that I introduced in previous article, this is quite useful!


And Play2 core is composed of very robust components without any runtime enhancement, any magic. Using Scala power, we can build very clean tools, such as this one, without perverting typesafe/fully-compiled basements.


...at the cost of a much higher learning curve.

There was a long email thread on the play framework, but as someone who is doing Play 2/Scala, they're nothing even close to the same framework, enough that calling it the same name is silly. Further, the deprecation of Play 1 does no favors, and I'm just hoping that as things go forward, a fork will emerge.

I'm also hoping that Play 2 will stop taking so ing long to compile longer projects. Is 2.1 going to make me not want to claw my eyes out?

Nice work on the new Json API, though.


See this is something I've never understood. What is this obsession with type safety/everything compiled ?

Any possible benefits to the developer disappear in the face of a huge increase in complexity.


Making stronger apps?

Let's take the Play 1 vs Play 2 example:

How many times I got a 500 pages in the face due to a basic NullPointerException in Play 1 groovy templates...

In new play 2 templates, because they are type-safe, they guarantee that you will not have those basic errors.

Of-course, it doesn't guarantee everything, but it's way less error-prone. You actually CANNOT make this kind of NPE errors with type-safe scala code.

where in java you do something like:

user.address.town // oops I forgot to test if user.address is not null

in scala:

// user.address.town wouldn't work, because address is represented as an Option[Address]

user.address.map(_.town).getOrElse("")


I do understand your point as far as templates go. But they could have replaced the template engine or even improved on Japid.

It just seems that for the rest of the system there isn't any real benefit over Play1 if you are using Java as opposed to Scala.


It depends on your mindset. I use both and love both but when it comes to massive changes on critical components in huge codebases give me static typing every time.


typesafety+compiled brings a robustness and sureness (and sometimes performance) that dynamic languages can't really provide. Dynamic languages are interesting in some domains also... I must admit I'm a big fan of static typed language since the beginning so I'm not really objective ;)


If you have any question, don't hesitate to ask (or go to website and talk on disqus)...


This new driver mixed with Play2 fully non-blocking/asynchronous stack opens very interesting fields of exploration and was really something missing till now in JVM world...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: