Any Javascript Engine for .NET/C#? [closed] - c#

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for an open source javascript engine for .NET. Thanks.

You can check Jint which is a Javascript interpreter for .NET.

Try Javascript .NET:
http://javascriptdotnet.codeplex.com/
It implements Google V8. You can compile and run Javascript directly from .NET code with it, and supply CLI objects to be used by the Javascript code as well. And V8 is probably the best engine ever created in terms of performance, it generates native code from Javascript.

There was, at one time, a clone of JavaScript that ran on the DLR. But now it's dead.
A quick search turns up RemObjects Script and ECMAScript.NET. Might as well start there...

You might want to check out Managed JScript. It sounds like something you are looking for, but I don't really know much about it.
Edit: Sounds like Managed JScript is dead according to another post, so I would look into Google's V8.
You can also use Google's V8 Engine from .NET. Check out this other question, and the provided solution: Referencing Google's V8 engine from a .NET app. This example uses Managed C++.

If your point 'engine' is Javascript Parser,I think MS JScript.NET has the ability to do this,Take a look this article:http://www.odetocode.com/code/80.aspx

You can take a look at this project http://javascriptdotnet.codeplex.com/ which look like what you are looking for.

What do you mean 'engine for .net'?
Regardless, there is Microsofts AJAX Framework, or jQuery. Microsofts is integrated via controls and so on, but I prefer jQuery.

Here's a recent project I came across: script_sharp, to write JavaScript using the C# language. You write it in C# and it gets turned into JavaScript.
http://weblogs.asp.net/rosherove/archive/2009/08/11/script-script-sharp-solving-the-javascript-overload-problem.aspx

Related

Picking a parser generator for building an interpreter for a custom language using C#? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
This is the first time I go into actually trying to implement a Domain Specific Language.
I know the basics of language grammars and Abstract Syntax Trees, however I didn't get my hands dirty in implementing them before.
I want to build a small language, simple variables/arrays and conditional statements. I want to interpret and execute the user entered code via an interpreter I build by C#. Something pretty similar in spirit to PHP tho way simpler.
I searched and I became confused.
Best parser generators I found which had good C# supports were Gold and Irony. I also found ANTLR but I saw too many people complaining about problems with C# suppots. Also, the three of those seem to lack good documentation.
My main fear is to begin working with one of them and then discovering its not usable for the task, either because of lack of good C# support, or good documentation or something else. I want something that I can begin working with "confidently" to get myself kickstarted in the project.
Could anyone help me to pick something that does the job well and guaranteed to work well with C# ?
I suggest you to use ANTLR. I wrote my own compiler (for MSIL) using it.
ANTLR has C# support and i did not found any problems with it.
U can also look at my source code (i can not be working sample, but it has ANTLT .g file) for sample.
I suggest you try TinyPG. It compiles to C#, and you can provide C# directly in the grammar.

Microsoft Enterprise Library Useful or Not? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to know about Microsoft Enterprise Library 5.0 .
Can u plz tell me that , is it good to use various modules of that Enterprise Lib rather than developing our own modules for caching,encryption,data access,logging etc?
I am a beginner to Microsoft Ent Lib and simply want to know how efficient or effective
that Ent Lib is ?
If it is useful , can u plz guide me some effective link so that i can learn fast.
Thanks for paying attention over here.
One rule of programming is "never reinvent the wheel". So really advisable just to use the library than creating your own. Other than the library is well tested and proven to work.
There are not another library that are as complete as Enterprise library. But imho you can pick different open source libraries that will give you a more powerful alternative.
EL5.0 is a bit bloated and harder to use than open source alternatives. But then again, you don't have to worry about it not being supported.
yes you can use each block you want.
yes it is useful as a set of best
practices
you can learn reading its code as
well.
few quotes from documantation:
The Enterprise Library includes the source code for the application blocks. This means you can modify the application blocks to merge into your existing library, or you can use parts of the Enterprise Library source code in other application blocks or applications that you build.
The Enterprise Library includes documentation, QuickStart samples, and source code. This means you can use the library as a tool for learning architectural, design, and coding best practices.

What would be better to use in this case? c# or php? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
I am making a website where users can upload pictures and draw on them, add text etc. My team knows some php, but we know nothing about c#. Time is not too much of an issue. We all know java, what would the perks of each be? I have been hearing that c# will be much better for handling the canvas because there is a lot more libraries for it? Will it really matter c# of php? for both you have to use javascript and possibly jquery anyway? Keep in mind we are all more than willing to learn c# and we have a windows server also. Let me know your guys thoughts! Thanks!
If your team already knows PHP, and can already do the work in PHP, I'd stick with what they know. I don't know enough about the differences between the two to give you hard performance numbers, but I would expect that a team already fluent in PHP would do better work with the tool they know rather than learning a new one just because it meets some arbitrary definition of "better."
If your team knows something about PHP, then PHP is probably your best bet hands down.
Personally, I don't know of anything in C# (since it's a web based client, rather than desktop) that would give you an advantage over PHP.
One of the first questions you have to ask when building an application is: how and where will be application be used?
If you're building an intranet application for deployment in a Windows environment, particularly if you want to tie into Active Directory for user authentication, then you should be looking at IIS, and after that ASP.NET, which would lead you in the direction of C# (though PHP can be used as well). If you're looking at deploying your application in a heterogeneous environment, then PHP is a much more portable choice.
If you know java, moving into C# shouldn't be that hard. They are similar and the set of classes that come with Java and .NET Framework are similar, but layed out differently.
I use C# and ASP.NET (usually ASP.NET MVC) for ALL of my new web application development, partly because its what I know, but also I just really don't like php (and I'm not alone).
Thats said, if you're going to be using HTML5/Javascript (you mention canvas) then your backend code will matter less since it will mostly be persisting your data to disk on the server; however, I think that something like Flash or Sliverlight would provide a better end user experience for an on-line image minipulation tool. Either of these can be hosted from a C# web app or a php one.

What is the best spell checking library for C#? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
What's the best spell checking library for C# / .net?
(This will be web-based, so the built in spell check for WPF won't work.)
I've made a .NET version (wrapper) of the Open Office / Google Chrome ... spell checker Hunspell. It is called NHunspell and can be used with C#/ VB / .... The Open Office hyphenator "Hyphen" is also included. All Open Office dictionaries work. It is free (open source LGPL / MPL licensed).
I have used Aspell.net before with some success.
I have used NetSpell in the past with success. http://sourceforge.net/projects/netspell/
There is a aspell .net wrapper.
http://aspell-net.sourceforge.net/
For a custom solution I created a Web Service which then wrapped the WPF libraries. This gives the ability to use the built-in spell checking with ASP.NET applications/web sites by simply calling the Web Service.
An easy to follow and basic idea for the wrapping can be found here:
http://www.quicklearn.com/blogsamples/SpellCheck.aspx
For a commercial solution:
I am currently evaluating RapidSpell and it seems be what I need. I will say that their demo install seemed to trash my third-party installs. (Something did, and I noticed it right after installing their demo. But that may have been coincidence.)
Telerik's control suite for ASP.NET comes with a spell-checker. You might check them out.
http://demos.telerik.com/aspnet-ajax/Spell/Examples/Overview/DefaultCS.aspx
You could embed the WPF spell checker using silverlight. Otherwise you might want to look at commercial products that are already available such as Telerik's ASP.NET AJAX Controls.

What are the most useful (custom) code snippets for C#? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What are the best code snippets for C#? (using visual studio) VB has a lot that are pre-defined, but there are only a handful for C#. Do you have any really useful ones for C#?
Anyone want to post a good custom one you created yourself?
Anyone?... Bueller?
My absolute favorite is cw.
There's plenty of code snippets within Visual Studio for basic programming structure but I wouldn't necessarily rate one higher than another.
I would definitely say the best ones are the custom snippets you define yourself to accomplish more specific tasks that you may find yourself using on a regular basis. Definitely a big time saver.
A fairly basic intro to creating custom snippets can be found at http://www.15seconds.com/issue/080724.htm to help with this.
Microsoft have released a whole bunch of C# snippets that bring it up to parity with the ones for Visual Basic. You can download them here:
http://msdn.microsoft.com/en-us/library/z41h7fat.aspx
These are the ones I use daily.
prop
try
if
else
for
foreach
mbox - Message box stub
The ability to role your own. I have one for Property that are saved in the view state, methods a custom class example.
I had a few on my old blog:
testmethod Code Snippet
onevent Code Snippet
cleantestresults Code Snippet
astype Code Snippet
I also have an argnull code snippet that inserts a Guard Clause that checks an argument for null and throws an ArgumentNullException, but I haven't gotten around to post that yet.
prop and exception are my favorites.
I just started a blog, where I document short solutions in C# (code snippets) that I came up with and might prove useful to other coders.
http://thorstenlorenz.blogspot.com/
So far I have mostly blogged about extension methods and generics.
So have a look and tell me what you think.
Just to update an older thread... here's a link for Visual Studio 2008 C# code snippet download.
VS 2008 C# Code Snippet Download

Categories

Resources