strinking / docflow

A Discord Bot for evaluating code and viewing documentation, built for the Programming Discord Server.
6 stars 3 forks source link

add render support #19

Closed nikeinikei closed 7 years ago

nikeinikei commented 7 years ago

maybe with love(3/2)d?

jchristgit commented 7 years ago

Can you elaborate a bit on this? Where / for what should it be used? Also, how would you go about interfacing between the Python code and the Lua code?

nikeinikei commented 7 years ago
    love.graphics.circle("line", 100, 100, 100)
    love.graphics.line(300, 0, 0, 300)

so this would result in this image:

https://gyazo.com/02330efc70099af1b1eef4ebd0819c15

or maybe even make it explicit with a love.draw function

function love.draw()    
    love.graphics.circle("line", 100, 100, 100)
    love.graphics.line(300, 0, 0, 300)
end
jchristgit commented 7 years ago

I'm still not quite sure what this has to do with either the Discord Bot or the scraper

nikeinikei commented 7 years ago

execute love code, just like the supported other languages and because love2d provides a very easy interface for rendering.

jchristgit commented 7 years ago

Isn't love a framework for Lua? Coliru supports Lua evaluation which you contributed in your pull request, but evaluating any Lua code with Love support without any form of Sandboxing on the host machine seems a bit unsafe, and I feel like using a VM just for this is a bit overkill. What did you have in mind?

nikeinikei commented 7 years ago

I'm gonna have to test if it's possible to only allow draw calls and detect code which is unsafe.

jchristgit commented 7 years ago

any updates on this?

jchristgit commented 7 years ago

closing due to inactivity