Slashdot Mirror


Running .NET on FreeBSD?

Dan writes "Interesting read on running .NET on FreeBSD. Chip Morton thinks this could be very beneficial to FreeBSD or any OS to have a fully functional .NET CLR (Common Language Runtime) environment. With over 9,000 files, and including some 1300 public classes to pore through, the Shared Source CLI (Common Language Infrastructure) can teach you quite a bit about the internal workings of the CLR. This relevant MSDN article discusses some of the things you can learn from the source code facsimile of the CLR, like how JIT compilation works. One thing that the CLI specification does not mandate is that managed code has to run on Windows. To prove this point, Microsoft built the Shared Source CLI to compile and run on FreeBSD Unix as well as Windows XP."

36 comments

  1. Old News by Mark+Pitman · · Score: 4, Insightful

    And this is news because???? The article on MSDN was posted in July of 2002! Is there something new about Rotor on BSD that I am missing?

    1. Re:Old News by glenstar · · Score: 2, Informative

      Unfortunately...no. And to add insult to injury, I found it impossible to actually build Rotor on FreeBSD (most likely something with my system configuration). However, Mono compiles flawlessly, so if you want to go that route it works very well.

  2. There has got to be a catch.. by override11 · · Score: 1, Interesting

    You can only run .net on BSD if you are emulating it under a licensed Windows .Net Server

    Anyone else this there is going to be some kind of gotcha??

    --
    No I didnt spell check this post...
    1. Re:There has got to be a catch.. by REBloomfield · · Score: 2, Interesting
      no catch! this is actually the point of the .NET framework, right once, run anywhere, what Java tried, and never quite achieved :(

      The only 'catch' is that there needs to be a native virtual machine, which most platforms (apart from MS) don't have yet, but check out the Mono project for a Linux implementation.

    2. Re:There has got to be a catch.. by rplacd · · Score: 2, Informative

      Mono works on FreeBSD-i386. I've been using it off and on for several months.

      The only real "catch" is the Windows.Forms libraries (this affects mono on Linux as well). You basically need Wine or something for them. Otherwise, for GUI stuff, you can use gtk#.

    3. Re:There has got to be a catch.. by Arandir · · Score: 2, Informative

      what Java tried, and never quite achieved

      And of course, .NET hasn't achieved it either. Same overblown hype different framework.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    4. Re:There has got to be a catch.. by evronm · · Score: 1
      Otherwise, for GUI stuff, you can use gtk#
      Any experience with this? Is it anywhere near ready for prime time?
    5. Re:There has got to be a catch.. by f00zbll · · Score: 1
      I hope you don't really think there's no catch. It doesn't matter what language or platform you choose, there's always a catch. The catch may not be relevant to your project, but there's always a catch.

      There's still alot of catches in there, like how would ADO.NET work? Yes, I know ADO.NET isn't part of CL and is a library build on .NET. You have to ask yourself, "How am I going to connect to a database? What kind of databases have ADO.NET support? How can I leverage existing libraries written in other languages? Does it provide robust server threading model? Are there starndard API's for server management? Are there webservers written to take advantage of .NET on non-windows OS?"

      There's a catch alright. About several hundred catches.

    6. Re:There has got to be a catch.. by slick_rick · · Score: 1
      right once, run anywhere, what Java tried, and never quite achieved :(
      Stop modding the FUD up. The last time I checked Java ran on everything from stamp to Windows, Linux, Solaris, Macintosh, Palm, even OS/2.

      So what does .NET run on? Windows, Linux, maybe BSD. And even then the GUI stuff isn't portable (by design BTW).

      DONT SPREAD THE FUD. Java is far more portable then .NET ever will be.
      --
      apt-get install redhat please god - Me (take it easy, I love Debian)
  3. A good community member! by jsse · · Score: 0, Flamebait

    MS has finally decide to give back to the community after all these years of plunder, loot and pilllage out of *BSD. Good work!

  4. There's already a Unix like JVM out there by DrSkwid · · Score: 2, Informative

    Lucent made a product called Inferno

    http://www.vitanuova.com/inferno

    it virtualizes the whole of the OS, not just a few APIs

    it had a graphics context as well

    it hijacks the hosted environment, running in a window or runs natively on hardware either way they are the same.

    Socket programming, pah who needs it, all we need are file descriptors and auto-selecting files

    it's all there

    the source code is only available for a fee

    it's really what Java & .NET should be but they aren't and it is

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  5. The real reason for this, of course... by Anonymous Coward · · Score: 4, Funny

    Is because Microsoft needs FreeBSD to run Hotmail's backend.

  6. get yer hands out of my server closet by ubiquitin · · Score: 2, Interesting

    Call me skeptical, but did occur to anyone else that Microsoft picked FreeBSD because
    1) they despise the GPL for what it represents and
    2) Mono is being developed on Linux?

    Don't get me wrong, I run several FreeBSD servers and prefer the ports system over RPM. It just unnerves me when the Microsoft marketing machine starts mucking around on my chosen platform.

    As a postscript, you all should be aware that PHP may well become the best platform for deploying .NET. Here's why and here's why this is irrelevant.

    --
    http://tinyurl.com/4ny52
    1. Re:get yer hands out of my server closet by Realistic_Dragon · · Score: 1

      "Don't get me wrong, I run several FreeBSD servers and prefer the ports system over RPM."

      Linux has now stolen the ports system and done a pretty good job of it becuase RPM does indeed fellate not only donkeys, but dead donkeys.

      I will not be kicking BSD off my server any time soon, but for a desktop Gentoo (and indeed Source Mage, Lunar Linux, the no-longer-GPL Sourcery, and to a lesser extent Debian) is pretty polished.

      --
      Beep beep.
  7. And why are we dignifying .NET ?? by mnmn · · Score: 0, Flamebait

    .NET is dying. Its OS has been renamed Windows 2003 for a reason. Everyones building Javabeans for J2EE, backed by heavyweights like IBM and Oracle and Sun. Why is the most distant-from-Microsoft OS dignifying .NET now?

    Next they will release the gcsp compiler.. for C#. sourceforge.NET will have a new meaning. Heck I even keep away from C++, building even GUIs with ANSI C 99 with function pointer arrays. Stick to traditions!

    --
    "Give orange me give eat orange me eat orange give me eat orange give me you." -Nim Chimpsky
    1. Re:And why are we dignifying .NET ?? by Anonymous Coward · · Score: 0

      Who says it is dying? Just because you have been too lazy to get off your butt and look into it, it doesn't mean that your hopes of .NET just going away are coming true.

      I know you *WISH* it was dying, but all evidence is that it is gaining ground. And one day, it will come bite you in the butt because of your arrogance. That day will probably be when you are out there looking for a job.

      That is, if you are even a programmer, or just a troll sysadmin.

    2. Re:And why are we dignifying .NET ?? by mnmn · · Score: 1

      OK, even if it IS gaining ground,(which is not my belief), why should we still dignify a proprietary protocol there? If what you say is true (doubt it), .NET might be gaining ground through the help of unsure programmers looking around for APIs of the richest corporations that wont disappear in the next 5 years. Youre contributing to the viscious cycle, in favor of a monopolizing power, using one of the freeest operating systems.

      --
      "Give orange me give eat orange me eat orange give me eat orange give me you." -Nim Chimpsky
    3. Re:And why are we dignifying .NET ?? by magadass · · Score: 1

      Your a fucken idiot... I can tell you one thing for sure .NET will overtake Sun's bullshit excuse for a language (Java) and incorporate it into many other operating systems in the such. Stuck in proprietary? Dude WTF do you think Java is? SUN is proprietary just as Microsoft, hell Sun even takes people to court left and right to protect their precious Java. Ok back to what I was talking about. .Net is gaining superior ground, most government agency's are switching over to .Net and dropping Java and I know this for a fact. Also Huge corporations like mine (HP) for instance are asking the majority of their employees to get .Net certified. Java is loosing its foothold! Why? #1: Backwards compatability between Runtime versions is Horrible!! a program will work in version 1.3.1 but wont work in 1.3.5 or any versions there after!
      #2: It is slower than hell!!
      #3: SUN itself is losing its foot in the market. Only holding about 3% of the market share now for server related products!

      My key points and you can fight them all you want.. But one thing stand clear is that you have a clounded view on things and are refusing to take yur head outta yur ass to take a look at the big picture and with yur racist outlook towards Microsoft it seems you will not likely have much of a career left if you have one at all...

      --
      "If I was smarter I could rule the world!"
    4. Re:And why are we dignifying .NET ?? by sdkone · · Score: 1

      Proprietary? When did we start talking about the JVM?

      ISO/IEC CLI standard

      But then you did call the CLI/.NET a "protocol" so I'm guessing you're not too overstocked in the clue department anyways...

    5. Re:And why are we dignifying .NET ?? by Anonymous Coward · · Score: 0

      1. It is spelled "fucking" not "fucken".
      2. ".Net is gaining superior ground" I think this should be "gaining ground" with superior elsewhere in the sentence. I won't explain why, that is left as an exercise for you to figure out.
      3. It is not "agency's": it is not possessive, it is plural. And no, most aren't dropping Java in favor of .NET.
      4. It is spelled "losing" not "loosing".
      5. It should be "won't".
      6. What exactly is the speed of hell? This is incoherent as well as unscientific. Please use a metric that all the readers can relate to, not just the Satan worshippers and Satan haters.
      7. Microsoft has a 97% share of server related products? They don't even have 50% of the servers out there. Back this up with some real research and hard data, please.
      8. It should be "stands clear" not "stand clear".
      9. It is spelled "clouded" not "clounded".
      10. It is "your" not "yur", and I don't care if that is what you intended to type.
      11. Microsoft isn't a member of any specific race, so one can't be "racist" towards Microsoft. One can react with prejudice towards them, but one cannot commit an act of "racism" against them.

      As for your "points" as you call them:
      1. This is somewhat true, but I have worked on so much Visual C++ code that wouldn't work from VC4 to VC5 that your argument falls flat. I do not believe that .NET won't go through modifications, and if you do, you are way too trusting, and more than a bit naive.
      2. The speed of Java has been improved, and for most applications, especially those that make use of Beans or EJBs, this is not an issue. The speed of most apps I have written using EJBs is either as good as or better than any client-server software I have seen written in VB.
      3. See #7 above. This is purely a "Microsoft rules but I don't know why" type of claim. Put up some data (that means a link or two), and make sure it isn't a "study" that was sponsored by Microsoft.

      You need to control the "knee-jerk" reactions, and think more before you type.

    6. Re:And why are we dignifying .NET ?? by Anonymous Coward · · Score: 0

      1. It is spelled "fucking" not "fucken".
      2. ".Net is gaining superior ground" I think this should be "gaining ground" with superior elsewhere in the sentence. I won't explain why, that is left as an exercise for you to figure out.
      3. It is not "agency's": it is not possessive, it is plural. And no, most aren't dropping Java in favor of .NET.
      4. It is spelled "losing" not "loosing".
      5. It should be "won't".
      6. What exactly is the speed of hell? This is incoherent as well as unscientific. Please use a metric that all the readers can relate to, not just the Satan worshippers and Satan haters.


      After reading this insightful analysis of whether or not .NET is dying, how could I possibly disagree with you?

    7. Re:And why are we dignifying .NET ?? by Anonymous Coward · · Score: 0

      I didn't say it was dying.
      As for listening, you should learn to listen. It would only help someone like you ("you people").
      In the future, quote the entire article, not just the part you don't like. You left off the part where I made counterpoints to your points, and you offered no alternative answers, no rebuttals, and, most distressing, no resistance. Sarcasm does not count.
      And to answer your question, you can't possibly disagree with me! :D

    8. Re:And why are we dignifying .NET ?? by Anonymous Coward · · Score: 0

      That seems like a good rebuttal of the previous, and rather brainless, post, IMHO. Plus that dude is right, he never said .NET was dying.

  8. Hotmail doesnt run on FreeBSD by Anonymous Coward · · Score: 1, Funny
    1. Re:Hotmail doesnt run on FreeBSD by Anonymous Coward · · Score: 1

      That is all nice and well, but Microsoft still uses and runs FreeBSD internally.
      All you have to do is visit Netcraft to find proof for my claim.
      It is very easy to confirm.

  9. Easy de-compilation? by Futurepower(R) · · Score: -1, Flamebait


    Could someone help me with this?

    Isn't the reason Microsoft wants a common language runtime because it makes it easy to de-compile the programs from other companies, and therefore to compete without paying those companies anything?

    1. Re:Easy de-compilation? by Casca1 · · Score: 1

      All so Bill can say "MS Owns your *BSD"

    2. Re:Easy de-compilation? by Beetjebrak · · Score: 1

      The BSD license permits him to do this already.

      1. Download freebsd ISO-file
      2. rename to MS_BSD.ISO
      3. Profit?

      --
      Learn from the mistakes of others. There isn't enough time to make them all yourself.
  10. Insider's scoop: What Killed FreeBSD by Anonymous Coward · · Score: -1, Troll
    The End of FreeBSD

    [ed. note: in the following text, former FreeBSD developer Mike Smith gives his reasons for abandoning FreeBSD]

    When I stood for election to the FreeBSD core team nearly two years ago, many of you will recall that it was after a long series of debates during which I maintained that too much organisation, too many rules and too much formality would be a bad thing for the project.

    Today, as I read the latest discussions on the future of the FreeBSD project, I see the same problem; a few new faces and many of the old going over the same tired arguments and suggesting variations on the same worthless schemes. Frankly I'm sick of it.

    FreeBSD used to be fun. It used to be about doing things the right way. It used to be something that you could sink your teeth into when the mundane chores of programming for a living got you down. It was something cool and exciting; a way to spend your spare time on an endeavour you loved that was at the same time wholesome and worthwhile.

    It's not anymore. It's about bylaws and committees and reports and milestones, telling others what to do and doing what you're told. It's about who can rant the longest or shout the loudest or mislead the most people into a bloc in order to legitimise doing what they think is best. Individuals notwithstanding, the project as a whole has lost track of where it's going, and has instead become obsessed with process and mechanics.

    So I'm leaving core. I don't want to feel like I should be "doing something" about a project that has lost interest in having something done for it. I don't have the energy to fight what has clearly become a losing battle; I have a life to live and a job to keep, and I won't achieve any of the goals I personally consider worthwhile if I remain obligated to care for the project.

    Discussion

    I'm sure that I've offended some people already; I'm sure that by the time I'm done here, I'll have offended more. If you feel a need to play to the crowd in your replies rather than make a sincere effort to address the problems I'm discussing here, please do us the courtesy of playing your politics openly.

    From a technical perspective, the project faces a set of challenges that significantly outstrips our ability to deliver. Some of the resources that we need to address these challenges are tied up in the fruitless metadiscussions that have raged since we made the mistake of electing officers. Others have left in disgust, or been driven out by the culture of abuse and distraction that has grown up since then. More may well remain available to recruitment, but while the project is busy infighting our chances for successful outreach are sorely diminished.

    There's no simple solution to this. For the project to move forward, one or the other of the warring philosophies must win out; either the project returns to its laid-back roots and gets on with the work, or it transforms into a super-organised engineering project and executes a brilliant plan to deliver what, ultimately, we all know we want.

    Whatever path is chosen, whatever balance is struck, the choosing and the striking are the important parts. The current indecision and endless conflict are incompatible with any sort of progress.

    Trying to dissect the above is far beyond the scope of any parting shot, no matter how distended. All I can really ask of you all is to let go of the minutiae for a moment and take a look at the big picture. What is the ultimate goal here? How can we get there with as little overhead as possible? How would you like to be treated by your fellow travellers?

    Shouts

    To the Slashdot "BSD is dying" crowd - big deal. Death is part of the cycle; take a look at your soft, pallid bodies and consider that right this very moment, parts of you are dying. See? It's not so bad.

    To the bulk of the FreeBSD committerbase and the developer community at large - keep your eyes on the real goals. It'

  11. *BSD is dying by Anonymous Coward · · Score: -1, Troll
    It is official; Netcraft now confirms: *BSD is dying

    One more crippling bombshell hit the already beleaguered *BSD community when IDC confirmed that *BSD market share has dropped yet again, now down to less than a fraction of 1 percent of all servers. Coming on the heels of a recent Netcraft survey which plainly states that *BSD has lost more market share, this news serves to reinforce what we've known all along. *BSD is collapsing in complete disarray, as fittingly exemplified by failing dead last in the recent Sys Admin comprehensive networking test.

    You don't need to be a Kreskin to predict *BSD's future. The hand writing is on the wall: *BSD faces a bleak future. In fact there won't be any future at all for *BSD because *BSD is dying. Things are looking very bad for *BSD. As many of us are already aware, *BSD continues to lose market share. Red ink flows like a river of blood.

    FreeBSD is the most endangered of them all, having lost 93% of its core developers. The sudden and unpleasant departures of long time FreeBSD developers Jordan Hubbard and Mike Smith only serve to underscore the point more clearly. There can no longer be any doubt: FreeBSD is dying.

    Let's keep to the facts and look at the numbers.

    OpenBSD leader Theo states that there are 7000 users of OpenBSD. How many users of NetBSD are there? Let's see. The number of OpenBSD versus NetBSD posts on Usenet is roughly in ratio of 5 to 1. Therefore there are about 7000/5 = 1400 NetBSD users. BSD/OS posts on Usenet are about half of the volume of NetBSD posts. Therefore there are about 700 users of BSD/OS. A recent article put FreeBSD at about 80 percent of the *BSD market. Therefore there are (7000+1400+700)*4 = 36400 FreeBSD users. This is consistent with the number of FreeBSD Usenet posts.

    Due to the troubles of Walnut Creek, abysmal sales and so on, FreeBSD went out of business and was taken over by BSDI who sell another troubled OS. Now BSDI is also dead, its corpse turned over to yet another charnel house.

    All major surveys show that *BSD has steadily declined in market share. *BSD is very sick and its long term survival prospects are very dim. If *BSD is to survive at all it will be among OS dilettante dabblers. *BSD continues to decay. Nothing short of a miracle could save it at this point in time. For all practical purposes, *BSD is dead.

    Fact: *BSD is dying

  12. News Flash-- BSD is Dead by Anonymous Coward · · Score: -1, Troll

    Nobody uses BSD and why are we hearing about it? Start reporting about how .NET runs on VMS or Tru64, about the same level of relevance.

  13. how do you explain this by Anonymous Coward · · Score: 0

    it was a joke. sometimes people don't get these things. sorry about that.

  14. .NetBSD? by Anonymous Coward · · Score: 0

    Does that make this .NetBSD?

  15. Rotor is nice, but Mono is much nicer by Anonymous Coward · · Score: 0

    Don't have any benchmarks for you, but I've run both Rotor and Mono on FreeBSD and found the latter much faster and much less buggy. It's nice that MS is making the effort to experiment on alternative platforms (particularly one that still forms a piece of the Hotmail infrastructure -- though I think the whole Rotor thing is borne more out of the researcher's intellectual curiosity). One interesting point though, even though Mono is still a long way from complete installing and using it was a breath of fresh air after struggling with Java on FreeBSD (among other platforms). Sun and the Java community still have alot of work to do in the areas of version control, performance and "packaging". No one should get too confident in Java's future.

  16. This is a lie. by Mohamm3d+Al-Sahaf · · Score: -1, Troll

    .NET will not run on your computer.

    --
    -yours truely Mohamm3d Al-Sahaf
  17. Wouldn't it be...? by jo_ham · · Score: 1

    "All your *BSD are belong to us" ?

    never mind..