Well, java only allow casts that can be legal, and it return null if the cast fails.
So if you have
public class A { }
public class B { }
public void f(B myB) { A myA=(B)myB; }
This will not compile at all, because there is no way to cast a B to an A.
If you have
public class Base { }
public class Derived extends Base { }
public void g(Base myBase) { Derived myDerived=(Derived)myBase; }
The function g is ok, and if myBase is infact an instance of Derived, then all is ok. If it is NOT an instance of Derived, then
myDerived vil be null, and any code that use myDerived will cast null pointer exception. You can't cheat the java type system.
This is unlike c++, which will accept any cast you ask it to do.
Java is a strong typed language, which just mean that if you got a reference to a class A, then you know that the object is of the type A, or of a class that extend A. (And similary for the buildin types)
But that is far from enough to be bug free. Just a simple example (Yes, a bit silly, but it shows the problem)
/** Add element 0, and the integer at position index and return the sum */
public static int myFunction(int[] myArray,int index) {
return myArray[0]+myArray[index];
}
Now the question? Is this function buggy? I would say no, because it does exactly what the documentation say it does, and it does handle all
cases where the function is called with correct input.
So if this function was part of a bigger program, would that program have a bug in calling this funciton. That is:
Does there exists input, that will cause this function, to be called with a index=myArray.length.
And to answer that question automatic is someware between very very diffucult, and imposible. (But for most* programs answering that question is posibly)
*I will argue that for at least 99.999% of all correct programs that are written to solve a pratical problem, making a static analysis that prove they are correct are in fact posible.
Can you name a single company, that will host our server, and sell bandwidth at the price of 10 bucks a month for 250GB? Because I have been looking for one for quite some time.
(The reason webhosting companies might sell at that price, is that they know you can't actuelly use all that bandwidth, when running on there hardware, due to limitations in there software,cpu/harddisk and available memory.
But there is no way to write html directly to support internet explorer, because Microsoft have not documentet what html/css internet explorer actuelly supports, and how it support it. So even when I just had to make a site that supported internet explorer, I still had to write it to the w3c specs, and then debug it using internet exploror.
I really wish someone (From microsoft, it is there software afterall) would make a "MS html", and "MS css" documention site. That would make making webpages so much more easy.
Java used to have(1.4 did, and I think the first of 1.5 did too) a license that did not permit distribution of changes made to the sources, and what was worse REQUIRED that you distributed all 50+MB of the jre with your application, insted of just bundling the things you actuelly needed.
That made it really bad to do desktop java applications because even a small application would come with a 50MB jre.
But the headline is wrong (Again). The question is not whenever the duo chip is fast enough. Obviously it is. The question is: Are the onboard gfx which the chipset includes good enough. And the answer is: Nobody knows -(
ps: Anybody seen review of a total silent desktop pc based on the duo chip?
CIV IV, really does require a really fast computer to be really playable.
Right now my cpu just match the minimum requirement, and well I can play it, but it often includes more time spend waiting for the computer ai to move, then time spent moving myself.
But the gfx is much better then expected, even on my lowend ATI Radon 9500. But I think it really takes a Amd 4000+ to play that game well.
Not really. The lemmings version, made in dmtml got in legal trouble. Do a google search on "lemmings dhtml" for the authors analyze of the problems with making clones of existing games, in a new media. Ofcause you could argue that freeciv is not a clone of any other game, because it mix from sereval civ games, and do add new elements.
But the real reason there newer have been taken legal action against free civ, is that it is not a threat, to the sales of Civilization 4.
We need to do something similary. Do you have any documentation on how you stripped it down?
And how about the legal problems? The license for the jre say that you are not allowed to remove ANY part of the jre, except thoose mentioned in a very short list. -(
No, I don't think that is what he mean. The point is if you open a link on a page in a new tab, that new tab should inherent the history of the tab that was used to create the new tab.
To do a VACUUM in postgresql mean that all deleted rows are really freed. When dooing VACUMM it also collect sample data(if you do a VACUMM full) about your data distribution, so it better can predict when to use an index. It used to have a bad repitation, because en early versions of postgresql, it required a write lock on the entire table, thus blocking all update/insert. But it does not block anymore, and thus is not really a problem.
Not really. We(Denmark) Just scraped our last submarine, after it had been damaged in the Iraq war. (No not damaged by the Iraq military, it just was not build to that kind of weather)
All their current opteron hardware is oem and use an "normal" bios. (They can support windows, so it is just a normal bios, not the open firmware/forth solution).
Well, java only allow casts that can be legal, and it return null if the cast fails. So if you have public class A { }
public class B { }
public void f(B myB) { A myA=(B)myB; }
This will not compile at all, because there is no way to cast a B to an A.
If you have
public class Base { }
public class Derived extends Base { }
public void g(Base myBase) { Derived myDerived=(Derived)myBase; }
The function g is ok, and if myBase is infact an instance of Derived, then all is ok. If it is NOT an instance of Derived, then myDerived vil be null, and any code that use myDerived will cast null pointer exception. You can't cheat the java type system.
This is unlike c++, which will accept any cast you ask it to do.
Java is a strong typed language, which just mean that if you got a reference to a class A, then you know that the object is of the type A, or of a class that extend A. (And similary for the buildin types)
But that is far from enough to be bug free. Just a simple example (Yes, a bit silly, but it shows the problem)
public static int myFunction(int[] myArray,int index) {
return myArray[0]+myArray[index];
}
Now the question? Is this function buggy? I would say no, because it does exactly what the documentation say it does, and it does handle all cases where the function is called with correct input.
So if this function was part of a bigger program, would that program have a bug in calling this funciton. That is: Does there exists input, that will cause this function, to be called with a index=myArray.length.
And to answer that question automatic is someware between very very diffucult, and imposible. (But for most* programs answering that question is posibly)
*I will argue that for at least 99.999% of all correct programs that are written to solve a pratical problem, making a static analysis that prove they are correct are in fact posible.
Can you name a single company, that will host our server, and sell bandwidth at the price of 10 bucks a month for 250GB? Because I have been looking for one for quite some time.
(The reason webhosting companies might sell at that price, is that they know you can't actuelly use all that bandwidth, when running on there
hardware, due to limitations in there software,cpu/harddisk and available memory.
But there is no way to write html directly to support internet explorer, because Microsoft have not documentet what html/css internet explorer actuelly supports, and how it support it. So even when I just had to make a site that supported internet explorer, I still had to write it to the w3c specs, and then debug it using internet exploror.
I really wish someone (From microsoft, it is there software afterall) would make a "MS html", and "MS css" documention site.
That would make making webpages so much more easy.
The java included with Fedora is not the one from Sun. (And the default javac compiler, is jikes fro IBM, not javac from sun)
It would be easy to detect anyway, because it always start with downloading robots.txt
Well the license up to, and including 1.4 did not allow this. (I don't know about 1.5)
So the question should be reversed:
I always wondered why sun prevented Dell and other companies from bundling the java vm.
The installer is 16MB, but the size of the jre once installed is ~50M. (The size difference comming from the fact that the installer is compressed)
The real problem was that it came so late.
Java used to have(1.4 did, and I think the first of 1.5 did too) a license that did not permit distribution of changes made to the sources, and what was worse REQUIRED that you distributed all 50+MB of the jre with your application, insted of just bundling the things you actuelly needed.
That made it really bad to do desktop java applications because even a small application would come with a 50MB jre.
That question is answered in the FAQ. (And the answer is yes, they have asked)
But the headline is wrong (Again). The question is not whenever the duo chip is fast enough. Obviously it is. The question is: Are the onboard gfx which the chipset includes good enough. And the answer is: Nobody knows -(
ps: Anybody seen review of a total silent desktop pc based on the duo chip?
And it will take 5 minuts to rename your struct from class, to something else. (You do have a gui with refactor support right?)
An other problem, which is a bit more work to fix, is that you have to cast (void *) so
int *data=malloc(sizeof(int)*100) is not valid c++
What problem would adding strings to c++ solve, that can't be solved by a library such as the posix thread library?
It's not banned from beeing tought. it is beeing banned from beeing tought in biology classes.
How wil the volume thing, differ from just having a single volume called /, and then having /usr and /home
be normal directories?
CIV IV, really does require a really fast computer to be really playable.
Right now my cpu just match the minimum requirement, and well I can play it, but it often includes more time spend waiting for the computer ai to move, then time spent moving myself.
But the gfx is much better then expected, even on my lowend ATI Radon 9500. But I think it really takes a Amd 4000+ to play that game well.
So for civ, cpu are MUCH more importent then gpu.
Not really. The lemmings version, made in dmtml got in legal trouble. Do a google search on "lemmings dhtml" for the authors analyze of the problems with making clones of existing games, in a new media. Ofcause you could argue that freeciv is not a clone of any other game, because it mix from sereval civ games, and do add new elements.
But the real reason there newer have been taken legal action against free civ, is that it is not a threat, to the sales of Civilization 4.
We need to do something similary.
Do you have any documentation on how you stripped it down?
And how about the legal problems? The license for the jre say that you are not allowed to remove ANY part of the jre, except thoose mentioned in a very short list. -(
But tabs opened by clicking a link, and choosing open in new tab SHOULD inherent the history from the tab with the link.
No, I don't think that is what he mean. The point is if you open a link on a page in a new tab, that new tab should inherent the history of the tab that was used to create the new tab.
To do a VACUUM in postgresql mean that all deleted rows are really freed. When dooing VACUMM it also collect sample data(if you do a VACUMM full) about your data distribution, so it better can predict when to use an index. It used to have a bad repitation, because en early versions of postgresql, it required a write lock on the entire table, thus blocking all update/insert. But it does not block anymore, and thus is not really a problem.
So, you choose the wrong education. The real problem is that there is no real education for people, who just want to write software.
Not really. We(Denmark) Just scraped our last submarine, after it had been damaged in the Iraq war. (No not damaged by the Iraq military, it just was not build to that kind of weather)
Did they ever build their non-Sparc that way?
All their current opteron hardware is oem and use an "normal" bios. (They can support windows, so it is just a normal bios, not the open firmware/forth solution).
No a task at nice 19 will still run even when a task with a nice 0 want to run.
At least that was the case last time I tested with the linux 2.4 kernal.