GithubHelp home page GithubHelp logo

mebobby2 / haskell-chat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dmansen/haskell-chat

0.0 2.0 0.0 164 KB

A minimal, high-performance, IRC-like TCP chat server written in Haskell.

Home Page: https://github.com/dmansen/haskell-chat

Haskell 100.00%

haskell-chat's Introduction

hachat (haskell chat server)
============================

hachat is a robust, highly concurrent implementation of a chat server with a simple protocol (see http://www.itasoftware.com/careers/work-at-ita/hiring-puzzles.html or below for details), implemented in Haskell. it uses a combination of software transactional memory and lightweight threads to achieve high performance.

the easiest way to run it is to compile Main.hs (ghc Main.hs), run the binary, and pass in an optional port. ./Main -p 9000

protocol description
====================

all messages should be terminated by <CR><LF> (carriage return + line feed).

client messages
===============

LOGIN <name>

  logs you in with the specified name

JOIN #<room name>

  joins the room specified

MSG #<room name> <msg>

  sends a room message to the room specified

MSG <user name> <msg>

  sends a private message to the user specified

PART #<room name>

  leaves the room specified

LOGOUT

  terminates your session

server responses
================

OK

  indicates that what you wanted, happened.

GOTROOMMSG <from user> #<room name> <msg>

  got a message from user to the room

GOTUSERMSG <from user> <msg>

  got a private message

ERROR <reason>

  there was an error

disclaimer
==========

the software is prone to constant change, as it's only been in development for 3 days at this point, and i really like refactoring.

version
=======

i declare this version 0.5. this means it should be relatively stable.

haskell-chat's People

Contributors

derekmansen avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.