Click here to Skip to main content
15,881,787 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: javascript delay Pin
benams18-Sep-11 23:26
benams18-Sep-11 23:26 
GeneralRe: javascript delay Pin
Graham Breach18-Sep-11 23:45
Graham Breach18-Sep-11 23:45 
GeneralRe: javascript delay Pin
benams18-Sep-11 23:53
benams18-Sep-11 23:53 
GeneralRe: javascript delay Pin
Graham Breach19-Sep-11 1:41
Graham Breach19-Sep-11 1:41 
GeneralRe: javascript delay Pin
Morgs Morgan21-Sep-11 7:12
Morgs Morgan21-Sep-11 7:12 
QuestionJavaScript Native or .NET Compiler Pin
Keith.Badeau16-Sep-11 19:13
Keith.Badeau16-Sep-11 19:13 
AnswerRe: JavaScript Native or .NET Compiler Pin
twseitex17-Sep-11 8:59
twseitex17-Sep-11 8:59 
GeneralRe: JavaScript Native or .NET Compiler Pin
Keith.Badeau19-Sep-11 19:30
Keith.Badeau19-Sep-11 19:30 
This I know. What I am saying is I would like to see someone write a compiler (there already is an interpreter in Windows for scripting) that creates a native executable and/or a MSIL assembly.

I'm talking about writing a JavaScript compiler that allows one to write their desktop applications in JavaScript.

Obviously there are many components in the javaScript library that work exclusively with HTML, others with AJAX. These parts may or may not be desirable and would give a headache to the compiler engineer who was to create this "desktop compiler" for JS.

But there is so much elegance and beauty in the language that I would really like to see "JS++" or "JavaScript#".

Once ported to desktop usage many of the libraries would become obsolete (I would think) and a completely new language would evolve. It would most likely have to be called something else to avoid copyright infringment--just like Microsoft's version called "JScript". Pretty suttle, huh?

This task is far beyond my own capabilities but I've been tinkering and using only a for loop from JavaScript and converting to MSIL (I had an elementary understanding of x86 Assembly on 16-bit machines running DOS and I am probably further away from understanding as I've ever been). Just a brute-force method to see "if i could". I plan on devoting some time to learn about compiler design and obviously I must master JavaScript and understand MSIL completely.

I've digressed; my real purpose of writing this discussion was to discuss possibilities, reasons why it should or *should not* be made.

Basically, I love the language but I am not a web developer or designer. I write desktop windows applications and I would really like to, more as a novelty but nevertheless a useful tool as well, code a desktop app completely in JavaScript.

One more thing, I heard of a couple of languages that took the "good parts" and did away with the "bad" and the buggy and insecure of JavaScript. One was called CoffeeScript (Good Name!) and the others I don't remember. Do these run in the browser as well? They should as the are a subset of the total language.

Please, I'd really like some serious feedback on this. I know it sounds crazy but isn't that what hacking is all about? Pushing things to the limit and beyond? And I don't mean malicious users I'm talking about old school hackers--programmers that made their software do things that they were told was impossible at that time. This is what it is all about for me.
GeneralRe: JavaScript Native or .NET Compiler Pin
User 171649219-Sep-11 21:30
professionalUser 171649219-Sep-11 21:30 
GeneralRe: JavaScript Native or .NET Compiler Pin
Keith.Badeau19-Sep-11 21:55
Keith.Badeau19-Sep-11 21:55 
GeneralRe: JavaScript Native or .NET Compiler Pin
twseitex20-Sep-11 6:35
twseitex20-Sep-11 6:35 
GeneralRe: JavaScript Native or .NET Compiler Pin
Keith.Badeau20-Sep-11 19:43
Keith.Badeau20-Sep-11 19:43 
QuestionHow to restrict user not to enter <> characters in text box. Pin
InderK15-Sep-11 0:04
InderK15-Sep-11 0:04 
AnswerRe: How to restrict user not to enter characters in text box. Pin
twseitex17-Sep-11 9:01
twseitex17-Sep-11 9:01 
AnswerRe: How to restrict user not to enter characters in text box. Pin
berba19-Sep-11 21:05
berba19-Sep-11 21:05 
AnswerRe: How to restrict user not to enter characters in text box. Pin
John Y.29-Sep-11 9:56
John Y.29-Sep-11 9:56 
QuestionUsing Java Script: Pin
amolraj1114-Sep-11 23:57
amolraj1114-Sep-11 23:57 
AnswerRe: Using Java Script: Pin
twseitex16-Sep-11 9:13
twseitex16-Sep-11 9:13 
QuestionI Frame code to replace "name" attribute Pin
PDTUM14-Sep-11 6:29
PDTUM14-Sep-11 6:29 
AnswerRe: I Frame code to replace "name" attribute Pin
twseitex16-Sep-11 9:40
twseitex16-Sep-11 9:40 
QuestionReading a file in local drive using Java script Pin
shir_k13-Sep-11 19:49
shir_k13-Sep-11 19:49 
AnswerRe: Reading a file in local drive using Java script Pin
Graham Breach13-Sep-11 20:26
Graham Breach13-Sep-11 20:26 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k13-Sep-11 22:11
shir_k13-Sep-11 22:11 
GeneralRe: Reading a file in local drive using Java script Pin
Graham Breach14-Sep-11 0:06
Graham Breach14-Sep-11 0:06 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k14-Sep-11 0:51
shir_k14-Sep-11 0:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.