Re:An Opinionated Guide to Modern Java Development, Part 1
by cwufbt08 on Thursday May 01, 2014 @01:48PM
(#7681422)
In what way is Java a "dynamic language" ?
[ Parent
| on HN ]
Re:An Opinionated Guide to Modern Java Development, Part 1
by zmmmmm on Thursday May 01, 2014 @07:52PM
(#7683371)
Contrary to popular belief Java is highly dynamic. You can introspect the fields, methods, interfaces of any object at runtime, inject new / redefine classes, methods, fields, etc. The problem is that it's very awkward and unwieldy to do so. Hence the tendency to build new JVM languages rather than attempt to use Java's dynamic features directly.
Re:An Opinionated Guide to Modern Java Development, Part 1
by shellac on Thursday May 01, 2014 @02:38PM
(#7681816)
I think "dynamic platform" would be more accurate. Java has typically been a fairly conservative language sat on a much more interesting VM, a VM which has rather more features in common with dynamic languages like Smalltalk than you'd expect.
Re:An Opinionated Guide to Modern Java Development, Part 1
by ryanobjc on Monday May 05, 2014 @03:25AM
(#7697329)
but you can always escape with cglib and rock out.
So even though java the language isnt dynamic, you can do a lot more at runtime, than with these new-fangled languages like Go and Rust.
Re:An Opinionated Guide to Modern Java Development, Part 1
by zak_mc_kracken on Thursday May 01, 2014 @10:02PM
(#7683795)
"Dynamic language" != "Dynamically typed language".
Re:An Opinionated Guide to Modern Java Development, Part 1
by ryanobjc on Thursday May 01, 2014 @06:27PM
(#7683046)
Java has a lot of runtime knowledge about itself, it can do a lot with that.
As a result, you see things in Java that are more typical of dynamic languages, rather than C++ for example.
Re:An Opinionated Guide to Modern Java Development, Part 1
by escaped_hn on Thursday May 01, 2014 @02:03PM
(#7681547)
I think he meant dynamic as in ability to adapt rather than a dynamic language like python