Re: Is anything easier to do in java than in lisp?

RobertMaas_at_YahooGroups.Com
Date: 05/14/04

  • Next message: Gordon Beaton: "Re: applet 'hangs' while reading from stream"
    Date: Thu, 13 May 2004 22:43:56 -0800
    
    

    > From: Kenny Tilton <ktilton@nyc.rr.com>
    > The OP
    (that's me)
    > was wondering if anything was /actually/ easier in Java. That is
    > cruel since Java is such a simple, powerless language, but c.l.l. is
    > a hotbed of savagery and demonic ritual torture.

    What, are you calling me cruel??

    Anyway, so-far only three ideas have turned up:
    - GUIs, which however are useless to me here on VT100 dialup into Unix shell.
    - Applets, ditto, can't run applets in lynx.
    - Network connections (sockets, TCP/IP, HTTP, cookies, etc.), aha some
    application area where I might be able to write a program that I never
    got around to doing in LISP because it would have required too much
    effort.

    Regarding the two directions of writing expressions that involve a
    daisy chain (pipeline) of function/program calls, one way illustrated
    by Unix pipeline notation or successive SETQs in interactive LISP
    session, and the other illustrated by nested functional notation:
    These may be compared to the two ways of solving a path-finding
    problem, either starting from the starting pointing and hill-climbing
    toward the goal, or backtracking from the goal trying to find the
    starting point.

    > "I live on what is left over after taxes are taken from the money I
    > earn."

    I need to live, on what? Expendable income.
    live = use(expInc);
    Error, expInc unbound variable.

    But where does expendable income come from? Gross income minus taxes.
    live = use(deducttaxes(grossIncome));
    Error, grossIncome unbound variable.

    But where does gross income come from? Earnings.
    live = use(deducttaxes(wages(labor)))
    Error, labor unbound variable.

    How much did I work? 10 hours.
    live = use(deducttaxes(wages(10)))
    Horay, I can live 5 hours on that amount of income, oops!!

    > Of course Hemingway would say, "Kenny earned money. They took out
    > taxes. He lived on the rest. In the rain."

    Kenny worked.
    shell% kennyLabor
    10 hours

    Due to his work, Kenny earned money.
    shell% kennyLabor | wageCalc
    $150

    They took out taxes.
    shell% kennyLabor | wageCalc | taxDeduct
    $47

    He lived on the rest.
    shell% kennyLabor | wageCalc | taxDeduct | liveInSFBayArea
    5 hours

    In the rain.
    shell% kennyLabor | wageCalc | taxDeduct | liveInSFBayArea > /dev/null

    P.S. IMO keyword arguments, as in CL, are a much better way to do
    function/method overloading than having fixed combinations of argument
    types as in java, both because you get 2**n possible combinations with
    only n keywords whereas in java if you wanted all 2**n combos you'd
    need to explicitly declare all 2**n different methods, and because it
    doesn't matter if two or more different arguments are of the same time
    you can *still* have one or the other in CL whereas in java it's
    impossible to do that because there'd be ambiguity in the overloading
    due to two forms having exactly the same number and types of arguments.


  • Next message: Gordon Beaton: "Re: applet 'hangs' while reading from stream"

    Relevant Pages

    • Re: Is anything easier to do in java than in lisp?
      ... > cruel since Java is such a simple, powerless language, but c.l.l. ... which however are useless to me here on VT100 dialup into Unix shell. ... But where does expendable income come from? ... shell% kennyLabor | wageCalc ...
      (comp.lang.lisp)
    • Re: Java/LE Tuning Advice sought
      ... I'm afraid that the reports that you are seeing are from the parent shell and not the java process, ... your shell script is maybe using "iconv" pipes to convert output from java/jboss from ascii to ebcdic. ... You might be able to use _CEE_RUNOPTS settings to tell LE to write its "MSGFILE" somewhere else. ...
      (bit.listserv.ibm-main)
    • More SMP/E Enhancements for Java installs
      ... IBM is apparently planning further enhancements in their support for Java ... components and JAR and shell scripts as a utility. ... a logon shell - all for RECEIVE command and certain GIMxxx service routines. ... site's /etc/profile will no longer influence how SMP/E APPLY or RESTORE ...
      (bit.listserv.ibm-main)
    • New distribution of BSF4Rexx (2006-02-03)
      ... The documentation derived from the Java sourcecode constituting BSF4Rexx can be found here: ... If you are deploying Rexx scripts via Java, this version is definitely a *must*! ... Ad 'swt': it is an alternative GUI-Java class library which replaces awt/swing altogether. ... shell =.bsf~new ...
      (comp.lang.rexx)