Side Effect (computer Science) - Temporal Side Effects

Temporal Side Effects

Side effects due to the time taken for an operation to execute are usually ignored when discussing side effects and referential transparency. In most programs it is desirable to replace a long operation with an equivalent shorter one e.g. replacing (60 / 3 * 2) with 40. There are some cases, such as with hardware timing or testing, where operations are inserted specifically for their temporal side effects e.g. Sleep(5000) or for(i=0; i < 10000; i++){}. These instructions do not change state other than taking an amount of time to complete.

Read more about this topic:  Side Effect (computer Science)

Famous quotes containing the words side effects, temporal, side and/or effects:

    What is done for science must also be done for art: accepting undesirable side effects for the sake of the main goal, and moreover diminishing their importance by making this main goal more magnificent. For one should reform forward, not backward: social illnesses, revolutions, are evolutions inhibited by a conserving stupidity.
    Robert Musil (1880–1942)

    Death is not an event in life: we do not live to experience death. If we take eternity to mean not infinite temporal duration but timelessness, then eternal life belongs to those who live in the present.
    Ludwig Wittgenstein (1889–1951)

    Called as partners in Christ’s service,
    Called to ministries of grace,
    We respond with deep commitment
    Fresh new lines of faith to trace.
    May we learn the art of sharing,
    Side by side and friend with friend,
    Equal partners in our caring
    To fulfill God’s chosen end.
    Jane Parker Huber (b. 1926)

    The machines that are first invented to perform any particular movement are always the most complex, and succeeding artists generally discover that, with fewer wheels, with fewer principles of motion, than had originally been employed, the same effects may be more easily produced. The first systems, in the same manner, are always the most complex.
    Adam Smith (1723–1790)