Quoted by Grug
That's pretty kewl, I did a bit with Server code didn't get to much of a chance to play with it.
I was going to make my own chat prog to distribute among friends, among a turnbased computer rip off of 40k / Warhammer etc.
I used to have NWN, pretty fun game.
Making a server for it is interesting, the little OGL window even more so.
By the looks your using good'ol netbeans eh?
If you ever wanted to try out working on a co-project I'd probably be up for it.
Absolutely, but not because I can make GUI easily. This feature was discovered by me only after I got used to using NetBeans, and desired it over others. No no, I liked NetBeans because of it's debugging tools. First off, it helps me narrow down errors before compiling, which IMO, speeds up the completion of the job. Second, most common and most irritating errors are the pethetic syntex errors of forgetting some character (e.g. "[] {} "*" ()"). Nothing like having 500 lines of code, and unable to isolate a stupid } syntext error. Netbeans helps narrow this down. When I learned about it's pallette, I fell in love with it.
Quoted by Grug
As for garbage collection, I probably never got to the level where it became much of an issue, but in the latest version isn't there a dispatch garbage call? I thought there was anyway...?
There is, but Garbage collection is never forcable. Though aldo has mentioned a method (function) of which does do this, it is better to use a combination of techniques to achieve this. As both I and Aldo have stated before, all process in Java are set with priorities, garbage collection being the lowest. Putting a process to sleep lowers that priority, which is learned when using threads. As I stated before, if you put the entire program to sleep for 3 seconds, you lower there priority. Using the method Aldo expressed at this point, would increase the chances or garbage collection.
Quoted by Grug
I can kinda half read C/++ and have a very basic understanding on how pointers work, but not a terrible amount about how keeping track of all the memory allocation would work.
Sometimes it boggles my mind completely just thinking about how much stuff you'd have to do manually without some of Java's niche's. But it would seem overall that the higher level of control is worth it.
I admit, there are some areas of which I stand corrected with Java; those being areas of which performance could be issues of interest. However, I have yet to be disputed on issues of which were brought up by karajorma, regarding the simplicity and portability of using Java. Ultimately, C was chosen in the past because it was easier to use. Again, it was stated that Java could at one point be as good as C++, but at this time it is not so.
Off the subject however, the program I am making will eventually be GPLed, which is why I am so openly talking about it. What you will find interesting is how it works with the NWN server.
In order for this program to operate with the NWN server, several script files within the server have to be created. Most of them have a small data base of which has serial numbers. This java program works off sending a serial number code in through the server chat channels where on the combat message window. The script in NWN seeks those numbers and when one is found, flags for a response. Information to the java server console is given also by internal NWN scripts, where these scripts seek out certain critierals of which are areas of interest. The information is then outputted to the log file, where the java console eliminates unwanted characters, keeping only the valued content. The content is then charactorized, and passed over to it's proper method, which would in turn display it on the console. Ultimately, this is a hybrid programing project, using NWN scripting as the secondary code. I have not seen one project use this in the entire NWN forum, which is why I think my program will be of great interest to many of that area.
That's my 2 cents.