Sponsored Link •
|
Summary
Tim Bray has an interesting set of blogs that's keeping me on the edge. Tim is essentially saying that Java's immutable String class isn't suited for "heavyweight" text processing tasks. That's a big claim since there's just too many applications that require heavy text processing.
Advertisement
|
Tim Bray has an interesting set of blogs that's keeping me on the edge:
So for Java, should we abandon
String
and do all our work withchar[]
constructs? I don't think so, simply because I think thechar
primitive is just too deeply broken. Also, I want to use tricks likestrcmp()
andstrncat()
, beloved of grey-bearded Unix veterans.Gasp! Surely he's not suggesting that we retreat to putting everything in a
byte[]
construct, and presumably revert to living in caves and courting women with clubs?!? Well no, because I am an object-oriented kinda guy, when I can get away with it. So, how do we get the heavy industrial machinery for doing superior text processing in modern languages without compromising their virtues? Stay tuned.
What could he have up his sleeve?
Tim is essentially saying that Java's immutable String class isn't suited for "heavyweight" text processing tasks. That's a big claim since there's just too many applications that require heavyweight text processing (i.e. parsers, information retrieval, semantic analysis, etc). Tim is saying that you can't scale using String or its dual StringBuffer for these types of applications! Now, I can only guess what he's trying to brew together, however I do recall a couple of alternative String (rather byte[] based) implementations for Java.
- MutableString from MG4J
- StringRT from JADE
- com.go.trove.io from Tea Trove Project
- FastStringBuffer from Xalan
Imagine, a comprehensive jar for heavy duty string processing! Now I'm just waiting for?some "wisdom" to?string this all together. Tim, ever consider starting a JSR?
Have an opinion? Readers have already posted 1 comment about this weblog entry. Why not add yours?
If you'd like to be notified whenever Carlos Perez adds a new entry to his weblog, subscribe to his RSS feed.
Carlos E. Perez has been an object-oriented practitioner for over a decade. He holds a Bachelor's Degree in Physics and a Master's Degree in Computer Science from the University of Massachusetts. He has polished his craft while working in IBM's Internet Division and IBM's TJ Watson Research Center in Hawthorne, New York. He now works for a startup 1/100,000th the size of his former employer. He writes about topics covering emerging aspect and object oriented paradigms, loosely coupled architecture, open source projects and Java evangelism. |
Sponsored Links
|