Re: [9fans] silliness in flight: build a desktop calculator withsrv and rio - Plan9

This is a discussion on Re: [9fans] silliness in flight: build a desktop calculator withsrv and rio - Plan9 ; what about : % dc /srv/desk 2 graphical calculators for Plan 9. http://plan9.aichi-u.ac.jp/netlib/demos/suzuki/s41.html -- Federico G. Benavento...

+ Reply to Thread
Results 1 to 19 of 19

Thread: Re: [9fans] silliness in flight: build a desktop calculator withsrv and rio

  1. Re: [9fans] silliness in flight: build a desktop calculator withsrv and rio

    what about:
    % dc <[0=1] | echo 0 > /srv/desk

    2 graphical calculators for Plan 9.
    http://plan9.aichi-u.ac.jp/netlib/demos/suzuki/s41.html

    --
    Federico G. Benavento


  2. Re: [9fans] silliness in flight: build a desktop calculatorwith srv and rio

    On Mar 31, 2008, at 6:43 PM, Federico G. Benavento wrote:

    > what about:
    > % dc <[0=1] | echo 0 > /srv/desk
    >

    Does that even do anything? You can't pipe to echo, can you?



  3. Re: [9fans] silliness in flight: build a desktop calculator withsrv and rio

    > Does that even do anything?

    try to figure it out. you may be enlightened.

    if you fail, follow this link: http://9fans.net/archive/2002/05/18


  4. Re: [9fans] silliness in flight: build a desktop calculator withsrv and rio

    On Mon, Mar 31, 2008 at 3:43 PM, Federico G. Benavento
    wrote:
    > what about:
    > % dc <[0=1] | echo 0 > /srv/desk
    >


    well I knew somebody would tell me how to do this. Damn. Nice.

    ron


  5. Re: [9fans] silliness in flight: build a desktop calculator withsrv and rio

    On Mon, Mar 31, 2008 at 3:43 PM, Federico G. Benavento
    wrote:

    > 2 graphical calculators for Plan 9.
    > http://plan9.aichi-u.ac.jp/netlib/demos/suzuki/s41.html


    neat. But I like the perversity of using a window manager as my
    control process.

    For example, for a memory value, I can create a new window with the contents
    being memory. And so on.

    ron


  6. Re: [9fans] silliness in flight: build a desktop calculator withsrv and rio

    On Mon, Mar 31, 2008 at 3:51 PM, Pietro Gagliardi wrote:
    > On Mar 31, 2008, at 6:43 PM, Federico G. Benavento wrote:
    >
    > > what about:
    > > % dc <[0=1] | echo 0 > /srv/desk
    > >

    > Does that even do anything? You can't pipe to echo, can you?
    >
    >



    try it first then send email. Try, try, try.

    The system is there. hack it.

    ron


  7. Re: [9fans] silliness in flight: build a desktop calculator with

    > http://plan9.aichi-u.ac.jp/netlib/demos/suzuki/s41.html

    hmmm, this was a educational task for Mr. Suzuki at that time...

    Antway, I've not known this page is linked to other Univ's page.
    It is a work of Osaka prefecture University, and it belongs to her,
    I suppose.

    Of course, you can use or improve it by your own risk. However,
    if anyone wants to link such a property, I suppose, s/he should contact
    with the original author...

    Kenji



  8. Re: [9fans] silliness in flight: build a desktop calculator with

    btw another nice thing about having a desk calculator with the fd
    hanging out in /srv/desk: I can have any process (awk pipeline) feed
    commands into /srv/desk and have it pop up in my desk calculator.
    Don't know why I didn't do this before. Also, it would be easy to drop
    three dc processes at the end of /srv/desk, and have displays in my
    calculator running always in dec, hex, octal -- handy for me!

    I've not really used /srv as much as I could have.

    ron


  9. Re: [9fans] silliness in flight: build a desktop calculator with

    On Tue, Apr 1, 2008 at 8:11 AM, ron minnich wrote:
    > btw another nice thing about having a desk calculator with the fd
    > hanging out in /srv/desk: I can have any process (awk pipeline) feed
    > commands into /srv/desk and have it pop up in my desk calculator.
    > Don't know why I didn't do this before. Also, it would be easy to drop
    > three dc processes at the end of /srv/desk, and have displays in my
    > calculator running always in dec, hex, octal -- handy for me!
    >
    > I've not really used /srv as much as I could have.
    >


    Wouldn't plumbing be better for this sort of thing?

    -eric


  10. Re: [9fans] silliness in flight: build a desktop calculator with

    On Tue, Apr 1, 2008 at 6:29 AM, Eric Van Hensbergen wrote:
    >
    > Wouldn't plumbing be better for this sort of thing?
    >


    yeah, good idea, you could prepend calculations with a string. But
    more important is that your calculator needs to have a channel that is
    global and available to all, which is not a common attribute of
    graphical desktop calculators ... once that is there, plumbing can use
    it.

    ron


  11. Re: [9fans] silliness in flight: build a desktop calculator with

    >> http://plan9.aichi-u.ac.jp/netlib/demos/suzuki/s41.html
    >
    > hmmm, this was a educational task for Mr. Suzuki at that time...


    is there an updated version of calc2? it uses an old control(2) library.

    about /srv/desk (minnicalc? ☺), it's funky -- good kind. it tried the
    the n! example in dc. it seems that a script to rio -i could figure
    out the geometry, create the windows for the buttons (windows -r ...)
    etc. but.c should probably take an argument to force a static label; it
    doesn't re-read text on redraw.



  12. Re: [9fans] silliness in flight: build a desktop calculator with

    hola,

    > Of course, you can use or improve it by your own risk. However,
    > if anyone wants to link such a property, I suppose, s/he should contact
    > with the original author...


    what would happen if everytime you wanted to give a link to something public
    you had to contact the original author? would that make the flow of information
    and knowledge harder, wouldn't it? did google contact the original author too?
    anyways, my intention was not to be disrespectful or anything, but
    being helpful.

    --
    Federico G. Benavento


  13. Re: [9fans] silliness in flight: build a desktop calculator with

    who cares?


  14. Re: [9fans] silliness in flight: build a desktop calculator with

    >>> http://plan9.aichi-u.ac.jp/netlib/demos/suzuki/s41.html
    >>
    >> hmmm, this was a educational task for Mr. Suzuki at that time...

    >
    > is there an updated version of calc2? it uses an old control(2) library.


    In short, no.

    I'm not so happy to develope it on the same line...

    Kenji --deficient memory now and power, sad...



  15. Re: [9fans] silliness in flight: build a desktop calculator with

    >> Of course, you can use or improve it by your own risk. However,
    >> if anyone wants to link such a property, I suppose, s/he should contact
    >> with the original author...

    >
    > what would happen if everytime you wanted to give a link to something public
    > you had to contact the original author?


    When I was a graduate student, my teacher taught me "Science is a private work,
    and if you want to learn something from someone, you should first contact her/him
    direct. This is very important, and you should remember this all the time" (not the
    original words, but this way). I agree with him, and am keeping his words.

    > would that make the flow of information
    > and knowledge harder, wouldn't it? did google contact the original author too?
    > anyways, my intention was not to be disrespectful or anything, but
    > being helpful.


    I don't know what google is doing, however, I suppose they must have
    some criteria on what they are doing. Furthermore, I think they are on a business
    world, where there is a solid way to solve problems if any.

    To contact someone in person is not so hard now, just write email, very easy. ☺
    If he had done this way, there may have been no problem...

    Above said, yes, I think I can understand what you are saying.
    This is a very difficult problem now. However, I believe the way what human thinks
    right will not change so easy in a long time.

    Kenji



  16. Re: [9fans] silliness in flight: build a desktop calculator with

    > When I was a graduate student, my teacher taught me "Science is a private work,
    > and if you want to learn something from someone, you should first contact her/him
    > direct. This is very important, and you should remember this all the time" (not the
    > original words, but this way). I agree with him, and am keeping his words.

    strange, i haven't talked to einstein, nor
    Well, clearly the personal discussion of an issue, brings the fastest
    and biggest gain of wisdom. Optimally for every one related. But we
    often have a big difference of wisdom so that one will rather hold
    lectures or write books about it to impart more knowledge to a brouder
    public.
    I didn't contact newton to get some basic understanding of my environment.
    I don't mind it not being possible either.
    emailing is easy, and that's why i'm consuming your time, too.
    but otherwise i don't see the point in this advice of your teacer's.
    Ther is no magic bullet email. And furthermore, there is no problem,
    like you call it.


  17. Re: [9fans] silliness in flight: build a desktop calculator with

    hola,

    > Above said, yes, I think I can understand what you are saying.
    > This is a very difficult problem now. However, I believe the way what human thinks
    > right will not change so easy in a long time.
    >


    there is no problem actually, just a different hierarchy of values caused
    by the difference in our cultures. this won't happen again.
    next time I have some information that could be useful to someone, I'll
    check my priorities and decide the right course of action.

    thanks

    --
    Federico G. Benavento

    moving to the country gonna eat a lot of peaches...


  18. Re: [9fans] silliness in flight: build a desktop calculator withsrv and rio

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Ok, so this is really neat. How do I do it in inferno? What's the
    equivalent of /srv?

    Paul

    On 31-Mar-08, at 4:02 PM, ron minnich wrote:

    > On Mon, Mar 31, 2008 at 3:43 PM, Federico G. Benavento
    > wrote:
    >> what about:
    >> % dc <[0=1] | echo 0 > /srv/desk
    >>

    >
    > well I knew somebody would tell me how to do this. Damn. Nice.
    >
    > ron
    >


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.5 (Darwin)

    iD8DBQFH9m3+pJeHo/Fbu1wRAgAiAJ0Xw7Fy2oPUxcMWqunYcwSTCA/16wCgsq3O
    2xqyuBuxSZZWT2qkD+GPX2M=
    =+M18
    -----END PGP SIGNATURE-----


  19. Re: [9fans] silliness in flight: build a desktop calculator withsrv and rio

    > > > % dc <[0=1] | echo 0 > /srv/desk

    > Ok, so this is really neat. How do I do it in inferno? What's the
    > equivalent of /srv?


    Inferno has srv(3) which is the file2chan registry. The closest I can
    get to the above, without writing a new limbo command, is

    % load file2chan
    % calc >[0=1] | {file2chan /chan/desk {rblock; putrdata &} {fetchwdata
    > /fd/0} } &


    % stream -b 1 /chan/desk

    % echo 1+1 > /chan/desk

    It doesn't really work as the plan9 one liner because file2chan is
    binding a new instance of '#s' each time, so the /chan/desk file isn't
    visible from other namespaces. If it used an existing instance it
    would be. Also, putrdata might do multiple reads to satisfy the single
    read from /chan/desk, which is why I'm using stream -b1 to read. So,
    not a success, unless anyone can point out a way I missed.

    Caerwyn


+ Reply to Thread