What do Java programmers feel is missing from C#?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mc

    #16
    Re: What do Java programmers feel is missing from C#?


    "Harry Walters" <badabing@badab ang.comwrote in message
    news:t8eet3tjgc j9orm4p7fitrmtk 9kun55o3h@4ax.c om...
    On Tue, 11 Mar 2008 11:14:43 -0400, "mc"
    <look@www.ai.ug a.edu.for.addre sswrote:
    >
    ....
    >>I'm going to explore this and see what I can find out. A quick test
    >>shows
    >>that his C# program is indeed woefully slow.
    >>
    >>Quick preliminary answer: Both of the programs measure the time taken to
    >>*compile* a regex, not the time taken to run it. The two compilers are
    >>probably doing very different things.
    >
    It's like dude went very far out of the way to find some bizarre
    benchmark to suit his goal. Who uses compiled regexs in c#
    applications?
    I do, in a tokenizer -- I compile a handful of them and then use each of
    them thousands of times. Nobody compiles a million different regexes and
    uses each of them only once.


    Comment

    • Nobody

      #17
      Re: What do Java programmers feel is missing from C#?

      Give me IntelliJ or Eclipse any day.



      "mc" <look@www.ai.ug a.edu.for.addre sswrote in message
      news:s62Bj.1403 4$dT.9742@bigne ws1.bellsouth.n et...
      >
      "Nobody" <nobody@shaw.ca wrote in message
      news:lyYAj.6645 7$pM4.24579@pd7 urf1no...
      >Well now that just has to be the IDE... Visual Studio is just so 1990's
      >
      What kind of IDE do you prefer?
      >
      >
      >>
      >>
      >>
      >"mc" <look@www.ai.ug a.edu.for.addre sswrote in message
      >news:4fyAj.418 4$by3.1171@bign ews5.bellsouth. net...
      >>>I may be opening a can of worms and don't want to start a religious war,
      >>>but...
      >>>
      >>What features of Java do Java programmers miss when working in C#?
      >>>
      >>Other than, of course, great portability. C# has more limited
      >>cross-platform portability (Mono).
      >>>
      >>I'm thinking more about data structures and ways to express algorithms.
      >>>
      >>>
      >>
      >>
      >
      >

      Comment

      • mc

        #18
        Re: What do Java programmers feel is missing from C#?


        "Nobody" <nobody@shaw.ca wrote in message
        news:wGIBj.7311 5$w94.22154@pd7 urf2no...
        Give me IntelliJ or Eclipse any day.
        And what do you feel are their advantages over Visual Studio?

        >
        >
        >
        "mc" <look@www.ai.ug a.edu.for.addre sswrote in message
        news:s62Bj.1403 4$dT.9742@bigne ws1.bellsouth.n et...
        >>
        >"Nobody" <nobody@shaw.ca wrote in message
        >news:lyYAj.664 57$pM4.24579@pd 7urf1no...
        >>Well now that just has to be the IDE... Visual Studio is just so 1990's
        >>
        >What kind of IDE do you prefer?
        >>
        >>
        >>>
        >>>
        >>>
        >>"mc" <look@www.ai.ug a.edu.for.addre sswrote in message
        >>news:4fyAj.41 84$by3.1171@big news5.bellsouth .net...
        >>>>I may be opening a can of worms and don't want to start a religious war,
        >>>>but...
        >>>>
        >>>What features of Java do Java programmers miss when working in C#?
        >>>>
        >>>Other than, of course, great portability. C# has more limited
        >>>cross-platform portability (Mono).
        >>>>
        >>>I'm thinking more about data structures and ways to express algorithms.
        >>>>
        >>>>
        >>>
        >>>
        >>
        >>
        >
        >

        Comment

        • Maarten Bodewes

          #19
          Re: What do Java programmers feel is missing from C#?

          mc wrote:
          I may be opening a can of worms and don't want to start a religious war,
          but...
          >
          What features of Java do Java programmers miss when working in C#?
          >
          Other than, of course, great portability. C# has more limited
          cross-platform portability (Mono).
          >
          I'm thinking more about data structures and ways to express algorithms.
          >

          Ehm, the main thing about Java is that it tries to keep out feature
          creep. So what I'm missing in C# is any constraint to keep features out.

          It's starting to look as another D language, in which you can do
          anything. That's fine if you are a single programmer that does not care
          about reuse or refactoring, but it's madness for enterprise code.

          That you still have to take care to make things "virtual" is another
          thing I'm really missing.

          In other words: KISS (keep it Simple, stupid) is missing.

          That's not to say that C# does not have a lot of things going for it,
          some features are very useful, like checked code fragments (which, of
          course, should have been the default, just like the virtual keyword).

          Maarten


          Comment

          • BobJ

            #20
            Re: What do Java programmers feel is missing from C#?

            I never met a benchmark I didn't like.
            BobJ
            "Harry Walters" <badabing@badab ang.comwrote in message
            news:t8eet3tjgc j9orm4p7fitrmtk 9kun55o3h@4ax.c om...
            On Tue, 11 Mar 2008 11:14:43 -0400, "mc"
            <look@www.ai.ug a.edu.for.addre sswrote:
            >
            >>
            >>"mc" <look@www.ai.ug a.edu.for.addre sswrote in message
            >>news:vxwBj.14 846$dT.4812@big news1.bellsouth .net...
            >>>I did a quick Google search for "java c# benchmark" (try it yourself)
            >>>and it seems that it's only that offshored code that is slow and crappy
            >>>and not Java itself, because all benchmarks I could find concludes that
            >>>Java is way faster than C#.
            >>>
            >>Well, this one:
            >>>
            >>http://www.manageability.org/blog/ar...m_with_cameron
            >>>
            >>is the first one that comes up, but obviously something has gone wrong.
            >>A
            >>factor of 7700 speed difference? They're just not measuring the same
            >>thing. If C# were 7700 times slower than Java, it would be unusable.
            >>>
            >>I'm going to explore this and see what I can find out. A quick test
            >>shows
            >>that his C# program is indeed woefully slow.
            >>
            >>Quick preliminary answer: Both of the programs measure the time taken to
            >>*compile* a regex, not the time taken to run it. The two compilers are
            >>probably doing very different things.
            >>
            >
            It's like dude went very far out of the way to find some bizarre
            benchmark to suit his goal. Who uses compiled regexs in c#
            applications?

            Comment

            • Jeremy

              #21
              Re: What do Java programmers feel is missing from C#?

              I don't think this guy knows what he's doing. There's no possible way "c#"
              is that much slower. I doubt it's even slower at all. And besides, c#
              doesn't have a speed. it's only language. It gets compiled to msil. you
              could time the execution of msil, but not c#. If he was really interested
              in doing a proper test, he would have at least run a profiler on each peice
              of code to figure out where the time was spent.

              Additionally, this nitwit makes the comment that the c# took more lines of
              code than the java. Not that it really matters, but if it did, it's
              probably because in the java version he combined several statements on to
              single lines, where he didn't in c#.




              "BobJ" <rjoslyn@earthl ink.netwrote in message
              news:OJidncGFia modaPVnZ2dnUVZ_ qbinZ2d@earthli nk.com...
              >I never met a benchmark I didn't like.
              BobJ
              "Harry Walters" <badabing@badab ang.comwrote in message
              news:t8eet3tjgc j9orm4p7fitrmtk 9kun55o3h@4ax.c om...
              >On Tue, 11 Mar 2008 11:14:43 -0400, "mc"
              ><look@www.ai.u ga.edu.for.addr esswrote:
              >>
              >>>
              >>>"mc" <look@www.ai.ug a.edu.for.addre sswrote in message
              >>>news:vxwBj.1 4846$dT.4812@bi gnews1.bellsout h.net...
              >>>>I did a quick Google search for "java c# benchmark" (try it yourself)
              >>>>and it seems that it's only that offshored code that is slow and
              >>>>crappy
              >>>>and not Java itself, because all benchmarks I could find concludes
              >>>>that
              >>>>Java is way faster than C#.
              >>>>
              >>>Well, this one:
              >>>>
              >>>http://www.manageability.org/blog/ar...m_with_cameron
              >>>>
              >>>is the first one that comes up, but obviously something has gone wrong.
              >>>A
              >>>factor of 7700 speed difference? They're just not measuring the same
              >>>thing. If C# were 7700 times slower than Java, it would be unusable.
              >>>>
              >>>I'm going to explore this and see what I can find out. A quick test
              >>>shows
              >>>that his C# program is indeed woefully slow.
              >>>
              >>>Quick preliminary answer: Both of the programs measure the time taken to
              >>>*compile* a regex, not the time taken to run it. The two compilers are
              >>>probably doing very different things.
              >>>
              >>
              >It's like dude went very far out of the way to find some bizarre
              >benchmark to suit his goal. Who uses compiled regexs in c#
              >applications ?
              >
              >

              Comment

              Working...