Java 1

Facebook Twitter

Jvm

Concurrency 1. Scala 1. Concurrency 2. Scala 2. Scala 3. Scala 4. Developing with real-time Java, Part 1: Exploit real-time Java&# Real-time Java is a set of enhancements to the Java language that provide applications with a degree of real-time performance that exceeds that of standard Java technology.

Developing with real-time Java, Part 1: Exploit real-time Java&#

Real-time performance differs from traditional throughput performance, which is typically a measurement of the total number of instructions, tasks, or work that can be done over a fixed amount of time. Real-time performance focuses on the time an application requires to respond to external stimuli without exceeding given time constraints. Stories/MichaelDykman - J. Michael Dykman I am probably the last person on this list who should pipe in here.

Stories/MichaelDykman - J

I have been dabbling with the language for about 2 years now. Previously, I had spent 30+ years using computer languages, 20 of them professionally, mostly in what I lovingly refer to as "the bottom-feeding world of business app development". I have used C, C++, Perl, Java, PHP, Javascript. All the predictable suspects and then some. How do ClassLoader leaks happen? Other Articles in the Reloading Java Classes Series A video presentation “Do you really get class loaders” by Jevgeni Kabanov From ClassLoaders to Classes.

How do ClassLoader leaks happen?

Args4j: Java is Pass-by-Value, Dammit! Serbo-Croation Translation Available!

Java is Pass-by-Value, Dammit!

Woohoo! Jovana Milutinovich gratiously offered to translate this article to Serbo-Croation! Objects as Functions in Java. Earlier this year I wrote a build tool in java.

Objects as Functions in Java

The core idea at the time was to express the build in terms of functions and function composition. This is not exactly a good fit with java. So last week I had some spare time and came up with this way of defining a function (application) in java: public static class FancyFunction extends FunctionBase { @In public final Str a; @In public final Str b; @Out public final Str c = null; @Out public final Str d = null; public FancyFunction(Str a, Str b) { this.a = a; this.b = b; super.reflect(); } protected void evaluate() { setResult(c, new StrImpl(a.getValue() + "-" + b.getValue())); setResult(d, new StrImpl("XX")); } } There is obviously a lot of magic going on and I do feel a bit bad abou setting final fields using reflection.

What I miss in Java. So I finally got some time to sit down and write, after being knee deep in work the past month or two.

What I miss in Java

And without a doubt, I wanted to write about what has been heckling and annoying me over the past month. I am an ardent defender of Java as a good language, especially defending it from Misko day in and day out, but even I will agree that it does suck at times. So today, Java, the gloves are off. Signalling Integer Overflows in Java. ...and people are still using java? Last week I was at the LASER 2009 summer school on Software Testing.

...and people are still using java?

It was pretty interesting and one brief talk captured my attention. DEADBEEF or CAFEBABE. Two Java Type‐System Holes. Next Generation Java is not very different from today's Jav. Next Generation Java is not very different from today's Java In a recent post, Stephan Schmidt makes several suggestions in order to write "Next Generation Java".

Next Generation Java is not very different from today's Jav

Unfortunately, I disagree with most of them... Let's take them in turn: final everywhere This is guaranteed to make your code littered with final keywords and therefore, impair readability significantly (same problem as Python's self pollution). Java's Lots of Little Files. I ran into this article about "Next Generation Java Programming Style", at YCombinator.

Java's Lots of Little Files

There was some interesting discussion about the overall effectiveness of these suggestions. Part of the discussion involved commenter Xixi asking if anyone had followed point #5, "Use many, many objects with many interfaces". It turns out, I've been following that model. I started to reply there, but I recognized a blog post after a bit. Go Ahead: Next Generation Java Programming Style. August 10, 2009 by Stephan Schmidt Many companies and developers move away from Java to new languages: Ruby, Python, Groovy, Erlang, Scala.

Go Ahead: Next Generation Java Programming Style

You might be trapped with Java. Even if you’ve trapped, you can change your programming style and reap some of the benefits of those new languages. In the last 15 years Java programming style has changed significantly: A Java old timer reminisces – Oak, 0XCAFEBABE, Green Threads, Ru. I have been working with Java since the mid nineties, and in that time, Java has gone from being a “fad”, the next “big thing”, etc, to becoming a widely accepted and deployed programming language in the business world. Being involved with Java for a long time has its share of ups and downs. On the plus side, you know and understand the very basic foundations of the language and its evolution, on the negative side you sometimes talk about stuff no one else has a clue about. Double Brace Initialisation. The high cost of (WS-)Security. WS-Security provides a comprehensive set of security features for Web service applications, building on established industry standards for cryptography and XML encryption and signing.

You can specify the features to be used for a particular application with WS-Policy and WS-SecurityPolicy, allowing clients of the service to configure themselves automatically to access the service. With widespread support for these standards across multiple platforms and web services frameworks, interoperability is good (and getting better over time). Despite these benefits, WS-Security also has some drawbacks.

You've seen in the last two articles of this series that WS-Security can be complex to configure, and that it sometimes adds a lot of bulk to the messages being exchanged. So when are the benefits of WS-Security worth the costs? #534364. Keynote: The Future of Java Innovation. Bio Rod is one of the world's leading authorities on Java and J2EE development. He is a best-selling author, experienced consultant, and open source developer, as well as a popular conference speaker. Rod is the founder of the Spring Framework, which began from code published with Expert One-on-One J2EE Design and Development.

Ternary Try/Catch. We often discuss Java limitations on IRC and try to come up with (sometimes silly) workarounds. Unfortunately after time passes it’s often easy to forget the outcome, and lose code snippets. So I thought I’d start blogging some of them so I don’t lose them, and other people might suggest other ways of doing things that we’ve overlooked. This particular problem occurs when you want to assign the result of a method that can throw an exception to a final variable. For example: This will fail to compile with “variable c might already have been assigned”. Common Java Cookbook. Copyright © 2004-2012 Tim O'Brien. All Rights Reserved. This collection provides expert tips for using Java-based utilities from projects such as Apache Commons, Apache Lucene, and Apache Velocity.

Original Sin. Is Java as we know it doomed? Mulling over Java. Transaction strategies: The API Layer strategy. Why Java doesn't need operator overloading (and very few la. MVEL - Home. Small Language Changes for JDK7. Putting Java’s Null in its Place. Presenting the Permanent Generation. Busting java.lang.String.intern() Myths. Correcting the Billion Dollar Mistake. Ten Amazing Java Applications. How to deal with filesystem softlinks/symbolic links in Java. How much memory is used by my Java object? Jedi - Examples. Java : the perpetually undead language. Data Rattle. Heterogeneous Lists and the Limits of the Java Type System. The case for Java modularity - Java World. Top 3 Reasons Why Constructors are Worthless.

Build an Embedded Array Language in Java. Java Is Too Academic. The Long Strange Trip to Java. Java in 2008.