Jump to content




Why doesn't Computer Craft use java?


  • You cannot reply to this topic
14 replies to this topic

#1 Disconsented

  • New Members
  • 4 posts

Posted 06 July 2012 - 12:49 PM

A big reason why Computer Craft isn't used in tekkit servers is becasue it is quite resource intensive and this because of two reasons:
  • Bad programs
  • Its lua
Because CC is written in Java and has to interpert Lua instructions there are preformance issues.

So why not make it use Java? Other than it will be harder for newbies to pick up.
Feel free to correct any mistakes I have made.

#2 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 06 July 2012 - 01:02 PM

View PostDisconsented, on 06 July 2012 - 12:49 PM, said:

A big reason why Computer Craft isn't used in tekkit servers is becasue it is quite resource intensive and this because of two reasons:

Proof?

View PostDisconsented, on 06 July 2012 - 12:49 PM, said:

  • Bad programs
  • Its lua
Because CC is written in Java and has to interpert Lua instructions there are preformance issues.

Again, proof? And what do you mean about bad programs - bad programs built in? If so, what makes them bad?

View PostDisconsented, on 06 July 2012 - 12:49 PM, said:

So why not make it use Java? Other than it will be harder for newbies to pick up.
Feel free to correct any mistakes I have made.

What makes you think magically changing the language to Java would make much difference. Do you really think you can just send Java a string, and have it execute it? Java is a compiled language - as such it won't be as easy as just running native java code.

Lua is used in many places, in many games (commercial and otherwise) and in most cases you won't even know it is there. Lua is designed to be embedded and take up a small amount of resources.

You can't just claim Lua is resource intensive, and that it is more resource intensive than other mods without proof. In ComputerCraft, due to how it's coded, a majority of the time Lua is waiting on Java code to tell it to continue any given computer.

#3 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 06 July 2012 - 01:21 PM

View PostCloudy, on 06 July 2012 - 01:02 PM, said:

Lua is used in many places, in many games (commercial and otherwise) and in most cases you won't even know it is there. Lua is designed to be embedded and take up a small amount of resources.
Just a wee link for more info: https://sites.google...ere-lua-is-used

#4 Kolpa

  • New Members
  • 260 posts
  • LocationGermany

Posted 06 July 2012 - 02:06 PM

um 1st of all have u every try ed running a virtual java machine in a virtual java machine ? second u woud need to create a own interpreter or people just do System.exit(0) and laught at u while the server is terminating
EDIT: wow i just read this on the next morning ... damn my grammar sucks when im tired

#5 Disconsented

  • New Members
  • 4 posts

Posted 07 July 2012 - 03:14 AM

forums.technicpack.net/threads/computercraft-is-bad-for-large-servers-very-bad.2039/

By bad programs I mean user created ones that just hog resources.

#6 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 07 July 2012 - 03:37 AM

View PostDisconsented, on 07 July 2012 - 03:14 AM, said:

forums.technicpack.net/threads/computercraft-is-bad-for-large-servers-very-bad.2039/

By bad programs I mean user created ones that just hog resources.

You do realize that that thread is from FEBRUARY which is before LuaJ was updated and the infinite thread issue was fixed

#7 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 07 July 2012 - 08:51 AM

So your "proof" is an old thread about a bug that was fixed even before the 1.2.5 release of Tekkit even dropped. Nice!

In the next version there will be even further efforts to ensure it works smoothly on servers.

Edit: I'm sorry if my attitude seems bad sometimes :-p I'm just fed up of people claiming this without proof.

#8 Disconsented

  • New Members
  • 4 posts

Posted 07 July 2012 - 09:59 AM

View PostCloudy, on 07 July 2012 - 08:51 AM, said:

So your "proof" is an old thread about a bug that was fixed even before the 1.2.5 release of Tekkit even dropped. Nice!

In the next version there will be even further efforts to ensure it works smoothly on servers.

Edit: I'm sorry if my attitude seems bad sometimes :-p I'm just fed up of people claiming this without proof.
I'm not worried and I wasn't aware that there had been updates to adress these issues.

#9 bbqroast

  • Members
  • 124 posts

Posted 07 July 2012 - 08:25 PM

LUA is not bad at all. It is pretty fast and stable, and designed specifically for games.The only reason it is not used more widely on Tekkit servers is due to some security threats it can introduce (which are caused mainly by the infinite access to the servers IRL hard disk).

#10 D3matt

  • Members
  • 830 posts

Posted 08 July 2012 - 01:49 AM

People will make mad programs no matter what language you use.

Why not use Java?
A) It's a compiled language.
:)/> Allowing users to run Java code on a Java based server is just asking for all kinds of trouble
C) LUA is arguably easier than java, both from the modding backend and the end user perspective.

#11 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 08 July 2012 - 02:50 AM

View Postbbqroast, on 07 July 2012 - 08:25 PM, said:

LUA is not bad at all.

View PostD3matt, on 08 July 2012 - 01:49 AM, said:

C) LUA is arguably easier than java

Just one thing that was niggling me,
Lua is not an acronym,
It is Lua not LUA.

#12 D3matt

  • Members
  • 830 posts

Posted 08 July 2012 - 03:01 PM

View Posttomass1996, on 08 July 2012 - 02:50 AM, said:

View Postbbqroast, on 07 July 2012 - 08:25 PM, said:

LUA is not bad at all.

View PostD3matt, on 08 July 2012 - 01:49 AM, said:

C) LUA is arguably easier than java

Just one thing that was niggling me,
Lua is not an acronym,
It is Lua not LUA.
That awkward moment when you get caught doing the one thing you hate more than any other.

#13 zwap1233

  • Members
  • 37 posts

Posted 24 July 2012 - 07:52 PM

View Posttomass1996, on 08 July 2012 - 02:50 AM, said:

View Postbbqroast, on 07 July 2012 - 08:25 PM, said:

LUA is not bad at all.

View PostD3matt, on 08 July 2012 - 01:49 AM, said:

C) LUA is arguably easier than java

Just one thing that was niggling me,
Lua is not an acronym,
It is Lua not LUA.
Does it metter Lua or LUA

#14 Darky_Alan

  • Members
  • 89 posts
  • LocationPuerto Rico

Posted 24 July 2012 - 11:39 PM

Also, as a noobie, I quite enjoy the fact this is in Lua, it's a pretty simple straightforward language. It's helped me learn a lot in a few days. I had 0 knowledge of programming before I started to use CC.

#15 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 25 July 2012 - 10:36 AM

Its Lua
It really doesn't get anymore simple (IN CODING) than that.
Lua is the correct way to type it, LUA doesn't matter..





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users