WEREWOLF UNRELATED THREAD

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

HeilMewTwo

New Member
Jul 29, 2019
1,179
-45
0
I would kill for a clojure minecraft. As it would probably perform better than C++ mc because everything could be easily multithreaded
Again I'm not too sure what Clojure is capable of, but I seriously doubt it would be faster than C++, does it have direct access, support libraries and the ability to embed scripting for easier access later?
 

Strikingwolf

New Member
Jul 29, 2019
3,709
-26
1
does it have direct access
What do you mean by this? C++ goes through C and then through assembly and then to binary thus not direct access
support libraries
All Java libraries, and there is a good bit of clojure ones if I am correct
embed scripting for easier access later
yes

Also, it is easy to make multithreaded code in, and thus would be faster than C++ because multi-threaded almost always beats pure speed. And it being extremely easy the mojang team (hopefully) wouldn't mess it up
 

HeilMewTwo

New Member
Jul 29, 2019
1,179
-45
0
What do you mean by this? C++ goes through C and then through assembly and then to binary thus not direct access

All Java libraries, and there is a good bit of clojure ones if I am correct

yes

Also, it is easy to make multithreaded code in, and thus would be faster than C++ because multi-threaded almost always beats pure speed. And it being extremely easy the mojang team (hopefully) wouldn't mess it up
Direct access to the hardware. I seriously doubt that there would be as much support for Clojure as most gaming hardware and software is built to assume C++. And last time I checked Mojang has a track record of messing up multithreading. Anyway, isn't functional programming stunted for games as it is too high level for fast hardware control? I need to research this more but work has been getting in the way.
 

Strikingwolf

New Member
Jul 29, 2019
3,709
-26
1
Direct access to the hardware
No high-level programming language has this (yes C++ is considered high-level)
I seriously doubt that there would be as much support for Clojure as most gaming hardware and software is built to assume C++.
That's only consoles, which isn't MC's main platform
And last time I checked Mojang has a track record of messing up multithreading.
In Clojure almost all of the basic stuff is handled for you making it really easy (research it)
Anyway, isn't functional programming stunted for games as it is too high level for fast hardware control?
It isn't too high level at all. In fact all of computer science is based off the lambda calculus (equivalent to a turing machine). Which is a functional language
Wikipedia said:
Today, the lambda calculus has applications in many different areas in mathematics, philosophy,[2]linguistics,[3][4] and computer science. It is still used in the area of computability theory, although Turing machines are also an important model for computation. Lambda calculus has played an important role in the development of the theory of programming languages. Counterparts to lambda calculus in computer science are functional programming languages, which essentially implement the lambda calculus (augmented with some constants and datatypes)
I need to research this more but work has been getting in the way.
It is really interesting
Java will always be the language in my heart <3

I'm off.
There is so much wrong with that. In so many ways
Also, this
That garbage collection makes me cringe so badly though...
 

HeilMewTwo

New Member
Jul 29, 2019
1,179
-45
0
No high-level programming language has this (yes C++ is considered high-level)
But it has low level manipulation.
That's only consoles, which isn't MC's main platform
Check the sales numbers. Anyway, according to some quick searches, functional languages have some of java's problems as well, namely garbage collection which is a massive problem with minecraft.
 

Strikingwolf

New Member
Jul 29, 2019
3,709
-26
1
But it has low level manipulation.
True, but you can access C++ and C from Java and thus clojure, so for anything that needs to be very fast it can be implemented there
Check the sales numbers
True, I know a lot of people that play console
Anyway, according to some quick searches, functional languages have some of java's problems as well, namely garbage collection which is a massive problem with minecraft.
And you think letting the Mojang team manually manage their memory would be better?
I mostly learn this stuff from my professors but I really want to learn more about it, where do you get your sources?
Reading, getting interested in new languages and reading reviews and critiques. I would recommend looking at the talks about clojure by the creator of it (Rick something). It is really interesting
 

HeilMewTwo

New Member
Jul 29, 2019
1,179
-45
0
And you think letting the Mojang team manually manage their memory would be better?
All I know is they suck at writing optimised code in general. :/

It would be interesting to see people try and create a C++ and a functional based version, I don't think C++ would be too needed for vanilla, as Clojure really does seem to be able to handle it well, however modded is a different story.
 

Strikingwolf

New Member
Jul 29, 2019
3,709
-26
1
All I know is they suck at writing optimised code in general. :/
Yeah, and Clojure would make it relatively easy for them to do multi-threaded
It would be interesting to see people try and create a C++ and a functional based version
Functional would win out. Also
https://github.com/arcadia-unity/arcadia
We would have unity on our side
I don't think C++ would be too needed for vanilla, as Clojure really does seem to be able to handle it well, however modded is a different story.
Java works for modded. And Clojure would allow great multi-threaded. And then you think putting memory management in the hands of some mod devs would work well *laughs* Yeah definitely.
 

HeilMewTwo

New Member
Jul 29, 2019
1,179
-45
0
Functional would win out. Also
https://github.com/arcadia-unity/arcadia
We would have unity on our side
Again, the garbage collection problems that functional seems to have seriously makes me doubt that. Also everyone has unity on their side.
Java works for modded. And Clojure would allow great multi-threaded. And then you think putting memory management in the hands of some mod devs would work well *laughs* Yeah definitely.
Barely, with a different language, it would make it much possible to prevent so many goddamn performance issues. As for memory management, I would trust the equivalent of forge that comes out to handle it well.