I would say c++ with a debugger such as gdb qualify. In fact I sometimes prefer to debug c++ code with a coredump insted of java becasue you also get the value of your variabels which is often usefull.
Thanks. I did not know they fixed that bug in 1.4 but it does still not solve the problem that finalize is not running. Just see this program. It will leave the JavaTestFile with a size of 4 bytes not containing the text "hello world" so finalize is not running -(
import java.io.*;
public class Test { public static void main(String args[]) { try { File f=new File("JavaTestFile.txt"); if(f.exists()) { System.out.println("Testfile already exists"); } else { ObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(f)); o.writeUTF("Hello world"); } } catch(Exception ex) { } } }
And the Runtime.runFinalizersOnExit() which enables this says:
Deprecated. This method is inherently unsafe. It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock.
Enable or disable finalization on exit; doing so specifies that the finalizers of all objects that have finalizers that have not yet been automatically invoked are to be run before the Java runtime exits. By default, finalization on exit is disabled.
Are you using finalize as destructor? That's not good. Just look at the documentation for finalize (As described by Sun in the Object class)
The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.
Welcome to the world of leaked resources in Java(TM).
You don't have destructors in java. And if you use finalize as a destructor, then that is your problem.
If your program have an awt/swing gui, your only way to stop the program is calling System.exit(). And if you call System.exit() your objects are not finalized (That is: The finalize method is not called)
Yes we do. And then we find out that they way swing layout JComponents changed from 1.3 to 1.4 so we need to insert ugly things so support java v1.3 which were needed due to the need of mac support. (Java 1.4 was in beta for MacOS X at the time, so we could not just tell people to upgrade)
Performence under heavy load has nothing to do with the cpu. It has something to do with the motherboard and it's io/dma system, and much more to do with the OS so what is really needed is a good port of solaris to a faster cpu such as the Opteron. (Or itanium, but Sun will NEWER do that)
Yes, but converting from one lossy soundfile to an other lossy soundfile does produce a result that is worse then what you would get if you made a original to lossy. Just try to make this test
Take a mp3 file, convert to ogg. Convert back to mp3. Repeat 10 times. Then do a binary diff on all the 10 mp3 files, and you will se that they are ALL different, and that the quality of the last mp3 you made will be far worse then the first mp3 you started with.
Now if only Apple would begin to sell music here en EU, but thats the debate for an other day:}
Re:Good... down with Real
on
Real Problems
·
· Score: 0
What page is that on??? If I go to real.com and click the "Free download now" I get to their download page, where they want my email, and want me to subscribe to "RealOne Arcade GamePass - Recommended!" Free 30-day Trial, then just 6,95/mo. Next step they ask for name, and other info they don't need.
There is a other link called "free realplayon" on the front page too. That take you to a download page where clicking on the large download button on the center will ask you for credit card information so they can charge you "All this and more for only 49,99 ! "
What link did you use to get real player with only 2 click?
Will this not also make it posible to play the aac files on platforms that support aac, but not drm aac?
Reencoding to mp3 is a bad solution because the quality will be worse then if the songs were directly encoded in mp3. This actuelly make me want to use the apple store, because I know I will be able to play the songs i buy no matter what operationsystem I use.
Now if only apple would open an store for eu so I could actuelly buy their songs I would be happy:}
btw: Does anyone know if it is posible to search the songs that apple have for sale from a browser?
The price of 179$ for the workstation version is an anual subscription rate(Needed for updates) so if you plan to keep your workstation running Redhat WS 3 for the next 5 years it would cost you 179*5=895$. So total price depends.
Quote from license: "Customer may not use one subscription for Services for more than one system concurrently. Any unauthorized use of the Service will be deemed to be a material breach of this Agreement."
so you lose your options to download updates if you ever patch computer while an other is still running.
Re:Per-Seat pricing is fine.
on
Red Hat Recap
·
· Score: 1
What is needed is the ability to buy widtout any kind of support but WITH updates. Running redhat widtout updates are (as with any other os) dangerous if your computer is connected to the internet.
What is needed is an option to download redhat iso+patches onces, and then install/patch as many computers as wanted
The problem is that the 179$ is an Annual Subscription. My os install typical last 4 years, so the price for a redhat workstation would be 716$ and the price for Red Hat Enterprise Linux ES 1576$.
So with the current pricing installing windows would be cheeper.
And try to price an oracle database to run on that, and the price of the hardware could be 0 widtout anyone in acounting noticing it. And then you start hiring people to use the system, and then you find out how little the hardware cost matters for much systems.
For highend(16+ processors) servers this is not really true yet, but that is not really the space that microsoft works in anyway.
I would say c++ with a debugger such as gdb qualify. In fact I sometimes prefer to debug c++ code with a coredump insted of java becasue you also get the value of your variabels which is often usefull.
Thanks. I did not know they fixed that bug in 1.4 but it does still not solve the problem that finalize is not running. Just see this program. It will leave the JavaTestFile with a size of 4 bytes not containing the text "hello world" so finalize is not running -(
import java.io.*;
public class Test {
public static void main(String args[]) {
try {
File f=new File("JavaTestFile.txt");
if(f.exists()) {
System.out.println("Testfile already exists");
}
else {
ObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(f));
o.writeUTF("Hello world");
}
}
catch(Exception ex) { }
}
}
And the Runtime.runFinalizersOnExit() which enables this says:
Deprecated. This method is inherently unsafe. It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock.
Enable or disable finalization on exit; doing so specifies that the finalizers of all objects that have finalizers that have not yet been automatically invoked are to be run before the Java runtime exits. By default, finalization on exit is disabled.
Welcome to the world of leaked resources in Java(TM).
You don't have destructors in java. And if you use finalize as a destructor, then that is your problem.
If your program have an awt/swing gui, your only way to stop the program is calling System.exit(). And if you call System.exit() your objects are not finalized (That is: The finalize method is not called)
But cdburning and re-ripping does lower the audio quality.
Now I Apple would use their time to setup a shop to sell to EU, that would be better use of their time.
Yes we do. And then we find out that they way swing layout JComponents changed from 1.3 to 1.4 so we need to insert ugly things so support java v1.3 which were needed due to the need of mac support. (Java 1.4 was in beta for MacOS X at the time, so we could not just tell people to upgrade)
Performence under heavy load has nothing to do with the cpu. It has something to do with the motherboard and it's io/dma system, and much more to do with the OS so what is really needed is a good port of solaris to a faster cpu such as the Opteron. (Or itanium, but Sun will NEWER do that)
Did we read the same link?
It starts with
"Santa Clara, Calif.-based Sun has stopped work on the UltraSparc V, a server chip"
The key here is: "Stopped work on"
Yes, but converting from one lossy soundfile to an other lossy soundfile does produce a result that is worse then what you would get if you made a original to lossy. Just try to make this test
:}
Take a mp3 file, convert to ogg. Convert back to mp3. Repeat 10 times. Then do a binary diff on all the 10 mp3 files, and you will se that they are ALL different, and that the quality of the last mp3 you made will be far worse then the first mp3 you started with.
Now if only Apple would begin to sell music here en EU, but thats the debate for an other day
What page is that on??? /mo.
If I go to real.com and click the "Free download now" I get to their download page, where they want my email, and want me to subscribe to
"RealOne Arcade GamePass - Recommended!" Free 30-day Trial, then just 6,95
Next step they ask for name, and other info they don't need.
There is a other link called "free realplayon" on the front page too. That take you to a download page where clicking on the large download button on the center will ask you for credit card information so they can charge you
"All this and more for only 49,99 ! "
What link did you use to get real player with only 2 click?
Martin Tilsted
There is a step 0 however.
Buy a cdburner.
Will this not also make it posible to play the aac files on platforms that support aac, but not drm aac?
:}
Reencoding to mp3 is a bad solution because the quality will be worse then if the songs were directly encoded in mp3. This actuelly make me want to use the apple store, because I know I will be able to play the songs i buy no matter what operationsystem I use.
Now if only apple would open an store for eu so I could actuelly buy their songs I would be happy
btw: Does anyone know if it is posible to search the songs that apple have for sale from a browser?
The price of 179$ for the workstation version is an anual subscription rate(Needed for updates) so if you plan to keep your workstation running Redhat WS 3 for the next 5 years it would cost you 179*5=895$. So total price depends.
Martin
Yes, but updates are part of the support so...
Quote from license:
"Customer may not use one subscription for Services for more than one system concurrently. Any unauthorized use of the Service will be deemed to be a material breach of this Agreement."
so you lose your options to download updates if you ever patch computer while an other is still running.
What is needed is the ability to buy widtout any kind of support but WITH updates. Running redhat widtout updates are (as with any other os) dangerous if your computer is connected to the internet.
What is needed is an option to
download redhat iso+patches onces, and then install/patch as many computers as wanted
The problem is that the 179$ is an Annual Subscription. My os install typical last 4 years, so the price for a redhat workstation would be 716$ and the price for Red Hat Enterprise Linux ES 1576$.
So with the current pricing installing windows would be cheeper.
Martin
And that company will likely be an indian company with access to workers at 1/4 the price.
It is a valid program yes for THAT specific compiler, but not a valid(As defined by ANSI/ISO) c program.
And try to price an oracle database to run on that, and the price of the hardware could be 0 widtout anyone in acounting noticing it. And then you start hiring people to use the system, and then you find out how little the hardware cost matters for much systems.
For highend(16+ processors) servers this is not really true yet, but that is not really the space that microsoft works in anyway.
Do you write html for a living? Because nobody else defines standart as "It works on my system" so it must be the way the standard defines it.
The difference and the reason I would buy the mini-ipod is that it is a smaller form factor.
And that I don't have more then a few GB of music.
But that's not a problem with the pdf format which is open and fully described. It is a problem with your software.
Well, acording to Bjarne stroupstrup it is not valid c++ and HE should know :}
Bjarnes faq for void main()
But that does not change the fact that it is NOT a valid c program.