The 'Freiburg' project is an replacement for shared libraries on Unix, Windows and Mac OS X ...
goals
usability study 1
I maintain an application based on REMEDY-Ars running a workflow application. The application is running on a SUN server using a local SYBASE database. To monitor the server I wrote an ARS module to check the health status of ARS and the workflow application. The module was developed on SUN Solaris using a gcc compiler and a non free REMEDY-Ars API. To monitor the server I'm using moods as front-end and the module as data provider. The moods application is using a graphic and a text based output devices. The quality of information provided combined with the easiness of using moods created a killer application with a strong request for additional installations. To minimize the installation requirements and maximize the support quality I decided to run the module on a ULTRA SPARC 10 and only ship a generic moods application for different kind of UNIX and WINDOWS environments. With using the module technology I do not need to port the data provider to different environments and was able to support environments with no api support by the REMEDY-Ars supplier.
RHS It sounds like an implementation of a Service Oriented Architecture. While each module can provide functions, they're not libraries per se, so much as services that other modules or programs can then use.
the 'Freiburg' project and the 'command line'
The traditional unix command line was developed to create complex filters based on simple tools:
tool1 | tool2 | tool3
|-tool2 tool1-| |-tool3-|-tool4 |-tool5
More information will be available.
escargo 21 Aug 2004 - Couldn't the distinction between step one and step two also be described as using objects with string-based serializations being sent between your modules? As long as all communicating modules agree on the mechanisms for encoding and decoding, it does not matter if your serialization mechanism is XML, YAML, or anything else. (In fact, if it's properly layered, you could even be going through an ssh tunnel.) -> YES
the 'Freiburg' project and 'Tcl'
This is an example-link between 'Freiburg' and 'Tcl'
package require TestOnFreiburg set FH [TestOnFreiburg::Start -name TclTestOnFreiburg -tcp -inetd -host myserver -port myapp] set RET [TestOnFreiburg::Echo2 $FH -int2 12345] puts "Answer: $RET" rename $FH ""
description: start test based on 'Freiburg' using the module on server myserver using port myport and call procedure Echo2 with a 2-byte integer 12345 as argument
the communication between application and module is based on different data-types
INT2 .... 2 byte integer INT4 .... 4 byte integer INT8 .... 8 byte integer FLT4 .... 4 byte float FLT8 .... 8 byte float PTR ..... pointer STR ..... \0 terminated string BIN ..... binary LST ..... list can contain all types
RHS Given the rename $FH "", it seems like $FH is a command. If so, why not make it so that you can call it directly to get results, ie:
set RET [$FH Echo2 -int2 12345]
because it is just an wrapper for:
proc TestOnFreiburg::Echo2 { Ctx args } { return [$Ctx send -wait -type ECO2 $args] }
description:
the 'Freiburg' project and 'C'
The 'Freiburg' project was written in 'C' an 'C' is the native interface:
int main(int argc, char **argv) { ContextS *context; // the initial context BufferLS *largv = BufferLCreateArgv(NULL, --argc, ++argv); MsgqueS *a_msgque; INT2 ret; // create the ContextS ErrorCheck(ContextCreate(largv, &context)); // call Echo2 struct SendS * const send = context->msgque->send; SendSTART(send); Send2(send, 12345); ErrorCheck(SendEND(send, "ECO2", NULL /* transaction not needed */)); // do some work .... // read the result ErrorCheck(ReadHDR(context->msgque->read, &a_msgque)); ErrorCheck(Read2(a_msgque->read, &ret)); printf("Answer:%i\n", ret); error: ErrorSSend(CONTEXT_SAVE_ERROR(context), __func__); ContextDelete(&context); exit(EXIT_SUCCESS); return 0; }
name resolution (e.g. finding the right service)
Name resolution is only useful for remote services. Remote services are started by the inetd daemon using a specific port on a specific host. To uniquely define a service only the hostname and the portname are necessary. The name resolution is based on already available technology like DNS, NIS, or LDAP.