- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
telnet to 2.8 REPL
Thu, 2010-02-11, 19:26
I found this blog post explaining how to set up the REPL so that you can telnet to it:
http://gracelessfailures.com/2009/11/24/remote-in-process-repl.html
The post (from Nov '09) laments the lack of things like tab completion.
A few questions:
Will this work with the 2.8 REPL?
Will it support the 2.8 tab completion functionality?
I think a lot of people are hungry for a remote JVM debugging tool that you can telnet into, and get things like tab completion. I use BeanShell at the moment, but I have to wrap my telnet session using "rlwrap" to get readline support, and there is nothing fancy like tab completion.
Ian.
--
Ian Clarke
CEO, SenseArray
Email: ian@sensearray.com
Ph: +1 512 422 3588
http://gracelessfailures.com/2009/11/24/remote-in-process-repl.html
The post (from Nov '09) laments the lack of things like tab completion.
A few questions:
Will this work with the 2.8 REPL?
Will it support the 2.8 tab completion functionality?
I think a lot of people are hungry for a remote JVM debugging tool that you can telnet into, and get things like tab completion. I use BeanShell at the moment, but I have to wrap my telnet session using "rlwrap" to get readline support, and there is nothing fancy like tab completion.
Ian.
--
Ian Clarke
CEO, SenseArray
Email: ian@sensearray.com
Ph: +1 512 422 3588
Thu, 2010-02-11, 20:37
#2
Re: telnet to 2.8 REPL
I'm working on a swing-based front-end to deal with exactly this problem.
But I'm also over committed, so can't promise anything deadline-wise
On 11 February 2010 19:14, Paul Phillips <paulp@improving.org> wrote:
--
Kevin Wright
mail/google talk: kev.lee.wright@googlemail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda
But I'm also over committed, so can't promise anything deadline-wise
On 11 February 2010 19:14, Paul Phillips <paulp@improving.org> wrote:
I'd love to have this too, but nobody is likely to write it but me and
I'm hard pressed to call it the highest priority. Find me an employee
who will work for nothing but the joy of acquiring knowledge and maybe
we'll have something by 2.8.
--
Paul Phillips | All men are frauds. The only difference between
Caged Spirit | them is that some admit it. I myself deny it.
Empiricist | -- H. L. Mencken
ha! spill, pupil |----------* http://www.improving.org/paulp/ *----------
--
Kevin Wright
mail/google talk: kev.lee.wright@googlemail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda
Thu, 2010-02-11, 20:47
#3
Re: telnet to 2.8 REPL
Kevin,
Will this front-end be able to operate over, say, a forwarded TCP connection over ssh?
Ian.
On Thu, Feb 11, 2010 at 1:30 PM, Kevin Wright <kev.lee.wright@googlemail.com> wrote:
--
Ian Clarke
CEO, SenseArray
Email: ian@sensearray.com
Ph: +1 512 422 3588
Will this front-end be able to operate over, say, a forwarded TCP connection over ssh?
Ian.
On Thu, Feb 11, 2010 at 1:30 PM, Kevin Wright <kev.lee.wright@googlemail.com> wrote:
I'm working on a swing-based front-end to deal with exactly this problem.
But I'm also over committed, so can't promise anything deadline-wise
On 11 February 2010 19:14, Paul Phillips <paulp@improving.org> wrote:
I'd love to have this too, but nobody is likely to write it but me and
I'm hard pressed to call it the highest priority. Find me an employee
who will work for nothing but the joy of acquiring knowledge and maybe
we'll have something by 2.8.
--
Paul Phillips | All men are frauds. The only difference between
Caged Spirit | them is that some admit it. I myself deny it.
Empiricist | -- H. L. Mencken
ha! spill, pupil |----------* http://www.improving.org/paulp/ *----------
--
Kevin Wright
mail/google talk: kev.lee.wright@googlemail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda
--
Ian Clarke
CEO, SenseArray
Email: ian@sensearray.com
Ph: +1 512 422 3588
Thu, 2010-02-11, 20:57
#4
Re: telnet to 2.8 REPL
I'm really working on the GUI part right now, but the forwarding could theoretically be over anything
On 11 February 2010 19:34, Ian Clarke <ian@sensearray.com> wrote:
--
Kevin Wright
mail/google talk: kev.lee.wright@googlemail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda
On 11 February 2010 19:34, Ian Clarke <ian@sensearray.com> wrote:
Kevin,
Will this front-end be able to operate over, say, a forwarded TCP connection over ssh?
Ian.
On Thu, Feb 11, 2010 at 1:30 PM, Kevin Wright <kev.lee.wright@googlemail.com> wrote:
I'm working on a swing-based front-end to deal with exactly this problem.
But I'm also over committed, so can't promise anything deadline-wise
On 11 February 2010 19:14, Paul Phillips <paulp@improving.org> wrote:
I'd love to have this too, but nobody is likely to write it but me and
I'm hard pressed to call it the highest priority. Find me an employee
who will work for nothing but the joy of acquiring knowledge and maybe
we'll have something by 2.8.
--
Paul Phillips | All men are frauds. The only difference between
Caged Spirit | them is that some admit it. I myself deny it.
Empiricist | -- H. L. Mencken
ha! spill, pupil |----------* http://www.improving.org/paulp/ *----------
--
Kevin Wright
mail/google talk: kev.lee.wright@googlemail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda
--
Ian Clarke
CEO, SenseArray
Email: ian@sensearray.com
Ph: +1 512 422 3588
--
Kevin Wright
mail/google talk: kev.lee.wright@googlemail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda
Tue, 2010-02-16, 20:17
#5
Re: telnet to 2.8 REPL
On Thu, Feb 11, 2010 at 8:14 PM, Paul Phillips wrote:
> I'd love to have this too, but nobody is likely to write it but me and
> I'm hard pressed to call it the highest priority. Find me an employee
> who will work for nothing but the joy of acquiring knowledge and maybe
> we'll have something by 2.8.
Sorry, master, I can't offer that, but thanks to Volkshochschule [1],
I'm now able to say hello in one more language.
So, let me introduce myself
> IAC DO NAWS
< IAC WILL NAWS
< IAC SB NAWS 80 27 IAC SE
< IAC DO ECHO
> IAC WILL ECHO
In my euphoria, I went out to tell everyone and teach them the little
vocabulary I acquired. Fortunately, while I strived around in this
mood, I met Mrs. J. Line in persona. She wasn't too reluctant to learn
everything I knew. When she met her good acquaintance, Inta Preta, in
the opera, something beautiful happened...
Tue, 2010-02-16, 22:17
#6
Re: telnet to 2.8 REPL
Just be careful that you don't trust your telnet client too much,some of them are less than honest about what they send
(yes windows, I'm looking at you)
I've got a whole bunch of this stuff I'm doing in scala+netty, though that's probably a library dependency we don't want in core Scala... I've got no problem using it in an add-on though.
Right now, I'm working on a very rich mud client. It's a commercial deal, but it's also mine, so I have no qualms in licensing it to myself :P
One day I'll break out the bits that are relevant for this mark em open source and turn it into a full on wizz-bangy remote REPL. You'll appreciate that I can't release all the source, but significant chunks of it I planned to set free all along - such as scala wrappers for swing.text and the telnet protocol bits.
On 16 February 2010 19:07, Johannes Rudolph <johannes.rudolph@googlemail.com> wrote:
--
Kevin Wright
mail/google talk: kev.lee.wright@googlemail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda
(yes windows, I'm looking at you)
I've got a whole bunch of this stuff I'm doing in scala+netty, though that's probably a library dependency we don't want in core Scala... I've got no problem using it in an add-on though.
Right now, I'm working on a very rich mud client. It's a commercial deal, but it's also mine, so I have no qualms in licensing it to myself :P
One day I'll break out the bits that are relevant for this mark em open source and turn it into a full on wizz-bangy remote REPL. You'll appreciate that I can't release all the source, but significant chunks of it I planned to set free all along - such as scala wrappers for swing.text and the telnet protocol bits.
On 16 February 2010 19:07, Johannes Rudolph <johannes.rudolph@googlemail.com> wrote:
On Thu, Feb 11, 2010 at 8:14 PM, Paul Phillips <paulp@improving.org> wrote:
> I'd love to have this too, but nobody is likely to write it but me and
> I'm hard pressed to call it the highest priority. Find me an employee
> who will work for nothing but the joy of acquiring knowledge and maybe
> we'll have something by 2.8.
Sorry, master, I can't offer that, but thanks to Volkshochschule [1],
I'm now able to say hello in one more language.
So, let me introduce myself
> IAC DO NAWS
< IAC WILL NAWS
< IAC SB NAWS 80 27 IAC SE
< IAC DO ECHO
> IAC WILL ECHO
In my euphoria, I went out to tell everyone and teach them the little
vocabulary I acquired. Fortunately, while I strived around in this
mood, I met Mrs. J. Line in persona. She wasn't too reluctant to learn
everything I knew. When she met her good acquaintance, Inta Preta, in
the opera, something beautiful happened...
https://gist.github.com/a9cb5120b79898368fd5
--
Johannes
PS: Beware, this is Beta1 land. New Classpath things will break it.
[1] http://en.wikipedia.org/wiki/Telnet
-----------------------------------------------
Johannes Rudolph
http://virtual-void.net
--
Kevin Wright
mail/google talk: kev.lee.wright@googlemail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda
Wed, 2010-02-17, 10:27
#7
Re: telnet to 2.8 REPL
The code now lives in http://github.com/jrudolph/scala-stuff/tree/master/telnet/
I've updated the options which are sent, and now Ubuntu telnet and
putty on Windows work out of the box with default settings and with
the non-default port number. The Ubuntu telnet (netkit 0.17 from
1999?) does different things if you connect to port 23 vs another
port, but with the options negotiated it works now as expected.
On Tue, Feb 16, 2010 at 10:07 PM, Kevin Wright
wrote:
> Just be careful that you don't trust your telnet client too much,some of
> them are less than honest about what they send
> (yes windows, I'm looking at you)
>
> I've got a whole bunch of this stuff I'm doing in scala+netty, though that's
> probably a library dependency we don't want in core Scala... I've got no
> problem using it in an add-on though.
>
> Right now, I'm working on a very rich mud client. It's a commercial deal,
> but it's also mine, so I have no qualms in licensing it to myself :P
> One day I'll break out the bits that are relevant for this mark em open
> source and turn it into a full on wizz-bangy remote REPL. You'll appreciate
> that I can't release all the source, but significant chunks of it I planned
> to set free all along - such as scala wrappers for swing.text and the telnet
> protocol bits.
>
>
>
> On 16 February 2010 19:07, Johannes Rudolph
> wrote:
>>
>> On Thu, Feb 11, 2010 at 8:14 PM, Paul Phillips
>> wrote:
>> > I'd love to have this too, but nobody is likely to write it but me and
>> > I'm hard pressed to call it the highest priority. Find me an employee
>> > who will work for nothing but the joy of acquiring knowledge and maybe
>> > we'll have something by 2.8.
>>
>> Sorry, master, I can't offer that, but thanks to Volkshochschule [1],
>> I'm now able to say hello in one more language.
>>
>> So, let me introduce myself
>>
>> > IAC DO NAWS
>> < IAC WILL NAWS
>> < IAC SB NAWS 80 27 IAC SE
>>
>> < IAC DO ECHO
>> > IAC WILL ECHO
>>
>> In my euphoria, I went out to tell everyone and teach them the little
>> vocabulary I acquired. Fortunately, while I strived around in this
>> mood, I met Mrs. J. Line in persona. She wasn't too reluctant to learn
>> everything I knew. When she met her good acquaintance, Inta Preta, in
>> the opera, something beautiful happened...
>>
>> https://gist.github.com/a9cb5120b79898368fd5
>>
>> --
>> Johannes
>>
>> PS: Beware, this is Beta1 land. New Classpath things will break it.
>>
>> [1] http://en.wikipedia.org/wiki/Telnet
>>
>> -----------------------------------------------
>> Johannes Rudolph
>> http://virtual-void.net
>
>
>
> --
> Kevin Wright
>
> mail/google talk: kev.lee.wright@googlemail.com
> wave: kev.lee.wright@googlewave.com
> skype: kev.lee.wright
> twitter: @thecoda
>
>
Tue, 2010-02-23, 19:07
#8
Re: telnet to 2.8 REPL
Sounds very interesting...and inline with what i think no app should be
without (http://blog.homecloud.ca/2009/10/modern-applications.html)
If I got this right, we need to setup a (maybe secure) telnet sort of a rear
door to the interpreter, which would be available to any running scala app
and it will have access to and interact with the app's objects? With
niceties like tab completion etc...
It obviously needs to be a separate class/thing, which users may
instantiate/initialize in their main() or somewhere, just like the example,
with... yeah a port number and security info (key repo whatnot).
From here to supporting a simple web thing, with intelli-sense (content
assist) it's not a big step...cool! I'm in...
I don't mind thus switching to the dark side for a while...so, keeping in
mind that I am a fraud - at least in the sense that I haven't worked on
scala itself before - what shall I start with, master? What hooks are there?
Paul Phillips-3 wrote:
>
> I'd love to have this too, but nobody is likely to write it but me and
> I'm hard pressed to call it the highest priority. Find me an employee
> who will work for nothing but the joy of acquiring knowledge and maybe
> we'll have something by 2.8.
>
Tue, 2010-03-02, 03:47
#9
Re: telnet to 2.8 REPL
I created a prototype:
http://old.nabble.com/Scripster---interactive-scala-REPL-using-telnet,-h...
The telnet will do tab completion when I figure out how to get the options
from the parser :)
Ian Clarke-3 wrote:
>
> I found this blog post explaining how to set up the REPL so that you can
> telnet to it:
>
> http://gracelessfailures.com/2009/11/24/remote-in-process-repl.html
>
> The post (from Nov '09) laments the lack of things like tab completion.
>
> A few questions:
>
> Will this work with the 2.8 REPL?
>
> Will it support the 2.8 tab completion functionality?
>
> I think a lot of people are hungry for a remote JVM debugging tool that
> you
> can telnet into, and get things like tab completion. I use BeanShell at
> the
> moment, but I have to wrap my telnet session using "rlwrap" to get
> readline
> support, and there is nothing fancy like tab completion.
>
> Ian.
>
I'd love to have this too, but nobody is likely to write it but me and
I'm hard pressed to call it the highest priority. Find me an employee
who will work for nothing but the joy of acquiring knowledge and maybe
we'll have something by 2.8.