This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Disconsented's profile picture

Why doesn't Computer Craft use java?

Started by Disconsented, 06 July 2012 - 11:49 AM
Disconsented #1
Posted 06 July 2012 - 01: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:
  1. Bad programs
  2. 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.
Cloudy #2
Posted 06 July 2012 - 02:02 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:

Proof?

  1. Bad programs
  2. 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?

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.
Xtansia #3
Posted 06 July 2012 - 02:21 PM
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.com/site/marbux/home/where-lua-is-used
Kolpa #4
Posted 06 July 2012 - 03: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
Disconsented #5
Posted 07 July 2012 - 04: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.
Xtansia #6
Posted 07 July 2012 - 04:37 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.

You do realize that that thread is from FEBRUARY which is before LuaJ was updated and the infinite thread issue was fixed
Cloudy #7
Posted 07 July 2012 - 09: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.
Disconsented #8
Posted 07 July 2012 - 10:59 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.
I'm not worried and I wasn't aware that there had been updates to adress these issues.
bbqroast #9
Posted 07 July 2012 - 09: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).
D3matt #10
Posted 08 July 2012 - 02: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.
Xtansia #11
Posted 08 July 2012 - 03:50 AM
LUA is not bad at all.
C) LUA is arguably easier than java

Just one thing that was niggling me,
Lua is not an acronym,
It is Lua not LUA.
D3matt #12
Posted 08 July 2012 - 04:01 PM
LUA is not bad at all.
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.
zwap1233 #13
Posted 24 July 2012 - 08:52 PM
LUA is not bad at all.
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
Darky_Alan #14
Posted 25 July 2012 - 12:39 AM
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.
Noodle #15
Posted 25 July 2012 - 11: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..