Forums - Open Redstone Engineers
Java vs Lua - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: Off-Topic (https://forum.openredstone.org/forum-4.html)
+--- Forum: Off-Topic Discussion (https://forum.openredstone.org/forum-5.html)
+--- Thread: Java vs Lua (/thread-554.html)



Java vs Lua - Xeomorpher - 07-12-2013

Which is the greater sin?


RE: Java vs Lua - David - 07-12-2013

I am clueless


RE: Java vs Lua - seankingman - 07-12-2013

Lua.
I have sort of changed sides with Java now that I know how to program with it.
It's still bad though.


RE: Java vs Lua - mort96 - 07-12-2013

Honest question; what is so sinful about Lua?


RE: Java vs Lua - Xeomorpher - 07-12-2013

'Tries to be hipster and succeeds.
Fucking end statements.
Retarded comment syntax.'


RE: Java vs Lua - mort96 - 07-12-2013

so just because it uses "then" and "end" instead of "{" and "}", and -- instead of // for comments, it's one of the worst languages there is..?


RE: Java vs Lua - seankingman - 07-12-2013

ComputerCraft uses it. That condemns it.


RE: Java vs Lua - David - 07-12-2013

Every language has it's pros and cons. What does it matter?


RE: Java vs Lua - Malcolmforde - 07-13-2013

I think LUA would win because its easier to learn.


RE: Java vs Lua - Xeomorpher - 07-13-2013

No, mort, there is much more... much more....


RE: Java vs Lua - mort96 - 07-13-2013

then I'm honestly quite interested in what that "much more" is..


RE: Java vs Lua - mad1231999 - 07-16-2013

I must side with Lua here. It does have a retarded syntax, but it is very cleverly constructed. They way you can use environments and metatables makes it really fucking flexible, and it's very easy to implement very abstract solutions.

So to everyone here, learn a language before bashing it. And I mean learn it, learn the in's and out's of it, not just learn the syntax.

Though, I don't like it. It's too flexible in my opinion. GO C.


RE: Java vs Lua - Thor23 - 07-16-2013

Personally, I don't think what language you use matters; any language is capable of performing identically given the right commands. Which really makes it a matter of preference as to which language is better. I like C++ because it has fairly simple structures, but from these basic elements, something enormously complex can be created. I don't think that that makes it better, it's just the language that I find suits me best and that I enjoy using. And isn't that all that really matters?


RE: Java vs Lua - Xeomorpher - 07-16-2013

That would be very nice, but it is faaar from the truth.
Virtual machines and interpreters and compilers will not perform the same instructions on the CPU, python is VERY slow, due to it's interpreted nature, another example would be C#, whose virtual machine will not decide whether to interpret of compile a thingy, and will often interpret code it would have been faster not to. Java, on the other hand is memory consuming as hell, and awful in every way.


RE: Java vs Lua - Thor23 - 07-16-2013

What I meant was that, writing two programs in two different languages to perform the same operations will give you the same output. I understand that other differences like whether the language is compiled/interpreted or managed/unmanaged would effect things like memory usage or speed, or what actual instructions are carried out by the CPU, but they wouldn't effect the outcomes of the programs if they're both written to do the same thing.


RE: Java vs Lua - Xeomorpher - 07-16-2013

but they affect how fast it is done, and how much it leeches off other processes, which are kinda important; they are why we hate notch.


RE: Java vs Lua - Chibill - 07-17-2013

I like java personally but python is more dificaled when it comes to thoses indents java just wants its ; after most lines.


RE: Java vs Lua - Thor23 - 07-17-2013

(07-16-2013, 09:08 PM)Xeomorpher Wrote: but they affect how fast it is done, and how much it leeches off other processes, which are kinda important; they are why we hate notch.

If you're going to be talking about speed, then you have to keep in mind that programs on older computers are going to run slower then on newer ones. And likewise, programs written now running on future computers will run faster than they do now. The hardware is just as important as the software. And its for that reason that speed is irrelevant - code can always run faster on newer hardware. Just because one language implementation is slower than another on identical hardware does not make the slower language 'bad'. It just means that it's slower.


RE: Java vs Lua - Xeomorpher - 07-17-2013

No - I love python, which is very slow, but if you're using a task that requires speed, such as any game, or large amounts of data processing, speed really does matter - You exclude all low end machines from using your software.


RE: Java vs Lua - Thor23 - 07-17-2013

Why do I get the feeling that we're having two different conversations? I realize that from a practical perspective, it's better to use specific languages for specific tasks, and that some languages are faster than others - but that's not what I'm talking about. I'm talking about the syntax that's written to do those tasks, the thought that constructs used throughout the different languages are analogous.
So that, from a functionality standpoint,
for(int a=0; a < 10; a++){cout << a << endl;}
is operationally equivalent to
for a in range(10): print a
so there's really no difference between them except for the way they're written.


RE: Java vs Lua - mad1231999 - 07-17-2013

(07-17-2013, 10:27 AM)Thor23 Wrote: Why do I get the feeling that we're having two different conversations? I realize that from a practical perspective, it's better to use specific languages for specific tasks, and that some languages are faster than others - but that's not what I'm talking about. I'm talking about the syntax that's written to do those tasks, the thought that constructs used throughout the different languages are analogous.
So that, from a functionality standpoint,
for(int a=0; a < 10; a++){cout << a << endl;}
is operationally equivalent to
for a in range(10): print a
so there's really no difference between them except for the way they're written.

Yes there is. C++ is compiled, Python is interpreted.


RE: Java vs Lua - Xeomorpher - 07-17-2013

And more to the point,
java is terrible
and lua is awful.


RE: Java vs Lua - Thor23 - 07-18-2013

(07-17-2013, 08:59 PM)mad1231999 Wrote:
(07-17-2013, 10:27 AM)Thor23 Wrote: Why do I get the feeling that we're having two different conversations? I realize that from a practical perspective, it's better to use specific languages for specific tasks, and that some languages are faster than others - but that's not what I'm talking about. I'm talking about the syntax that's written to do those tasks, the thought that constructs used throughout the different languages are analogous.
So that, from a functionality standpoint,
for(int a=0; a < 10; a++){cout << a << endl;}
is operationally equivalent to
for a in range(10): print a
so there's really no difference between them except for the way they're written.

Yes there is. C++ is compiled, Python is interpreted.

*facepalm* I.. I feel like I need to be speaking very slowly in order for you to get the point I'm trying to make. Better yet, I'll make an analogy: You need to get to the airport, and have two vehicles in the driveway that you can take to get there. One of them is a truck, the other an electric car. Both vehicles run on different forms of energy, have different features, and look different - but both are completely capable of getting you to the airport. So which one you choose to take makes no difference, as the end result is the same: you arrive at the airport.


RE: Java vs Lua - Xeomorpher - 07-18-2013

What if the truck drives into a tree?


RE: Java vs Lua - qwerasd205 - 07-18-2013

(07-18-2013, 04:03 PM)Xeomorpher Wrote: What if the truck drives into a tree?
i fart!

(07-17-2013, 08:59 PM)mad1231999 Wrote:
(07-17-2013, 10:27 AM)Thor23 Wrote: Why do I get the feeling that we're having two different conversations? I realize that from a practical perspective, it's better to use specific languages for specific tasks, and that some languages are faster than others - but that's not what I'm talking about. I'm talking about the syntax that's written to do those tasks, the thought that constructs used throughout the different languages are analogous.
So that, from a functionality standpoint,
for(int a=0; a < 10; a++){cout << a << endl;}
is operationally equivalent to
for a in range(10): print a
so there's really no difference between them except for the way they're written.

Yes there is. C++ is compiled, Python is interpreted.

(07-17-2013, 09:20 PM)Xeomorpher Wrote: And more to the point,
java is terrible
and lua is awful.

(07-18-2013, 09:21 AM)Thor23 Wrote:
(07-17-2013, 08:59 PM)mad1231999 Wrote:
(07-17-2013, 10:27 AM)Thor23 Wrote: Why do I get the feeling that we're having two different conversations? I realize that from a practical perspective, it's better to use specific languages for specific tasks, and that some languages are faster than others - but that's not what I'm talking about. I'm talking about the syntax that's written to do those tasks, the thought that constructs used throughout the different languages are analogous.
So that, from a functionality standpoint,
for(int a=0; a < 10; a++){cout << a << endl;}
is operationally equivalent to
for a in range(10): print a
so there's really no difference between them except for the way they're written.

Yes there is. C++ is compiled, Python is interpreted.

*facepalm* I.. I feel like I need to be speaking very slowly in order for you to get the point I'm trying to make. Better yet, I'll make an analogy: You need to get to the airport, and have two vehicles in the driveway that you can take to get there. One of them is a truck, the other an electric car. Both vehicles run on different forms of energy, have different features, and look different - but both are completely capable of getting you to the airport. So which one you choose to take makes no difference, as the end result is the same: you arrive at the airport.

(07-18-2013, 04:03 PM)Xeomorpher Wrote: What if the truck drives into a tree?

(07-18-2013, 04:20 PM)qwerasd205 Wrote:
(07-18-2013, 04:03 PM)Xeomorpher Wrote: What if the truck drives into a tree?
i fart!

QUOTE PYRAMIDS!!!

fail to pyramid quote!


RE: Java vs Lua - Xeomorpher - 07-18-2013

No.


RE: Java vs Lua - qwerasd205 - 07-18-2013

No.
(07-18-2013, 09:25 PM)Xeomorpher Wrote: No.



RE: Java vs Lua - Thor23 - 07-19-2013

(07-18-2013, 04:03 PM)Xeomorpher Wrote: What if the truck drives into a tree?

That's the driver's fault, not the truck's.


RE: Java vs Lua - Xeomorpher - 07-19-2013

What if the front wishbone shears off?


RE: Java vs Lua - Thor23 - 07-19-2013

The what? Is the truck now a chicken or something? Why are you nitpicking like this anyway? All of this is as irrelevant to the point I'm trying to make as the significance of being interpreted or compiled is.


RE: Java vs Lua - Xeomorpher - 07-19-2013

I'm not xD, I'm making jokes out of the metaphor, not in any way meant to be undermining it...


RE: Java vs Lua - Thor23 - 07-20-2013

Well its hard for me to tell whether you actually understand what I'm saying if you're making jokes. Tongue


RE: Java vs Lua - Xeomorpher - 07-20-2013

Nothing I say can be taken seriously. Ever. <3


RE: Java vs Lua - Chibill - 07-20-2013

(07-19-2013, 05:47 PM)Thor23 Wrote: The what? Is the truck now a chicken or something? Why are you nitpicking like this anyway? All of this is as irrelevant to the point I'm trying to make as the significance of being interpreted or compiled is.
Java is both compiled then interpited the .java is compiled to .class whips interpited.


RE: Java vs Lua - redstonewarrior - 07-22-2013

Lua succeeds as a scripting language, and java is the confused teenage lovechild of C++ and... I don't even know. Where the hell did the whole obese VM come into play?
[RELATIVE] GO LUA?!??!?!?!?!?!?!?!?!!?
I haven't tried it out, but it sounds like it just turns everything into duck-typed objects, including functions objects etc. This can be useful, but slooooow ;_;
In conclusion:
WRITE IN C,
WRITE IN C,
WRITE IN C,
WRITE IN C,
...





RE: Java vs Lua - Chibill - 07-22-2013

I started in C and went to java when I started code my mod. And you can use C in java.


RE: Java vs Lua - redstonewarrior - 07-22-2013

(07-22-2013, 02:59 AM)Chibill Wrote: I started in C and went to java when I started code my mod. And you can use C in java.

You... you don't understand the mechanics of either language, do you? Or are you talking about loading in compiled libraries into the JVM?


RE: Java vs Lua - Chibill - 07-22-2013

No I am talking about using the ability in Java to run extranal C code as part of it. And I know how to do a lot in C but programs with windows is not one of them.


RE: Java vs Lua - redstonewarrior - 07-22-2013

I'm going to correct, for the sake of being annoying, that you're only using machine code when you do that. You can, as you put it, also run external java code "in" (from) C. Learn gtk!


RE: Java vs Lua - Xeomorpher - 07-23-2013

Just use python for all things where speed to code matters,
C where speed of code matters.


RE: Java vs Lua - seankingman - 07-23-2013

Speed of code always matters, therefore use C.


RE: Java vs Lua - Billman555555 - 07-23-2013

Java =
//yourmumusingacraploadofmemory
Lua =
//yourmumontherasberrypi
C/++ =
//yourmum
Python =
//yourmumisslow


Way I see it there pretty much the same


RE: Java vs Lua - Xeomorpher - 07-24-2013

Java - The fat one
Lua - The stupid one
C# - The fucked up one
Python - The sexy one
C - The ONE


RE: Java vs Lua - VirtualPineapple - 07-25-2013

C++ - The ONE's brother


RE: Java vs Lua - seankingman - 07-25-2013

BASIC - The ONE's father


RE: Java vs Lua - Chibill - 07-25-2013

Binary - The One's creator.


RE: Java vs Lua - Xeomorpher - 07-25-2013

lolBASIC