The Case for D / By Andrei Alexandrescu

Source: http://www.drdobbs.com/high-performance-computing/217801225;jsessionid=552NPNXL1LY5NQE1GHPSKHWATMY32JVN

There are two major versions of the language -- D1 and D2. This article focuses on D2 exclusively. D1 is stable (will undergo no other changes but bug fixes), and D2 is a major revision of the language that sacrificed some backwards compatibility for the sake of doing things consistently right, and for adding a few crucial features related to manycores and generic programming. In the process, the language's complexity has increased, which is in fact a good indicator because no language in actual use has ever gotten smaller. Even languages that started with the stated intent to be "small and beautiful" inevitably grew with use. (Yes, even Lisp. Spare me.) Although programmers dream of the idea of small, simple languages, when they wake up they seem to only want more modeling power. D's state of transition is putting yours truly in the unenviable position of dealing with a moving target. I opted for writing an article that ages nicely at the expense of being occasionally frustrating in that it describes features that are in the works or are incompletely implemented.

Citeste mai mult

Nici un comentariu  •  Posts  •   • 

How to manage SCSI harddisks on Solaris / UNIX

I love SCSI harddisks for their reliability and speed. If the environment is not extreme and the cooling is proper they can work 24/7 for years.

Eventhough happens from time to time that some harddisks fail, some needs to be changed, or some configurations simply began to display errors like: MAGIC NUMBER WRONG.

0. To start with, I would first run the fsck utility to check for any inconsistency and where is this located.

Run: fsck -y

This will run through the list of /etc/vfstab harddisks entries and slices and will display something like:

blue # fsck /dev/rdsk/c0t2d0s6
** /dev/rdsk/c0t2d0s6
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
2 files, 9 used, 70420729 free (9 frags, 8802590 blocks,  0.0% fragmentation)

** /dev/rdsk/c0t2d0s6
BAD SUPER BLOCK: MAGIC NUMBER WRONG
USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION;
eg. fsck [-F ufs] -o b=# [special ...]
where # is the alternate super block. SEE fsck_ufs(1M).

Or if anything wrong then something like will output the errors.

1. If a new HD was added I would boot with the option to reconfigure:

boot -r

You can also check the boot messages here:

vi /var/adm/messages

2. Verify the /etc/vfstab file and /etc/mnttab files.

In order to do a clean repair but still the server to be useable, I would munt/unmount from these files.

3. Use the format  utility to check more in detail the status of the harddisks.

For example I run the read tests often. Also from format it is possible to configure partitions, etc.

After a configuration was made, from format use also the label, to write the changes.

If the harddisk is new, and configured the partitions with the format utility you need to create also the new filesystem on the slices:

Ex: newfs /dev/rdsk/c0t1d0s6

4. Modifiy the /etc/vfstab and add the newly created slices to it. Also create mount entries on the /etc/mnttab file:

blue # mkdir /files0
blue # mount /files0
blue # df -a /files0

This will return the mount point created.

Nici un comentariu  •  Posts  •   • 

Josh Bloch on the Future of Java

Source: http://www.infoq.com/news/2010/04/bloch_java_future

A Discussion with Josh Bloch on the Future of Java

 

Josh Bloch - a prominent contributor (you might know some of his work if you've ever used the Java Collections framework) to the Java platform at Sun for many years, currently a Googler, author of the award winning books "Effective Java" and "Effective Java Second Edition" - gave a talk at the recent web-based Red Hat Middleware 2020 conference. The thrust of the talk was guarded optimism and concern about the future of the Java platform under Oracle's stewardship. InfoQ contacted Josh to see if he would be interested in expanding upon these ideas. The discussion - particularly apropos of the increasing exodus of Sun talent from Oracle and concerns over Oracle's handling of the community and the Java Intellectual Property looming - is reaching a fever-pitch of late because it intersects many different, going concerns. We were glad to be able to talk to Mr. Bloch about some of these.

InfoQ : What is your main concern?

I don't have a single main concern. Several factors that have combined in the past few years to take the wind out of Java's sails.

InfoQ: Why do you feel the march of evolution for Java has slowed?

  1. The Sun / Apache stalemate TCK licensing stalemate has all but eliminated progress via the JCP.
  2. Sun's lack of support, leadership, and clarity has kept Java 7 from making perceptible progress. I'm not sure people are aware how few resources Sun allocated to Java SE in the past few years. But the consequences have been quite visible: every year JavaOne rolls around, and Java 7 seems no closer. And there has been an awful lot of infighting among Java's supporters. In earlier days, Sun played the role of benevolent dictator, which helped to limit the infighting.
  3. The use of GPLv2 for OpenJDK hinders adoption even by those who are less concerned with TCK issues. The "copyleft" provisions scare away many potential corporate adopters. As a result, resources are being split between Harmony and OpenJDK. Also the multiplicity of license used by the various JCP members for various components of various standards is just plain confusing. In effect, it places a tax on Java platform development

InfoQ: How can racle better the situation where Sun couldn't?

Oracle has historically supported JCP reforms that would end the stalemate. Also they are in better financial shape than Sun was, so they can afford to reinvigorate the platform and they've publicly declared their intention to do so. Finally, with a changing of the guard, some historical baggage can be jettisoned. Where Sun might have seen certain changes as unpalatable, Oracle might look at the situation with fresh eyes and say "why not?"

InfoQ: Is this all strictly related to the morass of licensing issues?

No; licensing issues play a major role, but it goes beyond that. As I said before, there has been a lack of resources, leadership, and focus.

InfoQ: Is the situation surrounding the Apache Harmony project, which is in turn also used as the basis for the Android libraries, an acceptable one? (Ed: Harmony struggled with Sun over the TCK license well before Google adopted Harmony as the basis for the Android libraries. Google's decision to use Harmony rather than the OpenJDK libraries has less to do with the Harmony TCK licensing dispute than with Sun's decision to use GPLv2 for OpenJDK. Google's partners wouldn't agree to redistribute it without a more permissive license. The Apache group was at one point offered a qualified TCK license, but rejected it because the field-of-use restrictions were unacceptable to Apache and the JCP EC who believed them to violate the JCP agreement.)

No. As I said before, it stands in the way of the health and progress of the platform. Also it is causing companies to waste tremendous amounts of engineering effort, splitting their resources needlessly between Harmony and OpenJDK.

InfoQ: How would you like to see Oracle react to things like Harmony?

I would like to see them enact the resolution they proposed at the JCP EC Meeting of December 12, 2007:

Resolution 1 (proposed by Oracle, seconded by BEA)

"It is the sense of the Executive Committee that the JCP become an open independent vendor-neutral Standards Organization where all members participate on a level playing field with the following characteristics:

  1. members fund development and management expenses
  2. a legal entity with by-laws, governing body, membership, etc.
  3. a new, simplified, IPR Policy that permits the broadest number of implementations
  4. stringent compatibility requirements
  5. dedicated to promoting the Java programming model

Furthermore, the EC shall put a plan in place to make such transition as soon as practical with minimal disruption to the Java Community."

As for the "new, simplified IPR Policy," I believe it would be highly beneficial to the entire community if a widely accepted permissive open source license such as Apache or BSD were adopted for all components of all Java specs.

InfoQ: What do you see as Oracle's role?

I would dearly love to see them reclaim Sun's role as leader and steward of the Java platform. Of course things will be a bit different now, because the world has changed. Other organizations will contribute more resources and share more control.

InfoQ: For that matter, how do you think things like Dalvik fit in the brave new Oracle Java landscape?

In the brave new world of open source, multiple related platforms are a given. There are many Unix-like operating systems and many Linux variants, optimized for many uses. I see Dalvik as a VM designed with a very different set of design goals and constraints from HotSpot or JRockit.

InfoQ: Following up on that: how do you see Java ME evolving? Being outright replaced? Could Sun "bless" Android as the next-gen Java ME? How can Java ME compete in an Android/iPhone world?

I don't think it's appropriate for me to speculate on this one, though it is worth pointing out that there's certainly a place for "feature phones" (as opposed to "smart phones") in the developing world, and Java ME was designed with feature phones in mind.

InfoQ: At least one, recent index (Tiobe's list) has shown a decline in the use of Java.

It showed a slight decrease in Java use and a corresponding increase in C use. I'm not sure if this is real or a statistical anomaly, but it is amusing to see a 35-year old "universal assembly language" at the top of Tiobe's list. I confess to having a soft spot in my heart for C.

InfoQ: This is probably provable (one way or another), but do you suspect that the JVM's use has decreased over all, or that Java proper has decreased while Ruby/Scala /Jython /Groovy have taken up the slack?

Actually none of these languages make Tiobe's top 20. That doesn't mean they aren't important or valuable; they are. But they aren't mainstream, yet. That said, I'm absolutely thrilled by the amount of language research and design going on these days. There are plenty of good ideas out there, and it's marvelous that people are exploring them.

InfoQ: Do you think Java's on the decline, or that we should be concerned?

I think it's fair to say that Java's had a hard couple of years. But I do not think the platform or the language are in decline. I think there is some danger of a decline, but I'm counting on Oracle and the Java community to prevent it. Yes, I do believe it's cause for concern. I believe a strong Java is good for the programming public: corporations, higher education, K-12, the open source community, you name it.

InfoQ: What, in your opinion, could hope to replace it (that's not also on the JVM)?

With the exception of CLR which is in-practice a Windows-only platform, there's no real alternative to the JVM on the horizon. In fact, there's no real alternative to the Java programming language either. There are plenty of other great programming languages, but none with the same "design center." A language is a tool, and we should use the right tool for the job. One size does not fit all.

InfoQ: Is there a business case to be made for licensing the JRE?

Perhaps some esoteric variants. But I believe it's in Oracle's interests, just as it was in Sun's, to keep the JRE ubiquitous.

InfoQ: Following up on the last one, a bit, but also as a standalone point: how do you feel about the proposed reconciliation of the JRockit JVM and the Sun JVM and various other VM technologies?

In principle I believe it's a good thing to take the best parts of the various JVMs and combine them into something even better. But remember that Sun never even succeeded in combining the client and server variants of HotSpot. Combining multiple systems is where angels fear to tread. It's sometimes doable, but never easy. Failed efforts can be very costly.

InfoQ: Anything else you might add? What do you feel needs to be said?

I just want to remind people that many recent Java success stories are getting lost in all the gloom and doom. Among them are Google Collections, Guice, the JVM languages you referred to earlier, and Android. With swift, decisive action on Oracle's part, and cooperation from the broader Java community, I see a bright future ahead for the Java platform.

Nici un comentariu  •  Posts  •   • 

Vincent Keisen Vuillemin on physics and zen

Exceprt from: http://www.hotnews.ro/stiri-esential-7158495-vincent-keisen-vuillemin-director-cern-maestru-zen-discutat-online-cititorii-hotnews-despre-creationism-evolutionism-materie-spirit.htm

Nici un comentariu  •  Posts  •   • 

How to approach things

With patience! This is the only time I can go so directly (when approaching the approach problem).

Saying 'I've been thinking, maybe to do that...what do you think?'. It is like walking little known icy waters, you have to advance slowly and bit by bit, look for sustainable surfaces.

You will never know the consequences when you go fast and straight, even though you imagined all the possibilities, there is the unexpected. Go really slow, do not draw straight conclusions, do this only much later.

And plus, first comes the denial of what you ought to say/do. This is, so to say, the virgin thick snow on the ice. This makes even hard to advance.

Nici un comentariu  •  Posts  •   • 

One strange page at AudioMicro

To me looks like a try to make easy money? One should never give his paypal account and password, naughty naughty...

Nici un comentariu  •  Posts  •   • 

Underground (?)

What some years ago (around 10) I really enjoyed was the underground metal music. Nineties and early 2000 was the most genuine period as a music-listener life. From an authentic feeling of true grimness while listening to Darkthrone and many others more, from the strong fist of the US death metal to the deeply emotional of the doom-gothic era of Anathema, everything was a genuine joy. I had the feeling to be one of a kind, listening to that "noise" almost everybody near me called it so.

Now today, what? We have a My Dying Bride playing on the center of my city's Plaza in the middle of the day! Not to mention also Hypocrisy's Peter played in the front of a multicoloured people also in the middle of the day, and Peter was anything but "friendly" within his satanic music. Ok people change, but I am afraid also we lost a genuine feeling of happiness while listening to something underground, that underground music a long time ago. Looking at aforementioned bands, I could mention the Penetralia album of Hypocrisy, Deicide - Legion, Cannibal Corpse - Butchered, Napalm Death - Utopia, Anathema - Serenades, My Dying Bride - Turn Loose, Sepultura - Bestial, and more with which I would make a list someday.

And contemplating to this, I can see the todays press and artists how much changed: magazines struggles to have something interesting, to tear interestingness out where there is none, bands are up to for money (thus more and more live events - while the CD sales are really down - live with a kind of music I thought then that it should be listened and enjoyed more privately). This context gave also a creative (or a must) impulse  for artists, some are really trying things that were not even thinkable, to incorporate different "things". The ones that were aware of the possibility (I would say more a necessity for to be successful) created indeed something interesting and they got a degree of recognition (folk oriented, ambient, even oriental black metal).

I remember a discussion with the Kogaionon magazine guy some time ago and predicted the actual scene image, the result (maybe I had actioned like a catalysis) the magazine really turned into a dark music events organizer (CMI like bands) and the turn Negura Bunget took was again an accurate prediction.

Speaking of Negura Bunget, the Om, although an universal word originating from the beginning of mankind, it has an Eastern root, ok we should look for essentials but BM was about something else, some seemed lost focus, or some are using the Black Metal word just that it is cool. And this is far away from what Black Metal is. This is how messed the things are. This really means there is nothing to believe in, even the artists seemed so convinced in the past, they are turning their art upside down.

Well, my current underground path shifted, and happened once I developed the ABBILDUNG project. Today the underground for me are things free from any form and with or without content, experimentation, improvisation, direct soul and mind output, like the netlabels, the "little" guys doing home music on CDr, the demos I receive frequently for releasing on Essentia Mundi. I invite you to discover this new underground music thorough my websites.

Nici un comentariu  •  Posts  •   • 

Ascuns

Nu inteleg de ce trebuie sa te ascunzi? Ca artist de ce trebuie sa fi misterios? De ce nu poti sa te exprimi asa cum esti in totalitate. Arta e mai degraba o extensie a ta, nu vrei tu sa fi intr-un fel ci pur si simplu esti, daca e sa vorbim cinstit. Poate arta este si ceea ce tu nu intelegi si nu poti explica in cuvinte si atunci incerci din rasputeri sa o spui totusi.

Este doar o chestiune de imagine si in mare este vorba de business. Imi angajez graficieni sa imi faca website (cel mai ciudat website cu putinta), imi angajez colaboratori sa imi faca muzica, imi angajez impresari si imi masterizez la cel mai tare studio produsul final. Ce e asta? Mai este acest lant ceea ce ai vrut sa spui? Actul artei esti tu cu toata trairea ta.

Cu proiectul meu am incercat sa trec de partea cealalta, de la concept, artwork la sunetul final pot spune ca totul imi apartine.

Mai este de reflectat la asta...

Nici un comentariu  •  Posts  •   •