logo       

Re: Lack of software abstractions: msg#00222

lang.j.general

Subject: Re: Lack of software abstractions

Devon McCormick wrote:
> Yet another way to accomplish this is to do as I do: run jconsole under
> emacs and
> have the script file(s) of interest also open in the same instantiation of
> emacs. When
> I change a function, I can either reload the script file or cut-and-paste
> the new version
> into the jconsole session.

This is exactly what I do. It has the disadvantage that you keep
reexecuting the same code. However, if this is mainly verb and adverb
definitions, it is close to instantaneous and emacs J-mode has handy
shortcuts. If I want nouns that take a lot of time to build, I write
"constructors" like

createX=:3 : 'expensivefunction arguments'

and then say

X=:createX ''

just once in the interpreter window.

Under this model, jconsole is run as a process in an emacs window. I
understand that you can do something more fancy with vi, where you run vi
from the interpreter window and have it snarf the input. I believe Martin
Neitzel has described how to do it, although a cursory search comes up
with no references. Since I seldom use vi, I'll stick with the first
method.

Best wishes,

John





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise