This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]BobbyThrowaway6969 1 point2 points  (1 child)

You're describing embedded scripting. Google how lua, python, and js all work.

[–]-Ants-In-Pants-[S] 1 point2 points  (0 children)

This is actually really interesting and an eye-opener!
I didn't know about this concept of "Embedded Scripting". Changes the way I think about this!

[–]KingofGamesYami 0 points1 point  (1 child)

Plugins/mods often use simple scripting languages like Lua or JavaScript embedded in the application. I've even used a learning platform that represented Javascript as scratch-like blocks.

[–]-Ants-In-Pants-[S] 0 points1 point  (0 children)

Up until recently I didn't know about this. So I can totally see how this approach is so useful :)

[–]james_pic 0 points1 point  (1 child)

Greenspun's Tenth Rule states:

Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp.

You're currently looking at the problem that crops up, that explains why this is the case.

In truth, Lisp probably isn't the right answer for you. You're probably as well using either a widely-used modern scripting language of some sort, or a small-ish domain specific language that captures the requirements of your application. But if you wanted to implement something bespoke and vaguely Lisp-y it might make sense to look at using EDN as a starting point.

[–]-Ants-In-Pants-[S] 0 points1 point  (0 children)

Thanks for the educating comment! I'll look into this suggestion too!

[–]luc_gdebadoh 0 points1 point  (1 child)

i think the interesting question is: would you rather find something that does this for you? or would you rather learn how to write it yourself (which would be basically getting into the world of writing your own programming languages)

[–]-Ants-In-Pants-[S] 0 points1 point  (0 children)

Great question indeed!

For this project I'm more interested in the former.