4 ms·
> What it offers that none other language offers AFAIK apart from lisp is foremost live coding. In case you are not aware live coding simple means to code an ap
by vidarh 13y ago
> What it offers that none other language offers AFAIK apart from lisp is foremost live coding. In case you are not aware live coding simple means to code an application while the applications runs.
You can do the same in Ruby with (the very much Lisp and Smalltalk inspired) Pry, though probably not as advanced.
- kilon 13y agoyes this looks definitely very close to live coding. If it can replace live objects on the fly even when already referenced by other live objects its live coding in its true form. You just gave me a big reason to add Ruby to my list of languages to learn next :) I think IPython offers something similar for python too. Its makes me very happy to see live coding making its way through the dynamic languages as I am a huge fan of live coding :)
- vidarh 13y agoI don't think it can outright replace objects, but Ruby objects are extremely malleable, so you could e.g. override each and every method for a specific object to forward to a replacement. Replacing the object entirely wouldn't be impossible, but it'd likely require some more invasive changes.
- kilon 13y agoyes those things Python can do too. Replace methods, recreate objects etc. And probably you can find tons of workaround for things it cant do out of the box. Its not bad, not bad at all :) I really like Ruby :)
- mpweiher 13y agoThere is also a live coding environment for ObjST that I wasn't able to show during the FOSDEM talk. In this case, "live" means re-evaluation with every keystroke. I'll upload a video of that later.
- jimbokun 13y agoWhich is one reason why Ruby Motion is such a nice environment for iOS development. You can query and send messages to live objects in the running system. You cannot change method definitions without recompiling, unfortunately.