可以进行的JScript.NET使用脚本.NET应用程序? [英] Can JScript.NET be used to script a .NET application?

查看:167
本文介绍了可以进行的JScript.NET使用脚本.NET应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于MS <一个href=\"http://stackoverflow.com/questions/775339/where-can-you-download-managed-jscript-for-the-dlr/886173#886173\">appears已经扼杀托管的JavaScript在两个服务器端(ASP.NET期货)和客户端(Silverlight的)最新DLR ,有没有人成功地使用非过时的API,允许使用JScript的应用对象的脚本。 NET和/或可以解释如何做到这一点?单声道/ JScript的解决方案也可能是可以接受的,如果它是稳定的,并符合以下requriements。

Since MS appears to have killed Managed JavaScript in the latest DLR for both server-side (ASP.NET Futures) and client-side (Silverlight), has anyone successfully used non-obsolete APIs to allow scripting of their application objects with JScript.NET and/or can explain how to do so? A Mono/JScript solution might also be acceptable, if it is stable and meets the requriements below.

我们有兴趣升级了其使用Microsoft JScript引擎和ActiveScript API来使用的东西更多的性能和可扩展性更容易的脚本宿主。我们有超过16,000的服务器端脚本超过源42MB称重,所以改写成另一种脚本语言是出了问题。

We are interested in upgrading off of a script host which uses the Microsoft JScript engine and ActiveScript APIs to something with more performance and easier extensibility. We have over 16,000 server-side scripts weighing in at over 42MB of source, so rewriting into another scripting language is out of the question.

我们的具体要求是:


  • 比Microsoft JScript中的表现更好Noteably(ActiveScript)引擎

    • 更好的运行时性能和/或

    • pre-分析和编译脚本(不要在每次运行时重新分析)
    • 的保留
    • 低于或等于内存消耗


    • 一点点移植可以容忍


    • .NET对象(不是一个硬性要求)

    • 裹在.NET COM对象或COM对象


    • 点菜新的ActiveXObject(进程id)

    • 给出的preceeding低优先级


    • $ P $辅助脚本的P-装载到一个脚本执行上下文

    • 一个包含(鉴于上述易于创建,)函数或语句


    • $ C $的执行c中的全局范​​围内

    • 在全局范围内初始化值保留

    • 从全球范围内的值的提取

    • 注入和重置价值在全球范围内


    • 通过参数

    • ,并获得了previously初始化的全局范围内

    推荐答案

    我回答过类似的问题<一href=\"http://stackoverflow.com/questions/775339/where-can-you-download-managed-jscript-for-the-dlr/2603141#2603141\">here.看看 IronJS ,JavaScript代码在F#中运行的实施对DLR。

    I answered a similar question here. Have a look at IronJS, an implementation of JavaScript in F# running on the DLR.

    这篇关于可以进行的JScript.NET使用脚本.NET应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆