Trad4

Trad4 - parallelise your problems
Download

Trad4 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Steve Evans
  • Publisher web site:

Trad4 Tags


Trad4 Description

Trad4 - parallelise your problems Trad4 is a fully concurrent, thread safe programming language that scales linearly on multiple cores. The project is initially intended for deployment in the financial industry to model real-time risk.Trad4 comprises of a library and a pre-processor. You specify your objects using a simple syntax and run the pre-processor. Trad4 produces a handful of C files for each object, including a stub file - the calculate method. This gets called each time the object needs to fire, and you need to supply the logic for. Trad4 pulls all the information that object needs to calculate itself into the scope of this function.These source files are then compiled and together with libtrad4.so are linked into an executable. This then starts against a database.Change is then fed into the system, and trad4 manages that change up through your graph and keeps the tree up to date in real time.Trad4 is a new way of arranging programs in memory and a new style of flow-of-control.Why use trad4?It's very easy to use. To build a trad4 application to model your problem you need just a good understanding of your problem and knowledge of a small subset of the C programming language.It's very fast. As you decompose your problem into separate objects, this allows multiple threads to execute different parts of your problem at the same time, so a trad4 application scales linearly on multiple cores. Trad4 itself has very little overhead - there are very few instructions between an object needing to be run and it's calculate function being called.It's very efficient. As you break your problem out into separate objects, you can arrange your graph in such a way that each individual calculation gets done only once within the application. Other objects that depend on the result of that calculation will read the result from that object.It's very safe. While trad4 provides full concurrency, it is entirely lock-free. This means you never have to worry about obscure race conditions or deadlocks.Trad4 is released under the LGPL. This is the same licence gcc & glibc use, and it allows you to link trad4 to a proprietary system and release that proprietary system under any licence you choose. What's New in This Release: · The ability to pass in compiler flags (-O3, -g) has been added (append to CXXFLAGS as needed). · A compiler warning caused by certain kinds of structures has been fixed. · A single-threaded mode where the master thread does all the work has been added (export NUM_THREADS=0). · The namespace t4 has been added to prevent trad4 type name clashes with external libraries. · The script benchmarker.sh has been added (see the Analysis section on the main website for details). · Trad4 now compiles on 64-bit platforms.


Trad4 Related Software