|
Are there any good code samples and applications - possibly something that is longer than few 100 lines - that use f#?
I would like to see real life application using f# and how it compares to c#.
Started by bh213 on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
It's a large-enough.
I'm building a sample f# mvc application on the bistro project page.
Written in F#.
|
|
Possible Duplicate:
What are the benefits of using C# vs F# or F# vs c#?
My team is currently using C# .NET to develop enterprise applications for our company. We have a history of Winforms dev, but are now moving over toward SilverLight.
My boss recently...
Started by CraigS on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I just ordered the Manning ' Real World Functional Programming ' which does a fantastic job of explaining all of the nooks and crannies of F#, functional programming, and especially how it compares to C#, and OOP
What I'm coming... .
Check out this question.
|
|
In haskell it is posible to partially apply an infix function using sections, for instance given the infix function < (less than) one can partially apply any of the function's arguments: (5 <) , (< 5)
In other words, in haskell we have the following...
Started by primodemus on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Let lsection x f y -> f x y let rsection f y x -> f x y.
Whereas I like to invent your own standards...
No, neither of those (apart from standard partial application like (=) x ).
|
Ask your Facebook Friends
|
Looking at a function in my code today, I wondered if it was possible to combine partial combination and optimisation:
let foo (X:float) y1 y2 dx = y1 + (y2 - y1) * dx / X
Basically, just applying a ratio - so the first three parameters are generally ...
Started by Benjol on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Storing it explicitly outside the loop makes me hope is twice as slow as foo2, but storing the partial application outside the loop, it's 3 times faster // imagine something expensive let F....
That is, fdx is the partial application.
|
|
Is F# better than C# in scenarios where you need complete parallelism in parts of an application?
My main language is C# and I am writing an app where the core functionality built on top of the app (C#) has to be and planned to be very parallel.
Am I ...
Started by Joan Venge on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
On the flip side, there will be a lot of parallel functionality built in to the next version... .
F# is mostly free of side-effects so yes, but you wouldn't want to implement a UI in it .
I'd look at the Parallel Extensions that's being developed by Microsoft .
|
|
Lets say I have an old application which will try to load an external assembly.
The old application is compiled to CLR 2. The new assembly is compiled to CLR 4. I would like to be able to run that old application inside CLR 4. I remember there was some...
Started by zproxy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
"The <supportedRuntime> element should be used by all applications built using version 1.1 or later of the runtime." ( http://msdn.microsoft.com/en-us/library/a5dzwzc9.aspx ....
I believe you want to use supportedRuntime, not requiredRuntime.
|
|
I'd like to write an application in C which uses arrow-keys to navigate and F-keys for other functions, such as saving to a file, language selection, etc.
Propably the values depend on the platform, so how could I find out which values the keys have?
...
Started by johko on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Write your application using one of the X libraries and get access to 'key symbols' rather than.
|
|
I develop mainly line of business applications.No scientific operations. No complex calculations. Just tie User Interface to database. The only reason I use threading is to do some work in background and still keep UI responding.
This may not be the best...
Started by funwithcoding on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Also, F# Interactive....
On the plus side, dealing with threading should be relatively painless - F# async workflows are a huge benefit .
That's a very hard question to answer - I think that F# would make some aspects of your life much easier and some a bit harder .
|
|
I am translating a C# project into F#. While the logic part is easy, I am confused with the GUI part:
public partial class GomokuGUI : Form { private void GomokuGUI_Load(object sender, EventArgs e) { this.Width = 500; this.Height = 550; ... this.Paint...
Started by Yin Zhu on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
) // // 3 Configures the application and creates the window // root.RenderSystem <.
|
|
Developing a C# .NET 2.0 WinForm Application. Need the application to close and restart itself.
Application.Restart();
The above method has proven to be unreliable .
What is a better way to restart the application?
Started by Noffie on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You are forgetting process' parameters, then do a start.
I++) // args[0] is always exe path/filename arguments += args[i] + " "; // Restart current application a second .exe which pauses and then starts your main application for you.
|