Better HN
topnewbestaskshowjobs
Log inSign up

Wok

11 karma · joined Mar 9, 2010 (16y ago) · 7 submissions

Submissions

comment 15y ago · link · parent

Indeed, Mochiweb under Webmachine. Webmachine is the excellent HTTP protocol library made by Basho.

comment 15y ago · link · parent

We have some other *tonic projects, which is the primary reason behind the name.

comment 15y ago · link · parent

I am reading this :) At the moment we don't have a package on our plans. We are reorganizing the complete installation and splitting up the module system. Maybe you can file a feature request? Then we can look into it for some future release.

comment 16y ago · link · parent

It is easy enough to start programming Erlang with Zotonic.

Every module is a completely independent gen_server, allowing you to add whatever functionality you want.

Zotonic also uses standard Webmachine resources, when you want then you can skip all functionality of Zotonic and just add whatever code you want to add or experiment with.

comment 16y ago · link · parent

Justin is just super busy. I understand that he didn't merge it yet, as our delta is touching major parts of almost every file.

comment 16y ago · link · parent

Actually Zotonic is called after isotonic. We also publish the CSS framework Atatonic. Keeping our names similar.

Besides that, Erlang has some history to name projects after diseases. For example Mnesia, the build-in database, which was called Amnesia before general release.

comment 16y ago · link · parent

The most important things we changed are:

- Pluggable dispatcher, as the original webmachine copies all dispatch rules for every request. This gave us the greatest speedup as a Zotonic server typically has hundreds of dispatch rules.

- Removal of all process dictionary use. This makes testing easier and also gave a nice speedup.

- Use proplists instead of dicts for small dictionaries.

- Use a memocache for the resource callback functions.

- Removed the use of parametrized modules, this enables us to copy less data (and gives simpler code).

- Added support for protocol upgrades (for Websockets)

Our dispatcher also accepts regular expression checking on uri parameters. And it uses a different approach to vhost handling, allowing a redirect to the main hostname (which is needed when you set browser cookies).