News

Irccd 3.0 will be written in Java (2 comments)

Added by David Demelier over 2 years ago

Background

It's been a long time I was thinking about leaving C++. The problem with C++ is that it's a language from the past. It's important nowadays to move towards new technologies such as Node.js, Java 8, Rust and such.

All these new technologies facilitate deployment, collaboration and evolving features.

There are much more people who know these languages than C++. I've written C++ for several years and now I think I should just jump on something else to improve my skills.

Why Java?

I know Java very well as it was one of my preferred language at school and in my internships.

Java is performant, easy, convenient and portable. With Java, no problems: write once, run everywhere.

I already checked the IRC library and there is a good one called PircBot which is also opensource.

When?

I think irccd 3.0 will not be released after at least seven years. Probably in 2023. Irccd consists of somewhat 18000 lines of code at this time. However as Java require less code, the port won't be so difficult.

2.0.0

Added by David Demelier over 2 years ago

I'm glad to announce the availability of irccd 2.0.0 after more than two years of development.

This new version has lots of amazing new features.

Switch to JavaScript

This major version brings a new JavaScript API instead of Lua for developing plugins.

Lua was dropped for JavaScript after many disappointments about Lua's development model, features, design choices.

JavaScript was chosen because it is light, easy to sandbox and easy to learn.

The current implementation inside irccd uses duktape 1.4.0.

Transports

New transports (formerly listeners) have joined irccd.

Transports replaces listeners and are now completely two-ways.

This means that you can connect to an irccd instance and wait forever for new messages. Irccd will broadcast new messages for each IRC event, this lets you create innovative plugins even without JavaScript.

See the irccdctl watch command which uses transports.

Rules

A brand new feature similar to firewalls can now let you enable or disable events on specific criterias.

It is now possible to disable some IRC events for a specific plugin!

This lets you keep some channels where you don't want some kind of gaming plugins.

Example, this rule disables the plugin hangman on #mychannel@myserver.

[rule]
servers = "myserver" 
channels = "#mychannel" 
plugins = "hangman" 
action = drop

Logs

The logging mechanism in irccd has now its dedicated logs section.

It can now save logs to files.

Example:

[logs]
type = file
path-logs = "/var/log/irccd/log" 
path-errors = "/var/log/irccd/errors" 

More unixish options

Good daemons must have good features, the following options were added in general section:

  • uid, to change the daemon uid,
  • gid, to change the daemon gid,
  • pidfile, where to save the pid file.

Plugins

The following new plugins were added:

The following plugins where removed:

  • antiflood, currently suspended, will come back later,
  • badwords, no plans to replace it,
  • date, no plans to replace it.

New doc, new website

The documentation is now completely built within the irccd repository, making easier to show, update before a new release.

The documentation is completely built with pandoc.

As you can see, the website has completely changed with a brand new design based on bootstrap.

Improved parser

The parser can now understand multiple options on the same line (not recommended though):

[section]
option1 = value1 option2 = value2

It also understands a new include keyword, this allows splitting the configuration into multiple different files.

Note: the instruction must be at the beginning of the file.

# Comments are allowed though
@include "foo.conf" 
@include "baz.conf" 

[section]
option = value

The parser can also use lists in some options using parentheses.

[section]
option = ( "value1", "value2" )

New common patterns

The common pattern syntax has evolved in various way, they now require braces, environment variables are supported, colors and attributes are also supported.

The default keywords have been renamed to:

  • #c -> #{channel},
  • #m -> #{message},
  • #s -> #{server},
  • #t -> #{topic},
  • #T -> #{target},
  • #u -> #{origin},
  • #U -> #{nickname}.

The following keywords have been added:

  • #{command}, the full command invocation (e.g. !ask),
  • #{plugin}, the plugin name.

See the documentation for more examples about new syntax.

Monothread architecture

The irccd 1.x architecture was highly threaded and terribly complex. The new irccd 2.0.0 architecture has 0 threads except when adding new timers from the JavaScript API.

New installer

The Windows installer is now based on QtIFW and lets you selecting which components to install.

Mercurial repository reset

Added by David Demelier over 2 years ago

The official Mercurial repository at http://hg.malikania.fr will be reset on Sunday 2016-02-07.

This is mainly due to various errors in branches, style, conversions.

Users are encouraged to move or delete the repository before recloning it again.

Tags for versions 1.x will be completely discarded and only new 2.x stuff will come.

1.1.6

Added by David Demelier almost 3 years ago

The version 1.0.2 has been released. This a maintenance release.

  • Lua 5.2.4 is now bundled with irccd to prevent CMake looking for incorrect versions.

Because I don't have VisualStudio anymore, this version does not have prebuilt binaries for Windows, users may still use 1.1.5 as this version does not add any other features and bugfixes.

Mailing list opened

Added by David Demelier over 3 years ago

I have created a mailing list at http://librelist.com.

The mailing list is temporarily hosted there because I have no time for installing my own on the server.

Request for comments

For the next 2.0 milestone, I want people to provide feedback on the planned features and to discuss them if needed.

It is important for me that everyone can share its ideas so that we create the most perfect IRC bot in the world.

The list

Please join us by sending an empty email to and start talking with us!

There will be no 1.2

Added by David Demelier over 3 years ago

It was not an easy decision to take, but the planned version 1.2 will never be released.

Irccd 1.2 was planned since lot of months for February, but it was absolutely not ready to be released.

Features requested not tested

I've been asked to add some features that were hard to test for me and those people never tested it. Because I don't like to release something that I can't test I removed those features which required to change lot of things internally.

Request feature and do not providing feedback is terribly frustrating, I encourage you to never do that for any project.

Architecture

The irccd internal architecture is a bit complex and has many threads. It was also hard for me to debug some problems that appears on my local machine.

The next major irccd version will bring a better architecture with much less threads and much more unit tests.

Documentation

The documentation has been ported locally as explained in several announcement, but it still requires massive re-reading and some cosmetic changes which will take too much time to respect the deadline.

Don't worry, irccd 1.1.5 is still available and irccd 2.0 will be so much better that it's worth waiting for it :-).

1.1.5

Added by David Demelier over 3 years ago

I'm glad to announce the new release 1.1.5. It's a bugfix release, there is no new features.

  • Fix Mac OS X build,
  • Fix null constructed strings,
  • Fix general.foreground option not working,
  • Windows: Lua and OpenSSL are built as DLL and copied to installation.

1 2 3 (11-20/26)

Also available in: Atom