vydd / sketch

A Common Lisp framework for the creation of electronic art, visual design, game prototyping, game making, computer graphics, exploration of human-computer interaction, and more.
MIT License
1.39k stars 67 forks source link

Gleefre/define start function #85

Closed Gleefre closed 8 months ago

Gleefre commented 9 months ago

Reopens #78. Also see #65 and #58.

I don't really like the API to be honest, so it is still a draft.

vydd commented 9 months ago

Hey @Gleefre,

I don't think I understand why define-start-function is better than make-executable. I get the logic behind adding options to define-start-function though, but it feels unnecessarily custom.

In my mind, we could have a general make-executable method that works across various distributions, and we could make it call additional methods when they are defined for setup / cleanup / etc (if we don't want to have users directly define before/after). So, something like

(defmethod before-export ((sketch foo))
  ...)

defmethod after-whatever ((sketch foo))
  ...)

(make-executable 'foo :out "foo.exe") ; let's imagine we are on Windows!
Gleefre commented 8 months ago

Closing for now