The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
Where performance really counts, it's the architecture that counts, not the language.
Think about how Google makes it happen that no search takes longer than 0.2s. The point is not in using a fast language, but in using a scalable architecture.
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Ilja: Where performance really counts, it's the architecture that counts, not the language.
Nick: If one's skill is anywhere near what Doug's sounds like, Doug could write libs in Java using attained skills, then employ powerful code-signing techniques using widely-tested code.
Originally posted by Doug Slattery:
I disagree that the language is not a factor. Example: How many operating systems support VB or RPG? In my world multiplatform is the norm.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
How is that a *performance* consideration???![]()
http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
Originally posted by steve souza:
I haven't looked at the java switch statement, in a while, but after briefly looking at your example I don't see how it is different from javas implementation. Here is an example from wikipedia.
The standard Java api is way more vast than C. However, there are C libs that do the same thing as the Java language and core api's. I've adopted Java as a relevant language to put effort into learning, but there's still some things that don't sit right with me. Take threads for instance. Actually, threads in a general sense and not how they're implemented in Java. In the good old days before Microsoft(?) coined the term multithreaded (and thread safe), we used to be able to (and still can) get by with a combination of fork(), exec(), select() and shared memory/semaphores. It bugs me in a sense that a programmer has to be thread aware of something the os should handle.
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
By failing, it undermines the switch statement of being a glorified goto .
http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
Nick: your comment about threads is not scalable to larger processor hardware.
Nick: can you read this book before making further judgments about threading
Steve: Kudo's to java for failing to compile such code.
[Doug:]Sure it is. Fork() and exec() spawn a new process (technically not really a thread) and you can observe the resource usage using the Linux top utility. Back when SCO Unix was in its heyday, they had multiprocessor support while Windows was fighting tooth and nail to avoid implementing networking. All a developer needed to do was turn on a compile switch and voila, the multiprocessor library was linked in to the executable.
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
I made a fool of myself over {System.in.[somefunc() that reads std in ] blocking in Java.
What is atm on law ?
Originally posted by Doug Slattery:
[QB]
I've never had a use for the switch example, but it is fun to show to the know-it alls.
Aloha,
Doug
[QB]
I'm curious about your view on whether or not any language should compile code such as that. I've used "languages" ranging from ARM9 and x86 assembly to Java and I'm finding the latter a breath of fresh air when it comes to not allowing questionable constructs such as the one you illustrated.
Dont get me wrong, I'll be the first to appreciate original and fun solutions. I once got myself involved with creating a graphical demo application of 4096 bytes (x86) and it used things such as self modifying code and other things that sane people (and I reluctantly consider myself part of that group) would now consider out of the question, but thinking about it still makes me all warm and fuzzy inside.
Anyway, just curious about your view on that specific matter. By the way I'm aware this post is well off-topic, but that ship has sailed since post 8 or 9 anyway so indulge me![]()
Oh and to get an on topic comment in here. A while ago I ported some code from a real-time raytracing application i made from C to Java and with the -server JVM flag the performance was comparable. I also think performance comparisons of languages (or perhaps, their VMs and compilers) are utterly useless. Not because performance itself is not an important issue, but because comparing them on performance alone is almost always a matter of apples and pears.
Originally posted by Doug Slattery:
I did something similar to that in a game program I wrote back in the early 80's. I was in high school at the time. Back then, I also developed a recursive routine in assembly before I knew what recursion was. Recently, I wrote an XHTML generator with strict compliance in C using only #define's. I had to do it that way because the function couldn't be prototyped. So yeah, pretty cool stuff.
Originally posted by Doug Slattery:
No problem chiming in this late in the game, I notice you recently joined the ranch, so it's in bounds, and welcome to the group too .
Originally posted by Doug Slattery:
Hi R van Vliet,
Are you doing some game development? Dr. Dobbs had an interesting article back in the early 90's on game engines using ray casting.
I originally started the thread because I was trying to justify why my former employer was switching from C to Java for CGI development. My opinion at that time was that Java was slow. From the replies, I can see that it is now a manini (pronounced Mah-Nee-Nee, Hawaiian for very minor) topic.
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Originally posted by Doug Slattery:
The main contenders are C/C++ and Java. Until I get more experienced with Java or am thrown to the lions to learn and use it, I'll stick with C.
Originally posted by S.C Sekar:
Comparing Table Saw and Hand Saw is very different from comparing JEdit and Kate.
Originally posted by Pat Farrell:
I'm not sure that current professional carpenters even use hand saws or hammers, but 20 years ago, a pro with a hand saw was impressively fast.
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."