[IronPython] DLR Hosting Spec

Dino Viehland dinov at exchange.microsoft.com
Tue Nov 27 21:01:34 CET 2007


We discussed this today and think mime type support is a good idea.  Apparently we briefly looked at the Java APIs a year ago but we'll plan to do another review to compare and contrast the two.

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Monday, November 19, 2007 10:11 PM
To: Discussion of IronPython
Subject: Re: [IronPython] DLR Hosting Spec

2007/11/20, Dino Viehland <dinov at exchange.microsoft.com>:
> We look forward to any feedback you might have!
> You can grab the spec here: http://www.iunknown.com/files/dlr-spec-hosting.pdf

I think there are a lot of things to learn from Java. Java 6
introduced javax.script hosting API.
http://java.sun.com/javase/6/docs/api/javax/script/package-summary.html

For example, ScriptRuntime corresponds to Java's ScriptEngineManager.
We can compare API to get scripting engine for the given language.

DLR
ScriptEngine GetEngine(string languageId)
ScriptEngine GetEngineByFileExtension(string extension)

javax.script
ScriptEngine getEngineByName(String shortName)
ScriptEngine getEngineByExtension(String extension)
ScriptEngine getEngineByMimeType(String mimeType)

Is getEngineByMimeType a good idea? Similar comparisons can be made
for all other APIs too.

--
Seo Sanghyeon
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list