Options

JavaScript

Created a page for JavaScript, which like Java will collect useful references to books, styleguides, libraries, development utilities etc. I hope this is going to be useful to scientists and their students when they start to tweak some online applications like the simple online climate model.

Comments

  • 1.

    I think one could may be also list PHP as a webtool, but I dont want to interfere with your editing. I had just collected some similar references somewhere else, here they are:

    Ressources concerning Javascript Some Javascript libraries

    http://raphaeljs.com/

    http://arborjs.org/

    http://jquery.com/

    http://mbostock.github.com/d3/

    http://jsxgraph.uni-bayreuth.de/wp/

    http://sourceforge.net/projects/oat/ Javascript, HTML, CSS, PHP & Co

    W3Schools Online Web Tutorials WebGL

    http://en.wikipedia.org/wiki/WebGL Javascript via Java

    http://en.wikipedia.org/wiki/Google_Web_Toolkit (see also http://en.wikipedia.org/wiki/Dart_(programming_language))

    http://processingjs.org/ (uses canvas) more visualizationtools and more

    http://wiki.sagemath.org/devel/JavascriptResources

    list of open visualization tools at:

    http://wiki.okfn.org/OpenVisualisation

    Comment Source:I think one could may be also list PHP as a webtool, but I dont want to interfere with your editing. I had just collected some similar references somewhere else, here they are: Ressources concerning Javascript Some Javascript libraries http://raphaeljs.com/ http://arborjs.org/ http://jquery.com/ http://mbostock.github.com/d3/ http://jsxgraph.uni-bayreuth.de/wp/ http://sourceforge.net/projects/oat/ Javascript, HTML, CSS, PHP & Co W3Schools Online Web Tutorials WebGL http://en.wikipedia.org/wiki/WebGL Javascript via Java http://en.wikipedia.org/wiki/Google_Web_Toolkit (see also http://en.wikipedia.org/wiki/Dart_%28programming_language%29) http://processingjs.org/ (uses canvas) more visualizationtools and more http://wiki.sagemath.org/devel/JavascriptResources list of open visualization tools at: http://wiki.okfn.org/OpenVisualisation
  • 2.

    PHP should go to an extra page, if anyone chooses to use it.

    ... I dont want to interfere with your editing.

    Feel free to add anything you deem useful. I will only mention stuff that I know from my own experience and can recommend based on that.

    Comment Source:PHP should go to an extra page, if anyone chooses to use it. <blockquote> <p> ... I dont want to interfere with your editing. </p> </blockquote> Feel free to add anything you deem useful. I will only mention stuff that I know from my own experience and can recommend based on that.
  • 3.

    PHP should go to an extra page, if anyone chooses to use it.

    A web page is created using 3 techniques: HTML describes the document structure, CSS (cascading style sheets) describe the layout and JavaScript adds dynamical content...

    Amongst others with my comment I wanted to say that one should eventually make this replacement:

    A web page can be created using 3 techniques

    Comment Source:>PHP should go to an extra page, if anyone chooses to use it. >A web page is created using 3 techniques: HTML describes the document structure, CSS (cascading style sheets) describe the layout and JavaScript adds dynamical content... Amongst others with my comment I wanted to say that one should eventually make this replacement: >A web page can be created using 3 techniques
  • 4.

    A web page when loaded and rendered by a Browser consists of a HTML document, CSS- and JavaScript-files or -statements. That's what I tried to say. There are of course thousands of ways to generate a web page used by servers, with PHP being one among them. But that's not what I wanted to talk about :-)

    So maybe I should replace "can be created" with "consists of" or something.

    Comment Source:A web page when loaded and rendered by a Browser consists of a HTML document, CSS- and JavaScript-files or -statements. That's what I tried to say. There are of course thousands of ways to generate a web page used by servers, with PHP being one among them. But that's not what I wanted to talk about :-) So maybe I should replace "can be created" with "consists of" or something.
  • 5.

    So maybe I should replace "can be created" with "consists of" or something.

    I don't know, maybe your suggested replacement "consits of" is better on the page than just "is", but my mother tongue is german, so I fear I can't help you much more with the english.

    Comment Source:>So maybe I should replace "can be created" with "consists of" or something. I don't know, maybe your suggested replacement "consits of" is better on the page than just "is", but my mother tongue is german, so I fear I can't help you much more with the english.
  • 6.

    It seems JavaScript usage has grown quite a bit in the last years? I should look into the qooxdoo library (not on nad's list) for a job application.

    Ca. 2003 I made a WWW interface for a board game in Javascript. I had a hard time defending this approach against Flash (or whatsit). Everyone including the boss declaring me crazy.

    (Sigh. Defending sound engineering principles against the pipe dreams of the big boss. One reason I started to hate programming for money... That game project also failed at the boss - but the game itself is phantastic: A 3-player chess variant on a board made of triangles. (Math dreams of triality...) Remains of my JavaScript client here: http://www.jestersgame.com (Design and bugs not mine).)

    Comment Source:It seems JavaScript usage has grown quite a bit in the last years? I should look into the qooxdoo library (not on nad's list) for a job application. Ca. 2003 I made a WWW interface for a board game in Javascript. I had a hard time defending this approach against Flash (or whatsit). Everyone including the boss declaring me crazy. (Sigh. Defending sound engineering principles against the pipe dreams of the big boss. One reason I started to hate programming for money... That game project also failed at the boss - but the game itself is phantastic: A 3-player chess variant on a board made of triangles. (Math dreams of triality...) Remains of my JavaScript client here: http://www.jestersgame.com (Design and bugs not mine).)
  • 7.

    It seems JavaScript usage has grown quite a bit in the last years.

    Yes, with Web 2.0 and AJAX, most web pages make heavy use of advanced JavaScript functions and libraries, although it is not good practice to try to write JavaScript yourself manually. There are a lot of frameworks that generate it for you (like GWT or JSF with additions like Icefaces etc.)

    BTW: Does anyone know of a random number generator for the normal distribution in JavaScript?

    Comment Source:<blockquote> <p> It seems JavaScript usage has grown quite a bit in the last years. </p> </blockquote> Yes, with Web 2.0 and AJAX, most web pages make heavy use of advanced JavaScript functions and libraries, although it is not good practice to try to write JavaScript yourself manually. There are a lot of frameworks that generate it for you (like GWT or JSF with additions like Icefaces etc.) BTW: Does anyone know of a random number generator for the normal distribution in JavaScript?
  • 8.

    BTW: Does anyone know of a random number generator for the normal distribution in JavaScript?

    One of the fastest algorithm is the Ziggurat algorithm. Simpler to program is the Box–Muller transform. Even simpler, if you don't need precisely the normal distribution, use the central limit theorem and add a few i.i.d. random numbers.

    Comment Source:> BTW: Does anyone know of a random number generator for the normal distribution in JavaScript? One of the fastest algorithm is the [Ziggurat algorithm](http://en.wikipedia.org/wiki/Ziggurat_algorithm). Simpler to program is the [Box–Muller transform](http://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform). Even simpler, if you don't need precisely the normal distribution, use the central limit theorem and add a few i.i.d. random numbers.
  • 9.

    The algorithm I would like to use is one from numerical recipes, that I used for week 308. But since JavaScript does not support object oriented programming (or rather: does it indirectly via prototypes), I wasn't able to migrate the code from Java to JavaScript within 5 minutes.

    So what I'm looking for right now are implementations in JavaScript, of whatever algorithm.

    Comment Source:The algorithm I would like to use is one from numerical recipes, that I used for <a href="http://johncarlosbaez.wordpress.com/2010/12/24/this-weeks-finds-week-308/">week 308</a>. But since JavaScript does not support object oriented programming (or rather: does it indirectly via prototypes), I wasn't able to migrate the code from Java to JavaScript within 5 minutes. So what I'm looking for right now are implementations in JavaScript, of whatever algorithm.
  • 10.

    Ooh, the SDE thing. Time I have a closer look.

    I'm not sure about the details, but Brownian Motion can be approximated by any process with any i.i.d. increments. So, "perhaps" you could just take the usual random number generator? But I guess it would need some more tinkering (perhaps adding random time steps).

    Comment Source:Ooh, the SDE thing. Time I have a closer look. I'm not sure about the details, but Brownian Motion can be approximated by any process with any i.i.d. increments. So, "perhaps" you could just take the usual random number generator? But I guess it would need some more tinkering (perhaps adding random time steps).
  • 11.

    I have added some minimal info about closure, Caja and Fay to the wiki page. The Fay ring oscillator example is a model of the sort of thing I want to produce: javascript from a minimal functional EDSL.

    Comment Source:I have added some minimal info about closure, Caja and Fay to the wiki page. The Fay ring oscillator example is a model of the sort of thing I want to produce: javascript from a minimal functional EDSL.
  • 12.

    If you are interested in using javascript for scientific visualizations then D3, Crossfilter should go at the top of the list. Node.js enables working with javascript on the back end as well.

    Comment Source:If you are interested in using javascript for scientific visualizations then D3, Crossfilter should go at the top of the list. Node.js enables working with javascript on the back end as well.
  • 13.
    edited March 2013

    Allan Erskine and others have used D3 and JSXGraph I've never heard of Crossfilter. How does D3 compare with JSXGraph? It would be good could add information about D3 and Crossfilter to the wiki page.

    Comment Source:[[Allan Erskine ]] and others have used D3 and JSXGraph I've never heard of Crossfilter. How does D3 compare with JSXGraph? It would be good could add information about D3 and Crossfilter to the wiki page.
Sign In or Register to comment.