Code Comments
Programming Forum and web based access to our favorite programming groups."Harry Walters" <nomail@notmail.com> wrote in message news:mkmbt3d2om5ojhptf0sfarfmafbkbh948t@ 4ax.com... > I get so much more done in C# it leaves me longing for that crappy > Java environment I left behind. Ah, the fast pace of modern life :) Likewise, a whole generation of office workers longs for the days of snail mail instead of e-mail, so that we would actually be allowed some *time* to do our work :)
Post Follow-up to this message> 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: [url]http://www.manageability.org/blog/archive/20030520%23p_the_problem_with_cameron[/u rl] 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.
Post Follow-up to this message"mc" <look@www.ai.uga.edu.for.address> wrote in message news:vxwBj.14846$dT.4812@bignews1.bellsouth.net... > > Well, this one: > > [url]http://www.manageability.org/blog/archive/20030520%23p_the_problem_with_cameron[ /url] > > 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.
Post Follow-up to this messageOn Tue, 11 Mar 2008 11:14:43 -0400, "mc" <look@www.ai.uga.edu.for.address> wrote: > >"mc" <look@www.ai.uga.edu.for.address> wrote in message >news:vxwBj.14846$dT.4812@bignews1.bellsouth.net... > >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?
Post Follow-up to this messageOn Tue, 11 Mar 2008 10:08:13 -0400, "mc" <look@www.ai.uga.edu.for.address> wrote: >"Harry Walters" <nomail@notmail.com> wrote in message > news:mkmbt3d2om5ojhptf0sfarfmafbkbh948t@ 4ax.com... > > >Ah, the fast pace of modern life :) > >Likewise, a whole generation of office workers longs for the days of snail >mail instead of e-mail, so that we would actually be allowed some *time* to >do our work :) Those guys are called COBOL programmers, and they make the big bucks :)
Post Follow-up to this message"Harry Walters" <badabing@badabang.com> wrote in message news:t8eet3tjgcj9orm4p7fitrmtk9kun55o3h@ 4ax.com... > On Tue, 11 Mar 2008 11:14:43 -0400, "mc" > <look@www.ai.uga.edu.for.address> wrote: > ... > > 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.
Post Follow-up to this messageGive me IntelliJ or Eclipse any day. "mc" <look@www.ai.uga.edu.for.address> wrote in message news:s62Bj.14034$dT.9742@bignews1.bellsouth.net... > > "Nobody" <nobody@shaw.ca> wrote in message > news:lyYAj.66457$pM4.24579@pd7urf1no... > > What kind of IDE do you prefer? > > > >
Post Follow-up to this message"Nobody" <nobody@shaw.ca> wrote in message news:wGIBj.73115$w94.22154@pd7urf2no... > Give me IntelliJ or Eclipse any day. And what do you feel are their advantages over Visual Studio? > > > > "mc" <look@www.ai.uga.edu.for.address> wrote in message > news:s62Bj.14034$dT.9742@bignews1.bellsouth.net... > >
Post Follow-up to this messagemc 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
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.