Is writing minetest in Java possible?

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Is writing minetest in Java possible?

by Stix » Post

Hi, id like to know if its possible to make working mods and subgames written in Java.
Hey, what can i say? I'm the bad guy.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: Is writing minetest in Java possible?

by rubenwardy » Post

No, it's not
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: Is writing minetest in Java possible?

by Stix » Post

Bummer :(
Hey, what can i say? I'm the bad guy.

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Is writing minetest in Java possible?

by sofar » Post

Stix wrote:Bummer :(
Not really. Java isn't bad for a lot of things, but you can't make a game really small in Java. At a minimum the JRE takes 300MB or so, and Minetest is not even, like, 60mb total. Memory and Java are like donuts and Chief Wiggum, too.

Think of it a different way: even though Android is java, most android games are native C code wrapped in a tiny java wrapper. Guess why?

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: Is writing minetest in Java possible?

by Stix » Post

sofar wrote:
Stix wrote:Bummer :(
Not really. Java isn't bad for a lot of things, but you can't make a game really small in Java. At a minimum the JRE takes 300MB or so, and Minetest is not even, like, 60mb total. Memory and Java are like donuts and Chief Wiggum, too.

Think of it a different way: even though Android is java, most android games are native C code wrapped in a tiny java wrapper. Guess why?
i guess that means Minetest will never have Java support implimented?
Hey, what can i say? I'm the bad guy.

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

What is a code wrapper?

by Stix » Post

Hi id like to know what a code-wrapper does, from a quick google search it looks like it makes it possible to code in, for example, Java and then use a C++ code wrapper to run the Hava program in C++, is this correct?
if so what about coding in Java with a Lua code-wrapper?
Hey, what can i say? I'm the bad guy.

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: Is writing minetest in Java possible?

by Stix » Post

i now plan to post my java questions here.
Hey, what can i say? I'm the bad guy.

User avatar
Sergey
Member
Posts: 784
Joined: Wed Jan 11, 2017 13:28
Location: Russia

Re: Is writing minetest in Java possible?

by Sergey » Post

Relax. MT is written in C++. Nobody being sane will rewrite the code into Java.

What I would like to see in MT in future is the ability to write mods in Python, very convenient and powerful scripting language, at least some subset of Python, that allows to be embedded as Lua. But unlikely it will be implemented.

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: Is writing minetest in Java possible?

by Stix » Post

Sergey wrote:Relax. MT is written in C++. Nobody being sane will rewrite the code into Java.

What I would like to see in MT in future is the ability to write mods in Python, very convenient and powerful scripting language, at least some subset of Python, that allows to be embedded as Lua. But unlikely it will be implemented.
MT engine is written in C++? this means that someone, for example, could write a mod or subgame in Java and use a C++ wrapper (if wrappers do what i think they do) on the Java program so it could work with MT! if im correct, which i hope i am, having MT mods that are written in Java (with a C++ wrapper ofc) is possible!
Hey, what can i say? I'm the bad guy.

User avatar
Sergey
Member
Posts: 784
Joined: Wed Jan 11, 2017 13:28
Location: Russia

Re: Is writing minetest in Java possible?

by Sergey » Post

MT mods can be written in Lua only.

Listen, young boy. If you a fan of Java this is great. But do not try to apply your Java skills in every software around you.

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Is writing minetest in Java possible?

by sofar » Post

Everything is possible, it's not very sensible, though. It would be hard to explain it in a sentence why, though.

If you know java already, then lua is easy. Perhaps you should explain your fascination with java?

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: Is writing minetest in Java possible?

by Stix » Post

i actually am still learning Java and dont know it fully yet, the reason i wanted to code mt stuff in java is because i have already learned some of java, and would sound that continuing learning java instead of learn lua and java would mean i could learn more in one language (java) and therefore make better code, instead of slowly learning both at a time.
Hey, what can i say? I'm the bad guy.

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Is writing minetest in Java possible?

by sofar » Post

I would actually recommend learning LuA at the same time as Java. LuA is a tiny language that you could teach on the back of a napkin. Try it, I'd say. You'd be surprised how simple it is.

User avatar
Sergey
Member
Posts: 784
Joined: Wed Jan 11, 2017 13:28
Location: Russia

Re: Is writing minetest in Java possible?

by Sergey » Post

sofar wrote:LuA
Weird name

These simple tutorials of simple language Lua is enough to start programming.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Is writing minetest in Java possible?

by azekill_DIABLO » Post

Stix wrote:Hi, id like to know if its possible to make working mods and subgames written in Java.
You want to make minetest closer than minecraft or just make slower than windows XP on a nokia phone?
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Sergey
Member
Posts: 784
Joined: Wed Jan 11, 2017 13:28
Location: Russia

Re: Is writing minetest in Java possible?

by Sergey » Post

azekill_DIABLO wrote:
Stix wrote:Hi, id like to know if its possible to make working mods and subgames written in Java.
You want to make minetest closer than minecraft or just make slower than windows XP on a nokia phone?
By the way, Stix, do you know there is another free and open source Minecraft-like sandbox game written in Java? It's name is Terasology!

Slow as hell!

Their forum: http://forum.terasology.org. Maybe you should write there.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Is writing minetest in Java possible?

by azekill_DIABLO » Post

Sergey wrote:
azekill_DIABLO wrote:
Stix wrote:Hi, id like to know if its possible to make working mods and subgames written in Java.
You want to make minetest closer than minecraft or just make slower than windows XP on a nokia phone?
By the way, Stix, do you know there is another free and open source Minecraft-like sandbox game written in Java? It's name is Terasology!

Slow as hell!

Their forum: http://forum.terasology.org. Maybe you should write there.
you mean Teraslow-ogy
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: Is writing minetest in Java possible?

by Byakuren » Post

Yes you can, just write a JVM implementation in Lua.
Every time a mod API is left undocumented, a koala dies.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Is writing minetest in Java possible?

by azekill_DIABLO » Post

Byakuren wrote:Yes you can, just write a JVM implementation in Lua.
no. no. no. no. no. no. no. no. no. no. no. no. no. no. no. no. no. no. no. no.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Pointless

by Wuzzy » Post

Minetest is in C++. This is not going to change. Get freaking used to it! And learn how to code. :P

I can't stand these pointless “you have to use programming language X, then everything will be rainbows and unicorns” arguments. xD

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Is writing minetest in Java possible?

by azekill_DIABLO » Post

xD you mean nyan cats
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Andrey01
Member
Posts: 2577
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: Is writing minetest in Java possible?

by Andrey01 » Post

Sergey wrote:Relax. MT is written in C++. Nobody being sane will rewrite the code into Java.

What I would like to see in MT in future is the ability to write mods in Python, very convenient and powerful scripting language, at least some subset of Python, that allows to be embedded as Lua. But unlikely it will be implemented.
I agree quite with you. Python syntax is easier than Lua one even i think. Furthermore there are much more possibillities in Python.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Is writing minetest in Java possible?

by azekill_DIABLO » Post

I personnaly prefer Lua to Python... and changing the scripting language of minetest is not a good idea: it will break all mods.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Is writing minetest in Java possible?

by sofar » Post

Andrey01 wrote:
Sergey wrote:Relax. MT is written in C++. Nobody being sane will rewrite the code into Java.

What I would like to see in MT in future is the ability to write mods in Python, very convenient and powerful scripting language, at least some subset of Python, that allows to be embedded as Lua. But unlikely it will be implemented.
I agree quite with you. Python syntax is easier than Lua one even i think. Furthermore there are much more possibillities in Python.
nope, again, you're (1) misinformed and (2) it aint ever going to happen.

Python is 200mb+ of libraries and packages just to get started, so it's 4x the size of ALL of minetest to begin with. It also eats memory like it's an elephant with peanuts.

And second, everything python can do, you can do in Lua. In less memory. And probably faster.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Is writing minetest in Java possible?

by azekill_DIABLO » Post

Lua is the fastest scripting language. And LuaJIT is just insane. I agree with you sofar.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Post Reply

Who is online

Users browsing this forum: Irremann and 3 guests