greptilian logo

IRC log for #friendlyjava, 2016-05-01

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
04:34 foobarn1 joined ##friendlyjava
06:08 nanoz joined ##friendlyjava
06:16 foobarn1 joined ##friendlyjava
08:50 aditsu uh.. java 8 functions can only count to 2 >_<
08:52 aditsu there's Function and BiFunction, Consumer and BiConsumer, Predicate and BiPredicate etc
08:53 aditsu what if I need (*gasp*) THREE arguments?
09:50 ejjm joined ##friendlyjava
10:31 nanoz joined ##friendlyjava
11:57 nanoz joined ##friendlyjava
12:17 pdurbin that's crazy talk
12:29 nanoz huh ?
12:29 nanoz pdurbin
12:43 pdurbin http://irclog.greptilian.com/friendlyjava/2016-05-01
12:43 pdurbin I was responding to something aditsu said.
13:08 nanoz k i work on java 5
13:13 pdurbin nanoz: any plans to upgrade to a newer version?
13:25 nanoz i dont decide
13:25 nanoz my manager is okay with java 5
13:27 nanoz if client wants java 5 what can i do :{
13:28 pdurbin find a new client I guess ;)
13:33 nanoz nope its a contract for 2 years
14:01 nanoz until i complete the project
14:17 mr_lou joined ##friendlyjava
14:38 aditsu java 5? wow
14:38 pulsar such enterprise
14:39 aditsu released in 2004, end of life in 2008, paid support stopped in 2015
14:39 pulsar i am quite sure there are a couple of huge companies paying big bucks for their special support
14:40 aditsu you can't even install java 6 in gentoo anymore (from the main repository)
14:44 aditsu public boolean dfs(final Func1<Integer, Boolean> init, final Func3<Integer, Integer, T, Boolean> f, final Func1<Integer, Boolean> done, final Func2<Integer, Func2<Integer, T, Boolean>, Boolean> iter)
14:44 aditsu am I overdoing it? :p
16:01 sfisque aditsu why would you install java 6 anyway?  as a developer you can down-compile with any modern jdk to target an older jvm
16:12 aditsu sfisque: no particular reason, just saying
16:12 aditsu not only java 5 is not available, but even java 6 is not
16:14 sfisque actually you "can" download them.  you just have to go digging
16:14 sfisque you can download all the way back to 1.1  IIRC
16:14 sfisque BUT
16:14 sfisque IIRC, supported linux versions did not appear until 1.3.  before that you had to use blackdown
16:15 aditsu yes, you can get them from oracle, but not from the package repository
16:15 * sfisque shrugs
16:42 mr_lou joined ##friendlyjava
17:22 pdurbin sfisque: it's cool or at least interesting that you can be running Java 8 and actually target something an ancient as Java 5.
17:24 pdurbin of course, a lot of libraries may require somewhat modern versions of Java
17:26 sfisque aye.  iirc, i think they added binary targeting around java 5, in order to get better adoption from the developers (build with 5 regardless of your customers target jvm version)
17:28 pdurbin I get the impression that supporting older versions of Python is not commonly done. RHEL 5 shipped with Python 2.4 but most Python developers are running 2.7 or 3.x on their laptops and will insist on a matching version of Python in production. It becomes an ops problem.
17:30 pdurbin Of course, keeping Java 5 running well in production these days is probably an ops problem as well. :)
17:49 aditsu can you actually have the compiler not only generate the right type of class files, but also fail when you're using classes/methods added in a newer java version?
17:51 pdurbin I think so. I think that's what sfisque is talking about.
17:52 aditsu I know eclipse doesn't do that
17:53 aditsu (unless there's an option I'm not aware of)
17:53 pdurbin oh, one would hope that javac enforces it... disallows lambdas and whatnot if you're targeting ancient java
17:54 aditsu I'm not talking about language features, I'm talking about new methods/classes
17:56 aditsu e.g. java.sql.statement.isClosed() was added in java 6, if you run it on a java 5 jre, you'll get NoSuchMethodError or something
17:58 aditsu same with Arrays.copyOfRange
17:58 aditsu um.. that should be a capital S in Statement
18:01 pdurbin oh. yeah, dunno. I'm happy to be using Java 8 in production
18:53 daniel01 joined ##friendlyjava
18:58 daniel01 left ##friendlyjava
22:58 weeifuh joined ##friendlyjava

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode