News for hackers. Stuff that matters.
Re:Jshell: The Java Shell (REPL) by anon3_ on Sunday July 05, 2015 @04:59AM (#9832980)
This is big news. Java should have had this one from the start.

My question is, what took so long? What prevented it?

Re:Jshell: The Java Shell (REPL) by andor on Sunday July 05, 2015 @05:29AM (#9833026)
I'd say that Java's verbosity doesn't lend itself well to interactive use. There are quite a few REPLs that allow calling Java code from another language, e.g. the integrated Javascript interpreters (run `jjs` in a terminal), BeanShell, Jython, JRuby, etc.
Re:Jshell: The Java Shell (REPL) by Elrac on Sunday July 05, 2015 @05:50AM (#9833061)
Don't forget Groovy! It's expressly built to bring "dynamic feeling" to Java.
Re:Jshell: The Java Shell (REPL) by olavgg on Sunday July 05, 2015 @08:23AM (#9833302)
And don't forget that Java can call Groovy code ;-)
Re:Jshell: The Java Shell (REPL) by istvan__ on Sunday July 05, 2015 @05:18AM (#9833005)
The lack of interest. If you haven't used a language that has a REPL you don't know how powerful it is. Most of the Java devs I know haven't used REPL with any other language.
Re:Jshell: The Java Shell (REPL) by LoSboccacc on Sunday July 05, 2015 @07:26AM (#9833199)
Beanshell was there since 1999
Re:Jshell: The Java Shell (REPL) by sam_lowry_ on Sunday July 05, 2015 @11:29AM (#9833830)
Yes, finally someone remembered it!

Reinventing the wheel is so human...

Re:Jshell: The Java Shell (REPL) by LoSboccacc on Monday July 06, 2015 @08:21AM (#9838545)
I know right? But if you say groovy and the like are just respin of age old stuff they treat you like an old fart

And to think that when I advocated for writing business logic in a scripted language in 2003 everyone was looking at me like I was crazy (well italy is always quite behind last trends, so while in the states they were starting with scripting languages we were still writing ejb with xml - and we still do in many places)

Re:Jshell: The Java Shell (REPL) by ayanamist on Sunday July 05, 2015 @05:25AM (#9833016)
In fact, JavaREPL (http://www.javarepl.com/) with its standalone version exists for very long time.
Re:Jshell: The Java Shell (REPL) by aurora72 on Sunday July 05, 2015 @07:24AM (#9833194)
Several months ago I wanted to have an REPL for C and couldn't find anything satisfactory and I had the similar thought: Why weren't there any decent REPL for C ?
Re:Jshell: The Java Shell (REPL) by zak_mc_kracken on Sunday July 05, 2015 @11:30AM (#9833833)
All Java IDE's have offered an interactive shell for years so there is little need for a REPL. It's just a nice thing to have but nothing more.
Re:Jshell: The Java Shell (REPL) by copperx on Sunday July 05, 2015 @11:19AM (#9833803)
This is nothing new. When I was at uni (10+ years ago), we used DrJava, which includes a Java REPL.