The Artima Developer Community
Sponsored Link

Weblogs Forum
On Naming an Operation for Cat

18 replies on 2 pages. Most recent reply: Sep 12, 2006 11:25 PM by Phillip Wright

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 18 replies on 2 pages [ 1 2 | » ]
Christopher Diggins

Posts: 1215
Nickname: cdiggins
Registered: Feb, 2004

On Naming an Operation for Cat (View in Weblogs)
Posted: Sep 2, 2006 12:40 PM
Reply to this message Reply
Summary
I am looking to name a new operation in the Cat programming language.
Advertisement
I am looking to name an operation which takes a function/program and returns a list of operations representing its constituent operations. For example using the name "sunder" it would be as follows:
>>> define f { 1 2 + }
>>> @f sunder writeln 
( _1 , _2 , + ) 
The "@" operation pushes the function onto the stack without executing it.

Below is a list of current contenders. Any votes or suggestions would be much appreciated:

decompile
decompose
split
sunder
uncouple
unlink
listify
to_list
to_ops
get_ops
constituents
subprograms
function2list
fun2list
fun_to_list


Michel Parisien

Posts: 25
Nickname: kriggs
Registered: Jul, 2005

Re: On Naming an Operation for Cat Posted: Sep 2, 2006 1:34 PM
Reply to this message Reply
I may be wrong about this, but this sounds like Python's dir (returns a list of a module's methods and attributes). I'll admit, I really don't like the name, but I just thought I would throw it out there as a possibility.

Christopher Diggins

Posts: 1215
Nickname: cdiggins
Registered: Feb, 2004

Re: On Naming an Operation for Cat Posted: Sep 2, 2006 1:53 PM
Reply to this message Reply
> I may be wrong about this, but this sounds like Python's
> dir (returns a list of a module's methods and attributes).
> I'll admit, I really don't like the name, but I just
> thought I would throw it out there as a possibility.

I appreciate it nonetheless, I was looking for any related prior art.

I am in the meantime using "sunder" and it is starting to grow on me.


>> define f { 1 + "hello" }
>> @f sunder writeln
(_1,+,_"hello")


The "@" operation pushes the following function onto the stack without executing it.

Carl Manaster

Posts: 24
Nickname: cmanaster
Registered: Jun, 2003

Re: On Naming an Operation for Cat Posted: Sep 2, 2006 3:36 PM
Reply to this message Reply
I don't know what your language looks like generally, but a nice English word for what you are describing would be, "capabilities". Or - since you use it in the description of what you're looking for - what about "operations"? Or if you want to get wordy, constituent_operations (cased to your language norms).

Sidharth Kuruvila

Posts: 3
Nickname: sidkm
Registered: Sep, 2005

Re: On Naming an Operation for Cat Posted: Sep 3, 2006 12:22 AM
Reply to this message Reply
how about expression or as_expression?

Coman Horia

Posts: 3
Nickname: bonzai
Registered: Jul, 2006

Re: On Naming an Operation for Cat Posted: Sep 3, 2006 2:46 AM
Reply to this message Reply
desintegrate? atomize?

Robbert van Dalen

Posts: 5
Nickname: rapido
Registered: Jun, 2006

Re: On Naming an Operation for Cat Posted: Sep 3, 2006 2:52 AM
Reply to this message Reply
How about pickle?

(serializing a program into a list).

Jules Jacobs

Posts: 119
Nickname: jules2
Registered: Mar, 2006

Re: On Naming an Operation for Cat Posted: Sep 3, 2006 3:03 AM
Reply to this message Reply
I'd choose a symmetrical name. complile/decompile, list->fun/fun->list, to-fun/to-list.

You should be aware that introducing this operation makes compilation much more difficult. Every compiled program has to carry an uncompiled version with it.

Roland Pibinger

Posts: 93
Nickname: rp123
Registered: Jan, 2006

Re: On Naming an Operation for Cat Posted: Sep 3, 2006 10:29 AM
Reply to this message Reply
nm or dumpbin?

Tony Alcock

Posts: 2
Nickname: tonya
Registered: Jul, 2005

Re: On Naming an Operation for Cat Posted: Sep 3, 2006 2:31 PM
Reply to this message Reply
ops

Christopher Diggins

Posts: 1215
Nickname: cdiggins
Registered: Feb, 2004

Re: On Naming an Operation for Cat Posted: Sep 3, 2006 7:24 PM
Reply to this message Reply
> nm or dumpbin?

"nm" intrigues me, where does it come from?

Max Lybbert

Posts: 314
Nickname: mlybbert
Registered: Apr, 2005

Re: On Naming an Operation for Cat Posted: Sep 5, 2006 10:02 AM
Reply to this message Reply
I believe nm is named after the UNIX tool ( http://www.opengroup.org/onlinepubs/009695399/utilities/nm.html ).

Andy Dent

Posts: 165
Nickname: andydent
Registered: Nov, 2005

Re: On Naming an Operation for Cat Posted: Sep 6, 2006 12:57 AM
Reply to this message Reply
sunder is a destructive verb which I would read as a synonym for unlink, unmap, split...

dir works for me in Python.

ls should be avoided - confusion with is

For those of us with a Zork background, inventory is descriptive :-)

Vincent O'Sullivan

Posts: 724
Nickname: vincent
Registered: Nov, 2002

Re: On Naming an Operation for Cat Posted: Sep 6, 2006 2:16 AM
Reply to this message Reply
A quick play with Word's thesaurus function threw up recap, as in definition 1a below:
recapitulate

1 v.t. & i.
a Go briefly through again, go over the main points of (an argument, statement, etc.); sum up. L16.
b v.t. Biol. Repeat (supposed evolutionary stages) in the development and growth of a young animal. L19.
c v.t. Mus. Repeat (a musical theme) in a recapitulation. M20.
2 v.t. Bring together again; unite. rare. E17.
V.

Phillip Wright

Posts: 2
Nickname: pwright
Registered: Sep, 2006

Re: On Naming an Operation for Cat Posted: Sep 7, 2006 12:46 AM
Reply to this message Reply
expand

explode (like an exploded view of a mechanical device)

Explode seems to be a good description of what you're doing, and for people who don't understand explode in the implied sense, the generally understood meaning of explode (the BOOM! kind) would still provide a decent idea of what is happening (since an explosion blows things into pieces).

Flat View: This topic has 18 replies on 2 pages [ 1  2 | » ]
Topic: On Naming an Operation for Cat Previous Topic   Next Topic Topic: Netbeans JMI programming...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use