Skip to content

Commit

Permalink
Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeDP committed Jan 5, 2019
1 parent 198dbe3 commit 07a34c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Lib/public/module/map.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "module_cmn.h"

/** Module hashmap interface **/
/** Hashmap interface **/

typedef enum {
MAP_WRONG_PARAM = -5,
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ You will write less code, focusing on what really matters.

Libmodule offers a small and simple implementation of an actor library.
Indeed, libmodule was heavily inspired by my own actor library experience with [akka](https://akka.io/) for its API.


## What is a module, anyway?

Unsurprisingly, module is the core concept of libmodule architecture.
A module is an Actor that can listen on socket events too.

## Is it portable?
Expand All @@ -37,12 +42,6 @@ To see a real project using libmodule, check [Clightd](https://github.com/FedeDP
Libmodule, samples and tests builds are tested on [builds.sr.ht](https://builds.sr.ht/~fededp/libmodule) on linux and freebsd.
Moreover, tests are executed and valgrind checked too.

## What is a module, anyway?

Unsurprisingly, module is the core concept of libmodule architecture.
It can be somewhat seen as a class, and shares lots of concepts with an Actor.
It helps you to write standard and clean projects with small units, so called modules, whose job should be self-contained.

## But...why?

We all know OOP is not a solution to every problem and C is still a beautiful and much used language.
Expand Down

0 comments on commit 07a34c2

Please sign in to comment.