HNHacker News
TopNewBestAskShowJobs

viebel

970 karma · joined August 3, 2015

submissionscomments
viebel··on Show HN: How to write a tiny compiler
Oh. This font is so ugly. What browser are you on?
viebel··on Show HN: How to write a tiny compiler
Ah I see! So what station are you for the moment?
viebel··on Show HN: How to write a tiny compiler
So you made the whole journey until the last station without taking any breaks. Right?
viebel··on Show HN: How to write a tiny compiler
I see. My blog is powered by the klipse plugin (that I have developed): https://github.com/viebel/klipse

The klipse plugin indeed loads a couple of external scripts - mostly from my github pages domain: viebel.github.io

viebel··on Show HN: How to write a tiny compiler
what do you mean?
viebel··on Show HN: How to write a tiny compiler
Thx a lot. Fixed!
viebel··on Show HN: Hacker News Lookup - A chrome extension built with ClojureScript
Really neat!
viebel··on A deep dive into ClojureScript reagent
I'm the author of the klipse[1] plugin. Timothy impressed me with the quality of his klipse interactive snippets in this mind-blowing article.

1: https://github.com/viebel/klipse

viebel··on How (Not?) to Use Python’s List Comprehensions
What about making an interactive version of theaeticle with klipse?
viebel··on JavaScript can sleep
Give it a try. And you'll know...

You can use the babel online repl https://babeljs.io/repl/#?babili=false&evaluate=true&lineWra...

viebel··on Code interactivity on any web page
KLIPSE is a simple client-side code evaluator pluggable on any web page.

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

viebel··on The most elegant implementation of FizzBuzz
Oh! I see. It's much more concise and clean now.

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...

viebel··on The most elegant implementation of FizzBuzz
It's amazing how scala syntax is verbose - not to say ugly!
viebel··on The most elegant implementation of FizzBuzz
The klipse plugin can also features python interactive snippets - using skulpt - http://www.skulpt.org/.

Take a look here: http://blog.klipse.tech/klipse/2016/09/09/klipse-languages.h...

But unfortunately, itertools is not (yet?) supported by skulpt :(

viebel··on The most elegant implementation of FizzBuzz
It's amazing Python code and clojure code are almost the same.

(Except infix/prefix)

viebel··on The most elegant implementation of FizzBuzz
Indeed.

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!

viebel··on Overview of JavaScript ES6 features
Great article!

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...

viebel··on A regexp matcher in less than 30 lines of code
1 point by viebel 14 hours ago [-]

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.

viebel··on Show HN: Parsing with derivatives – matching of regexps running in the browser
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.

viebel··on Regular expressions can help you to solve programming interview riddles
This article is a rewrite of the work of Mark Engelberg in his automata repository.

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

viebel··on LL and LR Parsing Demystified (2013)
I've copy/pasted the code of your reverse polish evaluator in python in this interactive blog post: http://blog.klipse.tech/python/2016/09/22/python-reverse-pol...
viebel··on Show HN: Klipse (pluggable client side evaluator) just hit 400 stars on GitHub
Take a look at https://github.com/viebel/klipse - everything is explained there
viebel··on Show HN: Klipse (pluggable client side evaluator) just hit 400 stars on GitHub
what do you mean by "how?"?
viebel··on Y combinator real life application: recursive memoization in JavaScript
The Y combinator is one of the most beautiful ideas in computer science.

It's inspiring to see that it could have real-life applications.

viebel··on Recursions without names: Introduction to the Y combinator in JavaScript
Do you know a language without argument names?
viebel··on Recursions without names: Introduction to the Y combinator in JavaScript
Thanks a lot. Will try to integrate skulpt on klipse.
viebel··on Recursions without names: Introduction to the Y combinator in JavaScript
I'd love to support python.

If you find a way to evaluate python code in the browser, please let me know: viebel@gmail.com

viebel··on Recursions without names: Introduction to the Y combinator in JavaScript
There are no names except function arguments.

No 'x=...'

viebel··on Recursions without names: Introduction to the Y combinator in JavaScript
Yeah. But I didn't find a way to run python code in the browser. Currently in Klipse, we support javascript, ruby, clojure and php...
viebel··on Recursions without names: Introduction to the Y combinator in JavaScript
Not useless, almost useless:

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...

← PreviousPage 4 of 5Next →