F2 Navigation   |  Options  |  Login  |  Register  |  Status  |  FAQ  |  Upload Pics  |  Normal Mode Bookmark and Share


Back to Index | Reply to Topic

Page: 1 2  | Previous  Next | First  Last

  Is there a programming language where the Control Flow is itself a manipulable object?
.
Unregistered

E.g., a tree structure with nodes for conditionals, loops etc?
Asok
+++++

12595 posts

Lisp.
.
Unregistered

ruby
.
Unregistered

Asok said:Lisp.


Can you link to an example where Lisp is used in this way?

I'm thinking of applications like complex surveys, choose-your-own-adventure stories, etc where one would like to calculate things like longest possible path from beginning to end, etc.
.
Unregistered

. said:Can you link to an example where Lisp is used in this way?

I'm thinking of applications like complex surveys, choose-your-own-adventure stories, etc where one would like to calculate things like longest possible path from beginning to end, etc.



a particular language can't do that for you. you'd need to create a class that represents all those options like a state machine.
.
Unregistered

. said:
. said:Can you link to an example where Lisp is used in this way?

I'm thinking of applications like complex surveys, choose-your-own-adventure stories, etc where one would like to calculate things like longest possible path from beginning to end, etc.



a particular language can't do that for you. you'd need to create a class that represents all those options like a state machine.


What about dataflow programming languages:

http://en.wikipedia.org/wiki/Dataflow_programming

?
.
Unregistered

:bmup: for answers
.
Unregistered

ada waysa?
.
Unregistered

. said:ada waysa?


excuse me?
.
Unregistered

. said:What about dataflow programming languages:

http://en.wikipedia.org/wiki/Dataflow_programming

?



that's essentially describing a state machine.
.
Unregistered

. said:
. said:What about dataflow programming languages:

http://en.wikipedia.org/wiki/Dataflow_programming

?



that's essentially describing a state machine.


Anyway, looking for a high-level language where control flow is a manipulable object.
mr the horse
#genius

7840 posts

Can't you do this in any language with functions as first-order objects? So you just put functions in your data structure?
.
Unregistered

mr the horse said:Can't you do this in any language with functions as first-order objects? So you just put functions in your data structure?


so you have this elaborate branching, looping structure within a function... how do you compute statistics on the lengths of possible paths?
.
Unregistered

Learn to program. Any language can do that with enough lines of code. Use .
.
Unregistered

. said:Learn to program. Any language can do that with enough lines of code. Use .


:facepalm:
mr the horse
#genius

7840 posts

. said:so you have this elaborate branching, looping structure within a function... how do you compute statistics on the lengths of possible paths?



Oh, I see what you want to do. Like if you have a choose your own adventure and you want to compute the lengths of paths given different sets of choices? So you want a graph rather than a tree?
.
Unregistered

Theoretically, you can do anything with a Turing Machine made out of Lincoln Logs
\
:winner:
.
Unregistered

. said: :facepalm:



So easy. My problem with your generation.
.
Unregistered

mr the horse said:
. said:so you have this elaborate branching, looping structure within a function... how do you compute statistics on the lengths of possible paths?



Oh, I see what you want to do. Like if you have a choose your own adventure and you want to compute the lengths of paths given different sets of choices? So you want a graph rather than a tree?


Yes, a graph object representing procedural control flow.
.
Unregistered

. said:So easy. My problem with your generation.


What are you even blathering about, gramps?
sandman
Tight Diction

18805 posts

. said:Yes, a graph object representing procedural control flow.



Objective C.
.
Unregistered

. said:What are you even blathering about, gramps?



:smile: I am your supervisor asswipe. Not gramps. Not near. Jus the guy that complains to gramps (the CEO) about your shit attitude.
.
Unregistered

. said:
. said:What are you even blathering about, gramps?



:smile: I am your supervisor asswipe. Not gramps. Not near. Jus the guy that complains to gramps (the CEO) about your shit attitude.


You have not written a single line of code in your life.
.
Unregistered

sandman said:Objective C.



:facepalm:

go deliver a pizza, Gomer
.
Unregistered

. said:You have not written a single line of code in your life.



:wave: You keep guessing tiny penis. I control your salary and your bonuses.

Page: 1 2  | Previous  Next | First  Last

Back to Index | Reply to Topic

 
Quick Reply
Moniker:
Message: