F# - A New .Net language
Goalie_Ca writes "Neonerds.net has learned of an implementation of the ML programming language for the .NET Framework. F# is essentially an implementation of the core of the OCaml programming language . F#/OCaml/ML is a mixed functional-imperative programming language which is excellent for medium-advanced programmers and for teaching. In addition, you can access hundreds of .NET libraries using F#, and the F# code you write can be accessed from C# and other .NET languages. See the
F# Homepage."
Although there are other languages that can run on JVM, the ease of getting inheritance and cooperation to this level is only possible in .NET.
¦ ©® ±
All this shit and more has been available for years in Smalltalk.
MSBPodcast.com The opinions expressed here are my own. If you don't like 'em... Think up your own stuff.
So it looks like there are releases of Microsoft's jitter that have full support for execution-time expansion of generics. I can't wait!
Amen, brother.
I wouldn't mind it so much if someone would IMPROVE on Smalltalk, but why do we have to spend twenty years devising languages that are not quite as good as Smalltalk (in the name of efficiency, or compatibility, or ease of learning for people that have never learned more than one computer language...)
Smalltalk is the only language I've ever used that I felt truly extended my reach as a programmer and truly enabled me to do easily things that would have been difficult in other languages.
It is also the only language in which I have truly taken big, complicated, rich pieces of code that did ALMOST what I wanted and spent very small amounts of time subclassing them and making them do EXACTLY what I wanted--and without having to spend hours reverse-engineering and understanding what the original code was doing.
"How to Do Nothing," kids activities, back in print!
Take a look here, at the comparison of F# to OCaml.
.NET - the promise of multiple langauges, with the DELIVERY of multiple crippled langauges. If MS succeeds I can predict what will happen - the demise of almost any other interesting language, as developers are drawn in by the supposed "compatibility" of the C# libraries in thier favorite languages. But devoid of many interesting langauge features, combined with odd syntax for acccessing those wonderful Java, er, C# base libraries they wlll just drift to using C# (the ONLY language not neutered by the platform).
.NET platform that should be corrected whenever possible.
This is what I really dislike about
I think you are really a troll, but in any case you bring to light a common ignorance about the whole
"There is more worth loving than we have strength to love." - Brian Jay Stanley
>I can't believe a language named "F#" got past
> Microsoft's marketing department. Or are
> they retarded enough to think it won't get
>expanded to "F#@%"?
You think that's bad? As a non-programmer I expanded "F#/OCaml/ML" to "f*ck em all"...
Just compare any .NET language with the original, (C++ versus the real thing, F# versus ML etc). What you see is that any language, in order to achive interoperability at this level (including inheritance etc) and thus get access to .NET libraries, needs to be mutated into something different.
.NET languages are different, only superficially they are like their originals (syntax etc). In fact all .NET languages are structurally alike, only the syntax is somewhat different.
.NET succeed in the marketplace, it would be an enormous loss. The choice (of languages) is just fake. In fact it is total assimilation and destruction of variety.
.NET variants is horrible.
Only superficially all
Therefore, should
I have nothing against the virtual machine idea (C# + CLR) which is 100% like Java + the JVM. That is a good principle which has its uses (just asking why not go with Java, C# merely adds some syntactic sugar but brings no true improvements such as templates or multiple inheritance). But this plan/strategy of so mutating all existing languages in all alike
I vote for S^ instead... 'shat'
Did you remember when Slashdot said that they'll post articles about there sponsors products? Well here's the result.
I'm not anti-MS by any means but even I can notice that this F# have very limited appeal. Posting an article about it, is very suspicious.
Comment removed based on user account deletion
Let's just hope that the specification and implementation strategy for .NET genericity will be open. While there doesn't seem to be anything terribly sophisticated or novel in it, Microsoft could conceivably have applied for a bunch of patents and may try to keep efforts like the Mono project from implementing this.
As for F# itself, it seems to be a closed-source distribution only, which makes it uninteresting except as a technology demonstration. Microsoft almost certainly has no intention of supporting it commercially, making it effectively an orphaned, single-platform, non-evolving system. Even if it were a commercial product, lack of an open source distribution would make the chances of its adoption nearly zero.
No, "all this shit" has not been around in Smalltalk. OCAML incorporates a lot of ideas and technologies developed in the 1980's and 1990's, after Smalltalk was designed. Whether you need the extra power of OCAML or whether it gets in your way is a separate question, but OCAML is not a subset of Smalltalk and Smalltalk is not the be-all-and-end-all of all ideas in programming.
That's what this is about, Branding!!!
I'm not interested in it. In fact I'm less then zero interested in it, as the generic brand contains the same ingredients and cost a whole hell of a lot less.
For those stuck on words used. Microsoft is a brand name. GNU, FSF, GPL is the generic indicator, organization of establishing the generic and the licensing of the generic that insures it stays that way.
Or.... for the paranoid out there... perhaps with the federal prosecution being dropped and everything else, this is MS's statement directly to programmers:
"Programmers??? F#/OCaml/ML"
I see a few people complaining that there is "yet another language to learn."
They ask, "Why bother creating another language? There is quite a number of them out there. Any of them should be able to solve almost any problem out there."
Programming languages are an art form, and like any other art form, it deserves respect. Each programming language forces a programmer to think about a problem in a slightly different manner. Prolog forces a programmer to think in terms of goals to be achieved, and OO languages force a programmer to think in terms of self contained parts of the problem. Different programming languages make it easier to solve different types of problems. Haskell is a great language to represent infinite sequences due to its use of lazy evaluation.
Would you tell a musician to not experiment with sounds not created by traditional instruments because there are so many musical instruments out there for him/her to use, and that any musical piece can be performed with any of them? Musicians come up with new sounds all the time because those new sounds allow them to view music from another perspective
// file: mice.h
#include "frickin_lasers.h"
Just compare any .NET language with the original, (C++ versus the real thing, F# versus ML etc). What you see is that any language, in order to achive interoperability at this level (including inheritance etc) and thus get access to .NET libraries, needs to be mutated into something different.
.NET languages are different, only superficially they are like their originals (syntax etc). In fact all .NET languages are structurally alike, only the syntax is somewhat different.
.NET languages to program; C#, JScript.NET, VB.NET, and Managed C++. Being skeptic I originally assumed that .NET Framework would simply be creating skinnable languages where the syntax may be different but the underlying semantics are mostly unchanged which in fact many claim is the case for VB.NET and C#.
.NET versions. I can still declare vars in JScript and best of all in managed C++ I get all my favorite C++ constructs (STL, the 4 casts, templates, etc) but can combine them "managed code" to get the benefits of .NET.
Agreed, this is true of any mechanism that allows interoperability. Java does not allow one to effectively utilize benefits of the target platform so that it is interoperable across operating systems. Many would claim that this is a good thing. SOAP and web services are making people similarly compromise to enable building distributed applications something that is accessible to the average developer. Again this is widely considered A Good Thing
Compromise for the sake of interoperability is something that is done all the time. The question typically is whether the amount of compromise is worth the benefits of interoperability.
Only superficially all
I'm not sure what you mean by structurally alike but I'll hazard a guess and assume that you meant they are semantically alike. So far I have used 4
However, the more I used the languages the more I realized that although some similarities existed the core of the languages from my past; JScript and C++ was still in their
Now there are certain compromises such as the fact that the CLR only supports single inheritance (which I believe some research language discussed a while ago on Slashdot found a workaround for) but in my opinion this is a small price to pay to be able to access my C++ objects from VB.NET or my C# objects from JScript.NET. I consider even better that there is one unified class library that I can count on across all the languages besides the language specific ones like the STL or the JScript function library.
Disclaimer: I work for Microsoft but the thoughts expressed in this post are my opinion and do not reflect the opinions, intentions, plans or strategies of my employer
It could have been called ML#, or M# if you really need the one letter thing. But now by calling it F# they have inflicted terrible damage on the community.
.Net culture has been removed before it had time to blossom.
,will get old very quickly: "so, I hear you're using that F# language? Am I going to have to read that F# S# when you're done? I hated debugging that when I was in college, my prof was a F# A#".
.NET? What's next, A# for Algol?
Sure, it's F-unctional/imperative, but there are other Functional/imperative languages, how come they got the priviledge on the F? It's a non-intuitive choice for something based on ML, and it takes over the F...
How many headlines in SatireWire et al could have been based on that F#? How many inside jokes, idiomatic expressions? An important piece of the
Can you use "this F# S# is not compiling!" anymore? No, because it might not be implemented in F# and would confuse your co-workers, who would have otherwise understood your feelings exactly. We will see, ad nauseam, co-workers mocking poor F# developers with jokes that, in the pretense of sophistication
Confusion in the workplace will stifle any creative idiomatic use of F#, nagging by co-workers with repetitive jokes will stifle any creative alrogithmic use. F# will die and will kill the F# with it.
Saying just "piece of S#!" is not the same. And how long before even that is removed, when they implement Smalltalk in
Why, Microsoft, why?!
Freedom is the freedom to say 2+2=4, everything else follows...
Yeah, he probably meant to say LISP :-)
Anyhow, there are plenty of better candidates for 'redundant language' to pick on (XML and its myriad of ways to computational completeness, Python, Javascript...)
That's not the point. I totally agree with what the parent poster said (just replace every occurance of "Smalltalk" with "Common Lisp" for my case).
Why do people have to reinvent the wheel a thousand times, but never succeeding in making it truly round? WHAT advantage has Ruby over Common Lisp or Smalltalk? WHY did it have to be made? What, as a language, can it do that Smalltalk or Common Lisp can't? It's a waste of time, really.
-- The plural of 'anecdote' is not 'data'.
F# looks cool, I've been meaning to learn O'Caml for awhile. But I really want to see E#.
I think the integration is too fine grained to implement really different languages, such as
.NET does) you can have more effective solutions for particular application domains.
- not-OO at all (but purely functional or logical languages)
- languages like ADA or OCCAM that have completely different parallelism paradigmas
I prefer more loose integration, where different languages/environments can implement truely different paradigmas. Then you integrate for example by:
- building a 'bridge' in the C, the de-facto glue language (JAVA has JNI, almost any language has some kind of interface to C
- more coarse component mechanisms such as Corba (or COM or web services if you like)
In more specialized environments (that thus are impossible to integrate at the fine level as
Read site description. Originally, this was News for nerds. Stuff that matters.. It only picked up the ridiculously anti-MS slant after it was bought by VALinux.
Slashdot is a bit less pro-Debian than it once was, perhaps, but it's always been pro-Linux and anti-Microsoft. Your user ID doesn't suggest that you've been around long enough to know, though.
$x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
$x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
I'm getting sick of these long names like Coctothorpe and Foctothorpe. Can't we just go back to "C", "Perl" and exorbitantly long, "Pascal"?
Well, I am a fulltime middleware Java programmer, and have no particular love for MS, but your post is mostly FUD. Microsoft is not trying to ingratiate themselves to *US*, the Slashdot crowd (duh!) - they are trying to jump off their legacy languages (VB, C++) into a J2EE-like world (which Java has had for years now), and to this goal, .NET/CLR is a pretty damn good architecture. The things which it *does* have over Java which are actually nice, is, for example, optional "unsafe" keywords for native integration, and auto-boxing (which Sun has now planned to introduce to Java in 1.5). .NET is a great platform for current Microsoft developers to migrate to a web-services/J2EE-like world, and it does a damn good job at it. I know if I was an MS developer I sure would rather develop in .NET/CLR/C# than the crap that they currently have to deal with (VB/C++/MFC/ActiveX/COM+).
.NET is a good architecture for what it is designed for. That doesn't mean MS is not still going to try to do something evil with it, but it is plainly dishonest to spew FUD like that against it. Read the spec before bitching.
It's 10 PM. Do you know if you're un-American?
This makes sense - it is wasteful and time consuming for disparate teams to reinvent the VM.
Now before getting on your high horse about these unique VMs exposing some key element that the others omit - just remember, every language is ultimately a wrapper/macro/syntax rewrite of your CPUs intruction set. Raising the level of assumption to the VM level is realistic.
Now admittedly Parrot does not encapsulate a lot of the features in .Net (security, data abstraction, object pooling...etc etc), but its a step in the right direct.
Don't underestimate .Net - it makes sense.
There were a few stragglers still cranking around in SmallTalk a few years back, but at this point the prospects for this language having a real imapct is zilch. Throw it up on the scrap heap with Lisp and the other dead way-cool languages.
The languages that succeed are those that solve a particular problem well in a particular domain, with extra points for being easy to learn and extra extra points for being used by the most people (network effects).
Eiffel# is a chopped down version of Eiffel, though the only thing that I really know is missing is the multiple inheritance. Unfortunately, that is so central to the core of Eiffel that I don't see how it could be considered the same language. More like Java with pre- and post-conditions. (It *may* include the equivalent of Java interfaces. I wasn't interested enough to look.)
Other languages may be less severely chopped. E.g., C++ doesn't use multiple inheritance very much, and a version of interfaces would probably be a adequate substitute. And Ruby and Smalltalk don't use multiple inheritance at all. I'm not really sure where Common Lisp falls. The importation of modules isn't the same as multiple inheritance, but it does have similarities.
If you want to look at the possibilities, check out the page "Languages for the Java VM" (sorry, I don't have the URL right to hand).
A virtual machine is really just a high level assembler language. You can probably do anything with it, but some things will be more expensive than others. And these won't necessarily be the same things that are implied by the underlying hardware.
I think we've pushed this "anyone can grow up to be president" thing too far.
F#UCKING C#UNTS, I say.
doo bee doo bee doo bee doo bee doo bee doo bee doo bee doo bee
pr0n - keeping monitor glass spotless since 1981.
Is it legal to use .NET to write GPLed applicatons? I heard that the license restricts the right of the programmer to choose how they wish the license their code. If this is the case (let me know if it's not) then any benefits the .NET platform may offer are useless.
War is necrophilia.
Comparing ruby to common lisp doesn't make a whole lot of sense, they're substantially different beasts. Can you write GUI applications in common Lisp ? (and would you want to ?) Ruby has more of an OO bias, while Common Lisp has a functional bias (though both are multi-paradigm).
As for comparing it to smalltalk, IMO the main advantage Ruby has is that it's better at interoperating with the rest of the system. Smalltalk is great in a hypothetical universe where everyone programs in SmallTalk, but unfortunately, the real world doesn't work like that.
It's not a question of "what (x) can do that (y) can't". You can do everything in assembly language , however, you may find some tools more convenient.
So? Kaffe is not an implementation of the Java platform. It is a VM with a bunch of classes that conforms to nothing in particular. In fact, as far as VMs go, there are better open source VMs out there; Intel's ORP, for example, beats Sun's JVM on many benchmarks. But a VM is not an implementation of the Java platform, it is only a tiny component.
Sun's Community Source license [sun.com]. This explains the terms on which Sun's own code is shared. Note that this license has proven open enough for the Blackdown Linux [blackdown.org] port to be developed.
I suggest you actually read the SCL some time. You will see that Sun retains all the important rights. Of course, they let Blackdown do a port for now. If Java on Linux stops suiting Sun, they can shut down the effort easily.
Attempts by Mono developers and other interested parties to discredit Java-on-Linux should be treated with great caution. Not only do they try to represent Sun and IBM as imposing more restrictions on open developments than Microsoft
I made no such claims; you are arguing a straw man.
Any open app that uses a Dotnet GUI (Windows Forms or Web Forms) or database API (ADO.NET) is not using standard mechanisms
So? And your point is what? With ECMA C#, we at least get a set of standard libraries that is considerably more complete than what other language standards (e.g., C, C++, CommonLisp) offer. There is nothing comparable for Java. For Java, we only get Sun's proprietary documentation and a bunch of books.
these APIs, and in fact over 1000 of the 1200 classes in Dotnet today, are entirely proprietary and are protected by patents.
Can you back up those claims with some facts?
Anyone contemplating developing Java on Linux applications should read the following to set their mind at rest:
I think anybody following your advice is a fool. When choosing a language and environment for open source development, we need binding commitments that it remains open and a well-defined language and library standard. ECMA C# represents such a binding commitment and standard. There is nothing equivalent for even the smallest part of Java.
I used to think Java could fill the niche of a next generation application development language on Linux. But Sun has backed out of all commitments and is instead pushing "community" processes in which they retain the ultimate control over large parts of the Java platform.
Maybe the open source C#/CLR efforts won't work out. Maybe Microsoft has some devious master plan and a bunch of aces up their sleeve. But whatever the situation with C#/CLR, I'm convinced that Java is not the answer. If you don't trust the open source C#/CLR efforts, my recommendation would be to stick with C/C++ for the time being, or use one of the many other open source languages.
You know just when I think MS has hit the bottom of the slime bucket they do something to show me that there is no bottom of the MS slime pit. I can think of no other company who puts such restrictions on the usage of their IDEs of platforms.
War is necrophilia.
F# is not crippled. It's just missing the module constructs of O'Caml, which as far as I know should not cause any problem to be implemented -- they just aren't yet.
SML.NET, which I think works (though I haven't checked) apparently implements all of SML, including its module language. SML's module language is even cooler than O'caml's, too.
Well, this is not the sort of response I had expected. My post was quite honest in that I really thought the parent poster might actually like Ruby, given what they said, and I was suggesting it because odds are, they didn't know about it.
Perhaps, in the event that you read this response, you should read this article
and perhaps be enlightened (or not).
I use ruby because I like it, simple as that. I've used a bunch of other languages, not common lisp, but scheme, ML, and a little bit of smalltalk (among others). And it just happened that ruby has won out at this point, possibly to be replaced by liking some other language (though probably not common lisp or smalltalk) some day.
Anyone seriously thinking about the concept of reinventing the wheel should note the dramatic differences between the wheel that goes on the bottom of a 747, and the wheel used on a wagon 4000 years ago. Though it does seem like what you are asking is more like 'why doesn't everyone use common lisp, because it is the best language ever!' than actually 'why do people reinvent the wheel?'
And posting on slashdot is much more of a waste of time than writing a language.
I can't believe a language named "F#" got past Microsoft's marketing department. Or are they retarded enough to think it won't get expanded to "F#@%"?/i.
Eventually, Microsoft will release a simplified version of F#. They could call it BrainF#.
Remember "Bring 'em on"? *sigh
Do you have references for this? I'm sorry, I just can't believe this without corroborating material. There are too many GPL projects that compile under Visual Studio for this to have never been mentioned on /. before.
Bleh!
Available for the JVM: Scheme, Basic, Logo, Prolog, Smalltalk, COBOL, Ada 95, Python, Ruby, Forth, Pascal, Modula-2, Oberon-2. To mention a few. There are many, many more, but these are the more well-known ones I could find easily and quickly. Some of them may be brain damaged, but I suspect most of them aren't.
The # symbol, is the pound or number symbol. Notice how the vertical lines slant to the right. The Sharp symbol has true verticals, with slanted horizontals. Different symbol. Go check out a Unicode chart, there's a symbol for Sharp, and it's different than the symbol for Pound.
My God, it's Full of Source!
OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
When I first saw the name, I figured it was a new Fortran from Microsoft...
Please stop spreading this garbage around. I've seen this claim made several times in the past month, but it still doesn't seem to be true for any VS EULA I've ever read. What you can't do is incorporate the redistributables into anything free/open source/GPL/etc. IOWs, you can't write your open source rival to MS' products using MFC, and then distribute all the MFC DLLs with it, for example. Nor can you give away the source code to MS libraries for free, even if you have that source code because you bought VS.
They can hardly stop me using their editor to write source code as a plain text file, though. (Although they can stop me shipping the version compiled with VC++'s default start-up code, since that is going to link stuff that I'm not allowed to redistribute under the EULA, of course.)
If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.