librelist archives

« back to archive

Java Mongrel2 Handler updated and moved to GitHub

Java Mongrel2 Handler updated and moved to GitHub

From:
Armando Singer
Date:
2011-05-19 @ 07:49
Hi folks,

I've moved my Java Mongrel2 Handler to GitHub by popular demand :)

https://github.com/asinger/mongrel2j

It now includes auto-detection of the tnetstrings protocol and is up to date for
mongrel2 1.6 and the new floating point type. It should support all of the
behavior of the reference impl identically.

I noticed that my impl was removed from/replaced on the mongrel2 home page:
http://mongrel2.org/wdiff?name=mongrel2&a=5669

Zed, would you mind adding it back but with the new GitHub location?

Other changes:

- The implementation is now lazy. The headers and body are not
  json/tnetstring parsed eagerly when the Request is created.

- Changed the json library to Jackson, which is the fastest java json
  serializer/deserializer. It also perserves order of maps (which I've also
  taken care to do in my tnetstring impl.)

- However, the Jackson lib is now optinal because of the lazy impl. If the json
  protocol and reply/deliverJson is not used, then no need for the lib.

- Performance is much better for Json parsing. And the tnetstring impl is very
  efficient and produces no side-effect garbage for all the tnetstring types
  (except for the new float).

(I've also put the full tnetstrings impl in a separate project which has all the
dumping stuff that the mongrel2 handler doesn't use at
https://github.com/asinger/tnetstringsj)

Cheers,
Armando

Re: [mongrel2] Java Mongrel2 Handler updated and moved to GitHub

From:
Zed A. Shaw
Date:
2011-05-19 @ 15:50
On Thu, May 19, 2011 at 12:49:38AM -0700, Armando Singer wrote:
> Hi folks,
> 
> I've moved my Java Mongrel2 Handler to GitHub by popular demand :)
> 
> https://github.com/asinger/mongrel2j

Done, I sort of reshuffled the list so that it's easier to list multiple
platforms for each language.

Thanks!

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] Java Mongrel2 Handler updated and moved to GitHub

From:
Karl Ostendorf
Date:
2011-05-19 @ 13:30
Hi Armando,

I've added a Related Projects section to the Mojaha readme, listing
your project as well.

Karl Ostendorf
http://ostendorf.com



On Thu, May 19, 2011 at 09:49, Armando Singer <armando.singer@gmail.com> wrote:
> Hi folks,
>
> I've moved my Java Mongrel2 Handler to GitHub by popular demand :)
>
> https://github.com/asinger/mongrel2j
>
> It now includes auto-detection of the tnetstrings protocol and is up to date for
> mongrel2 1.6 and the new floating point type. It should support all of the
> behavior of the reference impl identically.
>
> I noticed that my impl was removed from/replaced on the mongrel2 home page:
> http://mongrel2.org/wdiff?name=mongrel2&a=5669
>
> Zed, would you mind adding it back but with the new GitHub location?
>
> Other changes:
>
> - The implementation is now lazy. The headers and body are not
>  json/tnetstring parsed eagerly when the Request is created.
>
> - Changed the json library to Jackson, which is the fastest java json
>  serializer/deserializer. It also perserves order of maps (which I've also
>  taken care to do in my tnetstring impl.)
>
> - However, the Jackson lib is now optinal because of the lazy impl. If the json
>  protocol and reply/deliverJson is not used, then no need for the lib.
>
> - Performance is much better for Json parsing. And the tnetstring impl is very
>  efficient and produces no side-effect garbage for all the tnetstring types
>  (except for the new float).
>
> (I've also put the full tnetstrings impl in a separate project which has all the
> dumping stuff that the mongrel2 handler doesn't use at
> https://github.com/asinger/tnetstringsj)
>
> Cheers,
> Armando
>
>