I'm 45 now, and since I started watching the news around 10 or so, I've heard news stories about the world about to come to end it for various reasons: nuclear bombs, acid rain, over population, full shortage, pollution,.... so far it is still spinning.
Making mistakes is actually a good way to learn and remember information. Usually when I first get a answer wrong and then have to work to get it correct I remember the subject much better.
If this works for inventory goods it might work for the department of homeland security too. Require all people traveling to and from the US to have a tag surgically implanted and track all there moves without problems. What the heck, require it for all people... instant safety...
Don't know about KDB, but gdb, the perl debugger and the java debugger all are wrapped by DDD. DDD is a very fine graphical debugger. See http://www.gnu.org/software/ddd/
> Furthermore, GC is not a solution for shoddy programming
That was the point I was trying to make. (But didn't really succeed in:)
Both GC and explicit memory allocation have their place...
I think the real weak spots of C++ are: (1) the very cryptic error messages you get when using the STL, and (2) having to figure out, over and over again, which files to include where... one would think an compiler could take care of that.
So why do they have tools to find: Leaks them? They are mentioned at the bottom of the page. The main text of the page explains how memory leaks in Java can occur.
Don't get me wrong, Java is a wonderful language, but every solution to sloppy programmers will also have disadvantages....
It's not so much a problem of C++ as a problem of the sloppyness of the programmer. Keep track of all the new and deletes in C++ is difficult. However GC, as found in Java, is not a magic bullet.
It is possible to leak memory in Java too (by making circular structures).
Even worse, because objects stay around until the last reference to it is gone, it is possible to have several copies of the same object lying around. This can lead to very hard to find errors.
For instance:
An object A might contain a reference to object B. An object A2 might also contain a reference to object B, but to an older version. (Due to update error or so).
You think they both point to the same object B, and use A and A2 accordingly. Your program will not crash, because both references point to a valid object, but it won't function correctly either. It might fail only after a very long time, due to other errors that are induced by this error. This will make it very hard to find the error.
You can run the VC++ compiler from the commmand line. Just type
cl helloworld.cpp
In a dos box, this links and compiles, you program. Try a cl/? for a list of all options.
The only thing you have
to do is run vcvars32 before you start. This sets up all the right paths.
This way you can use all the development tools you like (I use gvim and nmake).
I was in a similar though less serious situation. I run a multi-player play-by-email wargame. On average 20 orso people participate in a game. It's set in a galaxy. Players own planets and ships and have to conquer other planets. Players can name their planets. One of the players proceeded to name all his planets after slang terms for intercourse as well as genitals (some very funny and ingenious ones:). Other players started to complain about this. I asked him to rename his planets but felt quite bad about it, as I feel strongly about free speech. This was however ruing the game for all the other players.
I guess one of the important things is to clearly mention that you are filtering/censoring information. Hidden censorship is the most evil form of censorship... if it is clearly mentioned
people could still find other sources of information.
A few years a ago it was mentioned that by wearing two differently coloured lenses some colourblind people were able to see colour again. I tried
a web search on it but it did not came up with anything... does anyone remember that story?
>> I don't know how long they've been doing this. GtkAda isn't all that old, but I noticed this well before I ever heard of C#.
On the Amiga in 1987 or so there was something called autodoc that did something similar. From that several tools have evolved (For instance
ROBODoc, DOC++, ScanDoc).... so it is definitely not new. Though the use of XML might be.
>> About 15 years ago, the emphases shifted to things like neural networks, which are excellent at pattern matching.
The militairy used a neural based product that was supposedly able to locate photos of tanks. The images were of a forrest with or without a camouflaged tank hidden in it. It was able to guess 100% correcty the images with and without the tanks... until they disovered that all the photos with tanks in it where taken on a sunny day while all photes without the tank were taken on a clouded day... So it merely could detect the difference between a sunny and cloudy forrest:)
In the Morning Gentlemen. No Agenda.
cause it is so easy to breath in a healthy way; you breath in, then out, and repeat the process....
The sky is falling, the sky is falling!
It is an interesting article, but the one who made the graph should might want to change jobs.
The first graphs has four shades of blue blue and on top of that the areas are colored using gradients.
.. it is swiftly forgotten.
You use something like SAS or R.
Is this for anti glare or something?
No, I think it is to extract more money from wallets.
I'm 45 now, and since I started watching the news around 10 or so, I've heard news stories about the world about to come to end it for various reasons: nuclear bombs, acid rain, over population, full shortage, pollution,.... so far it is still spinning.
If I go to xboxone.com I get a godaddy add saying I can buy it for $7.99...
Yes lets move it too the cloud! Your life's history data will be as eternally accessible as your google reader data :)
Making mistakes is actually a good way to learn and remember information.
Usually when I first get a answer wrong and then have to work to get it correct I remember the subject much better.
If this works for inventory goods it might work for the department of homeland security too. Require all people traveling to and from the US to have a tag surgically implanted and track all there moves without problems. What the heck, require it for all people... instant safety...
This is available for win32 too, try
http://hem.fyristorg.com/jspage/
Have fun,
gumpu
Don't know about KDB, but gdb, the perl debugger and the java debugger all are wrapped by DDD. DDD is a very fine graphical debugger.
See http://www.gnu.org/software/ddd/
Agree with all points.
:)
> Furthermore, GC is not a solution for shoddy programming
That was the point I was trying to make.
(But didn't really succeed in
Both GC and explicit memory allocation have their place...
I think the real weak spots of C++ are:
(1) the very cryptic error messages you get when using the STL, and (2) having to figure out, over and over again, which files to include where... one would think an compiler could take care of that.
Have fun,
Frans.
So why do they have tools to find:
Leaks them? They are mentioned at the bottom of the page. The main text of the page explains how memory leaks in Java can occur.
Don't get me wrong, Java is a wonderful language, but every solution to sloppy programmers will also have disadvantages....
It's not so much a problem of C++ as a problem of the sloppyness of the programmer. Keep track of all the new and deletes in C++ is difficult. However GC, as found in Java, is not a magic bullet.
It is possible to leak memory in Java too (by making circular structures).
Even worse, because objects stay around until the last reference to it is gone, it is possible to have several copies of the same object lying around. This can lead to very hard to find errors.
For instance:
An object A might contain a reference to object B.
An object A2 might also contain a reference to object B, but to an older version. (Due to update error or so).
You think they both point to the same object B, and use A and A2 accordingly. Your program will not crash, because both references point to a valid object, but it won't function correctly either. It might fail only after a very long time, due to other errors that are induced by this error. This will make it very hard to find the error.
Have fun,
Frans.
You can run the VC++ compiler from the commmand line. Just type
cl helloworld.cpp
In a dos box, this links and compiles, you program. Try a cl /? for a list of all options.
The only thing you have
to do is run vcvars32 before you start. This sets up all the right paths.
This way you can use all the development tools you like (I use gvim and nmake).
I was in a similar though less serious situation. I run a multi-player play-by-email wargame. On average 20 orso people participate in a game. It's set in a galaxy. Players own planets and ships and have to conquer other planets. Players can name their planets. One of the players proceeded to name all his planets after slang terms for intercourse as well as genitals (some very funny and ingenious ones :). Other players started to complain about this. I asked him to rename his planets but felt quite bad about it, as I feel strongly about free speech. This was however ruing the game for all the other players.
I guess one of the important things is to clearly mention that you are filtering/censoring information. Hidden censorship is the most evil form of censorship... if it is clearly mentioned
people could still find other sources of information.
> You need to read Risks if you:
(*) Want a good laugh now and then... comp.risk can be a very funny at times....
A few years a ago it was mentioned that by wearing two differently coloured lenses some colourblind people were able to see colour again. I tried
a web search on it but it did not came up with anything... does anyone remember that story?
>> I don't know how long they've been doing this. GtkAda isn't all that old, but I noticed this well before I ever heard of C#.
On the Amiga in 1987 or so there was something called autodoc that did something similar. From that several tools have evolved (For instance
ROBODoc, DOC++, ScanDoc).... so it is definitely not new. Though the use of XML might be.
He's just a very moody guy... must have had :)
a bad day today
See this link for the full story.
>> About 15 years ago, the emphases shifted to things like neural networks, which are excellent at pattern matching.
:)
The militairy used a neural based product that was supposedly able to locate photos of tanks. The images were of a forrest with or without a camouflaged tank hidden in it. It was able to guess 100% correcty the images with and without the tanks...
until they disovered that all the photos with tanks in it where taken on a sunny day while all
photes without the tank were taken on a clouded day... So it merely could detect the difference between a sunny and cloudy forrest