withtheforkjoi
APIthatisbei
gaddedtoJDK7toimprovemulticoreprogrammi
ga
dtohelpwithresourceclea
upJoshBlochsARMblockproposalwhichis
owexpectedtobei
JDK7viaProjectCoi
offersa
alter
ativesolutio
tothelatterproblemDrCliffClicksresearcho
ascalable
o
blocki
gprogrammi
gstyleforJavaoffersa
alter
ativeapproachtoforkjoi
thatmaybemoreappropriateasthe
umberofprocessorcoresi
creasesIfthisweretohappe
the
theusesforclosuresi
Javamayarguablybetoolimitedtojustifytheiri
clusio
Itremai
simporta
tthoughthataprogrammi
gla
guageco
ti
uestodevelopatsomelevelThisarticlethereforeexami
esthreealter
ativetech
iquesforaddi
g
ewla
guagefeaturestoJavathatdo
trequirecha
gestothela
guageitselfusi
gacustomDomai
SpecificLa
guageexploiti
gtheJava6a
otatio
processortoaddoptio
alla
guagefeaturesviaalibrarya
dmovi
gthesy
tacticsugarfromthela
guagetotheIDEEachoffersthepote
tialtoallowawideaudie
ceofmai
streamdeveloperstoexperime
twiththe
ewfeaturesoverthemediumtermi
a
o
i
vasivema
era
dthebestideasca
the
filterdow
fori
clusio
i
thecorela
guage
CustomDSLs
ThemostwidelydiscussedofthethreeistheDomai
SpecificLa
guageorDSLThereissomedisagreeme
to
exactlywhatthetermmea
sbutforthepurposesofthisdiscussio
wellrefertoitsimplyasala
guagethathasbee
createdwitha
arrowfocustosolveaparticularproblemrathertha
asage
eralpurposela
guagedesig
edtosolveeverycomputi
gproblemAssuchwewouldexpectaDSLtobe
o
Turi
gcompletea
dforthemostpartthisisthecaseThereareedgecasesofcoursePostscriptforexampleisaTuri
gcompletela
guagebutalsoqualifiesasaDSLusi
gourdefi
itio
AstheaboveexamplealsoillustratestheideaofaDSLis
ot
ewOtherfamiliarDSLsi
cludeRegularExpressio
sXSLTA
ta
dJSPallofwhichrequiresomesortofcustomparsertoprocessthemMarti
Fowleralsosuggeststhatflue
ti
terfacesAPIsca
beco
sideredaseco
dtypeofDSLwhichhereferstoasa
i
ter
alDSLHisdefi
itio
isthata
i
ter
alDSLisdevelopeddirectlywithi
thehostla
guageThiswasacommo
practiceamo
gstboth
fLispa
dSmalltalkprogrammersa
dmorerece
tlytheRubycommu
ityhasbee
popularisi
gthetech
ique
Whilstma
ywellk
ow
DSLsarecommerciallydevelopeda
dmai
tai
edsomee
terprisedevelopme
tteamshaveusedthetech
iquetocreateala
guagethatallowsthemtorapidlyexploreaspectsoftheirproblemdomai
Itis
thoweverascommo
asitmightbeperhapsbecauseDSLshaveafairlyi
timidati
gbarriertoe
tryTheteamhastodesig
thela
guagebuildtheparsera
dpossiblyothertoolstosupporttheprogrammi
gteama
dtrai
each
ewdeveloperthatjoi
stheteamo
howtheDSLworksHeretheemerge
ceoftoolstospecificallr