|
So I've done a bit of searching this morning looking for a way to execute Javascript inside C# code, and I found Jint[^] and Javascript.net[^].
I'm looking at these two frameworks going "what's the freakin' difference, really?" The syntax looks almost identical, I don't really care about performance (unless it's particularly poor). I looked at the latest updates and they're both reasonably recent. So does anybody know? Anybody used them?
I'm going to start playing with them but does anyone know before I head too far down a certain path if one is the road to the dark side? Also, I've never really used open source stuff like this before, so is it a good idea to look at how unkempt the code itself is given it might fall into disrepair?
Typical n-tiered architecture:
DB <-> Junk(0) <-> ... <-> Junk(n-1) <-> Pretty
|
|
|
|
|
Haven't tried my hands on it yet, but both surely look syntactically same.
The difference is:
Javascript.Net uses Google's V8 Javascript engine (which is integrated in it).
&
Jint is itself a script engine. Jint embeds it's own parsing logic, and really interprets the scripts. Jint uses the ANTLR library for this purpose.
Jint was reported to be too buggy and introduced too many .Net semantics into Javascript.
>> JavaScript.NET used V8 and less bug-prone
>> Jint has better support for integrating between C# and JavaScript
Please share your experience with us.
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
|
|
Neither better nor worse than 2.
|
|
|
|
|
|
|
Pete O'Hanlon wrote: I don't do impressions.
How about this[^]then? And this[^]?
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
You've rumbled pete! He will be on Britains Got Talent soon
|
|
|
|
|
Yeah, I'm sure he has the required talent; if only he jacked up his assertiveness a bit, he could be the next Susan Boyle...
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
I'm concerned that you are stalking my old posts. I feel dirty now, and not in a good way.
|
|
|
|
|
*my* memory is still OK, and the CP search facilities have improved remarkably.
BTW: you're out of milk again.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Sometimes one creates a dynamic impression by saying something, and sometimes one creates as significant an impression by remaining silent.
|
|
|
|
|
Enjoying PLINQ[^], didn't use the Memory Mapped File-wrapper[^], didn't try the BigInt[^]. Aw, the way you abbreviated 'subject' reminds me of Lazy(Of Subject)[^]. Better support for multithreading, doesn't hickup on garbage-collection.
Gives the impression that it has enough new goodies to keep us happy, for a while
I are Troll
|
|
|
|
|
My impression of .Net...
Wife asks for a Knife. I hand her the knife.
Wife asks for a Scissors. I hand her the scissors.
Wife asks for the car keys. I hand her the car keys.
Wife thinks I'm great.
Wife asks for a pen...I hand her a pencil and some ink.
Wife is annoyed.
Wife asks for some help.... I ignore her.
Wife asks Google for some help.
Google "negotiates" with me on wife's behalf and passes on my help.
Wife constructs a half assed pen from her pencil and ink, and moans about
why I couldn't just give her a damn pen in the first place.
Wife divorces me and marries a new version of me.
I still don't do pens, but when you ask for help, I'm better at telling you I don't.
-Rd
Hit any user to continue.
|
|
|
|
|
Good for rapid development, bad for support
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
I am not fully satisfied.
|
|
|
|
|
Its not too bad.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
Hello guys
I have a datalist control and in its item template I have a label and a button the label is binded to column in database
the scenario is that the label is the detail to b used in another page, I want that when I click the button to redirect to the other page with the label text property being accessed
how to get the text on the specific label in the datalist item template?
|
|
|
|
|
protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
{
if (Session["UserId_FE"] == null && Session["LogedUser_FE"] == null)
{
foreach (Control var in DataList1.Controls)
{
TextBox ch = (TextBox)var.FindControl("txtQty");
}
}
}
Hope this can help you.
|
|
|
|
|
Hi..
Please tell me what is the use of cache variable in c#.net.
And Difference between cache and session variable.
Where we use cache variables??
What is its purpose?
|
|
|
|
|
|
|
Would it EVER be necessary to declare your own delegate with the Func<t1... t16,="" tresult=""> and Action<t1... t16="">?
And really, who needs 16 parameters?
It's an OO world.
|
|
|
|
|
To be honest, I think it is a little weird that a delegate of type MyActionInt, with receives a single int and returns void can't be used when an Action<int> is required.
I think the other delegate types are useful for the easier names, but I really think that .Net could've handled it better.
|
|
|
|