![]() For those unfamiliar with, it's a collection of mathematical puzzles for developers testing their ability to come up with clever/efficient algorithms as well as brevity/elegance of their chosen language. My solutions to Project Euler challenges in RapydScript. RapydScript making use of GlowScript, another project done by a member of our communityĪn in-browser compiler that allows you to use uncompiled RapydScript files in the browser directly via script tags: Ironically, the original demos from Python version of NodeBox now work with JavaScript version of NodeBox with few changes (and sometimes none at all) by using RapydScript. NodeBox was ported from Python to JavaScript to allow cross-platform compatibility. It relies on a JavaScript port of NodeBox (which was originally written in Python). This is a collection of very cool demos, showcasing RapydScript's similarity to real Python and at the same time its ability to work with other JavaScript. This includes the demos from RapydScript's examples directory, as well as a few others. GlowScript is a WebGL-based environment and a physics engine, originally written in Python for the desktop, the author ported it to the browser using If you would like to take a look at them to see what's possible with RapydScript, here are some examples: I bundled a few demos with RapydScript itself, but several members of the community put together much better demos. If you have questions, bug reports, or feature requests, feel free to post them on our mailing list: If you're using Windows, you should be able to follow similar commands after installing node.js and git on your system. If you're using OSX, you can probably use the same commands (let me know if that's not the case). Git clone git:///atsepkov/RapydScript.git Function calling with optional argumentsįirst make sure you have installed the latest version of node.js (You may need to restart your computer after this step).The best way to learn a new language/framework is to dive in. Let's not waste any more time with the introductions, however. it's self-hosting, the compiler is itself written in RapydScript and compiles into JavaScript.ability to invoke any JavaScript/DOM object/function/method as if it's part of the same framework, without the need for special syntax.support for object literals with anonymous functions, like in JavaScript.pythonic import system (you can also use require()).inheritance system that's both, more powerful than Python and cleaner than JavaScript (single inheritance w/ mixins).classes that work and feel very similar to Python.similar to above, ability to use both, Python's and JavaScript's tutorials (as well as widgets).ability to use both, Python's methods/functions and JavaScript's alternatives.decorators, list comprehensions, dict comprehensions, verbose regex, starargs, kwargs, you name it.optional function arguments that work just like Python ( func(third='foo')).much cleaner code than native JavaScript.intelligent code optimizations based on context.intelligent scoping (no need for repetitive var or new keywords).type inference that allows for hybrid-typing similar to TypeScript.= compiles to deep equality and uses clever optimizations to avoid performance overhead.RapydScript combines the best features of Python as well as JavaScript, bringing you features most other Pythonic JavaScript replacements overlook. Don't worry if you've never used either of the above-mentioned compilers, if you've ever had to write your code in pure JavaScript you'll appreciate RapydScript. To those familiar with Pyjamas, RapydScript brings many of the same features and support for Python syntax without the same overhead. To those familiar with CoffeeScript, RapydScript is like CoffeeScript, but inspired by Python's readability rather than Ruby's cleverness. RapydScript allows to write your JavaScript app in a language much closer to Python without the overhead that other similar frameworks introduce (the performance is the same as with pure JavaScript). Bet you didn't know deep equality with no overhead was possible
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |