Emacs experts : is possible connect f# intellisense command line tool with emacs?
I love emacs, I've used this for the latest years and when I need open an ide, although Visual studio is an amazing ide, I feel limited and it's very heavy weight for my old computer, I'm using emacs for f# although I feel than emacs is not so appropiate for a static type language, I've seen than...
Categories: Communities
F# PSeq.iter does not seem to be using all cores
I've been doing some computationally intensive work in F#. Functions like Array.Parallel.map which use the .Net Task Parallel Library have sped up my code exponentially for a really quite minimal effort....
Categories: Communities
Is this the best way to sum decimal value types in queries?
I was getting an error when I was execting the following query that summed a non-nullable decimal. The magnitude was null when there was no magnitude value for a location/organization combination. ...
Categories: Communities
nested type provider
I have one type provider that connects to the network to retrieve data....
Categories: Communities
F#'s "Hello, world" with 2 fs files
I come from C# background to F#. So far I wrote simple programs and spent a lot of time in F# interactive....
Categories: Communities
Infinite main loop in F#
A usual pattern for CLI application is to run in infinite loop, until user types some quit command. Like, in C language:...
Categories: Communities
F# windows phone isolated storage and XML
I have a WP7 app that tracks a user's location. All is working fine, except I would like to write the locations to isolated storage on the position changed event of the GeoCoordinate watcher, and I keep getting the "Operation Not Permitted on IsolatedStorageFileStream" message. Can anyone help...
Categories: Communities
Any difference between t<'a> and 'a t in F#?
Is there any difference in meaning between t<'a> and 'a t in F#? Can they be used interchangeably even after declaration?
Categories: Communities
Apply several aggregate functions with one enumeration
Let's assume I have a series of functions that work on a sequence, and I want to use them together in the following fashion:...
Categories: Communities
Weighted random selection using Walker's Alias Method
I was looking for this algorithm
(algorithm which will randomly select from a list of elements where each element has different probability of being picked (weight) )
and found only python and c implementations, after I did a C# one, a bit different (but I think simpler) I thought I should shar...
Categories: Communities
Regex.CompileToAssembly how to set .dll file location
I'm experimenting with precompile regexes in an .fsx script. But I can't figure out how to specify the .dll file location for the generated assembly. I've tried setting properties such as CodeBase on the AssemblyName instance used by Regex.CompileToAssembly but to no avail. Here's what I have:...
Categories: Communities
Type provider providing me with an "Unsuported Constant Type : System.double" error in f#
I wonder where this error is coming from....
Categories: Communities
Dynamic SQL queries with F# 3.0?
I have tried to use FLINQ but it is rather out of date with F# 3.0 beta.
Can someone give me some pointers on how to create dynamic SQL queries in F#?
Thanks.
Categories: Communities
What happened to deepMacroExpandUntil
FLINQ and the Quotation Visualizer samples used this function but I cannot find it anywhere. Thanks.
Categories: Communities
How to connect to SQL Server Compact Edition 4.0 with a type provider in F#?
I'm attempting to connect to a SQL Server Compact Edition database from F#, and attempting to use a type provider. This is in the Visual Studio 11 Beta, so I realize there might be an issue because of that, but I think it's more likely that I just don't have the know-how yet....
Categories: Communities
Parallel code with Task.Factory slower than linear
I am playing with parallel programming and F#. I created a function that integrates a 1-variable function, and then I tried to make it parallel in two different ways:...
Categories: Communities
Creating record type in F#
I would like to craft a simple record type based on fields provided....
Categories: Communities
Purpose of a single case discriminated union
I'm defining a monadic observable/reactive parser. This behaves quite differently to a normal parser as it is a continuous query. The underlying type is:...
Categories: Communities
Why does F# compiler generates IL NOP even in release builds?
I've just stumbled across this and I'm a bit puzzled....
Categories: Communities
Combining discriminated unions with record types
I'm trying to get my head around discriminated unions and record types; specifically how to combine them for maximum readability. Here's an example - say a sports team can either have points (both league points and goal difference), or it can be suspended from the league in which case it has no...
Categories: Communities
