Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

An Erlang/Tcl Interface

License

NotificationsYou must be signed in to change notification settings

Nenzyz/etclface

 
 

Repository files navigation

This is aTcl extension that will allow software writtenin Tcl andErlang to communicate using theErlang/OTP interface,erl_interface.

Introduction

Erlang provides two native interfaces that enable communication betweenErlang processes and external programs using Erlang's message passingmechanism.

One of these interfaces iserl_interface, which allows the externalprogram to register as a node in a Distributed Erlang network and exchangemessages with Erlang processes.

Some of the aims of the Tcl extension are:

  • Let a Tcl application use Erlang for processing.
  • Let an Erlang application use a Tcl/Tk based GUI, or other Tclextensions such as Expect.

The initial version will only expose enougherl_interface functions toallow a Tcl application to communicate with Erlang nodes. Currently,there are many functions inerl_interface, however, only the followingsubset will be provided:

  • register with epmd as a node
  • send/receive messages
  • decode/encode between internal and Tcl types

Build and Installation

Prerequisites

You will need the following software/packages:

  • Tcl/Tk 8.5 or higher
  • Erlang/OTP, R15B03 or higher
  • TeX, if producing the documentation
  • Cweb can be obtained fromhere
  • cmake
  • ccmake, not mandatory, but a useful tool for editing cmake parameters
  • make
  • C compiler, GCC was used during development

Build

Once you have the source files on a local disk, change to theetclfacedirectory, then

mkdir -pv build# for out-of-source buildscd buildcmake ..make

The documentation is a single PDF file, it can be generated with

make doc

Installation

ifmake is successful, then you should have alibetclface.so file inthebuild directory. You can then install the library:

make install# ensure you have permissions

Testing

The software has been tested on Debian GNU/Linux only.

The test scripts are can be found in theTests directory.

Feedback and Contributions

Comments and feedback are welcome, please use the issue tracker for this.

Please use pull requests for patch contributions.

Enjoy!

Fred Youhanaie

About

An Erlang/Tcl Interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PostScript46.6%
  • C29.2%
  • Tcl15.8%
  • Roff6.4%
  • CMake1.8%
  • Erlang0.2%

[8]ページ先頭

©2009-2025 Movatter.jp