hpy_azizy | 7 Jan 2003 11:30
Picon
Favicon

[stack] program does not working in C

#include <stdio.h>
I wrote as it is but No use . Any suggestions 
main () 
{
int c,i,nwhite,nother;
int ndigit[10];
nwhite = nother = 0;
for (i = 0 ; i < 10 ; ++i)
ndigit[i] = 0;
while ((c=getchar()) != EOF )
if (c >= '0' && c <= '9')
++ndigit[c-'0'];
else if (c == ' ' || c == '\n' || c == '\t')
++nwhite;
else
++nother;
printf("digits=");
printf("%d",ndigit[i]);
printf(",white space = %d. other = %d\n",nwhite,nother);
}

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Flexible Keyboard is the ideal accessory for PDA users that are on the move.
http://us.click.yahoo.com/dCBVZC/WnCFAA/xGHJAA/saFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
concatenative-unsubscribe <at> egroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
(Continue reading)

hpy_azizy | 7 Jan 2003 23:08
Picon
Favicon

[stack] program does not working in C

#include <stdio.h>
float convert(float celn);
main () 
{
float fhr,cel,lowr_cel,uper_cel,step_cel=0;
uper_cel=148.9;
printf ("Fahrenheit\tCelsium\n");
for (lowr_cel=-17.8;cel <= uper_cel;cel=cel+11.1)
printf ("  %3.0f\t\t%6.1f\n",fhr,convert(cel));
return 0;
}
float convert(float celn);
{
float fhr,cel,lowr_cel,uper_cel,step_cel=0,cel;
for (lowr_cel=-17.8;cel <= uper_cel;cel=cel+11.1)
fhr=32+(cel/(5.0/9.0));
return fhr;
}

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Turn flat surfaces into speakers with the Soundbug.
http://us.click.yahoo.com/QWAVSC/onCFAA/xGHJAA/saFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
concatenative-unsubscribe <at> egroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

(Continue reading)

Manfred von Thun | 17 Jan 2003 04:46
Picon
Picon

[stack] Whither Joy? Documentation


I have no teaching duties for the first half of the year, so I'll
have some time to spend on possibly several Joy projects. One of
these will be updating documentation. John Cowan's extensions
are only visible from the inbuilt online manual, and some of Nick
Forde's extensions do not fit into the online manual. The most
urgent need seems to be for these papers/docs:

   1. The "Tutorial"
   2. The "Manual"
   3. The "Further Frequently Asked Questions"

If you know any details that need changing or should be added,
please let me know - this does not need to be restricted to the
three items above.

Also, Billy: As far as I can tell the term "concatenative notation"
or "concatenative language" first occurred in the name of this
mailing group. So am I right in believing that I should attribute
it to you ?

Best of 2003 to all.

  - Manfred

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Flexible Keyboard is the ideal accessory for PDA users that are on the move.
http://us.click.yahoo.com/dCBVZC/WnCFAA/xGHJAA/saFolB/TM
---------------------------------------------------------------------~->

(Continue reading)

Manfred von Thun | 17 Jan 2003 06:40
Picon
Picon

[stack] Whither Joy? Modules


Another of my projects for this first half year will be to give
some thought to a module system for Joy. Currently Joy has next
to nothing for structuring larger programs, with the HIDE facility
being a very weak exception. There is really only one large name
space, so everything (every function) is global. With all libraries
loaded the danger of name conflict is getting closer. For the time
being I am not thinking of anything sophisticated, nothing like
the various object systems in the more developed languages. But
a good starting point would be a module system which allows defi-
nitions of modules in addition to the definition of functions.
Inside a module would be definitions of functions (and possibly
further modules). An example might look like this:

DEFINE

  foo  ==  ... ;                      # ordinary function defined

  MODULE  m  IS                       # module m defined
    a  ==  ... ;                      # function a inside m defined
    b  ==  ...                        # function b inside m defined
    END;

  bar  ==  .. m.a .. m.b ..           # using a and b from m

  baz  ==  .. a .. b ..               # when  baz is called,
                                      # run time error for a and b,
                                      # unless they are defined
                                      # in the enclosing name space
  .                                   # END of these definitions
(Continue reading)

ehz4 | 17 Jan 2003 16:05
Picon
Favicon

[stack] Joy Primitives

I was wondering if there is a list of Joy primitives somewhere.  Preferably as part of a language description
similar to Schemes' R5.

Thanks,
Edwin Zacharias

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Flexible Keyboard is the ideal accessory for PDA users that are on the move.
http://us.click.yahoo.com/dCBVZC/WnCFAA/xGHJAA/saFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
concatenative-unsubscribe <at> egroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

wtanksleyjr | 17 Jan 2003 17:06
Picon

Re: [stack] Whither Joy? Documentation

From: Manfred von Thun <phimvt <at> lurac.latrobe.edu.au>

>I have no teaching duties for the first half of the 
>year, so I'll have some time to spend on possibly 
>several Joy projects.

Excellent!

>Also, Billy: As far as I can tell the term 
>"concatenative notation" or "concatenative language" 
>first occurred in the name of this mailing group. 
>So am I right in believing that I should attribute
>it to you ?

You know, I thought you had used it first. But looking
over your pages, I don't see that -- all I see is you
mentioning concatenation as primary syntax. I definitely
took all inspiration for the title from your descriptions.

So, as far as I know, I guess I *was* the first to use it
that way. Unless someone else remembers telling me...

>Best of 2003 to all.

Thank you -- and to you too.

>   - Manfred

-Billy

(Continue reading)

wtanksleyjr | 17 Jan 2003 17:32
Picon

Re: [stack] Whither Joy? Modules

From: Manfred von Thun <phimvt <at> lurac.latrobe.edu.au>

>   1. Explicitly list or annotate the funtions 
>that are exported (made available outside the 
>module). Any functions that are not so listed or 
>annotated are hidden by default.

This is my preference. I would also recommend borrowing
from Oberon for these purposes, since it's a solid, small
language with lots of experience going into its design.

Thus, for a module "Math", the statement

IMPORT Math;

will allow Math to be used as a module; a statement like

IMPORT Math.PI;

will import just the public constant PI (which can be used
without a Math qualifier). Public symbols are identified
by an asterisk following their definition, as in

MODULE Math
 CONST
   PI* := 355.0/113.0;
END Math.

This is syntactic, but it seems appropriate because the
action of accessing modules is itself syntactic.
(Continue reading)

John Cowan | 17 Jan 2003 18:06

Re: [stack] Whither Joy? Modules

wtanksleyjr <at> cox.net scripsit:

> No, I think that's a great one. I'm sure : would be another
> contender...

Colon has the advantage that it can be readily doubled in order to access
a private name in a foreign module, as in Common Lisp.

--

-- 
Said Agatha Christie / To E. Philips Oppenheim  John Cowan
"Who is this Hemingway? / Who is this Proust?   jcowan <at> reutershealth.com
Who is this Vladimir / Whatchamacallum,         http://www.reutershealth.com
This neopostrealist / Rabble?" she groused.     http://www.ccil.org/cowan
        --author unknown to me; any suggestions?

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Flexible Keyboard is the ideal accessory for PDA users that are on the move.
http://us.click.yahoo.com/dCBVZC/WnCFAA/xGHJAA/saFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
concatenative-unsubscribe <at> egroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

Nick Forde | 17 Jan 2003 18:13
Picon

[stack] Joy Primitives

"ehz4 <ehz4 <at> yahoo.com>" <ehz4 <at> yahoo.com> writes:
 > I was wondering if there is a list of Joy primitives somewhere.
 > Preferably as part of a language description similar to Schemes'
 > R5.

As far as I'm aware there isn't yet a comprehensive language reference
available, however you can find a list of most Joy primitives at:

http://groups.yahoo.com/group/concatenative/files/rabbit/joy-funs-doc.html

This excellent reference document was generated by Heiko Kuhrt using
his Rabbit xhtml library written in Joy.

Regards,

Nick.

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Flexible Keyboard is the ideal accessory for PDA users that are on the move.
http://us.click.yahoo.com/dCBVZC/WnCFAA/xGHJAA/saFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
concatenative-unsubscribe <at> egroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

Shae Matijs Erisson | 17 Jan 2003 18:27

[stack] emacs mode?

Has anyone written an emacs mode for Joy?
I'd love to see something like the Python or Haskell modes.

thanks,
--

-- 
Shae Matijs Erisson - 2 days older than RFC0226
#haskell on irc.freenode.net - We Put the Funk in Funktion

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Turn flat surfaces into speakers with the Soundbug.
http://us.click.yahoo.com/QWAVSC/onCFAA/xGHJAA/saFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
concatenative-unsubscribe <at> egroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


Gmane