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.

74 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.

  • how to get help in windows 10 said Reply

    Very energetic blog, I liked that bit. Will there be a part 2?

  • gamefly free trial said Reply

    Hi there, its fastidious paragraph concerning media print, we all understand media is a impressive
    source of data.

  • how to get help in windows 10 said Reply

    Hi, I check your new stuff daily. Your humoristic style is witty,
    keep doing what you're doing!

  • gamefly free trial said Reply

    Hi to every one, because I am genuinely keen of reading this website's post
    to be updated daily. It consists of pleasant stuff.

  • gamefly free trial said Reply

    Heya i'm for the first time here. I found this board and I find It
    truly useful & it helped me out much. I hope to give something back and help others
    like you aided me.

  • gamefly free trial said Reply

    My brother recommended I might like this web site.
    He was entirely right. This post truly made my day. You can not imagine just how much time I
    had spent for this info! Thanks!

  • gamefly free trial said Reply

    I couldn't refrain from commenting. Perfectly written!

  • gamefly free trial said Reply

    Wonderful post! We will be linking to this particularly
    great post on our site. Keep up the good writing.

  • gamefly free trial said Reply

    When someone writes an paragraph he/she keeps the thought of a user
    in his/her brain that how a user can know it. Therefore
    that's why this post is perfect. Thanks!

  • gamefly free trial said Reply

    Hi there this is somewhat of off topic but I was wanting to
    know if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I'm starting a blog soon but have no coding expertise so I wanted to get guidance from someone with
    experience. Any help would be greatly appreciated!

  • gamefly free trial said Reply

    Wow, awesome weblog layout! How long have you ever been running a blog for?
    you made running a blog glance easy. The overall glance
    of your site is fantastic, as smartly as the content material!

  • gamefly free trial said Reply

    Very good blog post. I absolutely love this website.
    Thanks!

  • gamefly free trial said Reply

    WOW just what I was searching for. Came here by searching
    for gamefly free trial

  • best ps4 games said Reply

    Hi! Quick question that's totally off topic.
    Do you know how to make your site mobile friendly? My blog looks weird
    when browsing from my iphone4. I'm trying to find a theme or plugin that might be able to fix this problem.
    If you have any recommendations, please share.
    Thank you!

  • http://tinyurl.com/yy2jbcn5 said Reply

    Excellent goods from you, man. I have take into account your stuff
    previous to and you are just extremely magnificent.
    I actually like what you've received right here, certainly like what you're stating and the way in which
    through which you assert it. You're making it
    enjoyable and you continue to take care of to stay it sensible.
    I can not wait to read far more from you. That is really a wonderful site.

  • tinyurl.com said Reply

    It's appropriate time to make some plans for the longer term and it's time
    to be happy. I've learn this put up and if I could I want to suggest you some attention-grabbing issues or tips.

    Perhaps you can write next articles referring to this article.
    I desire to read more issues approximately it!

  • gamefly free trial 2019 coupon said Reply

    If some one wants expert view regarding running a blog then i propose him/her to pay a visit this weblog, Keep up the pleasant work.

  • ps4 best games ever made 2019 said Reply

    I'll right away grab your rss as I can not find your email subscription hyperlink or newsletter service.
    Do you have any? Kindly permit me realize so that I could subscribe.
    Thanks.

  • playstation 4 best games ever made 2019 said Reply

    This paragraph is actually a fastidious one it helps new internet
    viewers, who are wishing in favor of blogging.

  • quest bars cheap said Reply

    Hello There. I found your weblog the use of msn. This is a very smartly written article.
    I'll be sure to bookmark it and come back to read more of your helpful information. Thanks for the post.
    I'll certainly return.

  • quest bars cheap said Reply

    Actually no matter if someone doesn't understand
    after that its up to other visitors that they will help, so here it happens.

  • quest bars cheap said Reply

    I read this post completely regarding the comparison of most up-to-date and earlier technologies, it's remarkable
    article.

  • quest bars cheap said Reply

    Hmm is anyone else encountering problems with the pictures on this
    blog loading? I'm trying to figure out if its a problem on my end or if it's the blog.

    Any feed-back would be greatly appreciated.

  • quest bars said Reply

    Just want to say your article is as astonishing. The
    clarity in your post is just cool and i can assume you are an expert on this subject.
    Fine with your permission allow me to grab your feed to keep updated with forthcoming post.
    Thanks a million and please keep up the enjoyable work.

  • quest bars said Reply

    I couldn't refrain from commenting. Very well written!

  • http://tinyurl.com/ said Reply

    This is my first time go to see at here and i am truly
    impressed to read all at one place.

  • quest bars cheap said Reply

    I don't even know how I ended up here, but I thought this
    post was great. I don't know who you are but definitely you are going to a
    famous blogger if you are not already ;) Cheers!

  • how to get help in windows 10 said Reply

    Heya i am for the first time here. I came across this board and
    I find It really helpful & it helped me out a lot.
    I'm hoping to provide one thing back and help others such as you helped me.

  • how to get help in windows 10 said Reply

    Having read this I believed it was very enlightening.
    I appreciate you spending some time and effort to put this short article together.
    I once again find myself personally spending a lot of time both reading
    and posting comments. But so what, it was still worthwhile!

  • tinyurl.com said Reply

    I have been exploring for a bit for any high-quality articles
    or blog posts in this kind of space . Exploring in Yahoo I at last stumbled upon this website.
    Studying this information So i am glad to
    convey that I have an incredibly excellent uncanny feeling I discovered just what I needed.
    I such a lot for sure will make sure to do not forget this site and provides it a glance regularly.

  • tinyurl.com said Reply

    Thanks for any other magnificent article. Where else may just anybody get that type of information in such an ideal way of writing?
    I've a presentation next week, and I'm on the look for such information.

  • quest bars cheap 2019 coupon said Reply

    Hi there! I just wanted to ask if you ever have any issues with
    hackers? My last blog (wordpress) was hacked and I ended up
    losing many months of hard work due to no backup.
    Do you have any methods to prevent hackers?

  • quest bars cheap said Reply

    Good post. I learn something new and challenging on blogs I stumbleupon every day.
    It will always be useful to read content from other writers and use
    something from their web sites.

  • plenty of fish dating site said Reply

    Wow, amazing blog layout! How long have you been blogging
    for? you make blogging look easy. The overall look of your website is fantastic, as well as
    the content!

  • how to get help in windows 10 said Reply

    Your method of telling the whole thing in this piece of writing is in fact good, every
    one can easily be aware of it, Thanks a lot.

  • how to get help in windows 10 said Reply

    Fantastic goods from you, man. I have bear in mind your stuff prior to and you are
    just too excellent. I really like what you've acquired right here,
    really like what you are saying and the way by which you
    are saying it. You're making it entertaining and you
    still care for to stay it wise. I can not wait to read much more from you.
    This is actually a wonderful site.

  • how to get help in windows 10 said Reply

    Great article, exactly what I needed.

  • how to get help in windows 10 said Reply

    This piece of writing will help the internet visitors for building up
    new webpage or even a blog from start to end.

Add a Comment