Get your jaws into Java 6
99810
Master the latest edition Site offer Another week, another offer. This week the techies at Register Books thought we'd offer a helping hand to all those who ply their trade in Java, the OO, platform independent programming language.â¦
741179
Christian Wenz has pointed out an older post from Larry Wall talking about the line between scripting and programming languages (mentioning specifically PHP).  From the article "":  I think, to most people, scripting is a lot like obscenity. I can't define it, but I'll know it when I see it. [...] If I had to pick one metaphor, it'd be easy onramps. And a slow lane. Maybe even with some optional fast lanes.   Larry goes through tons of different older languages commenting on their viability in the online community including: Javascript, LISP, Pascal, Python, Ruby and PHP. He then looks at the present and what sorts of things are happening in languages these days. This list includes things like early binding/late binding, eager typology/lazy typology, limited structures/rich structures, class-based/prototype-based and transaction/reaction/dynamic scope.
267108
And the truth about Project Cool A bit of nostalgia for you. Cast your minds back to 1999 or thereabouts. Microsoft is finishing off IIS 4.0 and there is no such thing as C# or ASP.NET. However, there are rumours that Microsoft is creating a Java-like platform codenamed "Cool", in the aftermath of a dispute with Sun that was making it impossible to use Java itself. Microsoft denies the rumours.â¦
424560
Hiveminds has published a new tutorial today that looks at bridging the gap between Java and PHP by allowing the execution of Java jar files from within PHP.   Here's how to team up two of the most popular and powerful platforms for web development together. With the php-java bridge you can build classes and jar files in Java and call them and use their methods in PHP. Use the quick and easy PHP language to bring Java muscle to your web pages   They step you through the creation of an autoexec file, briefly touch on the Wampserver package, help you get the php-java bridge installed, and give you some sample Java code to play with. It's a pretty basic almost "hello world" kind of example that they give the PHP code for as well, showing how to execute it from within your code.
322217
Sara Golemon brings us some news from the front about PHP6 in her latest blog entry today.   While everyone else has been busily gearing up for the release of PHP 5.2 and the new features that are going to come with it, Andrei and his small band of merry babelonians (yours truly included) have been making inroads on preparing PHP6 for a preview release. In the past week we've managed to roughly double the number of builtin functions (those which are part of the main distribution) that have been reviewed for unicode safety, either flagging them as good or upgrading their functionality   She also talks about what kinds of functions this entailed and how far along they are total (around 22%). She also encourages anyone that wants to get involved to help to jump right in.
715598
Looking to make Web development easier for Java developers, the Apache Software Foundation began offering this week Apache Wicket 1.3, an open source component-based Web framework.Formerly housed at SourceForge, the Wicket project moved over to Apache last year; version 1.3 is the first release bearing the Apache nameplate, said Martijn Dashorst, chairman of the project and a senior software developer at Web application development firm Topicus. Enhancements have been made in areas such as AJAX (Asynchronous JavaScript and XML) and portal support."The purpose [of Apache Wicket] is to make development for Java developers simple as a possible," Dashorst said. "We use a component model for that."Developers can create components with plain old Java and HTML, Dashorst said. Apache Wicket 1.3 is downloadable here.Developing Web applications in Java has been a problem; Apache looks to address this with Wicket, according to Dashorst. "In JSF (JavaServer Faces), for instance, it's fairly hard to create your custom components. You need to have almost a graduate degree to create custom components with JSF," he said.Apache Wicket's lack of reliance on XML is hailed on the project's Web site."With proper mark-up/logic separation, a POJO [Plain Old Java Objects] data model, and a refreshing lack of XML, Apache Wicket makes developing Web apps simple and enjoyable again. Swap the boilerplate, complex debugging and brittle code for powerful, reusable components written with plain Java and HTML," the site said. Wicket emphasizes a logical separation of design and code.A key improvement in version 1.3 is enhanced AJAX support. "Pages can be a lot more dynamic than previously," Dashorst said.Google Guice capability has been added as an alternative to using the Spring Framework with Wicket. Developers also can use Wicket pages directly in a portal without changing a line of code.Also new is the switch to the Apache license over from the Lesser GPL (GNU General Public License). "It's more business friendly," because it allows companies to create closed-source products from Wicket, Dashorst said.A user of Apache Wicket, Nicholas Heudecker, principal at software development firm System Mobile, said his company migrated to Wicket and away from Struts."With Wicket, it's just a lot easier. There's no extraneous configuration. Everything is controlled within the Java code," Heudecker said. "Once people have an opportunity to take a look at it, they'll really like it.?Although pleased with the extra AJAX support and development features in version 1.3, Heudecker added he wished there were better tools support for IDEs. Heudecker said he uses the JetBrains IntelliJ Idea IDE with Wicket but would like more tools.Version 1.3 can scale to very large numbers of users with stateless pages and components. An Apache Velocity template engine in version 1.3 allows for user-generated macros in applications such as a content management system.The logging API in Apache Wicket 1.3 switches from commons-logging to SLF4J (Simple Logging Fa?ade for Java). This bolsters debugging and makes application deployment safer.Although the current version of Wicket is anchored on Java Development Kit 4, the next release in a couple months will be based on Java 5, gaining benefits such as generics to improve safety, Dashorst said.Wicket has been downloaded about 120,000 times since it began three years ago. It was moved over to Apache because of infrastructure issues such as spam and sustaining outages in the Subversion repository at SourceForge, Dashorst said.SourceForge representatives could not be reached for a response.
669867
(InfoWorld) - Sun continues to work on the Java Kernel, the idea of which is to provide a subset of the Java Runtime Environment tuned to particular programs. Formerly known as Java Browser Edition, the Java Kernel is planned for release as part of Java Standard Edition (SE) 6 update 4, probably in early-2008, a Sun representative said on Friday. Developers will have early access to the code to provide feedback. An original intent was to make Java like a Flash plug-in and enable a resurgence of Java on the browser. Applications would specify which features they need, such as Swing and XML parsing, said Sun staff engineer Ethan Nicholas, who is working on the project. "The basic idea was that the current Java Runtime Environment is simply too big, and most programs require only a small subset of the functionality," Nicholas wrote in September 2006 on his blog. "The 'browser edition' that I suggested would enable you to install exactly the subset of Java that your particular program required, but you would be able to download all of the other functionality on demand (and thus be fully compatible with J2SE)." Some Sun employees doubted the project would fly, according to Nicholas. Even a detailed analysis of the idea painted a bleak picture, he said. "The feature did in fact get submitted as a proposal for Java 7 under the name "Java Kernel" (the idea being that you download a small "kernel" of Java functionality, which is in turn capable of downloading the rest of it)," Nicholas said. Nicholas said he developed a stripped-down JRE installed containing only enough functionality to run "System.out.println," or "Hello World." To determine which files were necessary for the project, Nicholas wrote a program to iterate through the JRE files. "After going through all of the files in this fashion, I was left with an extremely minimal JRE that could run Hello World and ... well, that's about it. But it at least provided a starting point. Building a working installer from this JRE was itself a challenge because several of the files that weren't necessary to run Hello World were still necessary to successfully install the JRE, but I persevered and now have a fully functioning, minimal JRE," Nicholas said. Comments about the project posted on Nicholas's blog varied. "I also believe modularization of the JRE is the solution. Not just for the size of the download, but also for different other issues," one commenter said in 2006. "The problem here is that Java isn't just a browser based technology, it's a platform. When I write a Java applet or application, I expect the platform to be there," said another respondent.
33385
Arrays and other classes go into the basic Parrot PMC hierarchy, and Dan finally embraces Unicode while perl6-language ... doesn't.
702834
Pierre-Alain Joye takes a look at building Cairo (a vector-based graphics library for PHP) on a Windows system.    While trying to get the cairo (and pimp) PHP binding ready to be released, I finally sit down and port Wez build cscript to cairo. It still needs some cleanup, a nice summary message but it works already. I tested it with Visual C++ Express Edition but it should work with other versions as well.   My next goal is to add the tests (nmake tests) and fix the nmake instal    He describes the process he went through to try to get things up and running, but is still having a few issues and has required a few tweaks to get it working. He also links to two resources: a ZIP of the development libraries and a ZIP ready to use package.
465248
Ever wanted to write a Java program that crawls the Web, reads HTML-pages, retrieves the links, and gets the new pages with more links? Well, this month Keld Hansen shows you how.
701641
Havard Eide is asking for your help in a new entry to his blog. He's looking for ways to speed up his development in Eclipse, specifically in the debugging.   There is one thing I do need over everything else: remote debugging. Having used Zend Studio for 3 years now it hasn't been the best editor ( I'd rather prefer PHPEclipse/PDT ) but the remote debugging facility is superb [...] Eclipse it has all the tools you need to develop with but the debugging is slow, way too slow!   He's looking for anyone out there that might be able to help him speed up the debugging on his Leopard-installed version of Eclipse ("So slow actually that I had to install Zend Studio 5.5 for whenever I have to debug a file...")
18526
Sun is working on technology to make it easier to run different languages on the Java Virtual Machine. Called the Da Vinci Machine, the project is being described by Sun as "a multi-language renaissance for the Java Virtual Machine architecture." The project features prototype JVM extensions to run non-Java languages efficiently as well as architectural support.Although many languages besides Java have been implemented on the JVM, including Ruby, the intent is to make the JVM more compatible with other languages, said Charles Nutter, core developer of JRuby, which is a version of Ruby to run on the JVM. "For the most part, almost every language that's more than five years old has some kind of implementation on the JVM," he said. ?The JVM allows programs using it to run on any platform supporting the JVM; it provides hardware and OS independence. Benefits like flexible online code loading and online garbage collection, in which objects are moved out of the way automatically rather than having to be saved manually, are featured.Da Vinci Machine is intended to overcome obstacles like mismatches between a source language's design patterns and JVM capabilities. Because the JVM was designed for Java and Java favors some design patterns over others, implementers can find themselves dealing with these mismatches, Sun said."Specifically, the JVM was originally for Java, and many other languages have features unlike what Java provides. We need to find ways to support those features," said Nutter.Some pain points to running new languages on the JVM include limitations on calling sequences and control stack management, finite inheritance, and scaling problems when generating classes.Nutter pointed out that Java, in being a statically typed language, differs from scripting languages like Ruby, which are dynamically typed. Thus, Java gives the JVM more clues about what code is going to be executed. Ways need to be found to let the JVM make the correct call for these languages, he said. In JRuby, this obstacle is addressed via a piece of code to inspect target operations.Capabilities of Da Vinci Machine are planned for inclusion in the upcoming JDK (Java SE Development Kit) 7, which is based on Java Platform, Standard Edition 7. Sun could not provide a release date for JDK 7. It is not known how many Da Vinci features might actually get into JDK 7, Nutter said.Da Vinci represents an experimental branch, or even a fork, of the JVM, said Nutter. He cautioned that fork in this case is not meant to carry the same negative connotations associated with forking of a platform.Java developers questioned liked the idea of Da Vinci Machine."[Da Vinci Machine] sounds like something I was thinking was going to happen and should have happened," said Daniel Hinojosa, an independent Java developer and a founder of the Albuquerque Java Users Group. "I think there's going to be a race between Java and the Microsoft [CLR (Common Language Runtime)]." The CLR has been likened to a virtual machine supporting multiple languages. "I think Java's a great language, but I think people like to program differently, whether it's a functional language or a scripting language," he said. Hinojosa said has been running JRuby, Groovy, and Java on the JVM.Developer Alex Miller, tech lead at Java clustering technology vendor Terracotta, also agreed with the Da Vinci Machine effort."There are lots of people writing and running dynamic languages on the JVM these days, and there are certain things that are complicated or obscure with the use of [dynamic] languages," Miller said.A lot of dynamic languages differ from Java in that they leverage functions rather than objects, Miller said. Making them work on the JVM requires extra work, he said.Sun's JRuby project, meanwhile, is getting an upgrade. Version 1.1, due within a month, features a full compiler to greatly improve performance, Nutter said.
190663
Joshua Eichorn points out an interesting project in a new post to his blog today - quercus.   I found an interesting project, quercus that compiles PHP to Java Bytecode allowing it to run ontop of the Java Resin Application Server. It has a couple neat features, one being PHP6 compatible unicode support, the other being easy integration between Java and PHP code.   He gave it a shot and notes that the performance seems decent and allows you to compensate for some of the differences in the PHP API it supports and what you're using via a Java class. According to their site:   Quercus is Caucho Technology's 100% Java implementation of PHP 5 released under the Open Source GPL license. Quercus comes with many PHP modules and extensions like PDF, PDO, MySQL, and JSON. Quercus allows for tight integration of Java services with PHP scripts, so using PHP with JMS or Grails is a quick and painless endeavor.   It includes several extensions too, including the JSON library, APC, MySQL and Oracle support, and PDF functionality. Check out their Getting Started guide, documentation, or their wiki for more information.
283883
Read and Write ICO,BMP formats in 100% pure Java   Been a long time in the making, but I've finally gotten round to the final release for 0.7  The library appears to be stable, hence my decision to finalize the current release.  Thanks to Olivier Le Tiec for reporting a bug with irregular icons (width != height), together with the necessary bug fix.  Thanks for using image4j!
245642
Adding to his popular Install PHP 5 on Windows workshop, Edward Tanguay has just posted two new steps, which teach you PHP 5 object-oriented programming in a very practical manner: In the first step you download and set up a PHP 5 page which reads an XML file and displays book reviews linked to the Amazon Associate program. In the next step, Edward goes line-by-line through the code and examines the classes, properties, constructors, public methods, private methods and static methods discussing how each works and why programming in this fashion is better than procedural programming. There are dozens of screen screenshots which make this tutorial easy to follow. If you get stuck or want to discuss an issue, you can instantly post questions and comments on each step without registering.
283542
InfoWorld - Sun Microsystems on Monday night posted a prerelease, "snapshot" version of Java 2 Standard Edition 6.0, code-named Mustang, which represents the next generation of the Java platform.&#160;
684433
Sun Microsystems Inc is courting community views for the next version of Java 2 Standard Edition, the foundation stone of Java scheduled for spring 2006.