Blog articles tagged 'functional', 'programming'

0
comment
on 6/15/2013 6:12 AM
I spent the last couple of nights putting together a simple Markdown to PDF formatter using Tomas Petricek’s FSharp.Formatting project and the PdfSharp-MigraDoc library. To use this library, you can either grab the source from the GitHub repository or get[...]
.
0
comment
on 4/1/2013 7:02 PM
After a long Easter holiday filled with late night coding sessions I find myself wide awake at 2am… good job I’ve still got my pluralsight subscription and a quick look at the Algorithms and Data Structures course again at least gave me something to do to[...]
.
0
comment
on 10/19/2012 6:40 PM
With the official release of .Net 4.5 and Visual Studio 2012, I suspect many .Net developers will be rushing to rewrite their data access or network layers (amongst many many other things!) to take advantage of the new async-await (see the excellent 101 e[...]
.
0
comment
on 10/18/2012 2:34 PM
In Erlang, we have the Supervisor behaviour which makes it very easy to provide the means to monitor and restart a whole network of workers and other supervisors based on some configured strategy. The MailboxProcessor (aka agents) in F# doesn’t come with [...]
.
0
comment
on 9/24/2012 5:16 PM
This is a list of my takeaways from the excellent talk between Erik Meijer (of the LINQ and Rx fame), Carl Hewitt (creator of the Actor model) and Clemens Szyperski, on the Actor model.   Disclaimer : this conversation revolves around the conceptual model[...]
.
0
comment
on 8/9/2012 1:01 AM
You can specify a function which can take in a numeric value with a generic unit of measure easily enough: Similarly, you can also specify a discriminated union whose clauses can be of a numeric value with a generic unit of measure, like this:
.
0
comment
on 8/9/2012 12:50 AM
Peculiarly I couldn’t find any documented way to create a type extension for a generic array, ‘a [ ], turns out you need to use backtick marks ( ‘ ) around the square brackets in order to do that:
.
0
comment
on 7/29/2012 6:28 AM
Considering a very simple finite state machine (FSM) such as a code lock which requires you to enter a 4-digit numeric code and upon which will open the lock for a brief few seconds. Such a FSM have two states: Locked and Open. Every time a key is entered[...]
.
0
comment
on 7/14/2012 5:35 PM
Related Posts Part 1 Part 2 Part 3   Here I will look at how some commonly used functions in F#’s List module might be translated to Erlang using Erlang’s equivalent – the lists module.   List.append F#:         let newList = List.append [ 1..5 ] [ 6..10 [...]
.
0
comment
on 7/12/2012 1:49 PM
Related Posts Part 1 Part 2   Throwing Exceptions In F#, you can define a custom exception type by creating a type that inherit from System.Exception or using the lightweight exception syntax to define them with the same syntax as discriminated unions. Yo[...]
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us
Built with WebSharper