News for hackers. Stuff that matters.
Re:Mojolicious 5.0 released: Perl real-time web framework by jusob on Thursday May 29, 2014 @06:09PM (#7818918)
Any body has used both Mojolicious and Catalyst? I wonder how Mojolicious might be better than Catalyst.
Re:Mojolicious 5.0 released: Perl real-time web framework by mst on Thursday May 29, 2014 @11:59PM (#7820204)
Mojolicious is more tightly integrated, and yet if anything -less- opinionated about how you structure your controllers etc.

Plus it's focused on adding cutting edge features and cleaning cruft out the codebase regularly, which means it tends to be shinier but less backwards compatible.

"better" is relative; if you want to be able to pick up an app you last worked on three years ago and upgrade its dependencies under it and expect everything to still work, you'll do better with Catalyst. If you want to be able to write code to elegantly support the sort of push-based async code that wasn't really even a thing three years ago, you'll do better with Mojolicious.

For everything else ... it mostly depends on if you need the wider ecosystem and full-Moose-OO that Catalyst offers, which I consider pretty much necessary for large scale projects ... but if don't already understand why you want that, I'd say either is a pretty good choice.

Re:Mojolicious 5.0 released: Perl real-time web framework by n0body on Thursday May 29, 2014 @07:26PM (#7819244)
Different. Not better. Each has their strengths and weaknesses. Mojo has websockets, catalyst has excellent backwards compatibility, proven scalability and works well with large teams of developers. Although catalyst has more dependencies, but that comes with the featureset.

As for quick prototyping, they're both good for that once you know how to use them, and they both have excellent docs, although catalyst has been around for longer and has more deployments and realworld examples, which is always good.

Overall though, they're both constantly being improved, and competition is healthy, and it all depends in what you want, websockets, extra rapid prototyping and no deps, or reliability, support, large feature set, excellent scalability and a proven track record both in production and during development ;)

Re:Mojolicious 5.0 released: Perl real-time web framework by jdrago999 on Thursday May 29, 2014 @07:06PM (#7819175)
To use Ruby-isms, Mojolicious is like all the simplicity of Sinatra and all the does-everything-you-could-ever-want of Rails.

Mojolicious also runs within Perl's version of Rack, called PSGI.

Great stuff!

Re:Mojolicious 5.0 released: Perl real-time web framework by mst on Thursday May 29, 2014 @11:54PM (#7820178)
Catalyst has better Plack/PSGI integration than Mojolicious; in fact Mojolicious is often better deployed without Plack because the PSGI stuff just gets in the way of Mojolicious' home-brewed async stuff.

The whole point of Mojolicious is to be an integrated set of tools that work well together, whereas Catalyst is focused much more on being a part of the wider CPAN ecosystem, and generating its own ecosystem of extensions in turn.

Re:Mojolicious 5.0 released: Perl real-time web framework by duaneb on Thursday May 29, 2014 @08:10PM (#7819412)
> Mojolicious is like all the simplicity of Sinatra and all the does-everything-you-could-ever-want of Rails.

I'm not sure how to take this—I usually pitch Sinatra to people by saying it pitched out all the crap in Rails. Which one is it?

Re:Mojolicious 5.0 released: Perl real-time web framework by lsiebert on Thursday May 29, 2014 @08:51PM (#7819548)
I'd say Perl Dancer is more the Sinatra of Perl.
Re:Mojolicious 5.0 released: Perl real-time web framework by liveoneggs on Thursday May 29, 2014 @09:47PM (#7819709)
Mojolicious::Lite is the bottle.py version built-in.
Re:Mojolicious 5.0 released: Perl real-time web framework by agranig on Thursday May 29, 2014 @06:59PM (#7819154)
Well, mojo seems to try to escape catalyst's dependency hell by providing everything by itself. That's considered a pro or con depending on the view point. The websocket integration is definitely a plus.
Re:Mojolicious 5.0 released: Perl real-time web framework by noeleon on Thursday May 29, 2014 @06:59PM (#7819152)
Mojolicious for one doesn't have the dependency tree of Catalyst, this is kind of against of the Perl mantra of don't re-invent the wheel.

That said I favor Mojo over Catalyst for almost every project these days, it's very easy to work with and quick to prototype an application using the 'lite' mode.

Re:Mojolicious 5.0 released: Perl real-time web framework by mpyne on Thursday May 29, 2014 @07:13PM (#7819202)
I've used Mojo for a personal project, and Catalyst yeaaaars before for a simple project I forget.

I haven't used either well enough to compare, but I will say that Mojo seemed very easy to get started with, and I say that as someone who pretty much hates modern web development.

Re:Mojolicious 5.0 released: Perl real-time web framework by rihegher on Friday May 30, 2014 @08:29AM (#7821366)
Mojolicious use an event loop for non blocking IO, by default it's using mojo::IOLoop but can use EV if installed which gives better performance.

You may not notice that it's using an event loop at first because by default the framework emulate IO blocking behaviour.

Re:Mojolicious 5.0 released: Perl real-time web framework by kasperset on Thursday May 29, 2014 @06:30PM (#7819033)
Mojolicious is written by same person who started Catalyst so expect improvements.