Mercurial > irccd
comparison doc/html/guide/06-plugin/01-intro.md @ 0:1158cffe5a5e
Initial import
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 08 Feb 2016 16:43:14 +0100 |
parents | |
children | 8384df86e195 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1158cffe5a5e |
---|---|
1 # Plugins | |
2 | |
3 Irccd can be extended with JavaScript plugins. This chapter will tell you how plugins work within irccd and how to | |
4 create your first plugin. | |
5 | |
6 This chapter covers also some things to do and to avoid in plugins. | |
7 | |
8 ## Why JavaScript? | |
9 | |
10 You may wonder why JavaScript was chosen in irccd. Originally, irccd used Lua as the scripting language but for many | |
11 reasons, it has been replaced with JavaScript. | |
12 | |
13 However, many aspects between Lua and JavaScript are similar: | |
14 | |
15 - Both languages are extremly small with very light API, | |
16 - It is easy to sandbox the interpreter for security reasons, | |
17 - It is very easy to implement your own API from C++ code. | |
18 | |
19 The current JavaScript interpreter is powered by [Duktape][duktape]. | |
20 | |
21 [duktape]: http://duktape.org |