Jint 2.0

After 6 months of hard work and wife complaints I have finished to rewrite Jint.

Source code: https://github.com/sebastienros/jint

Nuget package: https://www.nuget.org/packages/Jint

What is Jint ?

Jint is a JavaScript interpreter for .NET. This means you can take any JavaScript code and run it from your own .NET application. You could use it to let your users script your application domain, or to let them configure their application, run custom code in your CMS on specific events, test your JavaScript code, ...

How to use Jint ?

Here is how:

var engine = new Engine();
engine.Execute(@"
    function add(x, y) {
        return x + y;
    }
    var z = add(3, 2);
");

var z = engine.GetValue("z");
Console.WriteLine(z); // -> 5

There are obviously more features but I will let you look at the project itself to discover them. One of them is the ability to use a CLI (Command Line Interface) to execute JavaScript, and reuse .NET classes in it.

Why a re-write ?

I have created the first release in 2009, helped by one of my colleagues at that time, and another open source developer who liked the project. The main issues with this first version were the key pillars of the new version:

  • Ship as a PCL to support other .NET platforms like Windows Phone, Windows RT, Xamarin, ...
  • Be compliant with ECMA 5.1 specifications
  • Don't rely on Antlr for the parsing
  • Better architecture for maintainability and code simplicity

Next

My next goal will be to migrate RavenDB to use the new version. Should be pretty easy and come with several benefits, first being for them to deal with fewer JavaScript bugs, better performance and better .NET interoperability.

36 Comments

  • custom essay writing service said Reply

    i like this publish. I apprehend that my goal readers are my students within the past. custom dissertation writing provider I’d like to mark like this too appealing occasion and actual hard paintings to make a first rate article. thanks for the pointers, I without a doubt cherished reading this. it is so plenty inspiring.

  • clash realm said Reply

    So many ne things i always found out here.

  • gamefly said Reply

    Howdy! This post couldn't be written any better!
    Looking at this article reminds me of my previous roommate!
    He always kept talking about this. I am going to forward this post to him.
    Pretty sure he's going to have a great read.
    Thanks for sharing!

  • gamefly free trial said Reply

    Hi there, I enjoy reading all of your article post. I wanted to write
    a little comment to support you.

  • gamefly said Reply

    When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get four e-mails
    with the same comment. Is there any way you can remove
    me from that service? Appreciate it!

  • gamefly said Reply

    Hello There. I discovered your blog using msn. That is an extremely neatly written article.
    I'll be sure to bookmark it and come back to learn extra of your helpful information.
    Thanks for the post. I will certainly return.

  • gamefly said Reply

    It's amazing designed for me to have a web site, which
    is beneficial for my knowledge. thanks admin

  • gamefly free trial said Reply

    Remarkable! Its truly amazing article, I have got much clear idea about from this paragraph.

  • gamefly free trial said Reply

    Excellent article. I will be going through a few of these
    issues as well..

  • download minecraft for free said Reply

    Just desire to say your article is as astonishing. The clearness in your publish is
    just excellent and that i could suppose you're a professional in this subject.
    Fine with your permission let me to take hold of your RSS feed
    to keep updated with forthcoming post. Thanks 1,
    000,000 and please carry on the enjoyable work.

  • download minecraft pc said Reply

    Greetings from Carolina! I'm bored at work so I decided to browse your website on my iphone during lunch break.
    I love the info you provide here and can't wait to take a
    look when I get home. I'm shocked at how fast your blog loaded on my
    cell phone .. I'm not even using WIFI, just 3G .. Anyhow, awesome
    blog!

  • minecraft download pc said Reply

    Thank you a bunch for sharing this with all people you actually recognize what you're
    speaking approximately! Bookmarked. Please also consult with my website =).
    We may have a link change agreement among us

  • minecraft pc download said Reply

    I am really impressed together with your writing abilities as well as with the layout for your weblog.
    Is that this a paid subject matter or did you customize it yourself?
    Anyway stay up the excellent high quality writing, it's rare to peer a
    great weblog like this one these days..

  • mojang minecraft download said Reply

    Thanks on your marvelous posting! I seriously enjoyed reading
    it, you will be a great author.I will remember to bookmark
    your blog and will come back in the foreseeable future.
    I want to encourage one to continue your great writing, have a nice weekend!

  • minecraft free download said Reply

    With havin so much content do you ever run into any problems of plagorism or copyright infringement?

    My website has a lot of completely unique content I've either
    created myself or outsourced but it looks like a lot of it is popping it up all over the internet
    without my agreement. Do you know any solutions to help prevent content from being stolen? I'd really
    appreciate it.

  • minecraft for free said Reply

    Thanks very nice blog!

  • minecraft download free pc said Reply

    I think this is among the most vital info
    for me. And i'm satisfied reading your article. However should commentary on few normal issues, The web site taste is ideal, the articles is truly excellent :
    D. Just right process, cheers

  • free minecraft said Reply

    Good day! I could have sworn I've been to this site before
    but after reading through some of the post I realized it's
    new to me. Anyhow, I'm definitely glad I found it and I'll be book-marking and checking back
    often!

  • g said Reply

    As the admin of this website is working, no hesitation very shortly it will be famous, due to
    its feature contents.

  • g said Reply

    Everything is very open with a really clear explanation of the
    challenges. It was really informative. Your site is extremely
    helpful. Thanks for sharing!

  • how to download minecraft said Reply

    Wonderful beat ! I would like to apprentice while you amend your site, how can i subscribe for a blog web site?

    The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear concept

  • g said Reply

    Very good info. Lucky me I ran across your blog by accident (stumbleupon).
    I have book marked it for later!

  • free minecraft said Reply

    I constantly spent my half an hour to read this web
    site's posts daily along with a mug of coffee.

  • g said Reply

    Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you! However, how can we communicate?

  • minecraft download mojang said Reply

    I will right away grab your rss as I can't in finding your email
    subscription hyperlink or newsletter service.
    Do you've any? Kindly permit me recognize so
    that I may subscribe. Thanks.

  • g said Reply

    Excellent article. Keep posting such kind of info on your blog.
    Im really impressed by your site.
    Hi there, You've performed a fantastic job.

    I will certainly digg it and in my opinion recommend to my friends.

    I am confident they'll be benefited from this web site.

  • free minecraft said Reply

    Hey! Would you mind if I share your blog with my myspace
    group? There's a lot of people that I think would really appreciate your content.
    Please let me know. Many thanks

  • download minecraft said Reply

    Very good post! We are linking to this great content on our site.
    Keep up the great writing.

  • minecraft pc download said Reply

    First of all I would like to say superb blog!
    I had a quick question that I'd like to ask if you do not mind.
    I was curious to find out how you center yourself and clear your
    mind prior to writing. I have had a hard time clearing my thoughts in getting my thoughts out.
    I do take pleasure in writing but it just seems like the first
    10 to 15 minutes are lost simply just trying to figure out how to begin. Any recommendations or hints?

    Thank you!

  • how to download minecraft free said Reply

    Whoa! This blog looks exactly like my old one!
    It's on a totally different subject but it has pretty much the same layout and design. Wonderful
    choice of colors!

  • how to download minecraft free said Reply

    I love what you guys are up too. Such clever work and coverage!
    Keep up the terrific works guys I've included you guys to my personal blogroll.

  • minecraft pc download said Reply

    whoah this weblog is excellent i really like studying your articles.
    Stay up the good work! You understand, lots of persons are hunting round for this information, you can aid them greatly.

  • minecraft download free pc said Reply

    Hello colleagues, its fantastic article on the topic of teachingand fully explained, keep it up all the time.

  • download minecraft free said Reply

    You really make it seem so easy with your presentation however I
    to find this topic to be actually something which I believe
    I'd by no means understand. It kind of feels too complex and very extensive for me.
    I'm looking ahead on your subsequent submit, I will try to get the grasp of it!

  • Best Powerlike Suppliers said Reply

    I love your website and its really helping me personally. I've been looking
    for a good Powerlikes corporation forr Instagram, I've loooked all over the internet and found this site Powerlikes.
    info. Has anyone used anny of thhe services on thhe list and what to suggest?
    I have read that powerlikes may heelp boost your Instagram account
    and go viral. Its a very new too me.

    Thanks again

  • how to download minecraft said Reply

    Howdy I am so grateful I found your webpage, I really found
    you by error, while I was browsing on Google for something else, Regardless I am here now and
    would just like to say thank you for a tremendous post and a all round entertaining blog (I also love
    the theme/design), I don't have time to browse it all at the minute but
    I have saved it and also added your RSS feeds, so when I have time I
    will be back to read a great deal more, Please do keep up the awesome
    work.

Add a Comment