Slashdot Mirror


Draft Review of Java 7 "Measures and Units"

Jean-Marie Dautelle writes to inform us that the public review period ends on July 8 for JSR-275, "Measures and Units" Early Draft. The JSR-275 will be a major enhancement for Java 7 by providing "strong" typing (through class parameterization) and easy internationalization of Java programs, preventing conversion errors. The latest version 0.8 is available as a PDF. The reference implementation is provided by the JScience project under a BSD license."

220 comments

  1. Re:Java 8 by funfail · · Score: 1

    You are an authority on "strong typing in Java and C#" because you work in HR?

  2. More Java growth? by teknopurge · · Score: 1, Interesting

    Looks like the death-blow for c#? I realize that there will be a lot of c# projects in MS shops, but Java has been around so long and continues to grow.

    Dice.com results:

    'java' - 16799
    'c#' - 7305
    '.NET' - 12042 (inclusive of c#)

    1. Re:More Java growth? by FlashBuster3000 · · Score: 3, Interesting

      your java-results probably also contain "Javascript" (think of jobs for web 2.0, ajax, etc.).

      Not to mention the tremendous amount of jobs for java-coffee-machine-engineers!

    2. Re:More Java growth? by xero314 · · Score: 2, Informative

      your java-results probably also contain "Javascript" (think of jobs for web 2.0, ajax, etc.). Dice has 2098 listings in java results that happen to match javascript, very few of which are exclusively javascript without java. which still leaves approximately 14k java jobs vs the fact that the C# search also turns up C jobs, which lowers C# down to barely 5k.

      Not to mention the tremendous amount of jobs for java-coffee-machine-engineers! On Monster maybe, but not on Dice.
    3. Re:More Java growth? by CastrTroy · · Score: 2, Insightful

      However, this just shows how many employers are looking for people to fill positions. It doesn't really state how may positions are currently filled. Maybe there's just less people that actually know how to program well in Java. Maybe a lot of the of the people who know Java aren't doing Java, but are doing something else. Existence of job postings doesn't prove that one technology is better or more popular than another, just that they are having more trouble finding people to fill the available positions. Maybe Java really is more popular, but I've seen a lot more shops using .Net than Java. Of course, I could be wrong, but I don't think just looking up the number of job postings paints an accurate picture.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    4. Re:More Java growth? by jgrahn · · Score: 5, Funny

      Looks like the death-blow for c#?

      Yes. A couple of classes for handling metres, kilograms and seconds is the killer application for Java. All other languages/operating environments will disappear overnight.

    5. Re:More Java growth? by vux984 · · Score: 1

      I don't think either or going anywhere anytime soon. But the flipside to your post is that if Java becomes that ubiquitous it will be easy to get a job, but hard to get paid well because the market will be flooded with Java guys/gals. The C# guys will get paid more because of the relative supply constraints. ;)

    6. Re:More Java growth? by Anonymous Coward · · Score: 0

      I use both Java and C# in my job. The more and more I use C# (which I have for the last 4 years), the more I realize how poorly designed it was compared to Java. Granted, it has a few really good features that Java doesn't, but a lot of design errors that make it a pain to use.

    7. Re:More Java growth? by Anonymous Coward · · Score: 0

      No! You can't mean.... BSD IS DYING?

    8. Re:More Java growth? by iDaZe · · Score: 3, Funny

      Your statistics are almost as good as mine:

      Java sucks
      .NET more popular

    9. Re:More Java growth? by fm6 · · Score: 5, Interesting

      A little detail: "Java" is both a platform and a language. C# is just a language, one of several that runs on the .NET platform. (Microsoft doesn't like the word "platform", but it's the only one that fits.) So when you're analyzing market share, you need to compare Java with .NET, not with C#.

      The figures you quote show .NET doing pretty good, though still lagging way behind Java. One little improvement in the Java language is not going to spell the "death nell" for the .NET platform. That would be true even if .NET didn't have the backing of the biggest software company on the planet.

      What is bad news for .NET is the fact that Sun seems to be capturing a lot of developer mind share with its Java Community Process, which is where this proposal comes from, along with a lot of other good stuff, including JSR 166, which originated outside Sun, and has successfully added a major improvement in concurrency to the Java platform.

      The JCP won't spell the "death knell" to C# or .NET either, not as long as they have MS's backing — and are essential tools on Windows. But it will certainly help Java hold onto its lead.

    10. Re:More Java growth? by mhall119 · · Score: 2, Insightful

      Maybe Java really is more popular, but I've seen a lot more shops using .Net than Java. It may be that .Net has more shops than Java (I don't know), but Java likely has bigger shops which account for more positions within a single shop. After all, you don't run .Net on Sparc, Alpha or Power architectures. With sales reps from Sun, IBM, HP, Bea and Oracle all pushing Java stacks, it shouldn't be surprising that there is more demand for Java developers than for .Net developers.
      --
      http://www.mhall119.com
    11. Re:More Java growth? by xero314 · · Score: 1

      You are correct that it does not show the number of positions in existance, but rather where there is need for good developers. But when looking at the basics of supply and demand you want to be in the field with the highest demand and lowest supply. This is why the average income of a Java developer is higher than a C# or .Net developer. As an old school assembler/machine language programer I am certainly not going to use job postings to justify the quality of particular language, just the demand. The only other comment I would have to make is that a .Net programer is most likely going to see more .Net shops that Java shops, it's part of the circle you might run in.

      I will also point out that both .Net/C# and Java are in lower demand than C/C++ (having over 17k listings on dice).

    12. Re:More Java growth? by mhall119 · · Score: 1

      Economics 101: Price = Demand/Supply

      You are assuming that there is equal demand for Java and C# developers, but a lesser supply of C# developers. What people are seeing on dice and monster is both a higher demand and supply for Java developers compared to C# developers. From my own looking around, the average offered pay for Java developers is higher than for .Net developers, which in theory means that Java has a higher demand/supply ration than C#.

      --
      http://www.mhall119.com
    13. Re:More Java growth? by Shados · · Score: 4, Insightful

      One issue with .NET that slowed down its growth, was poor support for enterprise projects. That is, .NET was quite the ideal platform for mid size project, but when you start needing reliable services (by reliable, I mean queueing, availability contracts, etc), distributed transactions for things other than DBs, handling encapsulated business processes, etc, it was way, -way- behind Java.

      Now with .NET 3.0, it caught up, and with .NET 3.5 its quite impressive: however, 3.5 isn't officially out, and 3.0 doesn't have Visual Studio support, and for the most part in the .NET world, if its not in Visual Studio, it doesn't exists. Once VS2008 comes out (at the end of this year), things should spice up a bit...

      MS' presence on codeplex is also helping the community side a bit, especially with Patterns & Practices (which a lot of things done by that team, altered by the community, eventually makes it in the real things, like Project Acropolis).

      Thats mostly speculation mind you, but it should be interesting...

    14. Re:More Java growth? by fm6 · · Score: 4, Interesting

      In other words, Microsoft screwed up all its early planning for .NET. That's only just, since Sun did exactly the same thing with Java: lousy compilers and virtual machines; too much emphasis on web applications and "network computer" technology. Most of the negative things people think they know about Java comes from that era.

    15. Re:More Java growth? by vux984 · · Score: 1

      Economics 101: Price = Demand/Supply

      The world is more complex than Ec 101 ;)

      You are assuming that there is equal demand for Java and C# developers, but a lesser supply of C# developers.

      Not quite. I am *projecting* that if people start sounding off that c# has been 'dealt a death blow' while pronouncing that 'java is growing bigger everyday' that the supply of new c# coders will dry up, while the supply of new java coders will boom.

      From my own looking around, the average offered pay for Java developers is higher than for .Net developers, which in theory means that Java has a higher demand/supply ration than C#.

      That is true today. I'm am looking at the future. I suspect that in this case the elasticity of supply exceeds the elasticity of demand. If Java is the 'big thing', than it will become supply flooded fairly quickly...

      -cheers

    16. Re:More Java growth? by Anonymous Coward · · Score: 0

      Especially since Boost.org just accepted a library that does just this in C++

    17. Re:More Java growth? by Javagator · · Score: 2, Insightful

      I have used both C# and Java in my work, also. My experience is a little different. The two languages are very similar, both the languages and the class libraries. Java is best for portable applications, C# is best if you are on Windows only, and need to access underlying parts of the O/S, such as getting the icons for a specific file type.

      If I needed a C# programmer, and came across a first rate Java programmer, I would not hesitate to hire him/her for the C# job (and vice versa).

    18. Re:More Java growth? by aled · · Score: 1
      --

      "I think this line is mostly filler"
    19. Re:More Java growth? by glitch23 · · Score: 0

      C# is just a language, one of several that runs on the .NET platform. (Microsoft doesn't like the word "platform", but it's the only one that fits.) So when you're analyzing market share, you need to compare Java with .NET, not with C#.

      They don't like "platform" which is why they call .NET a framework. Why doesn't that word fit? I agree the comparison with Java should be with .NET but it's a framework, not a platform, at least using MS's terminology.

      --
      this nation, under God, shall have a new birth of freedom. -- Lincoln, Gettysburg Address
    20. Re:More Java growth? by mhall119 · · Score: 1

      You are assuming that there is equal demand for Java and C# developers, but a lesser supply of C# developers.

      Not quite. I am *projecting* that if people start sounding off that c# has been 'dealt a death blow' while pronouncing that 'java is growing bigger everyday' that the supply of new c# coders will dry up, while the supply of new java coders will boom. True, but as Steve Ballmer knows, as go the developers, so goes the development. Why pay more for a mid-level C# developer, when it would be cheaper to do it in Java with a senior developer? Especially when everyone else is doing it in Java. In your scenario, C# programmers would only be used to support legacy systems, like today's Cobol programmers. Only it will be easier to migrate C# -> Java than Cobol -> anything else. And since C# is so popular among up and coming web-designers, supply will probably out-strip demand for a good long time.

      From my own looking around, the average offered pay for Java developers is higher than for .Net developers, which in theory means that Java has a higher demand/supply ration than C#.

      That is true today. I'm am looking at the future. I suspect that in this case the elasticity of supply exceeds the elasticity of demand. If Java is the 'big thing', than it will become supply flooded fairly quickly... Maybe some day, but I doubt fairly quickly, even by our industry's speed of change. Java development has really exploded into a market that hasn't existed before, so we don't really know the ultimate capacity.

      --
      http://www.mhall119.com
    21. Re:More Java growth? by ClosedSource · · Score: 1

      I think Sun's use of the word "platform" had to do with their hope that people would forget entirely about writing code for a specific (real) platform and just write to the Java API. Had Sun been able to produce and market Java hardware accelerators as they once planned, the Java Platform would have become a real boy.

    22. Re:More Java growth? by sg_oneill · · Score: 1

      Regarding measuring quality of language by job ads:

      scheme: 0
      lisp : 1 :java 240000 .net 14000 :(

      Quality doesnt sell.

      --
      Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
    23. Re:More Java growth? by csshyamsundar · · Score: 1

      When they mean Java, they mean J2EE ! ;-) And most of the people don't realize that! Knowing Java only helps to learn and understand J2EE better.

    24. Re:More Java growth? by javilon · · Score: 1

      The dead knell for C# is that in practice it only runs on Windows (Nobody that I know of is using mono for production work). Linux on the server is growing at a quick pace. If you use .net you are only targeting some of the servers running out there. If you use java you are targeting all of them. That is a real problem for .net if you plan to reuse your code with the next client, because you dont know if they will be Linux based.

      --


      When his defense asked, "Which computer has Jon Johansen trespassed upon?" the answer was: "His own."
    25. Re:More Java growth? by LarsWestergren · · Score: 1

      Looks like the death-blow for c#?

      As another reply joked, this particular API is very nice but is hardly going to be a killer app. Interesting to see though that the predictions of the death of Java a year ago seems to have been rather mistaken. I see a lot of job ads in Sweden asking for Java people now, and this is what TPCI-TIOBE says. Not as popular as the peak 5 years or so ago, but growing marketshare again, and more quickly than the competition.

      --

      Being bitter is drinking poison and hoping someone else will die

    26. Re:More Java growth? by dintech · · Score: 1

      Dice.com results:

      This is a silly metric. It gives no indication of how many 'actual java developers' or 'actual java developers' there are. But you already knew that...

    27. Re:More Java growth? by DuckDodgers · · Score: 1

      Chicken and Egg problem.

      If there aren't enough developers comfortable with those concepts, there won't be companies using them. If they aren't used, more jobs won't appear. If more jobs don't appear, nobody will learn them. Repeat loop.

      I work with Java, and have worked with C++ in the past. I've been trying to pick up functional programming - mainly Haskell - and LISP on my own off and on for years. I'm not finding it easy, although that probably reflects more upon my intelligence and the programming habits I already possess than the learning curve. But even when I do get a good grasp on this stuff, where can I apply it?

      For mainstream acceptance, "advanced" languages (define that how you will) require their killer app - and it isn't here yet. Two things give me some interest and hope, though. Functional languages for parallel programming, like game graphics: http://www.st.cs.uni-sb.de/edu/seminare/2005/advan ced-fp/docs/sweeny.pdf . Or, perhaps a useful Continuation Server could be written in a functional language or LISP.

    28. Re:More Java growth? by fm6 · · Score: 1

      Linux may be growing, but the sad fact is that Windows still dominates enterprise servers. Maybe Linux will eventually take the lead in new installations, but once a platform has established itself in a company, it rarely goes away. Look at mainframes!

      So the worst you can say about C# or .NET is that they might not grow as fast as Java. Hardly "death knell" status.

    29. Re:More Java growth? by Anonymous Coward · · Score: 0

      Comparing Java and C# is quite appropriate--- they are in fact both languages. The Java Virtual Machine is a platform, Java is a language, CLR is C#'s platform... Perhaps he needs to do a search for JVM?

      -Jason Thomas.

  3. Re:Java 8 by EWIPlayer · · Score: 5, Funny

    Take it from me, I work in HR at a Fortune 500 company, so I know a thing or two.

    This AC is totally right. Every time I need a decision on which language I should use to implement a product, I always go straight to HR; preferably HR in fortune 500 company. Those folks really know their stuff!

    As if what companies use has anything whatsoever to do with this paper... I agree Java sucks, but this has nothing to do with whether or not someone is "employable" after reading this paper - it has to do with a fairly smart group of folks trying to make Java a bit better for numerical work. (i.e. for the public sector, more often than not)

    --
    This sig used to be really funny...
  4. Meh by $RANDOMLUSER · · Score: 1

    I think everything should be done as derived units from Planck Units.

    --
    No folly is more costly than the folly of intolerant idealism. - Winston Churchill
    1. Re:Meh by fm6 · · Score: 1

      That's sort of like Vernor Vinge's notion that we can replace all clocks and calenders with a system where the only unit is the second (and powers of 10 thereof) and the epoch is the familiar January 1, 1970. There are so many things wrong with that idea, it's hard to know where to start.

  5. Cool Idea... but by CanadaIsCold · · Score: 1, Interesting

    Additions of features like this are useful for applications that need unit of measure conversion. I can think of a number of situations where using a mechanism like this rather than writing my own conversion could be useful. Also adding the ability to extend it yourself with custom unit's could be very helpful in some cases.

    How much do additions such as this add to the overall footprint of the language? I understand that this project may not be very large but how many parallel projects such as this are being added to the codebase. I'm not sure what the benefit of adding this directly over having it available as a library. In many cases we need to keep several java instances on the same server(app specific, multi versions) this means that this footprint growth get's multiplied across the multiple instances.

    --
    This signature would be better if I was creative.
    1. Re:Cool Idea... but by xXenXx · · Score: 0

      It _is_ being added as a library, from what I can tell. If you don't import it into your program, then you won't have to worry about it.

    2. Re:Cool Idea... but by CanadaIsCold · · Score: 1

      I agree if you don't import it you won't have to worry about it's memory footprint and java has a fairly granular import mechanism for managing this. However I was refrencing the disk footprint which will be affected regardless of import by code.

      --
      This signature would be better if I was creative.
    3. Re:Cool Idea... but by TheRaven64 · · Score: 1
      It depends on what you mean by footprint. Java is statically typed, so all of the unit checking will be done at compile time, with no runtime overhead. It can all be compiled down to things that will fit into Java's existing type system. It's basically just syntactic sugar; it doesn't add anything semantically to the language, but it makes code a lot more readable. You wouldn't need it if Java had something like Lisp's macro facility, but then Java is a language for 'average programmers' who aren't allowed to play with power tools.

      --
      I am TheRaven on Soylent News
    4. Re:Cool Idea... but by plague3106 · · Score: 1

      Hmm, I wonder if you could do this using Linq in .Net? That's basically just syntatic sugar too.

  6. Re:Java 8 by j-pimp · · Score: 1

    Take it from me, I work in HR at a Fortune 500 company, so I know a thing or two.

    I lack a degree and my experience is to all over the map for me fit nicely into one of your fortune 500 peg holes. I'll have to continue working for one of the smaller companies that your company outsources its work to.

    BTW, I do happen to user C# in my current job. However, that does not mean that there are no jobs in Java available. There is merit in learning Cobol, and trade schools that still teach it. Someone has to maintain the old code.

    --
    --- Justin Dearing http://www.justaprogrammer.net/ We're just programmers.
  7. Bah by Reverend528 · · Score: 1

    My car gets 40 rods to the hogshead and that's the way i like it.

    1. Re:Bah by swillden · · Score: 1

      My car gets 40 rods to the hogshead and that's the way i like it.

      40 rods per hogshead? Geez, what do you drive, a diesel-powered aircraft carrier?

      I thought my SUV was bad, but it gets 440,000 rods per hogshead.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    2. Re:Bah by tmarthal · · Score: 1

      Yes, but internationally, that should be "Mi coche consigue 40 barras al cabeza del cerdo"; hopefully the units know the internationalization!

    3. Re:Bah by maelstrom · · Score: 1

      For those who don't know, input this query into Google:

      40 rod per hogshead to miles per gallon

      --
      The more you know, the less you understand.
  8. Similar to Fortress by Coryoth · · Score: 4, Interesting

    This looks rather similar to the units and dimensions handling and checking available in Fortress, Sun's effort to build a new numerical/scientific computing language. In general it seems like a sensible idea -- having the option of adding extra annotation that allows for more exacting static checking and greater assurance is generally always a good thing. The only downside is that, at least in the java implementation, it is a little cumbersome and clumsy (though maybe that's just par for the course for new java versions). Now if only java could get statically checkable optional contracts as in Spec# we might actually be getting somewhere. At the very least it would be nice if they had runtime checkable contracts, properties and tests as in Fortress. Or perhaps I should just wait for Fortress to finally mature; it seems that will happen faster than java getting the features I'm after.

    1. Re:Similar to Fortress by Anonymous Coward · · Score: 0

      Now if only java could get statically checkable optional contracts as in Spec# we might actually be getting somewhere.

      Exactly... I accept Java and its warts (I'm coding in Java since last century ;) but since I saw that Spec# demo with the IDE showing in realtime that a contract was violated I'm salivating for better DbC coming to Java (i.e. more than simply an "@NotNull" annotation, which I'm using but still, it's light...).

  9. getting tired of Java ... by boxlight · · Score: 5, Interesting

    I've spent most of the last 10 years building desktop and web applications with Java: AWT, Swing, JSP, Struts, J2EE, EJBs, and on and on.

    Through all those years I've had to fight perceptions of Java being hard to distribute, slow, difficult, insecure, and over-engineered. I've done pretty well in the battle, and produced some pretty nice products.

    Maybe I'm having a bit of a mid-life crisis, and I'm wondering where to go from here. I'm looking at alternatives for development: AJAX, Ruby, PHP, and Adobe AIR. But nothing out there (outside of the Microsoft world) does everything that Java does as well -- but Java just doesn't do GUI too well. Although GWT is pretty cool. And I've always thought Applets were underrated and under-utilized.

    The point of this rant? Java 7 doesn't excite me in the least. Me and everyone I know are firmly planted in Java 5 (or is it 1.5? I always forget) and we don't appear to be moving to Java 6 (1.6?) -- so why should we care about Java 7 (1.7?).

    Anyway, that's my rant. Any suggestions are greatly appreciated!

    1. Re:getting tired of Java ... by teknopurge · · Score: 1

      Use the Netbeans GUI builder tools and the Visual Web Builder. Throw jMaki into the mix and you can start having fun again.

    2. Re:getting tired of Java ... by wawannem · · Score: 1

      Have you looked at Struts 2.x? I know it will sound like I'm self-marketing (which I am), but check out my series of articles -

      wantii.com

    3. Re:getting tired of Java ... by swillden · · Score: 1

      I'm wondering where to go from here.

      Assembler on bare metal. It'll be a change.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    4. Re:getting tired of Java ... by alyawn · · Score: 5, Interesting

      I agree about the features of Java 6 & 7. I code to Java 5 but run in the latest and greatest VM because they continue to make performance enhancements there.

      As for GUI development, I believe that we will see some progress made there. Right now, there is some good competition going on between Swing, SWT, and other toolkits. And now, QT just came out with QT Jambi which looks really cool. The bottom line is that eventually, one of these toolkits will emerge and become the defacto toolkit. Remember, cross platform UI is a hard problem to solve. They'll figure it our eventually. Or, you may get tired enough and write one yourself :)

    5. Re:getting tired of Java ... by cmburns69 · · Score: 5, Insightful

      Version 1.7 will come out, and then you'll start moving to 1.6. When 1.8 comes out, then you can switch to 1.7. It seems like very few people actually use the most recent version. I suspect this is because new methods need to be researched, and community support for new features must be developed.

      --
      Online Starcraft RPG? At
      Dietary fiber is like asynchronous IO-- Non-blocking!
    6. Re:getting tired of Java ... by Anonymous Coward · · Score: 0

      Struts == old and busted. Seam FTW. The component core isn't built on JSF now, and it has grown GWT bindings too.

      For an alternative approach, Aranea is also shaping up nicely. It's obscure, but definitely worth checking out. It's kind of like the best parts of Rife and Wicket got together.

      (Is it just me or are there way too many java web frameworks?)

    7. Re:getting tired of Java ... by xero314 · · Score: 1

      Assembler on bare metal Assembler? Coward. Real programers write direct machine code. (que long thread of "Real Programer" comments)
    8. Re:getting tired of Java ... by wawannem · · Score: 2, Informative

      Struts 1.x == old and busted, Struts 2.x == gaining ground rather quickly. It is worth checking out if you haven't done so. It has AJAX support built-in, the configuration is a heck of a lot easier than before and there is a plug-in interface to help roll-out new functionality or integration with other libraries (Spring, SiteMesh, GWT, and a bunch more already).

      You are definitely right that there are too many frameworks :).

    9. Re:getting tired of Java ... by Anonymous Coward · · Score: 0

      I've never seen a reason to use 6 over 5. IME, there is not an appreciable difference. Though I use 5 over 1.5 any day. I'm not even sure I COULD code for 1.5 without breaking it.

    10. Re:getting tired of Java ... by Anonymous Coward · · Score: 0

      Why not try Mono?

    11. Re:getting tired of Java ... by fishbowl · · Score: 1


      >You are definitely right that there are too many frameworks :).

      Nonsense. There are too many people who lack the discipline to choose tools and stick to them for a project scope.

      I've abandoned Struts and also EJB except for JPA, and I've grown quite fond of the combination of JSF (MyFaces + Tomahawk) bundled with the Hibernate flavor JPA.

      Most other "frameworky" things have become redundant or obsolete. Once I got my head around JSF (not a small task, admittedly), I just started doing work with it. It worked and it helped me complete projects, which are for me the Alpha and Omega of whether a "framework" type of thing gets adopted.

      Now that JSF and JPA are Java standards, it's not even a hard sell when bringing others into my workflow.

      --
      -fb Everything not expressly forbidden is now mandatory.
    12. Re:getting tired of Java ... by Anonymous Coward · · Score: 0

      Have you looked at Struts 2.x?

      In my opinion, they did WebWork a huge disservice by rebranding it as Struts 2. Or maybe not--maybe there are a ton of people who didn't realize just how bad Struts 1 was, and will migrate to Struts 2 thinking it really is a new version of Struts. And maybe the people who don't like Struts 1, will think "Struts 2? Maybe they got it right this time"

    13. Re:getting tired of Java ... by iksrazal_br · · Score: 1

      "I'm wondering where to go from here."

      "Assembler on bare metal. It'll be a change."

      I've also programmed in java for a long time - since '99. And I'm totally burnt out on the "yet another UI on top of a db" that seems par for the course in java - and in php, ruby, Qt etc for that matter so that's not really an exciting option for me

      However, I programmed in C/C++ five years before java, and more importantly, I've been using linux since '96 and exclusively since '99. So I got an opportunity to port linux embedded to a custom ppc board, and yes, I'm doing PPC "Assembler on bare metal" to get the bootloader (u-boot) to initialize the cpu and memory so I can load the kernel. And I can say, once again, things are fun ;-).

    14. Re:getting tired of Java ... by wawannem · · Score: 1

      > Nonsense. There are too many people who lack the discipline to choose tools and stick to them for a project scope.

      I don't know if I'd say that... I would bet that more developers are using frameworks than not. The reason I would suggest that there are too many frameworks is that I firmly believe in the "best tool for the job" mantra, but to really decide which is the best tool, you have to have some experience with each tool before you can decide. If I read your post correctly, it sounds like you use JSF mostly because you know it and you like it... Can you really say it's the best tool for the job? I don't have much experience with JSF, but I do know that it's a component-based framework rather than a Model 2 framework (MVC). Struts2 has a plug-in to integrate JSF, and for a large project, I would imagine that bringing a component-based framework into the mix would be beneficial.

      As for the "lack of discipline," I really don't think we can fault developers. Deciding on a framework should be the job of an architect. The developers usually want to know what their task is and what they can use to get it done. Deciding on a framework should be happening long before they are assigned their individual tasks.

    15. Re:getting tired of Java ... by iabervon · · Score: 3, Informative

      Java 6 and Java 7 are relatively minor changes. As far as I can tell, the issue is that Sun can't deal with having more than one number in versions. When they revised the Java language, they didn't change the 1 to a 2; they added an extra 2 elsewhere in the name. Then when they wanted to do it again, they didn't know what to change, so they initially left everything the same, and then they discarded all of the stuck numbers. This means that they don't have a way to show the difference between adding a few library features and changing big important things. The difference between 5, 6, and 7 is much like the difference between 1.4.0, 1.4.1, and 1.4.2, and it's not worth upgrading unless you happen to care particularly about a new feature.

    16. Re:getting tired of Java ... by Anonymous Coward · · Score: 0

      Machine code? Coward. Real programmers bake their programs directly onto the chips that they fabricate themselves in their garage.

    17. Re:getting tired of Java ... by Anonymous Coward · · Score: 1, Informative

      I'm a Java guy too, but built a series of large-company financial webapps using Ruby on Rails and PostgreSQL. I started when RoR was at a 0.1 release version (it's now almost 2.0). I found RoR to be an excellent tool for a quick, single webapp. We ended up writing 4 apps, though, and RoR is showing its limitations.

      1. Lack of Talent. I had extreme difficulty finding qualified developers willing to work in Ruby fulltime. Few people had RoR experience, but most experience software developers from C++/Java/C# backgrounds were hesitant to make the leap to Ruby for fear it would hurt their resume. The experienced RoR folks also seem to have a very inflated sense of worth, which is driven by market scarcity.

      2. Stability Problems. We've upgraded across several point RoR releases. Every time it shuts down productive work for 2 days. Yet needed features are in the updates, so we've upgraded. Java is far more stable and backwards compatible. Most recently we ran into a many-to-many ActiveRecord bug in the new code (the old approach is deprecated) that is "critical" in the RoR database but unresolved after 40+ days. You can't have basic ORM logic broken for business apps.

      3. Multiple Applications. RoR and Capistrano (a great tool) are built for a single webapp. If you have multiple webapps that need deployment using shared packages (business objects), Capistrano can't get the job done (Ant can). If you need to share common business objects across multiple apps, it requires a symlink hack for RoR (whereas Ant makes it trivial to package mulitple tarballs from one project directory). If you need separate databases for one application (accounting data, credit card data, regular data, etc) then Java is ready to roll whereas RoR needs some code written to handle multiple databases easily.

      All this to say we are rewriting all of our RoR webapps to use Java (POJOs with Struts 2.0).

    18. Re:getting tired of Java ... by tcopeland · · Score: 4, Informative

      > Java 6 and Java 7 are relatively minor changes.

      Language-wise Java 1.6 doesn't include any changes; check out the docs for the -source option for javac.

    19. Re:getting tired of Java ... by xXenXx · · Score: 0

      Java 6 has improved ArrayLists, among other things. That alone is reason enough to use it.

      Not sure if that second part was a joke or not, but Java 1.5 is the same as Java 5, no?

    20. Re:getting tired of Java ... by wawannem · · Score: 1

      I'm guessing that the choice of name really had more to do with exposure than anything else. Go to amazon.com and search for webwork... IIRC, there is really only one book on WebWork, Struts on the other hand...

      After having used both, I would agree that WebWork was superior, and I am glad the Struts2 is based more on WebWork than Struts1.

    21. Re:getting tired of Java ... by Vellmont · · Score: 1


      As for the "lack of discipline," I really don't think we can fault developers. Deciding on a framework should be the job of an architect.

      Hrrmmm. In an ideal world that's true. Many projects don't have a dedicated architect whose job it is to just evaluate frameworks all day though. Software development has a history of not being very ideal, one reason being it's still an actively developing field. I've looked into frameworks again recently, and picking one is like picking a religion. Everyone touts the good aspects and doesn't like to admit all the downsides. I've also talked to a couple developers at large shops, and at least one said he experienced a mix of different java framework technologies in use. My experience has been similar, having worked with a project with its own MVC implementation, no MVC, and worked with struts 1.

      So I can see how someone might say there's too many frameworks, or that projects can't seem to stick with one technology even with Java. I wound up choosing Struts 2 just because it seemed the most flexible, being able to incorporate other frameworks within it.

      --
      AccountKiller
    22. Re:getting tired of Java ... by onash · · Score: 5, Informative

      The JSR that I'm excited about;
      - JSR 294 Improved Modularity Support (superpackages); so we can define the API that is public for a library, so the user doesn't have to see all the public functions.
      - JSR 296 Swing Application Framework; which helps us build better Swing GUIs faster in a more standard way.
      - JSR 295 Beans Binding and JSR 303 Beans Validation
      I was really excited about that Consumer JRE / Java Kernel, which was suppose to minimize the size of the JRE so you could bundle a 5mb JRE for a normal Swing Application, but they decided on pushing that to Java 6! so it's arriving as a patch late this year. It will probably include a very nice looking look&feel as well as GUI drawing optimizations using DirectX on Windows.. pretty cool.

      We can also hope for Closures, which would make our GUI code a lot neater.. My company and everyone that I know (except Apple) have moved to Java 6 - and the IDEs such as Eclipse and new technologies like Open-Terracotta are making me love Java! Especially cause we are developing applications / algorithms that run on many different platform.. Java is really the only way cause its fast enough and rock solid.

    23. Re:getting tired of Java ... by LWATCDR · · Score: 1

      "And I've always thought Applets were underrated and under-utilized."
      Funny but I have found Applets underrated and over-utilized!
      I think the HUGE number of trivial Applets "Hover buttons" ruined the reputation of Java.
      Things like VNC show the real power of applets. Too bad they where so rare.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    24. Re:getting tired of Java ... by gabrieltss · · Score: 1

      "but Java just doesn't do GUI too well"
      True Java doesn't have a nice GUI. But if you build web applications and combine it with Ajax toolkits you can get some nice GUI's. We are building web applications using Java, JSP, Struts, Dojo Toolkit and Turbo Widgets and they look really nice. All wrapped in Apache Jetspeed portals/portlets running ontop of JBoss. You can get some really cool looking applications this way.

      --
      The Truth is a Virus!!!
    25. Re:getting tired of Java ... by jjohnson · · Score: 1

      Bare metal? Luxury! Sheer luxury!

      Since I ditched Java I've been coding by arranging large stones in binary patterns.

      --
      Anyone who loves or hates any language, platform, or manufacturer, doesn't know what they're talking about.
    26. Re:getting tired of Java ... by mhall119 · · Score: 1

      The point of this rant? Java 7 doesn't excite me in the least. Me and everyone I know are firmly planted in Java 5 (or is it 1.5? I always forget) and we don't appear to be moving to Java 6 (1.6?) -- so why should we care about Java 7 (1.7?). Modular Java and Kernel JVM (JSR 277 & 294) which should improve Applet start time to be comparable to Flash.
      SwingLabs components, take a look for yourself, these guys are making some nice UI enhancements.
      Java Application Framework (JSR 296) providing a pre-built framework for common application tasks.
      Bean Bindings (JSR 295), so you no longer have to write your own update code.
      JavaFX? I don't know much about this, but it could make GUI development interesting.
      Media Components, this one I'm especially looking forward to after looking into the abyss of JMF.

      That's just to name a few of the technologies that I'm looking forward to. Thinks like generics and the enhanced for loop have also made coding Java a little nicer. I'm just now starting to use Annotations, which combined with reflection is letting me reduce the amount of boiler-place code I have to write. Once people start hacking the GPL'd Java code, you can expect to see a lot more interesting things make their way into the platform.
      --
      http://www.mhall119.com
    27. Re:getting tired of Java ... by 3m_w018 · · Score: 2, Informative

      Well, Eclipse is a major step in the right direction, despite its shortcomings (the structure of the SWT library and its limitations in comparision w/ Swing, its bulk, etc.).

      When you program Eclipse RCP applications, you don't just spend less time fudging around w/ GUI widgets and more time plugging in large chunks of functionality provided to you (for free) in the framework. Tasks that would have taken me months alone have been shortened up to a matter of weeks...

    28. Re:getting tired of Java ... by Fedarkyn · · Score: 1

      maybe you will get excited with the promisses of ease to deploy desktop applications for the next releases...

      At sun tech days people talked a lot about it...

    29. Re:getting tired of Java ... by Anonymous Coward · · Score: 0

      I did and it sucked. Six weeks in bed and extremely weak. Java in contrast perks me up.

    30. Re:getting tired of Java ... by Surt · · Score: 1

      Fabricate? Well la-tee-dah mister fancy pants. I had to arrange the molecules of my computing device by hand, and it's a difference engine!

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
    31. Re:getting tired of Java ... by $1uck · · Score: 1

      Check out Groovy and Grails if you haven't already. Groovy runs on the jvm and although its a different language than java it works seamlessly. Java can use/call groovy classes and groovy can call java classes. There's all sorts of nifty new language features such as closures that should keep you from being bored. Grails is like ruby on rails for groovy although you use your domain objects as starting point instead of your db tables.

    32. Re:getting tired of Java ... by caseih · · Score: 1

      While it is not suitable for all the domains you are using Java for, I find Python to be a refreshing breath of air. Python makes programming actually fun again. Not to mention productive. I can't really explain why. Maybe it's a religious thing. I never did pick up Java and have spent years dreading having to use it since I find Java syntax so cumbersome. Paradoxically, I like C++ syntax and I quite like C# (that's mainly because I like the standard runtime libraries in .NET a bit better than Java's class library). If I'm ever forced to work with Java, I just may try to find a place for JPython so I can still use pythonic goodness while linking to heavy-lifting Java code. For now, though, my programming is pretty much a mixture of python, C, and some C++. Integration with other languages (including Java) is one of Python's strongest point.

      So anyway if you want to have some fun on the side, mess with Python a bit. It's an interesting diversion, anyway.

    33. Re:getting tired of Java ... by setagllib · · Score: 1

      Windows GUI drawing has been done on the DirectDraw pipeline for a very long time. The new backend is supposedly even better, but you can't claim DirectX doesn't have its share.

      --
      Sam ty sig.
    34. Re:getting tired of Java ... by Anonymous Coward · · Score: 1, Informative
      Really?
      I think this is about the most interesting period for Java GUI there has been with work like the Cosumer JRE and Java FX


      Still if you fancy looking at something new Scala looks quite interesting.

    35. Re:getting tired of Java ... by nodrogluap · · Score: 1

      "And I've always thought Applets were underrated and under-utilized."

      I agree. We deploy all of our code as applets AND applications, which is not extra effort at all really. We mainly do this so that people can try it out with installing it. The only pain is maintaining a Verisign certificate, so people can actually trust us. Self-signed certificates just don't cut it, really.

      I'm not talking trivial applets either, we've implemented a Semantic Web browser for scientists with some pretty fancy interface controls as an applet, and although you might be able to do the equivalent with AJAX/etc., I know I'd spend a lot more time maintaining the code, ensuring it works in different browsers, etc. with the non-Java approach. And it couldn't be used outside the browser, like our applets can.

    36. Re:getting tired of Java ... by fishbowl · · Score: 1

      >Can you really say it's the best tool for the job?

      Yes, because it is my call. At another juncture, for another job, I may say a different tool is "best", and at that time I will again thank the stars in space that there are, as you say, "too many frameworks."

      Why should it be up to you to decide how many is "too many?"

      The way I see it, the industry is still just getting off its feet, and we are just now beginning to get past the risks of failure to monoculture. Here you are, essentially, advocating monoculture.

      >As for the "lack of discipline," I really don't think we can fault developers. Deciding on a framework should be
      >the job of an architect.

      In the field, when I've *had* architects dedicated to that role, they have often been so far removed from most projects that they might as well not have existed, and had it been a requirement that architects be consulted, most projects would never have been developed at all -- and at least one company would have failed because of it. In other experience, I've had total budgets too tight to even hire interns, yet work had to be done and software had to be designed.

      I've worked in large systems and small, large corporations and single developer projects, and granted, I've spent more time in research where the science gets the budget and the software development is adjunct to the science. I guarantee if I went to my PI and suggested that I need to stop making design decisions because we need a full-time architect, he'd look at me as if I had grown nine heads, and most likely ask me if I wanted to change my job title to "architect".

      I suspect from your comments that you are, no offense, an individual in a very large, very formally managed organization. That environment creates its own risks and unique conditions that must be dealt with in certain ways, and perhaps it is correct in your current experience that certain levels of design decisions be made by people in specific roles, and instituted in a rigid top-down fashion.

      Anyway, if you can make a genuine case for the notion that there are "too many choices" and that these choices cause a net loss in productivity or some other measure, I would listen, but you'd know going in that I think it's preposterous.

      --
      -fb Everything not expressly forbidden is now mandatory.
    37. Re:getting tired of Java ... by ClassMyAss · · Score: 1

      Just whatever you do, don't admit to those Python people that you're originally a Java programmer - functional zealots tend to despise anyone that knows what a class is, let alone actually uses them to organize their code! Seriously, though, Python is pretty nice, but coming from a Java background it can be tricky because there are quite a few gotchas regarding scope and structure. References are dealt with in a similar way, though, and data structures are (IMO) much easier to work with in Python than Java, so there are definitely good things going on there. Definitely worth checking out.

    38. Re:getting tired of Java ... by fishbowl · · Score: 2, Insightful

      "I wound up choosing Struts 2 just because it seemed the most flexible, being able to incorporate other frameworks within it."

      I didn't mean to sound hostile to Struts; I use it also. I find that some projects are made more complex, unnecessarily complex, as a consequence of the complexity of tools that are used. I regard java frameworks as just another class of tool It occurs to me that great swaths of the common framework capabilities go unused in a given project. I strive for simplicity, introducing a library or a protocol or a container-provided service as needed.

      I find the need for anything beyond implementations of JPA, JMS, JSF, a limited number of implementations from various well-known Jakarta projects, are rather rarely needed and no big deal to introduce when they are.

      I also find that when you start out with a big framework (JBoss SEAM comes to mind at the moment), right from the beginning you risk running into a situation where you are provided with an implementation of some fundamental service, are painted into the corner of that specific implementation and version, and *because* of the fact that it's part of the framework, you can't easily swap in another implementation of that service.

      I can understand a different point of view on this -- disdain for what is a moving target on the fringe of an emerging technology. If you want to go THERE, I would open by suggesting that it may be too soon to start using Java in a real project :-)

      I will now resist making a car analogy and get back to work.

      --
      -fb Everything not expressly forbidden is now mandatory.
    39. Re:getting tired of Java ... by haystor · · Score: 1

      My bits only had one state. I wish I could have used binary patterns.

      --
      t
    40. Re:getting tired of Java ... by Anonymous Coward · · Score: 0

      This is only true if you use vendors like BEA (Weblogic) or IBM (Websphere) and any frameworks.
      We develop a project that runs on Tomcat and JBoss if necessary for the EJB features. I've been
      running 1.5 for quite some time and we're looking to go to 1.6 any time now. We just need to get
      it in the release schedule.

      This is what I LOVE about Java. . . as open source, getting new things into production has a lot
      less turn around.

    41. Re:getting tired of Java ... by mikeburke · · Score: 1

      Who the hell writes production software on version 0.1 of anything? I bet the business is just delighted that you have to rewrite these systems because the shiny new thing the engineers wanted to use was totally unsuited to the task. Is anyone accountable for that brain dead decision?

    42. Re:getting tired of Java ... by emjoi_gently · · Score: 1

      You know what? Sometimes getting a bit closer to the Metal is fun. Into low level APIs, using simple raw C.

      Stripping away the abstractions and garbage collectors...
      It's like going back to Nature.

    43. Re:getting tired of Java ... by swillden · · Score: 1

      I was joking, but not completely. Low-level programming is a lot of fun.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    44. Re:getting tired of Java ... by samkass · · Score: 1

      Having also been driven to near insanity by JMF I understand your position, but I say just fix JMF instead of creating a new media API that will get dumped and neglected. Most of the problems with JMF are implementation issues, not core to the system. I have great hope for FMJ, but having Sun's support there would sure help.

      My greatest new feature, which would easily trump all others, would be heavyweight-lightweight mixing. Right now lightweight Swing can't even render a modern web page, play back any media, provide a decent text editing component, or embed ActiveX or other external frames. All of these things I would consider basic requirements to developing a desktop application on Windows. Being able to mix heavyweight and lightweight would allow one to use a host of technologies in a Swing application that would actually make Java into a fully capable desktop development environment. The rest are just icing.

      --
      E pluribus unum
    45. Re:getting tired of Java ... by emjoi_gently · · Score: 1

      Similarly, .NET 3 is out but it only works for XP and Vista, so it's safer to stick with .NET2 for now if you have an app that is being released soon.

      If you are writing for a wide audience, then the Latest Stuff isn't always what you should use.

    46. Re:getting tired of Java ... by LarsWestergren · · Score: 2, Insightful

      Java 6 and Java 7 are relatively minor changes.

      What!? Java 6 I'll give you was not as big a change as Java 5, but Java 6 was mainly a stability, manageability and performance oriented release, but even that came with some pretty big changes - support for scripting languages with the Rhino JavaScript engine included for instance. Also, the Consumer JRE changes will be backported to it, with the Kernel JVM, the Quickstarter and Direct3D/DirectX pipeline improvements in Windows to catch up with the OpenGL pipeline.

      Java 7 might be one of the biggest changes to the Java language and platform ever, take a look at this list for instance. Note that not all of these might be included in Java 7, or indeed ever. Danny Coward who I believe is in charge of the Java 7 release together with Mark Reinhold talks a bit about the difficult balance between giving people the new features they want and keeping it simple.

      --

      Being bitter is drinking poison and hoping someone else will die

    47. Re:getting tired of Java ... by ajs318 · · Score: 1

      How about back to Perl? It's like a white Ford Transit Van. Won't win any awards for being trendy, but it gets you from A to B every time.

      --
      Je fume. Tu fumes. Nous fûmes!
    48. Re:getting tired of Java ... by wawannem · · Score: 1

      > Yes, because it is my call.

      Well, If I'm advocating monoculture, then this advocates close-mindedness. You are missing my point entirely. You can't possibly have evaluated every single Java Web Framework. I know you can't because it is not possible. You are depending on the community to do that for you. Personally, I prefer to find out for myself. You jump all over my case because I think there is too much choice to make an informed decision. You are insisting that you have made an informed decision, but I'll bet that you haven't evaluated (read used) more than one or two major frameworks.

      As for your assumption that I work at a big company with rigid requirements. Not right now... I own a small consulting firm and I work at the family business. Both less than 50 employees. Before that I worked at a large firm, but it was not a rigid environment. In fact, we were considered CMMI level 1. My opinions come from evaluating the situation and seeing what works well and what doesn't. My genuine case for "too many" cases is this... You suggest MyFaces + Tomahawk. Now, I am going to ask have you tried RAJAX? https://rajax.dev.java.net/

      Each time you respond, I am going to either point out that you didn't give the suggested framework it's proper attention, or I will suggest another framework to look at. My guess is that you will eventually give up. Now, as far as big companies with rigid requirements... You strike me as the sort of guy that has trouble working on a team, quote - "Yes, because it is my call." Would you really have a problem if I were your team lead and we would have the following argument - "We are going to use Struts2 for this project," you - "I think we should look at other frameworks like MyFaces + Tomahawk," me - "I appreciate your enthusiasm, but right now there are just too many frameworks and I would rather move forward than spend the next few weeks arguing over which framework we'll use." Are you the type of person that would become unproductive and spend hours complaining to other team members about the team lead not listening to you? It sounds like what CMMI people call the "hero". It's not meant as an insult, heroes are considered very productive at most organizations, but managers with experience running teams of developers are beginning to work out practices to eliminate that sort of behavior.

      Also, when I mentioned that the decision of framework should be made by an architect... Well, if your projects are so small that you want to bang them out and get them out the door, why are you using Java? Why not Ruby on Rails? Seriously, Java is great, but for quick projects there is a lot more overhead than just about every other platform out there. Now, if you are working on decent-sized projects that require regular maintenance and service thousands of people per day, then someone should be helping to manage the technology to keep projects somewhat in line so that if SystemA at your company needs to talk to SystemB, then it can happen with little effort. Whether that person's title is architect or he is just one of the older fellas who has been at the company a long time. I have personally been a part of projects where two vastly different technologies were required to work together, in one case, we had to make a Java web-app talk to a custom, non-standard server (http://www.aolserver.com/). Bad architecture leads to more work. If you're in one room deciding that MyFaces + Tomahawk is best for your company, but in another room someone is deciding that Apache + mod_perl and perl's CGI module are the best thing for your company, then I'm glad I'm not you when management decides that your projects need to be integrated.

      So, anyways... Tell me what you think of RAJAX, then when you're done take a look at SEAM, and if you have time left when you're done with those two, read my website for information on Struts2 (dig, dig, wink

    49. Re:getting tired of Java ... by mhall119 · · Score: 1

      Having also been driven to near insanity by JMF I understand your position, but I say just fix JMF instead of creating a new media API that will get dumped and neglected. Most of the problems with JMF are implementation issues, not core to the system. I have great hope for FMJ, but having Sun's support there would sure help. I disagree, requiring the entire JMF just to play media files would be like requiring the entire JAI just to display an image in your app. I would rather they provide a small package for media playback, and then the full JMF for advanced playback and editing. That is what the Media Components are supposed to be.

      My greatest new feature, which would easily trump all others, would be heavyweight-lightweight mixing. Right now lightweight Swing can't even render a modern web page, play back any media, provide a decent text editing component, or embed ActiveX or other external frames. All of these things I would consider basic requirements to developing a desktop application on Windows. Being able to mix heavyweight and lightweight would allow one to use a host of technologies in a Swing application that would actually make Java into a fully capable desktop development environment. The rest are just icing. I think work is being done on this as part of the Media Components work. Specifically I remember them saying they're doing that so lightweight widgets can clip areas of the heavyweight playback widget, so it will probably extend to all light vs heavy widgets.

      Excerpt from http://weblogs.java.net/blog/chet/archive/2007/05/ media_frenzy.html

      Curious readers familiar with lightweight/heavyweight mixing issues in Swing applications might wonder at this point how we will deal with a native player component in a Swing GUI. Good question, thanks for asking. This issue is one of the reasons that we also plan to support mixed heavyweight/lightweight components in Java SE 7. In case I don't write a blog on this feature soon, here's the quick scoop: We can enable this through clipping the heavyweight components against the shapes of the overlaying lightweight components. There are some cases that do not yet work with this mechanism, such as shaped and translucent lightweights, but the system works pretty well in general for other cases.
      --
      http://www.mhall119.com
    50. Re:getting tired of Java ... by fishbowl · · Score: 1

      Wes, you're young and passionate, you put together really good training materials, and I really didn't mean to come across as adversarial.

      --
      -fb Everything not expressly forbidden is now mandatory.
    51. Re:getting tired of Java ... by wawannem · · Score: 1

      No problem, I didn't want to pick a fight either. I'm glad you looked through the material and hope that you'll come back and provide some feedback.

    52. Re:getting tired of Java ... by samkass · · Score: 1

      I disagree, requiring the entire JMF just to play media files would be like requiring the entire JAI just to display an image in your app. I would rather they provide a small package for media playback, and then the full JMF for advanced playback and editing. That is what the Media Components are supposed to be.

      So componentize JMF and let it load in segments. Starting over from scratch with an incompatible API makes no sense. You'll eventually want to make it flexible enough that it'll become JMF again anyway. Just re-doing JMF right would offer the best transition plan for those who have already managed to get multimedia into their Java application, and create a transition path for those who tinker with it to eventually move to something more substantial.

      --
      E pluribus unum
  10. Re:Java 8 by teknopurge · · Score: 3, Informative

    Take it from me, I work in HR at a Fortune 500 company Rule #1 - Do not talk about fight club
    Rule #2 - When making a point, do not discredit yourself
  11. Re:Java 8 by TheRaven64 · · Score: 2, Interesting

    It sounds like this stuff comes from Sun's work on Fortress, which is a language designed to replace FORTRAN in scientific computing (and HPC). The nice thing about having units in the language is that you can use the compiler's type checking way beyond its normal boundaries. You can do this already with classes, but it's messy. You could have a distance and a time class, for example, and constructors that would take scalars and units and create them, then a speed class that would construct a speed from a distance and a time, but it would be a lot of code and very hard to read, so most people just use integers (or floats) and rely on their brains to catch conversion errors. If you add some syntactic sugar then you make it much more attractive, and reduce the errors in the program.

    --
    I am TheRaven on Soylent News
  12. ooh convenient by Anonymous Coward · · Score: 0

    Measure<Double, Mass> weight = Measure.valueOf(180.0, POUND);
    Nope, that isn't cumbersome to write at all, no sir.
    1. Re:ooh convenient by Anonymous Coward · · Score: 1, Funny
      You forgot something.

      Measure weight;
      try {
      weight = Measure.valueOf(180.0, POUND);
      } catch (HeisenbergException e) {
      // ignore this which never happens, but shut the stupid compiler's yap
      }
    2. Re:ooh convenient by Anonymous Coward · · Score: 0

      It even gets worse when you go to rates, or derived units. How do you convert an acceration to various units?

      Measure 10ms2 = Measure.valueOf(10,SI.METERS_PER_SECOND_SQUARED); // 10 m/s^2 // here be dragons
      Measure 10ms2infts2 = 10ms2.convert(XXX); // 10 m/s^2 in ft/second^2?
      Measure 10ftmin2 = 10ms2.convert(XXX); // 10 m/s^2 in ft/minute^2?

      How the hell do they do this?

    3. Re:ooh convenient by Chris+Pimlott · · Score: 1

      If that's too complicated for you to deal with, then please, do us all a favor and stay far away from programming.

    4. Re:ooh convenient by Chris+Pimlott · · Score: 1

      From what I gather:

      Measure 10ms2 = Measure.valueOf(10, SI.METER.divide(SI.SECOND.power(2)).asType(Acceler ation.class));
      Measure 10ms2infts2 = 10ms2.convert(English.US.FOOT.divide(SI.SECOND.pow er(2)).asType(Acceleration.class));
      Measure 10ftmin2 = 10ms2.convert(English.US.FOOT.divide(SI.SECOND.tim es(60).power(2)).asType(Acceleration.class));

      or alternately:

      Measure 10ms2 = Measure.valueOf(10, Unit.valueOf("m/s^2").asType(Acceleration.class));
      Measure 10ms2infts2 = 10ms2.getConverterTo(Unit.valueOf("ft/s^2").asType (Acceleration.class)).convert();
      Measure 10ftmin2 = 10ms2..getConverterTo(Unit.valueOf("ft/min^2").asT ype(Acceleration.class)).convert();

  13. Neat idea by mritunjai · · Score: 4, Informative

    Its a one of the several neat ideas being lifted from the Fortress language.

    For the unitiated, Guy Steele (of Scheme fame) is building a new language for scientific computing called Fortress. It has some nice ideas that really should have been there by now. The language would have saved countless headaches in not just scientific but probably all mainstream software development projects.

    Of course, its just one of the pet projects in SUN Labs ;)

    --
    - mritunjai
    1. Re:Neat idea by Coryoth · · Score: 1

      Now if only they could lift the better functional programming support, and support for tests, properties and contracts... The math notation would be nice too, but I suspect that'll be a hard sell to all the non-mathy types out there.

    2. Re:Neat idea by Anonymous Coward · · Score: 0

      Thanks a lot, genius. Care to share what those "neat" ideas are?

    3. Re:Neat idea by 3p1ph4ny · · Score: 1

      hard sell to all the non-mathy types out there. Like String?
  14. Re:getting tired of Java = Python! by AslanTheMentat · · Score: 1
    Python. PyQt or wxPython (or PyObjC+Cocoa if you are OS X'y) OR Jython + SWT or Swing.

    I'll be flamed for sure (espec. by the usual Ruby suspects), BUT... I was once where you are now, and I ain't lookin back. ;)

    My 2 cents anyhow, for what they're worth (...wait...2 cents?)

  15. Source code? by Rik+Sweeney · · Score: 1

    Disclaimer: I'm too lazy to RTFA

    I thought we were getting the source code this year, I know we're only halfway through but...

    1. Re:Source code? by brunascle · · Score: 1

      you can already get the source for OpenJDK 7 here. it's just the JDK, though, as far as i know. i'm also not sure if OpenJDK is technically the same thing as the regular JDK.

  16. Re:getting tired of Java = Python! by Sciros · · Score: 4, Funny

    Well at least it's 2 whole cents. Too many people say stuff like "just wanted to add my .02 cents" which IMO deals a severe blow to their credibility.

    --
    I like basketball!!1!
  17. Re:Java 8 by xero314 · · Score: 4, Informative

    I work in HR at a Fortune 500 company Translation: "I have no idea what I am talking about"

    Lets see what jobs are actually out there:
    • Dice
      • C#: 7303 (or 5054 if you take out all the incorrect matches on C)
      • Java: 16803
    • Monster (last 10 days since it limits to 5k)
      • C#: 1911
      • Java: 3760
    That is without comparing salaries which are on average higher for Java developers.

    Just goes to show how out of touch HR really is.
  18. JSR recognises that "Imperial" and "US" differ by Anonymous Coward · · Score: 0

    Which has got to be a good thing. British Imperial units are obsolete even in Britain, but still see some use. While they have the same _names_ as american units, they are different sizes. It's quite annoying to deal with code using imperial or u.s. units, but much more annoying if you don't even know which, or if the programmer didn't understand there is a difference, and used physical constants from a british textbook in america or vice-versa.

  19. Re:Java 8 by Anonymous Coward · · Score: 0

    It's a common troll. You'll see the whole "I worked at micrsoft..." or "I worked in field X" at lot, followed by some stupid ass comments. Actually, the HR thing is quite common for it. Don't feed the troll people, just mod him down.

  20. Re:Ugh... by xXenXx · · Score: 0

    As has already been pointed out, the only thing this is going to add "bloat" to is the hard drive. This addition will take up a little extra disk space, that's it. The compiled code will still be the same, and if you don't import it the libraries won't be loaded into memory.

    It's there for people who want it, and not there for everyone else.

  21. Re:Ugh... by Anonymous Coward · · Score: 0

    "Bloat" as in language "bloat" -- keeping a language streamlined and powerful or bolting on endless libraries for every little thing possible.

  22. Re:i like this a lot by AKAImBatman · · Score: 4, Informative

    seriously, how come this is the first that i've heard of this kind of idea?

    You want the honest answer or the sugarcoated one?

    Sugar: JScience is getting attention now because Sun is standardizing it through the JCP.

    Honest: Because you've been living in Microsoft la-la land? JScience has been around in the form of the J.A.D.E. library for at least 5 or 6 years; probably longer. Jean-Marie has worked diligently over the years to make sure that Java has had top-notch support for scientific programming. The fact that he's getting recognition by the JCP members is nothing short of splendid. He deserves every bit of it. :)
  23. Re:Java 8 by Anonymous Coward · · Score: 0

    That is without comparing salaries which are on average higher for Java developers.


    So hiring C# developers is cheaper, which makes HR look good for keeping salaries down.



    Just goes to show how out of touch HR really is.


    No, it shows that HR is in touch with its goals.


  24. Re:getting tired of Java = Python! by Anonymous Coward · · Score: 0

    Yeah, these days I am really enjoying python programming, java doesn't do it for me.

    Python already has a fantastic module (Unum) to do units stuff - I think it covers everything this Java work does.

    if you like making nice GUIs, check out WxPython.

  25. /usr/bin/units by fred+fleenblat · · Score: 1

    Yep, still there.

  26. Re:Ugh... by Coryoth · · Score: 4, Insightful

    Really? No kidding? It's called a requirement. So we are adding functionality to give poor developers yet another crutch to lean on, catering to the stupid? No, it would be adding a mechanism that allows requirements to be documented properly in the code itself, rather than on paper in a binder buried behind the filing cabinet in a document that is now hopelessly out of date and doesn't reflect the code at all anymore.

    Perhaps you are a perfect programmer who never makes mistakes. Some of us, despite our best efforts, do make mistakes occasionally; perhaps we simply weren't thinking about how this code would interact with someone elses code at the time; perhaps we just made a typo; perhaps we hadn't quite had our coffee yet; who knows, but mistakes happen to everyone (except, apparently, yourself). In the case that mistakes creep in, it is nice to be able to catch and fix them as early as possible, rather than having a complex and expensive bug hunt somewhere down the line. Spending a moment to actually document requirements and intentions in a form that can be checked (be it statically, or automatically at runtime if you leave checks on) efficiently and regularly is a good thing. Most of us do that already in the form of static types which are checked at compile time. Adding some expressivity to that (via a more powerful type system, contract annotations on methods and objects, an automated unit testing system, or just extra static checks on units) isn't a bad thing, especially if it is optional (as it often is).

    I can have some sympathy for the complaint that adding bits and pieces in this rather piecemeal (and in the case of this particular implementation, somewhat clumsy and verbose) fashion is poor. Ideally adding means to decently document and express requirements and intentions should be something added to the language as a whole, with an overriding vision of how it should work. For that see Eiffel, Spec#, Fortress, or languages with more expressive type systems like the ML family and Haskell. Still, with something as simple and encapsulable as dimension and unit checking, why not just throw it in as a convenient optional extra? If you don't like it, don't import the library that implements it.
  27. Re:i like this a lot by plague3106 · · Score: 1

    It might be possible to do something like this with Linq, although I haven't looked at that much yet.

    My question is, when will Sun rip off formal property definitions? Or did they already and I missed it?

  28. Re:Java 8 by Mr.+Bad+Example · · Score: 5, Funny

    > Take it from me, I work in HR at a Fortune 500 company, so I know a thing or two.

    HR? I'd be surprised if you know what color database has the most RAM.

  29. This is cool! by FranTaylor · · Score: 1

    It's a natural extension of templates.

    My chemistry teacher in high school taught us to think this way, you got no credit for your math unless you carried the units around.

    - There doesn't have to be a big performance degradation, most of the work can be done at compile time.
    .
    - Like templates, you are free to ignore all of this if you want to, keep coding the way you have been, and maybe dabble with it where it's convenient.

    - It's okay to accept some overhead in the name of helping to ensure program correctness. If you disagree with this statement, then you'd better be prepared to show me the blisters on your fingers from entering code via the front-panel switches.

    - If there's a real concern for performance, there can be a run-time switch to turn off the checking, which you can enable after you've run the code through all your testing.

  30. Python. Don't be afraid of the sunshine by TheCouchPotatoFamine · · Score: 1

    Just because it's easier, more beautiful, compact, and enjoyable doesn't make it a two-seater miata! /and when i thought programming really wasn't fun, and there was just too much toil-per-feature, i found it myself. and at least programming is fun again! //Python3000 will have interfaces

    --
    CS majors know the time/space tradeoff, but they never get taught the 3rd, crucial, tradeoff of the set: comprehension!
  31. Code sample by suv4x4 · · Score: 3, Funny

    inches i = 10;
    kilograms j = 40;
    dollars k = 70;

    print(i+j+k); // 1.453^10 volts

    1. Re:Code sample by vigmeister · · Score: 2, Funny

      inches i = 10;
      kilograms j = 40;
      dollars k = 70;

      print(i+j+k); // 1.453^10 volts That's because time is money and e = mc^2

      Cheers!
      --
      Atheist: Buddhist in a Prius
  32. Re:Ugh... by Anonymous Coward · · Score: 0

    "Perhaps you are a perfect programmer who never makes mistakes. "

    I never claimed as such. All I am saying is that you can never remove the poor programmers and mistakes by wrapper libraries alone and sometimes giving them a crutch is worse than forcing them to think more about what they are doing.

    "Most of us do that already in the form of static types which are checked at compile time. Adding some expressivity to that (via a more powerful type system, contract annotations on methods and objects, an automated unit testing system, or just extra static checks on units) isn't a bad thing, especially if it is optional (as it often is)."

    Automatic checks only go so far, and if it's optional then it's even worse -- failure through ommission.
    Relying on the things you list alone will result in abject failure, not only in the system itself but the philosophy of the developers -- "I did xyz, I'm safe, there will be no errors." There's only so much you can do within the base language itself before you start catering to the stupid and putting the system in a nice, safe, less-useful box.

    "I can have some sympathy for the complaint that adding bits and pieces in this rather piecemeal (and in the case of this particular implementation, somewhat clumsy and verbose) fashion is poor."

    Yes, that's what I was getting at, IMHO a lot of things were just bolted on. As one example, there is double, Double and BigDecimal -- you can understand the reasons for each of them, but in the end the implementation is clumsy at best.

    But I guess that's just a philisophical argument that languages themselves should be as streamlined as possible.

  33. Predictable by alexj33 · · Score: 1, Funny

    This can only lead to one thing. Or rather, many confusing things.

    1. "Measures and Units" version 1.0. 2. "Measures and Units" Enterprise Edition. 3. "Measures and Units" on struts. 4. "Measures and Units" version 1.1. 5. "Measures and Units" version 1.2. Compatible with code written in 1.0, but not 1.1 nor EE. 6. "Measures and Units" for mobile devices 1.0. (Compatible with 1.1, but not 1.2, 1.0 nor EE.) 7. "Measures and Units" 1.3 for SunOS. (Requires a patch to the OS to make it work)

    This will make our unit conversions so much easier.

  34. Resources & UI by Midnight+Thunder · · Score: 1

    I've spent most of the last 10 years building desktop and web applications with Java: AWT, Swing, JSP, Struts, J2EE, EJBs, and on and on.

    If have done a fair amount of that too and my biggest gripe: having to write user interfaces in source code or UI builder generating source code! The problem with this approach is that you are tied into some builder and the code generated is ugly. Compare this it to Visual Studio (on MS-Windows) or Interface Builder (on MacOS X) which both generate binary resource files indicating how things should be laid out. With Interface Builder you design your GUI and then tell which are the handlers in the source code for handling the UI even. For me this is the one thing that needs to be sorted out in Java if it is going to be taken seriously for desktop applications.

    --
    Jumpstart the tartan drive.
    1. Re:Resources & UI by mhall119 · · Score: 1

      There are already several of these available for Java using everything from XML to custom declarative languages like F3.

      --
      http://www.mhall119.com
    2. Re:Resources & UI by pebs · · Score: 1

      Compare this it to Visual Studio (on MS-Windows) or Interface Builder (on MacOS X) which both generate binary resource files indicating how things should be laid out. With Interface Builder you design your GUI and then tell which are the handlers in the source code for handling the UI even.

      Is that the same Visual Studio I am using? I have used Visual Studio 2003/2005 to create GUI's in C#.Net and it does not generate any resource files. It generates source code just like any other similar tool. Yes, there are resource files, but they don't contain the layout, nor are they binary, they are XML!

      Maybe you are talking about C++ of which I don't have experience. Or maybe VB6?

      In any case, I'd like all of my GUI to be in human readable code, thank you very much. Having binaries for such things is an incredibly stupid idea (except for things like images of course that need to be binary, but even then something like SVG is better).

      --
      #!/
    3. Re:Resources & UI by Midnight+Thunder · · Score: 1

      In any case, I'd like all of my GUI to be in human readable code, thank you very much. Having binaries for such things is an incredibly stupid idea (except for things like images of course that need to be binary, but even then something like SVG is better).

      Well it doesn't need to be binary, but at least in format that is optimised for specifying resources, and is easily machine parsable. XML certainly fits these needs, but the deployed file should still be in binary, since it makes for faster processing.

      --
      Jumpstart the tartan drive.
    4. Re:Resources & UI by petermgreen · · Score: 1

      i don't see how generating java code is any worse than generating some kind of resourse file. Either way you shouldn't be editing the output file and should only be reading it when things go badly wrong.

      OTOH if your gui builder insists on mixing generated code with your own code then i agree it sucks.

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    5. Re:Resources & UI by fbjon · · Score: 1

      I'd like all of my GUI to be in human readable code, thank you very much. Having binaries for such things is an incredibly stupid idea This was annoying when I dabbled with Delphi: not being able to directly look at how the GUI construction works. In Netbeans, the GUI code is right there in the source, but is locked to prevent accidents, and can be folded away out of sight. Maybe someone can make the case that it's a bad idea, for some reason, but it feels right to me.
      --
      True confidence comes not from realising you are as good as your peers, but that your peers are as bad as you are.
    6. Re:Resources & UI by Anonymous Coward · · Score: 0

      If have done a fair amount of that too and my biggest gripe: having to write user interfaces in source code or UI builder generating source code! The problem with this approach is that you are tied into some builder and the code generated is ugly. Compare this it to Visual Studio (on MS-Windows) or Interface Builder (on MacOS X) which both generate binary resource files indicating how things should be laid out.

      oh, the other approach, where you are completely tied into a single vendor's product with no chance of switching, because you're working with an undocumented (in OSX's case, at least) resource format and have no idea, what the generated code might look like...
  35. Re:Java 8 by HouseArrest420 · · Score: 1, Insightful
    Everyone knocked this guy/girls post because HR has nothing to do with Java. LOL to all of you. Who hires you? Oh yeah, thats right...HR. So who has a better understanding of the EMPLOYEMENT of people experienced with Java?

    LOL when I want advice on an applet....I'll ask one of you. When I want advice on my chances of being hired....I think I'll go with HR. After all one of you even said:

    This AC is totally right. Every time I need a decision on which language I should use to implement a product, I always go straight to HR; preferably HR in fortune 500 company. Those folks really know their stuff!

    So let's be fair accross the board and use that as an example.

    When I want advice on job marketability I'm going straight to someone with Java experience, preferably and underpaid person, those folds know their stuff.

    ROFL

    --
    This is Slashdot! Give me the latest gadget, bug, or OS project! This ain't english class so don't confuse the two!
  36. Philosophy of numbers by michaelmalak · · Score: 4, Interesting
    It's interesting that I was trying to do the same thing with C++ back in 2000, maybe even 1996.

    The idea is based on the philosophy that numbers do not exist in isolation. It is possible to speak of, e.g., the number 5 as an abstract entity unto its own, but that should be rare. Most of the time, "5" refers to the ratio "5:1", where the "1" refers to something tangible. In science, the "1" is denoted with units. The problem is, starting with tabulating machines, then onto electronic calculators, and even multi-gigabyte computers, numbers are almost universally represented (erroneously) as the former -- purely abstract numbers. The units are stripped off.

    As any struggling physics or chemistry student knows, one can fake one's way through a test by doing "dimensional analysis" on test questions. If the units cancel out properly and agree, you've probably got the right answer.

    Compilers should be doing dimensional analysis at compile-time. I had originally hoped to create C++ templates -- which are evaluated at compile-time -- to do this, but I couldn't quite see how to get them to handle all the possible permutations of unit combinations and conversions -- at least not easily. It really needs to be built into the language.

    With a compiler enforcing dimensional analysis, it would force programmers to think through every formula and calculation. Novel unit combinations would arise as a result of creating database reports. E.g. a payroll report might have $/2-week pay period. A conversion somewhere to $/year would be another unit, and the conversion between $/2-week pay period and $/year would be clearly definied in one place rather than sprinkled throughout the code.

    Putting conversions in one place is the first thing I did when I cleaned up some pre-existing source code that I took over. I explicitly created three coordinate systems (device, world, and screen) and created two two-way conversions to go between the levels. Before that, there were conversions all over the place, each a little different, each with different handling of roundoffs and some even with hidden fudge factors. ("Conversions in one place" can be done without developing a units system, as it has its own benefits.)

    I blame a lack of education on the philosophy of numbers for programming languages relying upon naked numbers for so many decades. Rote algorithms for addition, subtraction, multiplication, and division taught in elementary school are the foundation of this vacuous philosophy.

    It could even be responsible for the public's acceptance of no gold standard for the dollar. They're not demanding to know what the reference point of "one dollar" is.

    And of course it's the Federal Reserve that can print endless money for the war in Iraq, thank to the lack of a gold standard.

    So there you have it -- lack of units in programming languages and the war in Iraq have a common cause: the lack of correct philosophy on numbers taught in schools.

    1. Re:Philosophy of numbers by ispeters · · Score: 4, Insightful

      It could even be responsible for the public's acceptance of no gold standard for the dollar. They're not demanding to know what the reference point of "one dollar" is.

      And of course it's the Federal Reserve that can print endless money for the war in Iraq, thank to the lack of a gold standard.

      I was agreeing with you completely until you said that. There can be no reference point for "one dollar". A currency system lifts the burden of a barter system from its users. Without the dollar, you'd have to bake bread and swap it for internet connectivity, or something. How much bandwidth can you get for a loaf of bread? The same question applies to the dollar. Currency is a tangible way to represent the virtual concept of value. There is no unitary value of value so there can be no fixed unitary value for a currency. A free-floating currency values itself according to what its users think it's worth, which is, IMHO, the only sane way to value a virtual concept.

      Ian

    2. Re:Philosophy of numbers by gatesvp · · Score: 2, Insightful

      It could even be responsible for the public's acceptance of no gold standard for the dollar. They're not demanding to know what the reference point of "one dollar" is.

      I'll do you one further, as we get further and further from solidity with numbers we will get progressively worse at handling it. As we deal with less and less cash, the money we have simply has less weight. We've all seen this phenomenon, anyone who does everything with cash will typically be better at handling their money, b/c they're "handling" their money. Some "get out debt" programs actually suggest the use of cash, even over debit (which is ubiquitous here in Canada). It seems that physical cash has a psychological effect on us.

      Pretty much all of our banking is now done in vaporous "numbers on a ledger", which does not lend itself to providing us with "Mass" about what the numbers mean. We have to convert this to time just to get an idea. I mean, what's $10,000? Nothing unless you think of it as two months of your time (or maybe a full year's worth of "disposable" income).

      I would dare say that the lack of a "gold standard" runs just as deep (or maybe deeper still). Personally, I would love it if we froze the money supply and only added money based on birth rates. So if each Canadian had X dollars associated with them and the population increased by Y, then each year we could print XY dollars and basically kill inflation. Of course, the guys with the money (gov and banks) would not appreciate that b/c they benefit from the public buying into the illusion that today's 50k is worth more than 1980's 20k (it's not). Again with just numbers and no mass associated they can distract people.

    3. Re:Philosophy of numbers by Coryoth · · Score: 1

      Philosophy of numbers is, indeed, an interesting problem, something I've discussed at some length. Still, one shouldn't reject the fact that numbers in the purely abstract are important and useful -- the process of abstraction is fundamental to mathematics, and the question you need to ask yourself is "how much detail can I afford to forget for the problem at hand". The more detail you can safely ignore the simpler and more general your work. Being able to remove consideration of units, or indeed any connection to the concrete physical world is important to mathematics, particularly with regard to developing the degree of generality that ultimately makes the subject as powerful and broad reaching as it is. For many problems the complete abstraction to raw number is too much, you've lost detail and information that is important, but then often the full abstraction is vitally important.

    4. Re:Philosophy of numbers by WalterBright · · Score: 2, Informative

      It's pretty easy to do Units/Dimensional Analysis in the D programming language:

      physical.d

      The example is by Oskar Linde.

    5. Re:Philosophy of numbers by Vellmont · · Score: 2, Informative


      They're not demanding to know what the reference point of "one dollar" is.

      I'm no economist, but this statement confuses me. You're really saying that it was somehow better when someone could say "one dollar equals .1 ounces of gold! (or whatever it was). I'm confused. What's the reference point of what .1 ounces of gold equals... one dollar? Why is referencing the value of a dollar to the value of gold somehow "better"? There's nothing magic about gold.. it's just rare.

      Money is meaningless outside of the context of exchanging it for stuff you want. As long as a dollar can be exchanged for things people want, it has value. The minute it doesn't, it's worthless. That's the only reference point that matters. $1 = x% of stuff I want.

      --
      AccountKiller
    6. Re:Philosophy of numbers by eric2hill · · Score: 1

      It's interesting that I was trying to do the same thing with C++ back in 2000, maybe even 1996. Well, better late than never, I guess. There is a library called "Quantitative Units" that has been accepted into the Boost libraries. The post is here if you'd like to see the current status of the library.
      --
      LOAD "SIG",8,1
      LOADING...
      READY.
      RUN
    7. Re:Philosophy of numbers by X · · Score: 1

      Somebody mod parent up. Then mod me up for mentioning that the basis for all of this is covered in Chapter 3 of Mr. Fowler's Analysis Patterns.

      --
      sigs are a waste of space
    8. Re:Philosophy of numbers by sofla · · Score: 1

      Nice points on the importance of units. I still remember my first exposure to unit math in high school chemistry. I personally think that conversion factors and the "math of units" (as in, if you multiply grams by grams you get grams-squared) should be taught in mainstream math, not just the science classes. afaik, the closest you get in mainstream math is with story problems, and its usually accompanied by a lot of hand-waving.

      It's a bit of a leap to get from there to the gold standard and Iraq. It gave me a good laugh, though, if that was the intent.

    9. Re:Philosophy of numbers by michaelmalak · · Score: 1

      Why is referencing the value of a dollar to the value of gold somehow "better"? There's nothing magic about gold.. it's just rare.
      Gold has the use as money, mystique and respect through the millenia.

      As long as a dollar can be exchanged for things people want, it has value.
      No, the value of the dollar comes from the IRS. Try using something other than a dollar as money, such as a gold coin. The IRS requires you to attach a fair market value in terms of dollars (Federal Reserve Notes, really), and then pay a tax in terms of FRNs. The IRS can, of course, employ armed marshals to seize property. So the value of FRNs comes from the threat of violence.
    10. Re:Philosophy of numbers by NoOneInParticular · · Score: 1
      The problem with dimensional analysis in math is that dimensional analysis is both incomplete and inconsistent. The big no-no in mathematics. To wit:

      The sine of an angle is a dimensionless quantity, but only if the dimensionless quantity is a ratio of two length measurements (except when the angle is measured in steradians, then it should be dimensionless with the units of plane over plane). And vice-versa: the arcsine takes a dimensionless quantity, but only if its a ratio of length (or planes).

      Mathematicians loathe such a system. It has its uses, but is not there yet.

    11. Re:Philosophy of numbers by david.given · · Score: 1

      Gold has the use as money, mystique and respect through the millenia.

      Yeah, it only has that mystique because we consider it to be valuable --- you've got a tautology here: you've just said here is that gold is valuable because we think gold is valuable. It has very little intrinsic value of its own --- it's reasonably (but not especially) rare, it has some interesting (but not especially interesting) chemical properties, and it looks nice. A currency based on gold is just as artifical as any other fiat currency; the mere fact that gold is the basis will cause its value to diverge radically from its own intrinsic value.

      (Compare with diamonds, which are just carbon arranged funny, and carbon is the third-cheapest substance in the universe.)

      By all means base your currency on a physical object, or not, depending on your favourite economic theory, but you should probably use a basis that actually has intrinsic worth in its own right. Say, a fixed period of standardised human labour? The joule? A loaf of bread?

    12. Re:Philosophy of numbers by michaelmalak · · Score: 1

      you've got a tautology here: you've just said here is that gold is valuable because we think gold is valuable
      No, I said gold is and will be valuable because it has been valuable -- a prediction based upon a long-standing trend.

      By all means base your currency on a physical object, or not, depending on your favourite economic theory, but you should probably use a basis that actually has intrinsic worth in its own right. Say, a fixed period of standardised human labour? The joule? A loaf of bread?
      Silver has more intrinsic value than gold. That has created problems. When industry needs silver, the price -- compared to the three example commodities you provided -- goes through the roof. When there is a surplus, the price goes through the floor.

      Lack of intrinsic value can be a benefit. The most important qualities for money are rarity, portability, anonymity, and verifiability. Gold satisfies those the best.

    13. Re:Philosophy of numbers by shutdown+-p+now · · Score: 1

      Compilers should be doing dimensional analysis at compile-time. I had originally hoped to create C++ templates -- which are evaluated at compile-time -- to do this, but I couldn't quite see how to get them to handle all the possible permutations of unit combinations and conversions -- at least not easily. It really needs to be built into the language.
      It might not be easy, but it can be done, and it is being done as a part of Boost. You can see the sandbox where the development happens for now, but I sure hope that it ends up in the next version of Boost.
    14. Re:Philosophy of numbers by Anonymous Coward · · Score: 1, Funny

      > And of course it's the Federal Reserve that can print endless money for the war in Iraq, thank to the lack of a gold standard.

      Yes, no nation ever took on debt to finance a war when there was a gold standard.

    15. Re:Philosophy of numbers by michaelmalak · · Score: 1

      Yes, no nation ever took on debt to finance a war when there was a gold standard
      There hasn't been a true gold standard (with no fractional reserve banking) for the past 400 years. Prior to that, governments tended to dilute the gold out of coins, i.e., they went off the gold standard to finance a war. Or they didn't pay the troops.

      With a gold standard, Bush wouldn't have been able to wage the war for years on end with no progress and have been able to keep the troops paid -- even if he started to shave the gold coins as his Roman predecessors did.

    16. Re:Philosophy of numbers by ajs318 · · Score: 1

      Instead of tying the value of currency to something capricious like gold or silver, why not tie it to something whose value is absolute and determined, like energy?

      --
      Je fume. Tu fumes. Nous fûmes!
    17. Re:Philosophy of numbers by Anonymous Coward · · Score: 0

      It could even be responsible for the public's acceptance of no gold standard for the dollar. They're not demanding to know what the reference point of "one dollar" is.

      And of course it's the Federal Reserve that can print endless money for the war in Iraq, thank to the lack of a gold standard.


      My god, I thought we left that argument back in the 70's. The gold standard is no more because the system friggin' broke down. Look up the Bretton Woods institutions on wikipedia.

      The problem is that it is possible for the world's economy to expand much faster than the amount of gold, so the price of gold must be artificially manipulated to keep the value of the dollar in check. People manipulate the system either way

      If a country pulls a lot of magic money out of the air, then the value of that currency goes down. The US Federal Reserve has printed a lot of money, and accordingly the dollar is very weak. While it's an interesting way to finance a war, it definitely does have adverse economic effects.

      Personally, I believe that as long as the world economy corrects for one of the players (in this case, the US) "gaming" the system, the thing works.

      Of course, why the gold standard failed is a topic a bit beyond primary school :)
    18. Re:Philosophy of numbers by Anonymous Coward · · Score: 0

      In C++ you need templates of course, and they're not entirely trivial to write. However, once written it works pretty well. SO, just take Walter Browns (from Fermi Labs) SI-units library. It has been doing this for quite a while now. Adding inches and meters is trivial, adding meters and kilograms impossible. Reality is typesafe, it's about time languages become so.

  37. Re:Ugh... by Coryoth · · Score: 3, Insightful

    Automatic checks only go so far, and if it's optional then it's even worse -- failure through ommission.
    Relying on the things you list alone will result in abject failure, not only in the system itself but the philosophy of the developers -- "I did xyz, I'm safe, there will be no errors." There's only so much you can do within the base language itself before you start catering to the stupid and putting the system in a nice, safe, less-useful box. Are you then implying that we should remove the ability for checks because lazy and poor programmers will abuse them? You seem to be suggesting that if we provide any checking then developers will "use it as a crutch" and not write good code. At that rate why bother with type checking, since that's just an extra crutch that makes developers lazy and expect that things will work. While we're at it why not remove syntax checking altogether; surely giving developers hints about syntax errors just makes them lazy instead of carefully inspecting everything they write. Let's just have the compiler take a best run at compiling the code, and if there is any syntax it can't parse it can just fail silently and let the developer work out where it is. Just because some people are stupid enough to think that auotmated checking makes their code error free doesn't mean it isn't good to provide automated checking for the rest of us for whom it is useful. There will always be idiots, and you won't magically make them better programmers by failing to catch obvious mistakes.
  38. Re:getting tired of Java = Python! by Anonymous Coward · · Score: 1, Funny

    Well at least it's 2 whole cents. Too many people say stuff like "just wanted to add my .02 cents" which IMO deals a severe blow to their credibility.


    People who work at Verizon have as much right to post as anyone else.
  39. Useful for NASA? by Hognoxious · · Score: 1

    You can do this already with classes, but it's messy.
    I'm a bit of a noob at java, but isn't it messy because java doesn't allow (user defined) overloading of operators? It seems to me I'd define the add operator to homogenise the units first.

    Such that if a.qty = 1 and a.unit = foot
                      and b.qty = 12 and b.unit = inch,

    c := a + b makes c.qty = 2 and c.unit = foot.
    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    1. Re:Useful for NASA? by bberens · · Score: 1

      Nah, you'd make a feet class and a meters class. The meters.add() method would be over-loaded to accept both another meter object or a feet object. In the meters.add() method you'd do the necessary conversion (if any) and return a meters object with the appropriate value. Your way there's no particular reason that the a+b operation returns feett instead of inches. You chose it arbitrarily and that's confusing to the developer using your library/code. Overloading operators is an extremely obtuse way of handling this issue in an object oriented language.

      --
      Check out my lame java blog at www.javachopshop.com
    2. Re:Useful for NASA? by Anonymous Coward · · Score: 0

      No you wouldn't - the rest of the world works in SI units for a reason. You would have static methods for converting from your hillbilly unit, into the base unit used by the algorithm. Overloading operators then becomes a natural expression of the algorithm, which you plug your (now normalised) SI units into.

      And the best part, you can use composition classes with overloading, so that you dont even need static method crap to work with you hillbilly units.

    3. Re:Useful for NASA? by ajs318 · · Score: 1

      if a.qty = 1 and a.unit = foot and b.qty = 12 and b.unit = inch,

      c := a + b makes c.qty = 2 and c.unit = foot.
      Then would c := b + a make c.qty = 24 and c.unit = inch? Because now you've got an addition operator which is not commutative.

      Much better would be to have all "length" objects be metres (which, if you think about it, is what they really are), and then represent alternative units as properties of a generic "length" object. So then your example would be more like

      length a = 0; // must set to zero initially
      length b = 0;
      length c;
      a.feet = 1; // now a = 0.3048
      b.inches = 12; // now b = 0.3048
      c = a + b; // now c = 0.6096

      and then c.feet = 2 and c.inches = 24.

      Note also that temperature and tempdiff can't be the same datatype, because both the Celsius and Fahrenheit scales have offsets (based on the triple point of H2O and what was believed at the time to be the coldest temperature realisable, respectively). When you subtract a temperature from a temperature you get a tempdiff. And you can't add two temperatures, only a temperature and a tempdiff.
      --
      Je fume. Tu fumes. Nous fûmes!
    4. Re:Useful for NASA? by Bastard+of+Subhumani · · Score: 1

      You'd make a member for each different unit? So you'd have a.inches, a.feet ... a.parsecs? There are quite a lot of them so it seems more sensible to me just to have a number and a unit.

      Indeed I was thinking that you'd take the unit from the first argument. While it's true my addition isn't commutative, you'd still get equivalent values - 2 of feet or 24 of inches. Could you control it by initialising the member of the result with the desired unit?, so if c.unit = yard then c.qty = 0.66666' ?

      --
      Only three things are certain; death, taxes, and apocryphal quotations - Ben Franklin.
    5. Re:Useful for NASA? by ajs318 · · Score: 1
      It's actually worse than that (I gave it some thought awhile back). You'd have a.feet, a.inches and also a.feet.inches being the inches corresponding to the fractional part of a.feet. There'd also be a.yards, a.yards.feet, a.yards.feet.inches and even a.yards.inches -- in fact, a pretty cascade of units. And that's just for length ..... I'd hate to see the full list of definitions for units of pressure! On the other hand, you'd be able only to import the units you were actually going to be using from the library. And of course most of the world would get by fine with just a, perhaps multiplied by various powers of 10.

      Assigning the unit and the quantity separately doesn't buy you much. If you can do heterogeneous mathematical operations, then you have to be able to convert from any unit to any other. With your way, when you have mixed units such as feet and inches there's no easy way to get it into the usual form; if you added 6 inches to 5 feet you would get either 65 inches or 5.5 feet, not 5ft6in. To get that, you first need to know how many inches there are in a foot -- bear in mind that in Britain, nobody under 30 knows that (they might claim to know their height in feet and inches, but not the relationship between one and the other -- if they ever wanted to do maths on the figure, they'd get a tape measure and re-measure themselves in centimetres) and in most countries, nobody at all knows. And with my method, all the maths is done using the standard unit and conversions are made on-the-fly.

      Incidentally, whenever I've been writing PostScript by hand (don't ask), I have always put

      /mm { 72 mul 25.4 div } def
      near the beginning. This is just a subroutine which converts the number on the top of the stack from millimetres to PostScript points, but it allows me to position things on the page using units I'm familiar with. So

      newpath
      10 mm 10 mm moveto
      10 mm 287 mm lineto
      200 mm 287 mm lineto
      200 mm 10 mm lineto
      closepath
      .5 mm setlinewidth 0 setgray
      stroke
      gives me a nice half-millimetre border, one centimetre in from the edge of the page. And it's quite readable (or as near as PostScript gets)
      --
      Je fume. Tu fumes. Nous fûmes!
  40. Perhaps JavaFX by centinall · · Score: 3, Interesting

    Although still in it's infancy, JavaFX kinda sounds interesting. I've played around with it a little bit, and it's definitely fun. There are several examples out there showing you how it's done and they get the point across pretty well. It's supposed to be an alternative to Flash and Silverlight and although showing promise, it definitely falls short in it's multimedia capabilities(sound and video). Multimedia would perhaps be the killer feature to add to Java 7. Anyway, they're supposedly optimizing Java 7 to handle JavaFX and JavaFX Script and this is perhaps one of the features that "might" encourage people to upgrade.

    https://openjfx.dev.java.net/

    Btw, JavaFX was previously known as F3 (Form Follows Function?) for those that may be looking up more details and examples of it.

  41. Re:Java 8 by xero314 · · Score: 1

    Not sure about where you work, but at the fortune 500 I work at the HR department doesn't know the difference between a C# developer and a Java Developer, on their papers it just says "Jr./Sr. Software Developer." I never once spoke to an HR representative before being hired so I am pretty sure they have no clue what I do. This is made even more obvious when I read job postings looking fro 5 years of experience in a technology that has only existed for 3 years. Heck the only thing HR cares about is how you score on their Personality Index, not if you have any applicable skills.

    I'm not trying to knock the work HR does, I mean I like getting paid, but taking their opinion as a measure of marketability is a joke. Hiring Managers are not in HR, at least not any where that I have ever worked or interviewed. The people that make the decision on who to hire and what technology to use are low or mid level managers in the technology department.

  42. I don't know... by Zarf · · Score: 2, Interesting

    ...what the programming language of the future will look like but I know it will be called "Java"!!!

    Case in point: As if EJB3 has anything to do with EJB2 other than sharing the same name.

    --
    [signature]
    1. Re:I don't know... by ClosedSource · · Score: 1

      We've definitely entered the "branding" era in software development. Windows Vista and Windows CE have little in common just as J2EE has little in common with JME and Desktop Linux has little in common with a tiny embedded Linux.

  43. We've been using this for the last few months by Sanity · · Score: 3, Interesting

    We have been using the JScience package to record a variety of internal data about a (we hope!) large scale statistics intensive website we've been building. It is actually a breath of fresh air not to have to worry about accidentally confusing impressions per minute with unique visitors per hour, but rather letting the compiler do the worrying for you. This will be a great addition to Java, but you don't need to wait, JScience's implementation is robust and we've been using it in production for months.

  44. Re:Java 8 by HouseArrest420 · · Score: 1

    Hiring Managers are not in HR, at least not any where that I have ever worked or interviewed.

    Hmmm then maybe you work in one of those special career paths or I do, because EVERY job I've had I've been hired AND fired by HR; well except the one I'm at now, but thats only because they haven't gotten around to firing me yet.
    --
    This is Slashdot! Give me the latest gadget, bug, or OS project! This ain't english class so don't confuse the two!
  45. Re:Java 8 by xero314 · · Score: 1

    All hiring and firing decisions I have experienced have always been by technology managers, the one I was too, or did, actually work for, and they just needed rubber stamping from HR. (with the one exception being the CEO that let personal feelings affect work decisions, and he wonders why I thought he was an idiot) I wouldn't take a job if it was HR that made those kind of decisions. There is no way I would be caught dead working for a manager that didn't decided their own staff.

  46. So, tell us by ClosedSource · · Score: 1

    What aspect of C$ is poorly designed compared to Java?

    1. Re:So, tell us by kaffiene · · Score: 1

      I had exactly the same experience as the grandparent poster. The design issue comes in the APIs. The Java APIs are better designed and more complete. When I started programming in C#, I had to write my own table class as there wasn't one in .NET at all (there was a data table which works only with databases, but that was not generic enough to repurpose)

      The other thing about the .NET apis is the same problem that Delphi suffered from: the APIs are not all created equal - some are .NET elements, some are thin veneers over system calls. Sometimes you'll get a stack trace on exception, sometimes you won't, sometimes the API is clearly ".NET aware" sometimes it's clearly some crufty relic from some earlier layer of MS silt.

    2. Re:So, tell us by Javagator · · Score: 1

      I use a ListView in C# where I would use a JTable in Java.

    3. Re:So, tell us by FreeGamer · · Score: 2, Insightful

      I'll give you the #1 reason Java pwns C#: depth

      It has more applications, more libraries, more documentation - all from years of industry backing, making Java a behemoth when it comes to implementing anything. And Java has Eclipse, C# has Visual Studio. Eclipse is amazing. Visual Studio is, well, it's good but it does not compare to Eclipse in terms of features and extensibility and stability.

      Recently I had to mine information from a Paradox 7 database. I had an existing C# middleware server to adapt to do this. Skip forward a month and it's all done using ODBC to make the connection. (We'll gloss over how the default MS driver only does Paradox 4/5 and not 7, forcing the usage of DataDirect's expensive ODBC driver.) So, go to the client to install it, and it doesn't work - turns out the DB is on a network share which appears local. Ok, so, inexperience on my part for not getting the full topology correct and replicating it in the development environment - not a C# problem itself. Turns out no ODBC driver will connect to a Paradox DB on a share, but a JDBC driver from hxxt will.

      So, C#, can use anything in it right? After days trying to plug a JDBC driver into C# middleware I ditch it and rewrite the part the client needs purely in Java.

      I've done in a few days what took a month using C#. The JDBC driver is lightening quick whereas ODBC was slow as hell and problematic at best. Eclipse is a dream to use compared to VS2005. SharpDevelop is miles off.

      I can rely on Java and the Java world. I just can't say the same for C# and it's world.

    4. Re:So, tell us by kaffiene · · Score: 1

      Yeah, I agree, it's less the language so much, more the API and the community (and I include corporates in that community, because they cooperate on standards even if they compete on implementations)

    5. Re:So, tell us by ClosedSource · · Score: 2, Interesting

      I don't know what you were trying to accomplish, but if you wanted a GUI element in .NET you could have used a ListView, a DataGrid, or the newer DataGridView.

      BTW the .NET DataSet (which contains DataTables) doesn't just work with databases. You can manually set Rows and Tables or read XML into them.

  47. Re:getting tired of Java = Python! by Anonymous Coward · · Score: 0

    I didn't know Verizon posted around here.

  48. And while your at it by ClosedSource · · Score: 4, Funny

    Please answer the same question for C#.

    1. Re:And while your at it by emjoi_gently · · Score: 1

      If you are writing programs *FOR WINDOWS*, then the whole .Net thing is definitely better. You get a program that matches the L&F of Windows far more precisely with a library designed to work well with Windows.

      I've used both languages long enough to know that both are far better than the bad ol' days of writing C++. Both are well thought out, and have strong class libraries. Both have a wealth of 3rd party code out there.
      Loving one shouldn't require you to hate the other.

      If I was writing some server side app to be run under Tomcat and Apache, then sure I'd pick Java. Horses for Courses.

  49. Monetary? by Anonymous Coward · · Score: 0

    Actually I find this JSR very interesting. However I wish it also covered Money. Money is very complex as well and used in most business software. It has problems that are similar to that of units and measures.

    1. Re:Monetary? by Chris+Pimlott · · Score: 1

      It's natural to think of Money as an extension, but I imagine that it'd be very dangerous to do so. Weights and measures have well defined and stable conversions, money does not. There'd be some different structural requirements to deal with, and you'd have to have some mechanism for constantly updating the conversion rates.

  50. Re:Java 8 by Anonymous Coward · · Score: 0

    rm -rf java.measures.imperial_units.*; // fuck you England with your mummy, the Queen.
    import java.measures.international_metric_system.*;

    class MeTeR_MeaSuRiNG_THe_LiGHT {
    public static void main(String args[]) {
    System.out.println("Light's speed = 300'000 Km/s more or less :P .\n");
    }
    }

  51. Re:Java 8 by jacksonj04 · · Score: 1

    Umm... I hate to point this out, but it tends to be the US which are clinging on to imperial measures. We're quite happy over here with kilograms, metres and litres. Sure the road signs haven't changed (More's the pity), but we're getting there.

    Incidentally, why put speed of light in that stupid form? 3.00*10^8 is a much nicer way, and deals with significant figures to boot!

    --
    How many people can read hex if only you and dead people can read hex?
  52. Re:getting tired of Java = Python! by Anonymous Coward · · Score: 0

    Python is fucking retarded.

    Whoever thought it was a good idea to use TABS instead of BRACKETS needs to be shot in the face for being a retard.

  53. What gold standard? by lennier · · Score: 2, Interesting

    "It could even be responsible for the public's acceptance of no gold standard for the dollar. They're not demanding to know what the reference point of "one dollar" is."

    I really don't understand this obsession with the Gold Standard. A gram of gold has no intrinsic value either, any more than one US dollar does. (Other than for making connectors on circuit boards). Its value, like the dollar, lies purely in what other people are willing to exchange for it - and like a paper currency, that 'value' can fluctuate wildly. Gold is simply a fiat currency on a global scale, and its arbitrarily assigned market value bears no relation to any true wealth. The same for every single other investment or speculation commodity, be it diamonds, yen, shares, futures, tulips or bets on horses down at the local track. If its value derives entirely or mostly from *other people's subjective valuation of it* then it's an illusion, a Ponzi scheme that just hasn't collapsed yet - but drop someone in a desert with the choice between a gold bar and a bottle of water, it will.

    Gold's main value as a currency was because 1) it didn't corrode, 2) it wasn't useful for anything else, and 3) it was produced at a slow but mostly constant rate (but not at a rate usefully matching the actual growth of economies, leading to huge abberations like Spain's inflationary spiral after gaining South America's goldfields, and the gold rushes of the 1800s)

    Basically gold was just a crude mechanical approximation of a cryptographic reputation protocol implemented in ore. Its failings as an estimator of personal and social worth are legendary. We can do a lot, lot better.

    Now: if you pegged a currency to a basket of useful commodities or social indexes: water, food, housing, textiles, domesticated wildlife, access to healthcare - the things that a person or society can actually *use* as primary units of biological energy and production - then you'd have a currency with *real* intrinsic value, and you could start talking about having a philosophy behind your money.

    --
    You are not a brain: http://books.google.com/books?id=2oV61CeDx-YC
    1. Re:What gold standard? by michaelmalak · · Score: 1

      Now: if you pegged a currency to a basket of useful commodities or social indexes: water, food, housing, textiles, domesticated wildlife, access to healthcare - the things that a person or society can actually *use* as primary units of biological energy and production - then you'd have a currency with *real* intrinsic value, and you could start talking about having a philosophy behind your money
      There are two problems I see with that idea:
      1. If the dollar is pegged to a tenth of a basket, and at that time a bottle of water happens to cost a dollar, and then a year later say the price of a bottle of water goes up to two dollars, then the dollar has to be re-pegged. What is the process of converting one year's dollars to the next year's dollars? What is the process of adjusting salaries -- would it be required by law?
      2. Who would determine the basket? The federal government? That's led to a lot of problems now with cost-of-living increases. The federal government says inflation is 3% when it's really closer to 7%.
      In short, your idea relies too much upon government. Gold would keep the government out of our money.
  54. Re: camioneros's draft. by Anonymous Coward · · Score: 0

    "Mi camión que tiene una potencia de 400 cerdos bate a este LandsRover con una aceleración punta de 666 patas de cerdo por latido del corazón de cerdo al cuadrado".

    Es que "We've using the new Marranos's system" to be the new proposal for the "camioneros's idiot people".
    The camioneros's leader is Homer Simpson.

    Too cryptic? It's lesser cryptic than the imperial feet!!!

  55. Java vs C# No contest in the ISV marketplace. by Anonymous Coward · · Score: 0

    It's a bit of joke when we encounter MS .NET competitors in the mid-large size arena.

    Firstly they die on price as they have endless expensive requirements for MS product.
    Secondly the die on portability. Our stuff scales to Z-series mainframes down to laptops, Linux, BSD, OSX *unix and MS Windows are all supported. Our competitors: Works on all kinds of OS - XP _And Vista.
    Thirdly they uniformly offer MS SQL Server as _the database. We support 19 database targets including that one.

    It makes me laugh. Monolithic vs choice. Most businesses will go choice in my experience.

    1. Re:Java vs C# No contest in the ISV marketplace. by Lethyos · · Score: 1

      Posting random comment to undo accidental Offtopic moderation I made. This comment is Informative. Stupid instant moderation system!

      --
      Why bother.
  56. Re:Java 8 by pcardno · · Score: 1

    Really?

    I'm assuming that you were only interviewed by an HR person? That they talked to you, decided you were the right person for the job, and hired you? I imagine they liked your go-getting style. Maybe they believed you were a self-starter, with good prospects to become a valuable member of the organisation?

    And when you got to your team and they asked you to get to work with your 5 years experience in PL/1, you shat yourself as you only ever learnt Java at university? HR took you away, got you cleaned up, then fired you for ruining company furniture? That's pretty much the only way I can see "HR hired me, HR fired me" working in a real sense.

    HR search for people, do the personality bit, the background check and administer any tests. The team you're going to go into's manager decides whether you're a good fit and whether your CV is bullshit or at best 50% true. If HR tried to hire anyone to work for me without me having done the groundwork I'd refuse to have that person in my team. But that wouldn't happen, simple because you're talking utter nonsense.

    --
    --- Band: Joey Ultra
  57. Re:getting tired of Java = Python! by Anonymous Coward · · Score: 0

    if you like making nice GUIs, check out WxPython.


    Speaking as one of the dev guys for my company's custom IDE written in Python: "Hell No".

    Swing is loads better than WxPython for... for... just about everything.

    I mean, good god! Take a ListCtrl control. Now put something in it. What's that, lassie? You say you want to associate an object in memory with the item in the list? Too bad! You can only attach a long integer to it, not an object reference. So you need to maintain your own lookup table between those objects and the GUI row items at all times! Doesn't that sound like fun?

    Almost as fun as needing to practically hardcode a block of integer IDs to make events that link button clicks to function calls. What fun!
  58. Re:getting tired of Java = Python! by glitch23 · · Score: 1, Funny

    Too many people say stuff like "just wanted to add my .02 cents" which IMO deals a severe blow to their credibility.

    Coincidentally those are the people who work for Verizon.

    --
    this nation, under God, shall have a new birth of freedom. -- Lincoln, Gettysburg Address
  59. Re:Java 8 by Anonymous Coward · · Score: 0

    or you could try some more realistic figures. many refer to developers as .NET Developers. Language is irrelevant.
    now of course the Java numbers are actually inflated as they also pick up the javascript jobs when you search. Realistically they are both about 50-50 for market share on jobs at the moment.

    Dice. .NET 12135

    Monster .NET 2559

  60. java.util.Date Please! by __aaklbk2114 · · Score: 1

    Now, Sun, if you would just fix the damn date, time, and calendar arithmetic class library! Or is 12 years not enough time?

    1. Re:java.util.Date Please! by mwanaheri · · Score: 1

      What's wrong with GregorianCalendar?

      --
      Idha khatabahum lijahiluna qalu salaman
    2. Re:java.util.Date Please! by Calvin+Deck · · Score: 1

      Have a look at joda time http://joda-time.sourceforge.net/ a JSR for this libery http://www.jcp.org/en/jsr/detail?id=310 is also scheduled for Java 7

  61. Stick with what you know by ClosedSource · · Score: 1

    Obviously, the fact that Java has been around 3 or 4 times longer than .NET is going to mean it has more depth. Being newer isn't a design flaw.

    As far as your personal project is concerned, you shouldn't count the time you screwed up as time you spent on C#. It also sounds like you know Java well and .NET, not so much, so you made the best decision given your skill set.

  62. "This stinks, it's total crap." by SlowMovingTarget · · Score: 1

    More Java growth?

    Yes, as in "strong and promotes growth."

  63. That's an implementation detail. by Anonymous Coward · · Score: 0

    Unit conversions are invertible functions. It simply doesn't matter which units you use as the low-level representation.

  64. That's just a type system. by Estanislao+Mart�nez · · Score: 1

    The idea is based on the philosophy that numbers do not exist in isolation. It is possible to speak of, e.g., the number 5 as an abstract entity unto its own, but that should be rare. Most of the time, "5" refers to the ratio "5:1", where the "1" refers to something tangible. In science, the "1" is denoted with units.

    You're missing something more basic: magnitudes form the basis of an algebra that's isomorphic to algebra on the real numbers. That's the whole reason that it's possible to use operations on numbers as a surrogate for operations with magnitudes: e.g., you can find out how long two pieces of wood placed end-to-end would be by adding numbers that stand in the correct relation to the magnitude of their lengths.

    The number 1 doesn't have any special properties in this connection. It's just another real number. (0 is another story, of course, because it's the identity.)

    Compilers should be doing dimensional analysis at compile-time. I had originally hoped to create C++ templates -- which are evaluated at compile-time -- to do this, but I couldn't quite see how to get them to handle all the possible permutations of unit combinations and conversions -- at least not easily. It really needs to be built into the language.

    This is really a static type analysis problem. It's possible to do some of this in languages with really powerful type systems, like Haskell; here is a link to a Haskell library that performs compile-time dimensional checking.

  65. Re:Java 8 by gacl · · Score: 1

    Funny! I think the imperial system will need more than that. . . like a virus.

  66. Ada is back baby by kompiluj · · Score: 1

    Ada is back.

    --
    You can defy gravity... for a short time
  67. Great, now we have units. Next up... by WWWWolf · · Score: 1

    I'd really like to see "fuzzy" values next. Particularly fuzzy values for dates.

    Almost every application out there stores absolute times. But very often you don't know the exact date and time and you'd like the computer to be able to still record, display (in localised form) and sort it according to what precision you do have - sorting "January 6, 2007" before "Some time in summer 2007". Free text fields and ad-hoc date notations suck.

  68. Feedback on PDF by LarsWestergren · · Score: 1

    I read the PDF, looks very interesting. I don't feel qualified to comment on the scientific suitability, but I have one suggestion with regards to naming:

    SystemOfUnits - would it be possible to rename it to UnitSystem? Easier to write, and especially easier to say in a conversation, which one sounds better if you are talking to colleagues during a code review? For instance -

    "Here I've used the SI UnitSystem, but perhaps another UnitSystem would be preferable?"
        vs
    "Here I've used the SI SystemOfUnits, but perhaps another SystemOfUnits would be preferable?

    On the other hand, to avoid confusion the SystemUnit class would then have to be renamed to something else - USUnit maybe, which looks ugly, or UnitSystemUnit which is both ugly and awkward. Hmm, difficult choice. Maybe SystemOfUnits isn't that bad after all. :)

    Cheers,
    Lars

    --

    Being bitter is drinking poison and hoping someone else will die

  69. Re:Java 8 by Phil+John · · Score: 1

    The reason the road signs haven't changed is more one of practicality than anything else.

    Items in shops are in the supply/usage chain for a few months (at most). Cars are in the supply chain for many years.

    Some speedos on cars would need a new decal, which wouldn't come cheap (removing the glass panel, applying, calibrating). This is less of a problem on cars with digital speed displays, all that takes is a firmware change to the european version.

    More problematic is that every single speed limit sign, distance sign and mile marker would need to be changed at a cost of many many millions of pounds (when I saw the number I couldn't quite believe it). You couldn't even phase it over a few years as you'd just end up confusing people (maybe distance signs, but not speed signs).

    Personally I'd rather that money go on improving public transport and the NHS than a pointless exercise to realign our distances with the rest of the world, it's not as if it's a big problem any more - we use metric for all of the important things these days already as you pointed out.

    --
    I am NaN
  70. 1.5 ?? by andr0meda · · Score: 1


    I know upgrading is not always desired or possible with 3rd party app-servers etc, but in the case of 1.6 you seriously need to consider the move. 1.6 will boost your performance considerably, while you need to change virtually nothing. It also brings along some bugfixes (which, granted, also can result in behavior changes that need to be re-tested, but you have test suites, right?) and platform improvements.

    Seriously.

    --
    With great power comes great electricity bills.
  71. User definable operators are missing by Thomas+Mertes · · Score: 1

    To use the units of measurement easily it would be helpful if
    Java had user definable operators or at least operator overloading.

    That way a more "natural" notation of formulas would be possible.

    Abstract data types would also help with measurement units ...

    Greetings Thomas Mertes

    Seed7 Homepage: http://seed7.sourceforge.net/
    User defined statements and operators, abstract
    data types, templates without special syntax,
    OO with interfaces and multiple dispatch.

  72. I invented this first! by ajs318 · · Score: 1
    Hey, I invented this first!

    I was actually trying to create a parody of a riduculously-strongly-typed language, which I was going to call "Rosie" (something else you can have a cup of, see ..... it's rhyming slang ..... "Rosie Lee" == "tea") and which would actually have types representing physical quantities. Every object-type in Rosie has an "obvious manifestation" as a general scalar and various properties. An object of type "length" has as its "obvious manifestation" a floating-point number of metres, and properties which give its conversion into other units. For instance, a length object has a feet property, which is actually of type lengthInFeet and which manifests obviously as a floating-point number of feet (you can use its numFloor property to convert it to an integer); but has an inch property of type lengthInInches which manifests obviously as a floating point number representing the odd inches. But the length object has its own inch property, which represents the whole length in inches. (The division sign / is overloaded as an infix operator; which does not make any less sense than overloading the addition sign + as a string concatenation operator, although Rosie doesn't do that. If you want to divide, you must put spaces before and after the / symbol.) For example, if h (of type length) = 1.72 then h/feet = 5.643045, h/feet/inch = 7.716535 and h/inch = 67.716535. Easy innit? You can also assign to properties, though you should always reset a variable before performing any non-obvious assignment. For instance, the sequence
    reset h
    h/feet = 3
    h/feet/inch=3.370007
    leaves h/inch equal to 39.370007 and h equal to 1.

    "In Rosie, there are NO comments; there are only string constants evaluated in a void context";
    d isOfType length;
    n isOfType numericAuto/user;
    r isOfType stringWithPlaceholders = "$m metres is $f feet, $i inches.\n";

    "Obtain the value of n from the user.";
    n/prompt = "Enter a distance in metres";
    n/ask;
    d := n;

    "Fill in the placeholders in our response text with selected properties of d";
    "Note, we need to use numFloor property of feet in order to discard fractional part.";

    r/fillPlaceholders m=>n, f=>d/feet/numFloor, i=>d/feet/inch;
    r/say;

    "Done with these variables now, so free them up";
    forget r,n,d;
    I never finished coding up the interpreter, though :( Not that it matters now someone else has implemented pretty much the same idea .....
    --
    Je fume. Tu fumes. Nous fûmes!
  73. Re:getting tired of Java = Python! by alx5000 · · Score: 1

    Shut up! ;) PS: My sig is a Verizon-related pun

    --
    My 0.02 cents
  74. I did implement this in C++ back in 1995 by Jamie+Lokier · · Score: 1

    Not using templates - templates weren't even reliable in G++ in those days. I did try using them, but it quickly became unmaintainable.

    I used an Emacs Lisp program to generate C++ classes for every dimensional combination in our programs, and operator overloading to combine them.

    For example, we had "Velocity", "Speed", "Time_Interval", "Absolute_Time", "Position", "Acceleration" and several other classes, which could only be combined in certain ways. We had different types for different numbers of dimensions, too - 1d, 2d, 3d.

    When compiled it all came down to simple arithmetic - nicely optimised. But any mismatch in dimensions showed up as a reasonably clear compile error. It worked really well. And it was reasonably maintainable with the Lisp code generator.