5 ms·
LispKit: framework for Lisp-based extension/scripting languages for macOS apps
- deleted 9y ago[deleted]
- nickmain 9y agoDupe: https://news.ycombinator.com/item?id=17017975 https://news.ycombinator.com/item?id=17017975
- shawn 9y agoSomewhat tangential, but if you want to use Lisp with JS or Lua, you can use Lumen: https://github.com/sctb/lumen https://github.com/sctb/lumen I only mention it because it pretty much runs everywhere, and macOS already has a few JS and Lua-based extension mechanisms.
- whitten 9y agoShawn, Is your Lumen system compatible with COMMON-LISP (Lisp-2), or Scheme (Lisp-1) ? If Lumen is a Lisp-1 then it does not allow the same name to be used for a function and a variable simultaneously. If Lumen is a Lisp-2 then functions and variables are in separate namespaces. Perhaps someone knows if there a library of code that you can load to make all the common-lisp functions available to you? Would that make your system a common lisp? Is there an equivalent library you can load to make Lumen a Scheme at some compatibility level? Thanks for your info and sharing your work.
- shawn 9y agoThe cool thing about Lumen is that it’s literally JavaScript: every lumen expression compiles into equivalent JS (or Lua). There aren’t any special calling conventions. I would say Lumen is quite close to Scheme out of the box, but without syntax transformers. It wouldn't be hard to implement the missing parts of Scheme. If you want to collaborate on some of this, shoot me an email. :)
- rjsw 9y agoThe purely functional nature of LispKit was always a turnoff for me.
- bjoli 9y agoIt is not purely functional. The main difference from r7rs scheme is that lists are immutable, but that has been the idiomatic way in scheme anyway. It even supports generalised set!.
- amelius 9y agoCan you still put mutable cells (refs) inside these lists?
- bjoli 9y agoI doubt that would be an issue. I think it has more to do about the correctness of the list implementation. In r5rs you can mutate a list from underneath your own feet, and ensuring a correct program state requires some extra checks that may slow list operations down.
- rjsw 9y agoLispKit Lisp is purely functional [1]. I did read the GitHub announcement but was just trying to make the point that re-using names of software packages isn't a good idea, thanks for providing an example. [1] https://en.wikipedia.org/wiki/Lispkit_Lisp https://en.wikipedia.org/wiki/Lispkit_Lisp
- realworldview 9y agohttps://en.m.wikipedia.org/wiki/Lispkit_Lisp https://en.m.wikipedia.org/wiki/Lispkit_Lisp
- bjoli 9y agoHas anyone here used guile from swift? How do the two projects compare?
- M_Bakhtiari 9y agoWhy is it called LispKit when there's no Lisp in it?
- pavlov 9y ago”LispKit implements a core language based on the R7RS (small) Scheme standard.” Don’t you consider Scheme a Lisp?
- pjmlp 9y agoScheme is a Lisp like language, not a Lisp. Parenthesis is probably the only thing they have in common.
- jlg23 9y agoScheme is a classical example for a lisp-1. CL is a lisp-2. > Parenthesis is probably the only thing they have in common. Besides separation of namespaces in a lisp-2 and full, native support for continuations in scheme, which differences do you see/consider relevant?
- pjmlp 9y agoThe standard library and built-in forms that actually define the language semantics?
- M_Bakhtiari 9y agoMacros is the most glaring omission that I can see. Scheme's closest equivalents are neat academic exercises, but I don't consider them complete macro systems.
- bjoli 9y agoYou do know that something like defmacro can be implemented in about 10 lines using syntax-case?
- 9y ago
- fithisux 9y agoIt is a pitty that it does not run under linux/windows. Gnustep does not seem to help here (or wxSwift).
- jdmoreira 9y agoIt would be awesome if this had an FFI for calling Swift code.