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.
Mar 8 '08
20 2799
"Harry Walters" <no****@notmail .comwrote in message
news:mk******** *************** *********@4ax.c om...
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 :)
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.
"mc" <lo**@www.ai.ug a.edu.for.addre sswrote in message
news:vx******** *********@bigne ws1.bellsouth.n et...
>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.
On Tue, 11 Mar 2008 11:14:43 -0400, "mc"
<lo**@www.ai.ug a.edu.for.addre sswrote:
> "mc" <lo**@www.ai.ug a.edu.for.addre sswrote in message news:vx******* **********@bign ews1.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?
On Tue, 11 Mar 2008 10:08:13 -0400, "mc"
<lo**@www.ai.ug a.edu.for.addre sswrote:
>"Harry Walters" <no****@notmail .comwrote in message news:mk******* *************** **********@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 :)
Those guys are called COBOL programmers, and they make the big bucks
:)
"Harry Walters" <ba******@badab ang.comwrote in message
news:t8******** *************** *********@4ax.c om...
On Tue, 11 Mar 2008 11:14:43 -0400, "mc"
<lo**@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.
Give me IntelliJ or Eclipse any day.
"mc" <lo**@www.ai.ug a.edu.for.addre sswrote in message
news:s6******** *********@bigne ws1.bellsouth.n et...
>
"Nobody" <no****@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" <lo**@www.ai.ug a.edu.for.addre sswrote in message news:4f******* **********@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.
"Nobody" <no****@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" <lo**@www.ai.ug a.edu.for.addre sswrote in message
news:s6******** *********@bigne ws1.bellsouth.n et...
>> "Nobody" <no****@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" <lo**@www.ai.ug a.edu.for.addre sswrote in message news:4f****** ***********@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.
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
I never met a benchmark I didn't like.
BobJ
"Harry Walters" <ba******@badab ang.comwrote in message
news:t8******** *************** *********@4ax.c om...
On Tue, 11 Mar 2008 11:14:43 -0400, "mc"
<lo**@www.ai.ug a.edu.for.addre sswrote:
>> "mc" <lo**@www.ai.ug a.edu.for.addre sswrote in message news:vx****** ***********@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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: darwinist |
last post by:
What PHP Represents
There is no shortage of complaints one could make about php as a
language, and although the list does shrink with each release, some of
them are inherent to the origins and development process of this, the
most popular of the web-based, server-side, glue-languages.
That said, most descriptions of what is good about php, fail to do it
justice. Although they are generally enthusiastic and sometimes
fanatical, no...
|
by: David MacQuigg |
last post by:
I'm concerned that with all the focus on obj$func binding, &closures,
and other not-so-pretty details of Prothon, that we are missing what
is really good - the simplification of classes. There are a number of
aspects to this simplification, but for me the unification of methods
and functions is the biggest benefit.
All methods look like functions (which students already understand).
Prototypes (classes) look like modules. This will...
|
by: Maurice LING |
last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic
typing, is there any other real reasons that Python is slower than Java?
maurice
|
by: Ray |
last post by:
Hello there,
I've been programming in Java for about 8 years now, but lately I've
been hearing a lot about Python and I'm really interested in learning
more about it. I've read the tutorial, and some books (core python
programming is one), but there's one thing that's still missing: how to
use Python the "Python" way.
I found learning C# was a breeze for me because the language shares a
lot of concepts and notions with Java--I can...
|
by: N.Davis |
last post by:
I am very new to Python, but have done plenty of development in C++ and
Java.
One thing I find weird about python is the idea of a module. Why is this
needed when there are already the ideas of class, file, and package?
To my mind, although one CAN put many classes in a file, it is better to
put one class per file, for readability and maintainability.
One can then create packages and libraries, using groups of files, one
| |
by: redefined.horizons |
last post by:
I've traditionally been a Java developer, although I play around with
LISP. I recently migrated to Linux and I was exploring Mono as an
option for development on Linux. However, I've had some problems with
the maturity and support when working with Mono. So I was considering
Python as an alternative development language.
Is Python actively developed and supported on Linux? Would it be a
viable option for cross-platform application...
|
by: wellstone9912 |
last post by:
Java programmers seem to always be whining about how confusing and
overly complex C++ appears to them. I would like to introduce an
explanation for this. Is it possible that Java programmers simply
aren't smart enough to understand C++?
This is not merely a whimsical hypothesis. Given my experience with
Java programmers --- the code they write and the conversations they
have --- Occam's Razor points to this explanation. For example,...
|
by: Xah Lee |
last post by:
in March, i posted a essay “What is Expressiveness in a Computer
Language”, archived at:
http://xahlee.org/perl-python/what_is_expresiveness.html
I was informed then that there is a academic paper written on this
subject.
On the Expressive Power of Programming Languages, by Matthias
Felleisen, 1990.
http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
|
by: himilecyclist |
last post by:
My State government organization has written a PHP/MySQL application
which has been in production for about 6 months and has been highly
successful.
We are now embarking on a similar database application, but one with
much higher security concerns (birth data). Prior to beginning the
project, we met with an oversight committee who strongly advised
against PHP and suggested Java. Their concern was that PHP could not
be trusted to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |