Put the macros back! It would be so cool!
Lisp's Influence on Ruby
11–20 of 91 posts
Re: Lisp's Influence on Ruby
#12I love Ruby, use it for most of my projects that don't require performance. Nothing I would love more than a Ruby with a Common-Lisp like compiler and runtime. Unboxed types, native compilation, partial compilation, live image (Ruby has this but "faster Rubies" like Crystal don't), etc...
Re: Lisp's Influence on Ruby
#13That is actually Lisp influence on Smalltalk, and Perl, that eventually influenced Ruby.
Totalle agree, I just googled it: "Yukihiro 'Matz' Matsumoto heavily credits Smalltalk as the deepest structural inspiration behind Ruby’s object model. He combined Smalltalk’s beautiful object-oriented architecture and message-passing system with features from other languages to create a tool designed primarily for developer happiness." Including the closures and collection operations.
(Matz speaking at the LL2 conference some 20+ years ago)
Re: Lisp's Influence on Ruby
#14I love Ruby, use it for most of my projects that don't require performance. Nothing I would love more than a Ruby with a Common-Lisp like compiler and runtime. Unboxed types, native compilation, partial compilation, live image (Ruby has this but "faster Rubies" like Crystal don't), etc...
... or just use Common Lisp.
Also I'm working on a DSL/Macros that give me more Ruby-esque quality of life things in Lisp.
Re: Lisp's Influence on Ruby
#15Re: Lisp's Influence on Ruby
#16What have the Lisps ever done for us? https://www.youtube.com/watch?v=Qc7HmhrgTuQ
Re: Lisp's Influence on Ruby
#17For folks that want all of this plus macros (and a lot of other great things), check out Elixir.
Re: Lisp's Influence on Ruby
#18> He’s described Ruby’s design as starting from a simple Lisp, stripping out macros and s-expressions Put the macros back! It would be so cool!
Re: Lisp's Influence on Ruby
#19Earlier quoted context omitted.
But macros and s-expressions are two of my favorites parts of lisp!
Funny enough Lisp was originally meant to be written in a higher level syntax (with infix operators and everything). But yeah, macros and S-expressions make it easier to write your own DSLs.
For better or worse, parenthesis aren't that bad with the proper IDE tooling.