What if SA-MP was written in...?
#1

What if SA-MP was written Java? Will it be fast? Or slow? If SA-MP was done by using Java, then what will be the advantages, and disadvantages? I dont think even think this guy is expert at coding C++.

Did you know that he is the 3RD member to register on this forum?

So anyone knows what would it be?
Reply
#2

Quote:
Originally Posted by ACI
Посмотреть сообщение
What if SA-MP was written Java? Will it be fast? Or slow? If SA-MP was done by using Java, then what will be the advantages, and disadvantages? I dont think even think this guy is expert at coding C++.

Did you know that he is the 3RD member to register on this forum?

So anyone knows what would it be?
I hope you know Kalcor isn't the first SA-MP dev.

and as far as I know, he does stuff based around ASM, not sure if that's related to C++.

Kalcor doesn't have to be an expert, none of us have to be an expert at coding. People like Kalcor have experience in the coding scene.

EDIT: Yes, C++ is used for SA-MP. I thought it'd be C programming, but I thought wrong, I suppose

EDIT 2: Misunderstood stuff from someone I was talking to a while back, but SA-MP is Kalcors' work.
Reply
#3

He is the third one registered after an official account (SA-MP) and probably a test account (samp). I like it how it is now, it's simple to use and simple to script for.
Reply
#4

Kalcor does not have to be an expert...

But did he die?
Reply
#5

I think this "guy" is an expert in C++ because SA-MP is written entirely in C++
Reply
#6

Quote:
Originally Posted by Drebin
Посмотреть сообщение
I think this "guy" is an expert in C++ because SA-MP is written entirely in C++
and in PAWN (although PAWN is easy if you know C++ and C++ is easy when you know PAWN)
Reply
#7

Quote:
Originally Posted by kooltuO
Посмотреть сообщение
and in PAWN (although PAWN is easy if you know C++ and C++ is easy when you know PAWN)
SA-MP is not written in PAWN. PAWN is only used by server scripters, but not in the samp-server.exe or the SA-MP client.
Reply
#8

Quote:
Originally Posted by Drebin
Посмотреть сообщение
SA-MP is not written in PAWN. PAWN is only used by server scripters, but not in the samp-server.exe or the SA-MP client.
Exactly . pawno is easy too, As compared to Java.
Reply
#9

Theres an idea called reasonable programming, and it includes picking the best language for the desired results.
Java definitely would NOT be a good idea for samp. Java definitely isnt a good idea for any large-scale server at all.

First of all, samp uses raknet as network interface to directly access GTAs memory. Thats the only way, as GTA itself doesnt offer any interfaces for developers. Memory hacking is the one and only idea for creating multiplayer mods for games without any kind of multiplayer function.
Java runs in a virtual machine. This basically makes it impossible to access anything outside the virtual machine. You could use native interfaces though, but this would mean using C code, it wouldnt be java then, and extremely slow.
Also, Java is slow. Extremely slow. Imagine running a OS in virtualbox. Even though your PC is fast as hell, the virtual OS will suck asses. Okay, its not that bad in Java, as the VM is pretty good so far, but this is the general idea.

So, what would Samp look like when it was Java?
1. It wouldnt exist at all.
2. Servers wouldnt take more than 50 or 100 players.
3. General ping and serverlag would increase significantly.
4. PAWN (or any "virtual machine in a virtual machine" scripting interface) would be even slower.
5. It would probably use Java for gamemodes and plugins though.


And thats an INreasonable choice of the language. A c-type is a much wiser choice, cause as you see it has some clear advantages compared to java. More people might be able to create gamemodes though, but one does not simply mess software up just to make it easier to use for beginners and lazies. NO reasonable programmer would do that (yep, im saying that notch is an inreasonable programmer)


Also:
Quote:
Originally Posted by ACI
Посмотреть сообщение
Did you know that he is the 3RD member to register on this forum?
Did you know that this wasnt the official forum since the very first day? I can remember at least one forum change a few years ago, and this definitely messed up the IDs enough. You CAN say he was the 3rd guy who registered an account on this forum, as he was on charge when the forum changed, but this means nothing when considering there were several years of samp BEFORE this forum started counting its IDs.
Reply
#10

Quote:
Originally Posted by Drebin
Посмотреть сообщение
I think this "guy" is an expert in C++ because SA-MP is written entirely in C++
Yeah, that "Guy" is an expert in C++.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)