970 karma · joined August 3, 2015
The klipse plugin indeed loads a couple of external scripts - mostly from my github pages domain: viebel.github.io
You can use the babel online repl https://babeljs.io/repl/#?babili=false&evaluate=true&lineWra...
The klipse plugin is a javascript tag that transforms static code snippets of an html page into live and interactive snippets:
- Live: The code is executed in your browser
- Interactive: You can modify the code and it is evaluated as you type The code evaluation is done in the browser: no server is involved at all!
KLIPSE supports several languages:
- javascript
- clojure[script]
- scheme
- ruby
- python
But still I prefer the clojure version using pattern matching over the scala one: http://blog.klipse.tech/clojure/2016/10/25/core-match.html#f...
Take a look here: http://blog.klipse.tech/klipse/2016/09/09/klipse-languages.h...
But unfortunately, itertools is not (yet?) supported by skulpt :(
(Except infix/prefix)
But I think that the point of functional programming is to provide a layer of programming that exposes a clean API. You know: now side effects, no global variables etc..
And maybe: no if!
It would be fantastic to make all the code snippet interactive with the klipse plugin.
http://blog.klipse.tech/javascript/2016/06/20/blog-javascrip...
This article is an interactive version of the first part of this paper: Parsing with derivatives - a Functional Pearl - the part that shows how to implement a regular expression matcher in a few lines of code using a concept from 1964 named Brzozowski's derivative. In this article, we are going to implement a regular expression matcher in clojure using Brzozowski's derivative. The theoretical part is a bit abstract but it worths making the effort as the implementation is really elegant.
In this article, we are going to implement a regular expression matcher in clojure using Brzozowski's derivative.
The theoretical part is a bit abstract but it worths making the effort as the implementation is really elegant.
In his repo, Mark shows how to use regular expressions and automatas to solve programming riddles. In this article, we are focusing on regular expressions - with a tweak:
All the code snippets of this page are live and interactive powered by the klipse plugin:
- Live: The code is executed in your browser
- Interactive: You can modify the code and it is evaluated as you type
It's inspiring to see that it could have real-life applications.
If you find a way to evaluate python code in the browser, please let me know: viebel@gmail.com
No 'x=...'
You can do elegant recursive memoization with the Y combinator as explained here http://blog.klipse.tech/lambda/2016/08/10/y-combinator-app-j...