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 9 years ago.
Javascript seems to become popular as an implementation language for other programming languages.
The article
Lightweight compilation of (C)LP to JavaScript. ICLP 2012
drew my attention on this.
There are a lot of proof-of-concept prototypes for Prolog systems written in Javascript around on the Web.
What are current, actively maintained, preferably ISO conforming Prolog systems written in Javascript?
The only Prolog in JavaScript I know is YieldProlog, but I haven't tried it extensively, just the code available in QueryEditor.
I was hoping than using the yield construct it was lightweight (I used extensively such construct in C#, and I found it - paired to lambda - rather powerful).
But when I inspected (summarily) the source, I found it really complex, despite the assumptions.
edit
I've found recently these contributions, that seem really interesting:
proscript and proscript2.
edit
a new implementation available:
Tau Prolog, brought to my attention from Jan on SWI mailing list
edit
Something new, hhprolog, a pure Prolog engine, based on code and documentation provided by Paul Tarau, ported by me to Javascript. So, available in both browsers and NodeJS.
The project is still preliminary, mostly needed is to bootstrap to interpreter: right now (pre)compiling Prolog to the (novel) virtual machine must be accomplished with SWI-Prolog installed, properly configured (JPL needed).
To implement such bootstrapping, I would probably need to implement negation, to reuse Paul' interface, or - better - attempt to implement something staying in the pure paradigm. In particular, only unbounded integer arithmetic (again by Paul Tarau, there is some Python code available - I will try lazily to port to Javascript).
Related
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 9 years ago.
Since V8 compiles JavaScript into assembler, may we say that in the Chrome environment JavaScript is not anymore a script language but a programming language instead?
V8 compiles JavaScript source code directly into machine code when it
is first executed. There are no intermediate byte codes, no
interpreter.
https://developers.google.com/v8/design#mach_code
The very same question has been (better) debated here 10 months ago:
Can Javascript be considered a interpreted language when using Google Chrome (V8)?
"Scripting languages" are an (ill-defined) subset of "Programming languages", so its always been appropriate to refer to JavaScript as a programming language.
But basically, scripting is not a technical term. When we call something a scripting language, we're primarily making a linguistic and cultural judgment, not a technical judgment.
— Programming is Hard, Let's Go Scripting...
A script language is also a programming langauge.
Anyhow, the characteristics of the Javascript language hasn't changed even if the underlying implementation of the executing engine has changed. Javascript still has features that are very characteristic to what we see as a script language, like dynamic data types and dynamic code generation.
Javascript was originally a plain interpreted scripting language, but how the code is executed has changed a lot over the last few years. However, apart from how this affects performance, the language still works exactly as it has always done.
Program (Turing machine) is just a mathematical structure, a piece of information. You could create programming languages and write programs hudreds of years ago, without having any computer to run it.
Programming language is defined by it's specification, not by "things" that you do with it (compilation, interpretation etc.). You don't have to have a computer to write programs. If you know the specification, you can "run" your program on your input in your head or on paper and get an output.
Actually, first programs were written far before first electronic computer was invented.
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.
Is there a complete and a most updated and downloadable JavaScript Language Reference Manual!?
The closest thing to an official documentation is the ECMA specification. Implementors of JavaScript follow this specification.
However, the most widely used and penetrable (reading the spec for quick reference can be daunting) documentation is JavaScript at Mozilla Documentation Network. It has a lot of information that is handy for using JavaScript in the browser too.
JavaScript is not one thing, with a single possible manual. There are different things that people put together under the JavaScript name:
The ECMAScript standard
The different implementations of a JavaScript engine used by browsers, which extend the ECMA standard with new APIs
Various APIs defined elsewhere, mostly at W3C, such as DOM, HTML5 APIs, other parts that people put under the HTML5 umbrella
Various serverside engines, like Node.js, which add their own APIs, plus all of the libraries that work with these engines
Tons of libraries and frameworks that are built on top of the base JavaScript support that browsers offer, like React, Angular, jQuery...
The best reference for what is normally considered JavaScript is indeed the Mozilla Developer Network.
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 9 years ago.
I'm a programming "enthusiast", not a pro, and I'm looking for an easy graphical programming environment (for desktop, on the Mac and iOS) similar to RealBasic or RunRev Livecode.
However, because my available time is limited, I'd rather spend it into something that uses a more ubiquitous language like Javascript/Html5 (so I can transfer this knowledge into other areas like web programming) rather than an idiosyncratic language like the one used by Livecode or RealBasic (which cannot be used outside of that specific programming environment).
I've looked into Appcelerator Titanium (which uses Javascript/HTML/CSS), but it doesn't seem to have an easy GUI development interface.
Any suggestions ?
Thanks.
Wakanda is likely the closest I've seen as well.
My experience on a Mac is that it isn't terribly stable. Not sure if that is just my env or if it's because it's still relatively new. I like, and am very impressed with what they are doing, but just not sure I can trust it yet for production level stuff.
Realsoftware has an awful lot of perks. I'm still exploring it but looks like it maybe what I'll use. It would be an easy decision if it was JS/HTML5! It's all compiled and server side tho - as I understand it.
EDIT:
Have a good look at Wakanda's NoSQL data capabilities. They are nothing short of amazing and very well thought out. Four types, storage, calculated, relational and alias. There's a good overview YouTube vid at https://vimeo.com/31837379
Have a look to the new Javascript Stack : Wakanda
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 a pure javascript, open-sourced, wiki implementation, preferably one using NodeJS. Where might I find it?
I'd suggest jingo thanks to its nice design (with very sane typography), use of git as backing datastore, format compatibility with the markdown format used by github (gollum), and the fact that it's somewhat actively developed.
As of Jan 2017, Matterwiki is also actively developed.
Wiki.js is also being actively developed. It's using a git datastore, has a markdown editor, search engine and assets management.
Tiddlywiki can generate static HTML.
Npmjs and GitHub reveal only two other relatively popular and somewhat active projects: openKB and Hazel.
Wikipedia shows mostly the same JS wiki engines, plus Grokla, which is closed source.
Wikimatrix lists 7 wiki engines powered by JavaScript.
Old answer: https://github.com/gjritter/nodewiki (no updates since 2010).
http://nodebits.org/wiki-challenge
Uses file system
https://github.com/nodebits/wiki-challenge
Git based wiki system for markdown files
https://github.com/nhoss2/nodewiki
Git based
https://github.com/claudioc/jingo
Here's a very recent Node.js one: https://github.com/milani/node-gitwiki. Needs work I think.
But if you just want HTML5+CSS+JavaScript, then http://www.tiddlywiki.com/ does without a remote server, all via an in-browser web app. Pretty cool :-)
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 is the best open source/free HTML5/CSS3/JavaScript IDE?
Thank you!!!
Most of the time when I write code I am programming C# applications using Visual Studio, which is my favorite IDE. However, when it comes to Javascript VS is quite poor. It does not support collapse to definitions (AKA code folding in other IDEs / editors), does not support code outlining and also has a very primitive and most of the times useless autocomplete.
Because of that, at some point I have started to search alternative tools for JS programming and the best I came across was Aptana Studio. It also has support for HTML and CSS (as well as for some server side languages like Ruby, PHP, Phyton), but I have only used it for JS and that is an area where it shines. It has very good code outlining and one of the best autocomplete implementations I have ever seen for Javascript (even thought it is still improvable).
Aptana Studio is based Eclipse and is available as a plugin or as a full package version. On their site they are saying that the next version is going to totally independent from Eclipse, which would make it a lot more light weight and more performant. However, the current Beta version of Aptana Studio 3 is still based on Eclipse.
You can find more on Aptana Studio 3 on the official page: http://aptana.com/products/studio3
(G)Vim of course. While it might look spartanic at first, it's extremely powerful once you've become familiar with the way it works.
The answers are likely to be subjective, but here are some choices:
KompoZer
Aptana
Amaya
Here are the links: KompoZer, Aptana, Amaya.
This also may help: an extensive comparison of HTML Editors.
I use Komodo Edit. The latest version has code completion for HTML5 and CSS3, the JavaScript code completion can be adjusted depending on which JS libraries you use (eg. jQuery, prototype, YUI).
Free and open-source? - NetBeans.
There is Sublime Text 2 http://www.sublimetext.com/2 after few years with Aptana... I enjoy using it.