Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

When you say "sorry excuse for a REPL", you are referring to the built in repl and not pry (http://pryrepl.org/), right? because pry is freaking awsome!


The same issue is there. This is a language issue. I want to edit a file and re-evaluate arbitrary expressions with a keystroke. Writing the code and then copy/pasting it into a REPL prompt is not sufficient. Lisp programmers have had excellent live coding environments for a very long time, but with Ruby I must make do with Rails auto-reloading files for me.


> I want to edit a file and re-evaluate arbitrary expressions with a keystroke. Writing the code and then copy/pasting it into a REPL prompt is not sufficient.

This suggests to me you've not spent much time with Pry. Are you aware of this:

https://github.com/pry/pry/wiki/Editor-integration

It's not perfect - doing it perfect with Ruby is a hard problem, as a method can have been defined and redefined in multiple places. But it works very well.


>Example: Jump to line 10 in the file, Pry will reload the file after you have finished

It's still just reloading a file. That's not what I want.


Then what do you want? The file can be either the original source file, or a file containing just the method you wanted to edit, or anything else.

Why do you think you need more?


>Why do you think you need more?

Because I have access to something much better any time I write Scheme.


Better in what way? How is it better than a buffer to put arbitrary code in to get executed?

So far, from what you've pointed at, you seem to have picked the most restrictive simplistic examples of what Pry is capable of as a counter-example to explain why it isn't enough for you, rather than explain what it is you believe is actually missing.

Point is: You have access to much better than the examples you've pointed at with Pry as well.


Not sure if you're aware, but things like this can be done with Emacs.

It really isn't that simple, though, and I've only used it for the most trivial of situations.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: