jweinst1 / Oblivion

The language of Art
https://jweinst1.github.io/OblivionWebsite/
MIT License
413 stars 16 forks source link

Feature Request: Interactive Oblivion Snippets #2

Open viebel opened 7 years ago

viebel commented 7 years ago

Would you like to have interactive Oblivion Snippets integrated into Klipse?

Something like the Oblivion playground but with editabe snippets that one could easilly embed in a blog post.

See for example: http://read.klipse.tech/a-new-way-of-teaching-html-and-css/ and http://read.klipse.tech/how-to-create-amazing-textures-in-javascript/

jweinst1 commented 7 years ago

This would be awesome! How would this be done ? Do you need a standalone version of the compiler? It's in the lib for.

viebel commented 7 years ago

Indeed, I need a standalone version of the compiler. Could you make a jsfiddle with an minimal example of a source code and its compilation?

jweinst1 commented 7 years ago

yup!

jweinst1 commented 7 years ago

https://jsfiddle.net/jweinst1/bn0w019m/

jweinst1 commented 7 years ago

@viebel does that fiddle work?

viebel commented 7 years ago

@jweinst1 Yes. I have been able to make the integration. Will deploy a new version of the plugin soon. Have a look at my local test page:

oblivion

jweinst1 commented 7 years ago

woah sweet! nic job

viebel commented 7 years ago

@jweinst1 Oblivion is available inside Klipse!!!

Here is a demo page: http://blog.klipse.tech/data/2017/03/22/oblivion.html

A couple of things we could improve:

jweinst1 commented 7 years ago

Excellent!

As for the codemirror, the language is very similar to Ruby's syntax (gotta swap _ for end), so in theory one can just change the ruby mode a little to make it easier.

viebel commented 7 years ago

OK. Cool.

I have just deployed a new version of the Klipse plugin with ruby mode. Please make sure (in the browser console) that you get Klipse version 7.0.2

What are you going to do with the Klipse plugin?

jweinst1 commented 7 years ago

What are you going to do with the Klipse plugin?

Use it for examples on the website, and possibly other sites as time goes on :)

viebel commented 7 years ago

On the website, for interactive documentation purposes, I guess.

What use case do you have in mind for other sites?

jweinst1 commented 7 years ago

What use case do you have in mind for other sites?

No idea yet, possibly teaching tools for functional programming? Part of the motivation for this language was a functional language with less parnthesis than scheme.

viebel commented 7 years ago

teaching tools for functional programming

You might be interested by the work of this guy - http://blog.josephwilk.net/clojure/functions-explained-through-patterns.html

He is also working on an interactive version that works in the browser using Klipse and Clojure http://blog.josephwilk.net/functions-as-patterns/resources/