Search the web
Sign In
New User? Sign Up
concatenative · Discuss the concatenative variety of computer languages: Joy, Forth, Postscript
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 4039 - 4068 of 4124   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
4039
... I can read this okay up until the phrase "obviously not in the source code." Then I get completely lost. I'm going to reduce the argument to a logical form...
William Tanksley, Jr
wtanksle
Offline Send Email
May 1, 2008
3:30 pm
4040
... That is what I mean. Say you give a macro a quotation. That quotation type checks. Now say the macro tears the quotation apart, and one of the individual...
John Nowak
john@...
Send Email
May 2, 2008
1:36 am
4041
Before I start: http://citeseer.ist.psu.edu/dornan98typesecure.html seems to possibly have something to do with this (maybe?). It's about using dynamic types...
William Tanksley, Jr
wtanksle
Offline Send Email
May 4, 2008
3:48 pm
4042
Still on the topic of quote and eval, it occurred to me that the Unix command languages (sh, csh, ksh, bash,..) have their own eval operator. It is the ...
Manfred Von Thun
maggethun
Offline Send Email
May 13, 2008
5:50 am
4043
... You may find this interesting http://rosettacode.org/wiki/Category:UnixPipes (Using unix pipes and files rather than the shell language). ... Rahul...
rahul
rahul_inblue
Offline Send Email
May 13, 2008
5:52 pm
4044
... I don't know what the lesson would be. Backquotes escape from a string context to an executation/evaluation context. I suppose one could do that in a...
William Tanksley, Jr
wtanksle
Offline Send Email
May 13, 2008
8:19 pm
4045
... Backquotes -- as is clearly shown by the alternative syntax $(...) -- essentially belong to the lexical level of the shell, just like $name substitution....
John Cowan
johnwcowan
Online Now Send Email
May 13, 2008
8:35 pm
4046
So IIUC applying the idea to a concatenative language like Cat: [is_weekend ["happy'] ["sad"] if] ` apply Will generate different code depending on the day of...
Christopher Diggins
cdiggins.geo
Offline Send Email
May 13, 2008
8:43 pm
4047
... Maybe I should not have chosen those examples with the chatty strings inside which the backquote occurred. Here is an example that illustrates the Eval = ...
Manfred Von Thun
maggethun
Offline Send Email
May 14, 2008
5:55 am
4048
... Thank you, I did not know about the alternative syntax. My relevant manual (in this case Bournešs ..The Unix Programming Environment.. 1982 (?) does not...
Manfred Von Thun
maggethun
Offline Send Email
May 14, 2008
6:30 am
4049
... It didn't exist that long ago, but it is in Posix, and therefore in the ash/dash, ksh, and bash shells at least. ... "Lisp programmers don't write in Lisp:...
John Cowan
johnwcowan
Online Now Send Email
May 14, 2008
2:15 pm
4050
Hi, Manfred, This discussion triggered a memory which caused me to consult a REXX manual. In REXX ordinary strings enclosed in matching single or double...
Raymundo Quirino Baqu...
raybaquirin
Offline Send Email
May 16, 2008
8:40 pm
4051
I took the 's' and 'k' combinators from here: http://tunes.org/~iepos/joy.html Yes, the definition for 's' could be much better, but I don't know really know...
John Nowak
john@...
Send Email
May 18, 2008
1:39 am
4052
In some languages, such as Haskell, all functions consume a fixed number of arguments and produce a fixed number of arguments.* For example, the 'foldr'...
John Nowak
john@...
Send Email
May 20, 2008
6:15 am
4053
This is a reasonable idea for some cases, but there's some generality ... swapd each ; When each runs, it has the stack underneath as an implicit accumulator....
Daniel Ehrenberg
littledanehren
Offline Send Email
May 20, 2008
6:39 am
4054
... Certainly. ... Aye. It makes sense as 'each' is a generalized version of 'fold' that allows you to access the stack and not just deal with two values. It's...
John Nowak
john@...
Send Email
May 20, 2008
7:21 am
4055
Here is a visualization of the function 'swap dup dip swap' where we want the quotation supplied to 'dip' to consume two arguments and produce one (as '+' or...
John Nowak
john@...
Send Email
May 20, 2008
9:48 am
4056
... Based on the things I've written in Factor a 'fixed arity' restriction would have little to no effect on what I've written. It did in the past when 'curry'...
Chris Double
doublecnz
Offline Send Email
May 20, 2008
11:53 am
4057
... "Impossible" is an overly strong word (especially in conjunction with a shades-of-grey word like "efficiently"). It's quite possible to use the stack in...
William Tanksley, Jr
wtanksle
Offline Send Email
May 20, 2008
1:42 pm
4058
... Very good to hear! I was half-expecting it to be shot down for being overly restrictive. ... The version using map-with is certainly clearer. Perhaps there...
John Nowak
john@...
Send Email
May 20, 2008
10:13 pm
4059
... That makes sense. Agreed. ... That's certainly possible. I already have that syntax for special forms anyway. It might be nice to not require the numbers...
John Nowak
john@...
Send Email
May 20, 2008
10:37 pm
4060
... Agreed; this should tie in with type inference and annotation. This stack effect notation is really an abbreviated form of type notation and static...
William Tanksley, Jr
wtanksle
Offline Send Email
May 20, 2008
11:18 pm
4061
... The Forth community's experience strongly suggests that there is. Words with externally visible variable stack effects are frowned upon. ... -Wm...
William Tanksley, Jr
wtanksle
Offline Send Email
May 20, 2008
11:20 pm
4062
... It seems to me that the way to handle this is to simply require a normal type annotation that provides enough information to figure these things out. There...
John Nowak
john@...
Send Email
May 21, 2008
2:00 am
4063
... After a brief review, this is clearly bogus. For example, we might have a 'loop' combinator that simply executes a procedure repeatedly: loop :: A (A -> A)...
John Nowak
john@...
Send Email
May 21, 2008
7:02 am
4064
After doing some thinking, I've come up with an example of where an n- ary 'dip' combinator makes a complete mess of things. The example is Factor's 'bi@'...
John Nowak
john@...
Send Email
May 21, 2008
8:08 am
4065
... Minor correction: The type is 'A b b (A b -> A) -> A'. Too much curry. - John...
John Nowak
john@...
Send Email
May 21, 2008
8:15 am
4066
... On the other hand this looks like a turing-complete programming language at the type level. Perhaps if you go that route, and not worry about decidability,...
Christopher Diggins
cdiggins.geo
Offline Send Email
May 21, 2008
3:19 pm
4067
... I agree; for a language with static typechecking, this makes complete sense. If you don't have static typechecking but you want to do static stack depths,...
William Tanksley, Jr
wtanksle
Offline Send Email
May 21, 2008
4:15 pm
4068
... Great point. Here we seem to actually *need* type annotations on the function types... I wonder whether it might be a fundamental property and not just an...
William Tanksley, Jr
wtanksle
Offline Send Email
May 21, 2008
5:39 pm
Messages 4039 - 4068 of 4124   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright Š 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help