L.C. wrote: |
Hey I'm just curious, no negative attitude ever intended: isn't Java a resource (memory and/or CPU) hog? |
L.C. wrote: |
Is there any chance that Java could be converted to C++ (is it easy too)? |
Doc Flabby wrote: |
Converting from a higher level language to a lower level language seems a bit strange to me... Its like converting c++ code to assembler, you have to have a good reason for it cos it will be an effort. |
Cyan~Fire wrote: |
[..]
Converting from C++ to ASM is easy, it's done every time you compile. (Well, not technically, it's actually straight from the C++ to the machine code, which you could say is just ASM in hex. Compilers include an option to spit out ASM files, though.) Calling C++ lower level than Java isn't really justified in my opinion. Java was modeled after C++ with a bunch of the lower-level stuff cut out, but unless I'm forgetting about something obvious, it didn't add many higher-level features. I do agree though that converting from Java to C++ would be pretty dumb (but not because one language is "better" than the other). |
Maverick wrote: |
Why make it for as3 that (as I have heard) doesn't really require a biller? |
Doc wrote: |
Java itself is coded in c/c++ so by its very nature it builds on a c/c++ level below it. lower level does not means worse or better. Use the right tool for the job |
Smong wrote: |
I can't remember what I did when I wrote my java biller, but if you have blocking sockets wouldn't you need 1 thread per zone so you can "check" them simultaneously? |
Smong wrote: |
Also how are you doing cross zone private messaging? I seem to remember I got myself into a fix and it was N squared complexity or something stupidly large. |
Quote: |
I see all billers for As3 (only). Why make it for as3 that (as I have heard) doesn't really require a biller? Why not make a good SSC replacement first and then go from there? |
Smong wrote: |
From your post it looks like you aren't handling a case where one player account may be logged into many zones at the same time. Are you only allowing players to enter one zone at a time? |
Doc Flabby wrote: |
i can't think of any reason why a player would need to be be logged in multiple zones. |
Quote: |
hats exactly how it works. For each zone that connects a new thread is created. Not terribly effcient when you get alot of zones connecting, but that won't be an issue i think unless like over 50 or so zones connect, which seems unlikly i am going to alter the code to fix a DOS that exists. (it allows infinate connections at the moment lol so you could crash the server quiet easily by connecting hundreds of times. |
L.C. wrote: |
Are you planning to host it as a Public Biller yourself or what..? Yeah sorry, I am a bit jealous (I admit!). :\
|
L.C. wrote: |
Why not also add a feature where threaded connections can be turned on or off? |
Quote: |
So you and anyone who wants to can run a public biller with it. Its unlikely I will host a public biller using it if someone else is willing, as my vps doesn't have enough resources to host it along with all the other stuff it hosts. |
Quote: |
Because it creates a thread per zone than connects. Turning off threading would mean only one zone could connect to the biller. |
Animate Dreams wrote: |
is there a way to get both AS3 and the biller to read from the same database |
Doc Flabby wrote: |
mgb the biller also provides ?squad stuff, and banner saving not sure if asss can do that on its own. |
Code: Show/Hide Exception in thread "main" java.lang.NoClassDefFoundError: com.playSubSpace.TCPBiller.Main at gnu.java.lang.MainThread.run(libgcj.so.70) Caused by: java.lang.ClassNotFoundException: com.playSubSpace.TCPBiller.Main not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/brad/Desktop/biller/,file:/home/brad/Desktop/biller/mysql-connector-java-5.0.4-bin.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.70) at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at gnu.java.lang.MainThread.run(libgcj.so.70) |
Code: Show/Hide <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path=""/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.5.0_06"/> <classpathentry exported="true" kind="lib" path="/home/brad/Desktop/biller/mysql-connector-java-5.0.4-bin.jar"/> <classpathentry kind="output" path=""/> </classpath> |
Mine GO BOOM wrote: |
[..]
Why not just create a way for ASSS zones to link up together in nodes and be able to share chat messages that way? If they have direct access to the same database, they'd have the same player authentication so chat names are verified. Don't need a billing server then. |
BDwinsAlt wrote: |
Very cool! I like the fact it's in Java. Cross platform with out Wine. |
Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.... wrote: |
[..]
You know cross-platform is not a matter of the language itself? Suprise, there are plenty C/C++ programs that work on all platforms. |
Animate Dreams wrote: |
[..]I smell a lot of fanboyism in your post. |
Doc Flabby wrote: |
My reason for using java were: 1 - c++ is difficult (ive never coded in c or c++ really) 2 - java is crossplatform without any effort (c# isnt really mono is getting there tho on linux, not sure about mac) 3 - lots of java dev resources and a good ide (eclipse) 4 - not coded much in java and is good practice as i am taking a java class at university. |
Doc Flabby wrote: |
If you dont like java write your own TCPBiller and don't use SkyBill |
Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.... wrote: |
[..]
Yes I dislike Java, I can't even tell you why. |
Animate Dreams wrote: |
That's probably the kind of thing Python was meant for. |
Animate Dreams wrote: |
Lol wtf
Hook me up with that |