Giter VIP home page Giter VIP logo

ian144.github.io's Introduction

The Financial Information eXchange (FIX) Protocol in F#

There is a myth that F# is only useful for mathematical and scientific applications. This site describes using F# to model FIX messages, which is neither mathematical or scientific. Why should you care? what does F# give you as a developer that C# or Java does not? FsFIX is going to show that

  1. with F# some runtime errors become compile time errors.

  2. property based testing is supercharged compared to unit testing1 and will catch some of the runtime errors that remain.

  3. the code base is smaller and has less boilerplate.

FIX code generation is the first stage of project to build a fully fledged FIX engine using F#. FsFIX generates F# types to represent FIX messages, and also generates functions to read and write these types to and from byte arrays. The source for FsFIX can be found here. At the time of writing FsFIX can be used to connect to applications using other FIX 4.4 engines and feed them with random but valid FIX messages, in order to test the parsing machinery of both FIX frameworks. Errors were found in QuickFIXN (an open-source C# FIX engine) and FsFIX (found and fixed) in this manner, as was an issue with the FIX 4.4 spec.

The unreasonable effectiveness of Algebraic Data Types

Property testing FsFIX message read-write code

Generating F# from FIX4.4.xml (and generating FIX xml from F#)

Performance

Performance compared to QuickFixN and QuickFixJ

Building and Running FsFIX projects

1 unit tests are still useful, property testing is not always appropriate.

About the author

My other site, an F# key-value store: https://fredisnet.org/

Interested in hiring me or asking me questions about FsFIX? my email address is my GitHub user-name followed by '@hotmail.com'

ian144.github.io's People

Contributors

ian144 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

atwoodtm

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.