用awk编写的IRCd服务
IRCd service (2024)

原始链接: https://example.fi/blog/ircd.html

Example.fi 托管了一个基本的 IRC 服务器,以此致敬这项技术在在线通信领域的先驱作用。IRC 创建于 1988 年,是现代聊天和社交媒体发展的基础,它将人们连接在实时的文本对话中。 这个 IRC 服务器的独特之处在于它的实现方式:它使用 AWK 编写,AWK 是一种文本处理脚本语言,展示了 IRC 协议的适应性。虽然有意限制(大约 60 行代码!),但它既是一个教育工具,也是对 IRC 长期影响的致敬。 连接到 example.fi 的用户应避免使用高级 IRC 功能,并且可能需要使用特定设置(例如 Irssi 中的 `-nocap`),因为其实现经过简化。代码将在稍后公开发布。

相关文章

原文
example.fi | blog | ircd Ok. We have IRC at example.fi

Internet Relay Chat (IRC) is a form of real-time text communication developed by Jarkko Oikarinen in 1988. Initially created to replace a local BBS system at the University of Oulu in Finland, IRC quickly gained global popularity, becoming a foundational technology for online chat communities and influencing the development of modern instant messaging and social media platforms. Its significance lies in its pioneering role in connecting people across the internet, fostering early online communities, and setting the stage for contemporary digital communication.

To commemorate this pivotal technology, example.fi provides a simple and limited IRC server. This server is uniquely written in AWK, a scripting language traditionally used for text processing, highlighting the adaptability and enduring legacy of IRC. This creative implementation serves as both an educational tool and a tribute to the foundational role of IRC in the evolution of online communication.

In the following picture you see Irssi in the background and Hexchat on top of it:

Note: if you plan to connect to example.fi, make sure you do not use any fancy features. In irssi, use -nocap option. In Windows, use for example hexchat. As this is written in gawk, most IRC protocol features are not implemented. This includes, for example, channel and user listings, topics, the concept of "operator" etc. Technical fun fact: Total code count is around 60 lines of awk and a few lines of bash.

$ telnet example.fi ircd
Trying 65.108.91.190...
Connected to example.fi.
Escape character is '^]'.
USER foo
NICK bar
:example.fi 001 bar :Welcome to Internet Relay Network [email protected]
:example.fi 375 test :- example.fi Message of the day -
:example.fi 372 test :- Current time is @787.188.beats
:example.fi 376 test :End of MOTD command.
Connection closed by foreign host.

Don't worry, we'll publish the code when it's "ready" :)

This site is HTML 2.0 compliant.

Valid HTML 2.0
联系我们 contact @ memedata.com