Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

JavaScript Comes To Minecraft

samzenpus posted about a year ago | from the try-it-out dept.

Programming 149

mikejuk writes "JavaScript is the language of the client and it is becoming the language of the server. Now it seems set to be the language of Minecraft. ScriptCraft is a Minecraft mod that can be added to the game to allow the player to use JavaScript commands. Walter Higgins ported the Rhino JVM implementation of JavaScript in a few spare weeks over Xmas. Some additional JavaScript classes allow the construction of blocks making it possible to automate construction. It also provides a 'turtle like' drone class that makes it easier to move in 3D. It makes use of a fluent API to create a domain specific language for movement. As its creator says: 'Ultimately I think the ScriptCraft mod could be used to take building in Minecraft to a whole new level. With a full-blown language at the Player's disposal, it should be possible to create not just castles and forts but entire road networks and cities.' Most importantly of all, it not only pushes the boundary of Minecraft, it also provides a way to get kids who are already hooked on Minecraft to start learning JavaScript."

cancel ×

149 comments

Sorry! There are no comments related to the filter you selected.

Java IS NOT JavaScript, you morons! (-1, Offtopic)

Anonymous Coward | about a year ago | (#42649981)

Jeeez! Title says it all!

Re:Java IS NOT JavaScript, you morons! (4, Informative)

The MAZZTer (911996) | about a year ago | (#42650003)

RTFS. Just because Java and JavaScript appear in the same paragraph doesn't mean someone is equating the two. This is a JavaScript engine coded in Java, hooked up to Minecraft.

Re:Java IS NOT JavaScript, you morons! (2)

Zmobie (2478450) | about a year ago | (#42650185)

RTFS. Just because Java and JavaScript appear in the same paragraph doesn't mean someone is equating the two. This is a JavaScript engine coded in Java, hooked up to Minecraft.

Couldn't have said it better myself. It boggles the mind how many don't realize languages can target different run time instances and that *gasp* compilers sometimes are just layered language implementations. One of my college professors wrote a prolog compiler entirely in Java that was a very good compiler actually. Hell if one were so inclined, they could write a C# application that targets a JVM instead of the .NET framework.

Re:Java IS NOT JavaScript, you morons! (-1)

Anonymous Coward | about a year ago | (#42650257)

FTFS: JavaScript is the language of the client and it is becoming the language of the server.
The client is written in Java not JS, FFS!

Re:Java IS NOT JavaScript, you morons! (1)

SJHillman (1966756) | about a year ago | (#42650309)

I believe they were referring to the fact that JavaScript is executed on the client and this usage of it is moving it to the server-side... not that the client is written in JavaScript. Go drink some coffee and turn your brain on.

Re:Java IS NOT JavaScript, you morons! (2, Informative)

Anonymous Coward | about a year ago | (#42650485)

"JavaScript is the language of the client and it is becoming the language of the server. Now it seems set to be the language of Minecraft."

translated : "Javascript is a language that is often used in client side programs, and increasingly is used in server side applications. And soon it may also be usable within minecraft." Hell the second sentence makes it pretty clear that the first sentence isn't even talking about minecraft.

Re:Java IS NOT JavaScript, you morons! (0)

Anonymous Coward | about a year ago | (#42650173)

Read the article you fucking moron.

Re:Java IS NOT JavaScript, you morons! (0)

Anonymous Coward | about a year ago | (#42650539)

Please disarm some of those hair-trigger hang-ups (java != javascript!!!11) you have acquired. Indulging that stuff is bad for you and drives people away; a consequence you may not yet understand to be bad.

Re:Java IS NOT JavaScript, you morons! (1)

meerling (1487879) | about a year ago | (#42650779)

Javascript was originally named livescript, but with the sudden and powerful popularity of java, they changed the name to apparently capitalize on the trend.

Re:Java IS NOT JavaScript, you morons! (-1)

Anonymous Coward | about a year ago | (#42651279)

Fucking moron

Re:Java IS NOT JavaScript, you morons! (-1)

Anonymous Coward | about a year and a half ago | (#42652881)

javascript is cunt

WorldEdit did it first... (0)

Anonymous Coward | about a year ago | (#42649999)

Pretty sure it had the feature of modifying the world using javascript.

Re:WorldEdit did it first... (2)

Nexus Unplugged (2495076) | about a year and a half ago | (#42652409)

That would be CraftScript, which yes, has been around for quite a while. It also uses Rhino.

Nerd antennae went up (5, Funny)

iluvcapra (782887) | about a year ago | (#42650075)

I saw the headline and half expected that someone had in fact implemented a Javascript interpreter with MineCraft.

Re:Nerd antennae went up (1)

BlindMaster (2262842) | about a year ago | (#42650145)

Same, I was so excited to see a JavaScript version of MineCraft. Thought it would be HTML5, and wonder how the memory and graphic would support it. However, it is more for automation or command line usage, using script command to create blocks.

Re:Nerd antennae went up (2)

HaZardman27 (1521119) | about a year ago | (#42650501)

I think GP was saying he expected to see a Javascript implementation created within Minecraft using redstone circuits (there are folks who have created working CPUs using redstone circuits).

Re:Nerd antennae went up (4, Funny)

vlm (69642) | about a year ago | (#42650577)

I'd much rather see a java implementation using lots and lots of redstone. Then you could theoretically run minecraft on minecraft in infinite regression. This could cause the end of the world so I'd be careful.

Re:Nerd antennae went up (0)

Anonymous Coward | about a year ago | (#42651151)

That's not the end of the world. It's the beginning.

Re:Nerd antennae went up (1)

DMUTPeregrine (612791) | about a year and a half ago | (#42652995)

It's theoretically possible, but you'd have to mod minecraft to allow more than a 21x21 chunk area to be loaded at once, otherwise the computer won't have enough space to have enough memory.

Re:Nerd antennae went up (0)

Anonymous Coward | about a year ago | (#42651609)

You may want to have a look at voxel.js
http://voxeljs.com/

Re:Nerd antennae went up (4, Funny)

Fallingcow (213461) | about a year ago | (#42650217)

Javascript running via a 3D world written in Java would have a Lovecraftian madness-inducing quality. You'd take one look at it and start bleeding from the eyes while producing an inhuman scream, before vomiting up most of your internal organs.

I mean, either of those things (Javascript, or a 3D world written in Java) are capable of getting you half way there all on their own. Both cannot exist, yet they do. Even thinking of the two being combined is enough to PH'NGLUI MGLW'NAFH CTHULHU R'LYEH WGAH'NAGL FHTAGN **carrier lost**

Re:Nerd antennae went up (4, Funny)

Bigbutt (65939) | about a year ago | (#42650785)

"How did he type **carrier lost**"

"Perhaps he was dictating it."
"Shut-up"

[John]

Re:Nerd antennae went up (4, Insightful)

Fallingcow (213461) | about a year ago | (#42650931)

I didn't intend it that way but it kind of works, since Lovecraft did that kind of shit all the time.

"The end is near. I hear a noise at the door, as of some immense slippery body lumbering against it. It shall not find me. God, that hand! The window! The window!"

Maybe if he weren't taking the time to write "The window! The window!" his odds of escaping would improve.

Re:Nerd antennae went up (1)

Minwee (522556) | about a year ago | (#42650247)

No, that kind of thing only works in Dwarf Fortress.

The problem is that those damn Elephants keep stepping on the infinite strip of tape and ruining my Turing Megaproject.

Re:Nerd antennae went up (0)

Anonymous Coward | about a year ago | (#42650403)

Both games can be used to build turing machines (discounting for the infinite tape here)

You can do this in Java already? (4, Interesting)

shaitand (626655) | about a year ago | (#42650129)

You can already do all this in Java. What is the benefit of exposing players to the wonder of javascript via minecraft vs exposing them to the wonders of java via minecraft? Either one is a POS.

I wish someone would do a C rewrite. People make excuses about the fully manipulable world and such but the reality is that there is nothing going on in minecraft that would make it tax a Pentium 3 without no gpu offloading had it been authored well in a decent language.

Don't get me wrong it's a great game and fun to play. The implementation just leaves a lot to be desired. Buggy as hell too but you can't blame that on the language!

Re:You can do this in Java already? (0)

Anonymous Coward | about a year ago | (#42650249)

You can already do all this in Java. What is the benefit of exposing players to the wonder of javascript via minecraft vs exposing them to the wonders of java via minecraft?

Well, for one thing, you can type Javascript statements into an interactive command line within the Minecraft game itself, which you can't do with Java.

Re:You can do this in Java already? (-1)

Anonymous Coward | about a year ago | (#42650441)

Apparently you've never used Java's compiler API.... Maybe not as simple as Javascript, but it can be done

Re:You can do this in Java already? (1)

BenoitRen (998927) | about a year ago | (#42650343)

I don't like Java either, but don't hate on the JavaScript, please. It's running my MSN client on a Pentium II smoothly!

Re:You can do this in Java already? (4, Interesting)

timeOday (582209) | about a year ago | (#42650347)

I'm delighted that Minecraft is in Java because my son plays it all the time, it's more constructive than other games, and it also happens to be just about the ONLY game that will run on our computer, because it's Linux. (Well, flash web games work too, and Club Penguin had a healthy run at our place... but I doubt Flash is what you are advocating).

OK, I realize there has been some variety of games over the years which were released for Linux like quake 3. But as for games on Linux that are actually currently popular, and which people playing on different OS can link up and talk to each other, there are extremely few.

Re:You can do this in Java already? (2, Informative)

CastrTroy (595695) | about a year ago | (#42650435)

There's nothing inherently special about Java that makes it able to run games on Windows/Linux any more than C/C++. If the programmers set out to make a program that will run on both, it will run on both. If they just assume it will work on Linux, or have no intention of it running on Linux, then it doesn't matter if it's written in Java, C or .Net, it won't run on Linux.

Re:You can do this in Java already? (1)

HaZardman27 (1521119) | about a year ago | (#42650537)

This. If you decompile the Java bytecode in Minecraft, you will see that it uses lwjgl (LightWeight Java Game Library) which uses JNI (Java Native Interface) to get access to native OpenGL objects. There's no reason why this couldn't have been done in a natively compiled language, except that Notch started Minecraft as a quick project.

Re:You can do this in Java already? (0)

Anonymous Coward | about a year ago | (#42650611)

Umm.... That doesn't count for much when you need to compile it for Linux, and developers generally don't. If it's written in Java, the developer often doesn't need to even care - and it's the users choice where they run it.

Re:You can do this in Java already? (1)

CastrTroy (595695) | about a year ago | (#42650853)

Wrong. If the developer does not design/test the game on Linux, it won't run on Linux. Well, it might run on Linux but odds are it probably won't. You'd probably have better luck writing a game in C for Windows, and relying on WINE for people who want to run it in Linux.

Re:You can do this in Java already? (4, Informative)

Zmobie (2478450) | about a year ago | (#42651773)

No, not in this case. You must not be very familiar with java and its runtime. Java is DESIGNED to be extremely portable and is in fact one of the biggest reasons it was able to rise up and compete with C++ originally. I have ported many programs in java from a Windows Eclipse environment to a Linux native compiler and both of them produce virtually the same files, the compiled files actually ran on both environments without a recompile pretty much every time that I remember.

C++ on the other had can be a BEAST to try and port even trivial programs between Windows and Linux, and in my early college days proved to be a pain in the ass because we standardized all of our programs compilations to the gcc and g++ Linux compilers while I was used to doing a lot of my coding using either Borland or Visual Studios on a Windows machine (Visual Studios has its own weird flavors as it is, but even more generic compilers had nasty results).

Re:You can do this in Java already? (0)

Anonymous Coward | about a year ago | (#42652263)

You'd probably have better luck writing a game in C for Windows, and relying on WINE

You're an idiot.

Re:You can do this in Java already? (5, Interesting)

Pieroxy (222434) | about a year ago | (#42650695)

There's nothing inherently special about Java that makes it able to run games on Windows/Linux any more than C/C++.

Holy fucking Jesus Christ, you haven't learned much in all that time have you? There is a hell of a lot more in Java. I once saw a (server-side) project of about 100k classes go from Java 1.3 32bit on Windows to Java 1.4 64bit on Solaris without even needing a recompilation. The stuff just worked.

This is miles and miles away from what it would have meant in C or C++, and you know it. Of course, C and/or C++ done properly can achieve something that is portable, but at least your most common data type doesn't change whenever you change the number of fucking bits in your CPU. Not mentioning the stability of the APIs whenever you want to do anything vaguely more complex than fopen.

Re:You can do this in Java already? (2)

mark-t (151149) | about a year ago | (#42650901)

This.

It's not that it's impossible to write nonportable java, it's just that what's interesting about Java, particularly when you compare it to C or C++, is that you get that portability with practically zero extra effort.

Java is not unique in this regard... although to the best of my knowledge, most of the other languages that achieve the goal are script-based.

Re:You can do this in Java already? (0)

Anonymous Coward | about a year ago | (#42652365)

C and C++ can both be compiled for the JVM.

Re:You can do this in Java already? (1)

H0p313ss (811249) | about a year and a half ago | (#42653419)

C and C++ can both be compiled for the JVM.

Yes, but I hear it makes you go blind.

Re:You can do this in Java already? (1)

Mike Frett (2811077) | about a year ago | (#42651139)

Without knowing your Computers Specs, please allow me to name a few popular games that run on Linux if you let me?. Of course you should know about Steam and the Humble Bundles I presume?. Here are a few from the Ubuntu software center, even though I use Xubuntu, which is an OFFICIAL version along with Kubuntu and Lubuntu.

Space Pirates and Zombies, RC Mini Racers, Torchlight, Oil Rush, 0 A.D., Heroes of Newerth, Spring RTS Engine (Many games!). Those are current and popular but there are Thousands more older and fun games; why limit yourself to only new things. Everything is there if you look for it, trust me I've been looking for a year in every nook and cranny. And lots more on the way =)

Re:You can do this in Java already? (2)

cwebster (100824) | about a year and a half ago | (#42652499)

Get Play On Linux http://www.playonlinux.com/en/ [playonlinux.com] , (your distro might distribute it). It comes with user contributed install scripts for a variety of games (from CD/DVDs, GoG, Steam, etc), which will download the version of wine with the best compatibility / least regressions for a particular title, install needed runtimes, do all the winetricks magic needed and install the games. I've installed a few old GoG games and some newer ones. I'm playing Skyrim through PoL now and it runs (with DLC, high rest textures, and a handful of mods) just fine. Give it a shot, even if you dont have a GPU that will run the highest end games, you can get most of the classics through GoG and install/play them with PoL.

Re:You can do this in Java already? (1)

Anonymous Coward | about a year ago | (#42650509)

The problem is that Notch is an absolutely terrible programmer. It's not Java, it's the actual code, and you can find out as much by analyzing it.

Re:You can do this in Java already? (0)

shaitand (626655) | about a year ago | (#42651133)

I'm sure Notch is but crap C is faster (and more efficient) than crap Java just like good C is faster than good Java, though crap C isn't necessarily faster than good Java (but sometimes is, Java is that bad).

Re:You can do this in Java already? (1)

Zmobie (2478450) | about a year ago | (#42651823)

C is also much more prone to fucked up pointer arithmetic and memory leaks. It is honestly probably better that it is written in Java if Notch is a bad programmer because at least you have a managed language so that the game doesn't constantly crash from some memory issue.

I will agree with you that normal performance yes, C absolutely wrecks Java, but good Java is at least decent considering it is a managed language. Hell, if someone were so inclined they can try to force some mock memory management by forcing garbage collection at critical times, but that gets kind of dangerous if overused because then you just kill performance even worse.

Re:You can do this in Java already? (1)

shaitand (626655) | about a year and a half ago | (#42652407)

The clear answer is for someone who isn't as shitty a programmer (maybe a student learning games programming in C or C++) to write a minecraft clone and open source it. Should be a fun project for someone with the time. Replicate the login interface so you still need to own the game to use it. Someone will write a bypass but you can do that already.

Re:You can do this in Java already? (1)

znrt (2424692) | about a year and a half ago | (#42652609)

the problem with minecraft is not that it is slow, but a resource hog, both on the client and the server. i haven't looked at the code, but this and the fact that a whole team hasn't been able in a couple of years to fix this points more at a deficient design than at a poor implementation. if the problem is the architecture, language differences matter a lot less.

that said, adding js to it is way cool, but ... rhino! oh my ...

Re:You can do this in Java already? (1)

jones_supa (887896) | about a year ago | (#42650525)

I wish someone would do a C rewrite. People make excuses about the fully manipulable world and such but the reality is that there is nothing going on in minecraft that would make it tax a Pentium 3 without no gpu offloading had it been authored well in a decent language.

Even though it looks like just a blocky retro game, remember it's a completely dynamic world. There's a good amount of surfaces to draw and each block's state must be checked and maintained as they can be freely manipulated. Possibly a P3/1000MHz could just cut it though... I completely agree though that a C or, more likely C++ rewrite would be much appreciated.

Re:You can do this in Java already? (1)

Bengie (1121981) | about a year ago | (#42650783)

What I don't understand is how my CPU can be nearly idle running a server, while the server gets slow with too many things going on at once.

If a CPU is idle, the server should not be getting bogged down.

Re:You can do this in Java already? (0)

Anonymous Coward | about a year ago | (#42651073)

Word's are hard for you, aren't they?

Re:You can do this in Java already? (1)

Vintermann (400722) | about a year ago | (#42651331)

That just means the CPU isn't the bottleneck. I don't know the details of how "real" minecraft servers are set up, but in general minecraft writes a lot of stuff to disk (since worlds get so big, and Java needs that memory for other things as well, it more or less has to).

Re:You can do this in Java already? (1)

Zmobie (2478450) | about a year ago | (#42651865)

Could be a number of things. Improper threading springs to mind immediately as many applications in the vein of how minecraft was developed do not use multi-thread expansion correctly. Over-use of memory is another considering how vast the spaces in minecraft are there may be some required disk writes server side and even if the implementation uses B-Trees and proper spanning those kinds of operations are extremely costly moving it from disk to active RAM and vice-versa. Without looking at the code or observing the game more closely (my nephew plays it a lot, but I honestly haven't looked into that much of it) I'm just throwing out initial impressions.

Re:You can do this in Java already? (0)

Anonymous Coward | about a year ago | (#42650791)

Blah blah blah, archaic language, blah blah blah, if only developers were perfect... Christ this is getting old. You C/C++ fogies sure are a crotchety bunch.

Look - the world moved on. So sorry you haven't yet. But we're *not* going to get off your lawn so just deal with it gramps. Maybe you can go yell at the COBOL guys for a while...

Re:You can do this in Java already? (1)

jones_supa (887896) | about a year ago | (#42651009)

It's not that much about doing things in some traditional way but rather the speed difference between native and managed languages.

Re:You can do this in Java already? (1)

aztracker1 (702135) | about a year ago | (#42651919)

And what is the speed advantage compared to extra development effort? Is 2-3x the effort with 5-10% performance advantage? What about increased chances of bugs, complexity, maintenance costs?

Re:You can do this in Java already? (0)

Vintermann (400722) | about a year ago | (#42651287)

They HAVE done a C rewrite. The mobile version definitively, and I think the XBox version as well. Go ahead and join their superiority - and perhaps reflect on the fact that there are tradeoffs to the potential efficiency gains of a rewrite.

They have it backwards... (2)

Zontar The Mindless (9002) | about a year ago | (#42650153)

Most importantly of all, it not only pushes the boundary of Minecraft it also provides a way to get kids who are already hooked on Minecraft to start learning JavaScript

No, most importantly for my kid, it has the potential to get a highly JS-capable dad interested in Minecraft (a diversion he has hitherto managed to avoid).

However, whether this be a good thing or a bad one is a matter that's entirely up for debate. :)

Re:They have it backwards... (0)

Anonymous Coward | about a year ago | (#42650281)

Thats boring.

There actually is a mod that includes fully functional 6502 computers.
While they do come with a basic operating system and Forth you could get your kids to write their own process schedulers and operating systems in assembly :P

http://integratedredstone.wikispaces.com/Redpower+Control

No thanks (-1)

Anonymous Coward | about a year ago | (#42650225)

it also provides a way to get kids who are already hooked on Minecraft to start learning JavaScript

Just what we need. More retarded programmers flooding the market with their brain damage.

Re:No thanks (1)

HaZardman27 (1521119) | about a year ago | (#42650559)

A kid who learns JavaScript will very much be able to learn compiled languages later on in life if he/she so chooses. You don't have to have been born in the 1960s to become a competent programmer.

Why wont JS just go away (1)

cod3r_ (2031620) | about a year ago | (#42650231)

Maybe it's just me, but there are so many elegant languages they could have gone with. Maybe a JS engine is easy to implement, but the thought of even using it just makes me shiver. It's a recurring problem though. Unity has JS like language too and people are dead set on using it. Oh well. Better that python i guess.

Re:Why wont JS just go away (1)

Elgonn (921934) | about a year ago | (#42650325)

Until every browser supports LUA I'm not sure how you'd get Javascript to go away. There are very few (non-primary/embedded) scriptable engine languages. Besides with all the recent development Javascript is probably the best one.

Lua support... (1)

Isaac Remuant (1891806) | about a year ago | (#42650685)

I don't think there's much hope of that considering the huge similarities with python and considerable disparity in library availability and popularity. I'm not sure there's much awareness of it outside the gaming development community.

Re:Why wont JS just go away (1)

Vintermann (400722) | about a year ago | (#42651341)

Apropos Lua... this isn't the first pl-in-a-block mod. Lua was first.

(It also isn't an acronym, and we are past the day when all programming languages were named in ALL CAPS).

Re:Why wont JS just go away (2)

jones_supa (887896) | about a year ago | (#42650337)

Why better than Python?

Re:Why wont JS just go away (3, Informative)

vlm (69642) | about a year ago | (#42650411)

Does python still use whitespace as part of control flow structures? Ugh. I don't want to be the guy who posts the equivalent of "mysql doesn't have transactions" over and over in 2013, but I can't be bothered to keep up with a language I don't use, either.

It is however a fact that Python at least USED TO BE in a really bad neighborhood, sandwiched in between COBOL and FORTRAN in the "compiler really cares a lot about whitespace" ghetto, even if they've fixed it since then. I'd rather write a million parenthesis in LISP.

Re:Why wont JS just go away (4, Funny)

larry bagina (561269) | about a year ago | (#42650477)

Haven't fixed it, won't fix it.

>>> from __future__ import braces
File "", line 1
SyntaxError: not a chance

Re:Why wont JS just go away (1)

Isaac Remuant (1891806) | about a year ago | (#42650815)

It's a feature, not a bug.

I'm sure the parent poster will hate Go as well but I feel this language design decisions ultimately do much more good than harm.

Re:Why wont JS just go away (1)

rk (6314) | about a year ago | (#42650543)

Yes, python does still use the "whitespace thing" and no it's not that big a deal, and until I learned Python 12 years ago, I felt as you did. There are good reasons why as programmers we have almost genetic revulsion at syntactically or semantically significant whitespace, but python enforces with whitespace pretty much what as a good programmer you're doing anyway, which is consistently indenting your code. Most people don't even notice it after an hour, your editor will do it for you, and in my case, at least, it made me a better programmer in other languages because I cared more about proper indenting after learning it.

Comparing it to the fixed column parts of COBOL, FORTRAN and RPG would be vaguely akin to saying that JavaScript and C are the same because you use semicolons to terminate code lines. The ONLY thing python really has in common with those early languages is whitespace. The reasons for the whitespace are completely different.

Re:Why wont JS just go away (0)

Anonymous Coward | about a year ago | (#42650661)

Yeah, my editor (emacs) will do it fine for me (spaces only). I just can't get over how, whenever I want to modify anybody else's code (who uses tabs, and clearly sets them to a value I don't), I have to mash C-q C-I to keep my code in line with theirs, or else risking the guy who submits a reformatting patch. I don't mind having to tiptoe around other people's styles for submitting patches, but I do mind having to tiptoe around other people's styles to get the program to run.

Re:Why wont JS just go away (1)

dririan (1131339) | about a year ago | (#42651247)

Your emacs configuration doesn't let you match other people's coding styles easily, so you blame the language? Sure, Python does require more consistency than most other languages, but if you "don't mind having to tiptoe around other people's styles for submitting patches", how on Earth do you format your code like the existing code if your editor is so broken?

Re:Why wont JS just go away (0)

Anonymous Coward | about a year ago | (#42650845)

but python enforces with whitespace pretty much what as a good programmer you're doing anyway, which is consistently indenting your code.

Eh? I haven't done that in years. IDE does it for me. Why would I care about doing that?

Re:Why wont JS just go away (1)

caseih (160668) | about a year ago | (#42650571)

Ha well you can keep lisp then. Python I'm a white space ghetto? To funny.

I found Eric s Raymond's take on python very interesting. He started out with your attitude but very quickly changed his mind once he actually started using it. Look it up. It's worth a read.

I've used both lisp and python. There's no comparison. Python is easy nicer. But it has a lot of lisp like features that make it a real pleasure to use. I'd prefer python over JavaScript any day. I was very sad the epiphany browser abandoned python as s plugin language in favor of JavaScript which didn't even have decent gtk bindings at the time. Ah well.

Re:Why wont JS just go away (2)

HaZardman27 (1521119) | about a year ago | (#42650599)

If that's the only thing you can find wrong with Python, then I think that speaks much more good about the language than bad. When I first started playing with Python, I got tripped up a few times about inconsistent use of tabs vs spaces, but I have vim configured to take care of that for me now. Even if I want something fast or low-level, I will typically compile a shared object file for some C code, and then wrap it up in Python with Python's ctypes API. This gives me a good trade-off of the performance and predictability of compiled C and the ease-of-use of Python for more trivial code.

Re:Why wont JS just go away (1)

am 2k (217885) | about a year ago | (#42650593)

Unity has JS like language too and people are dead set on using it.

In my experience, everyone who's serious about game programming in Unity3D uses C# anyways.

Re:Why wont JS just go away (1)

Jaxim (858185) | about a year ago | (#42650955)

Don't worry. You're not alone. I wish JavaScript would either mature or be replaced by another language: i.e. Google's DART.

The problem is that there is a huge crowd of developers who know JavaScript and like anyone in the human race, they don't like change and would like to see the status quo.

Re:Why wont JS just go away (1)

aztracker1 (702135) | about a year ago | (#42651963)

So use an intermediate language like CoffeeScript.

Re:Why wont JS just go away (1)

Jaxim (858185) | about a year and a half ago | (#42652721)

I wouldn't be able to convince my manager to such intermediate languages. No, not until such things get more popular with JavaScript developers and managers.

Please don't insult Python (0)

Anonymous Coward | about a year ago | (#42650961)

Python is a decent scripting language, please don't call it inferior to the abomination that is Javascript.

Re:Please don't insult Python (1)

cod3r_ (2031620) | about a year ago | (#42651097)

Sorry. I just love curly braces, semi colons, and liberal use of white space as i see fit =) But I realize now I made a big mistake. Python is way better than JS what was I even thinking.

Re:Please don't insult Python (0)

Anonymous Coward | about a year ago | (#42651541)

Python is a decent scripting language, please don't call it inferior to the abomination that is Javascript.

PHP is a decent scripting language, please don't call it inferior to the abomination that is Python.

Re:Why wont JS just go away (1)

pjt33 (739471) | about a year ago | (#42652369)

It's not just that a JS engine is easy to implement: it's that it comes as standard as part of Java (since Java 6).

Nothing New (0)

Anonymous Coward | about a year ago | (#42650289)

The Rhino engine has been part an optional extension of the very popular WorldEdit mod for ages. This isn't anything new.

xbox360 port (2)

vlm (69642) | about a year ago | (#42650361)

I would imagine this will primarily serve to ostracize the xbox port even further away from mainstream minecrafting.

Re:xbox360 port (1)

HaZardman27 (1521119) | about a year ago | (#42650625)

No more than any other mod which is only available for Minecraft on PC (which I assume is all of them, but I've never played the Xbox version).

I am amused (5, Interesting)

Windwraith (932426) | about a year ago | (#42650465)

I find it amusing that this is news but what about LuaForge [github.com] ? It allows you to do Minecraft stuff in Lua, a language that can't be easier to learn, and is also pretty fast out of the box.

sounds like an earlier thread... (1)

QuietLagoon (813062) | about a year ago | (#42650467)

kids who are already hooked

Sounds like the earlier thread about a guy who wanted to get his wife hooked on (a.k.a., addicted to) video games just as he was....

New Version of JavaScript Needed! (2)

Jaxim (858185) | about a year ago | (#42650633)

I feel sorry for the Minecraft developers. Have fun with a language that doesn't have a class object system like every other modern mature computer language which makes working in a team environment so much easier.

While we're at it, why don't we introduce PERL to minecraft?

HTML was upgraded to HTML5 and CSS was upgraded to CSS3. Why can't JavaScript be upgraded so it is more in line with modern languages? If that could happen then Google could give up on developing their new DART language which is designed to replace JavaScript.

Re:New Version of JavaScript Needed! (0)

Anonymous Coward | about a year ago | (#42650975)

Seriously!

Exposing types within the language (including function types), forcing type-correct compilation, and coming up with some kind of bytecode (or similar) intermediary language would go a huge distance to making large software implementable in JS.

Unfortunately, I doubt we will ever see it and DART is probably the most likely solution (and it seems to more-or-less accomplish these goals).

Re:New Version of JavaScript Needed! (1)

aztracker1 (702135) | about a year ago | (#42651985)

See TypeScript, CoffeeScript and other trans-compiled to JS options...

This is old hat (1)

Brendan Robert (2820681) | about a year ago | (#42650771)

I don't see how someone reinventing the wheel should get /. coverage. WorldEdit, a very popular plugin, already has javascript integration. Also, check out GroovyBukkit for groovy integration that is incredibly easy to use. I did one-liners in Groovy to, say, lay rail tracks wherever you're standing if you are holding a rail in your hands -- that way you just walk and the tracks follow you. I have a 100-line bot named "David" (named after the Prometheus character) which helps non-op people obtain things without having to bug me all the time -- it's basically a switch statement and a lot of regex. Anyway, back to the point: It is extremely trivial to write a minecraft mod if you know how to code already. Writing a mod that is actually useful and doesn't crash the server -- that's another story. My only advice is to learn how to manage threads (so that uncaught exceptions don't crash the main server thread) and write watchdogs into your code to avoid infinite loops. :-D -B

Please no! (1)

mog007 (677810) | about a year ago | (#42651067)

provides a way to get kids who are already hooked on Minecraft to start learning JavaScript

Won't somebody PLEASE think of the children and stop this madness?!

Hardly revolutionary (4, Informative)

Mercano (826132) | about a year ago | (#42651113)

Not sure how this is a groundbreaking achievement. ComputerCraft [computercraft.info] already provides a LUA interpreter and turtles, and has a lot more documentation. There's also RedPower's [eloraam.com] Control module [wikispaces.com] , that gives you an emulated 6502-based 8 bit computer. A FORTH boot disk can be crafted in-game, or you can edit your save files to bring in either an BASIC boot disk or your own assembler code. (Previous /.coverage of the 6502 emulator blocks [slashdot.org] )

Re:Hardly revolutionary (0)

Vintermann (400722) | about a year ago | (#42651367)

This isn't 1962! We don't write programming languages in all caps just because they're programming languages.

Re:Hardly revolutionary (0)

Anonymous Coward | about a year ago | (#42651421)

Hence Lua.

I like me some Python (1)

allcoolnameswheretak (1102727) | about a year ago | (#42651227)

I wish he had chosen Jython. But then again, if he implemented it "the right way" using the Java scripting engine, Jython should be pluggable in no time.

oh boy (0)

Anonymous Coward | about a year ago | (#42651413)

Just one more thing in minecraft to keep kids addicted to the computer instead of going out and getting fresh air.

So incredibly sad (0)

Anonymous Coward | about a year ago | (#42651603)

that he picked javascript, the scum at the bottom of the barrel.

While he was scraping up that muck and ladling it out, couldn't he have taken a glance at some of the GOOD languages out there?

Or use the source (1)

Cammi (1956130) | about a year and a half ago | (#42652757)

Or .. you could be a programmer and use Minecraft's source code that Mojang distributes with every release.
Load More Comments
Slashdot Login

Need an Account?

Forgot your password?