News for hackers. Stuff that matters.
Re:Greatest Java apps by akavi on Monday June 29, 2020 @09:49AM (#23677547)
I've heard that the relative ease of decompiling Java might have contributed significantly, since it made mods much easier than they would've been with C/C++.
Re:Greatest Java apps by hoseja on Monday June 29, 2020 @10:03AM (#23677699)
Yeah, the game is almost source-available, thus almost infinitely moddable. Games that provide neat modding APIs (thinking Factorio, Rimworld) are, while commendable, inherently limited. If Minecraft were C++ you'd have to be able to recompile it yourself for equivalent moddability.
Re:Greatest Java apps by 7786655 on Monday June 29, 2020 @05:57PM (#23683701)
Minecraft isn't source available, it's just that people in the community have put a ton of effort into decompiling and deobfuscating it. Granted, this probably wouldn't have been possible if it were written in C++.

(At least, this was how it was pre-Microsoft. I haven't followed it since then.)

Re:Greatest Java apps by blackrock on Monday June 29, 2020 @05:05PM (#23683051)
Could Minecraft have succeeded if it had a sub-level scripting language, like Lisp? The way that AutoCad uses it for its sub programming. Or the way Emacs uses Lisp for macro programming.

Or did it need the full Java source code to re-mod the program?

Re:Greatest Java apps by smabie on Monday June 29, 2020 @09:50PM (#23685668)
AutoCad and Emacs aren't really comparable in their use of Lisp. Emacs is essentially an Elisp interpreter with some features for buffer management, while AutoCad just uses Lisp as a traditional scripting toolkit. Emacs is built with Elisp, AutoCad is not.
Re:Greatest Java apps by lispm on Tuesday June 30, 2020 @05:37AM (#23688317)
The C code in GNU Emacs does a bit more than implementing a 'Lisp interpreter'.

https://github.com/emacs-mirror/emacs/tree/master/src

Quite a bit of the actual GNU Emacs application is using libraries written in C. See for example the font code.

https://github.com/emacs-mirror/emacs/blob/master/src/font.c

This is different from some other Lisp systems, where only the base language runtime contains some C and/or assembler, and the actual application is mostly written in Lisp using an FFI (foreign function interface) for library calls. For example the GUI of Clozure CL is written in Lisp using an Objective C bridge, and not directly in Objective C and then called from Lisp.

Thus Emacs Lisp is also somewhere in a continuum of implementation and extension language - using C not only for the Emacs Lisp language runtime, but also for basic application implementation...

Re:Greatest Java apps by Eldt on Monday June 29, 2020 @09:53AM (#23677594)
I'm confident the community driven modding contributed to Minecraft's success in a massive way.