出典(authority):フリー百科事典『ウィキペディア(Wikipedia)』「2017/01/05 04:43:10」(JST)
future, promise, delay とは、プログラミング言語における並列処理のデザインパターン。何らかの処理を別のスレッドで処理させる際、その処理結果の取得を必要になるところまで後回しにする手法。処理をパイプライン化させる。1977年に考案され、現在ではほとんどのプログラミング言語で利用可能。
カール・ヒューイットは、2つの点で future の方が promise よりも適した用語であるとしている。第一に promise(約束)は必ずしも将来の時点のことを意味しないため、future(未来)よりも曖昧である。第二に promise は単なる言語表現だが、future は現物(actuals)に対する先物(futures)という意味もある(つまり、実際の物に対する代用品)。
future という構文が最初に紹介されたのは1977年、Henry Baker とカール・ヒューイットの論文でのことであった。future(promise)の使用により、分散システムにおける遅延を劇的に減少させることができる。例えばアクターモデルのようにメッセージのパイプライン化が可能であり、これをE言語やAliceでは promise pipelining と呼ぶ[1]。
一般的なRPCで次のような式を考える。
t3 := (x.a()).c(y.b())
これは、次のように展開できる。
t1 := x.a(); t2 := y.b(); t3 := t1.c(t2)
これを解釈すると、t1 および t2 の値が定まらないと t3 の値は計算できない。future を使うとこの式が次のように表される。
t3 := future (future x.a()).c(future y.b())
これを展開すると次のようになる。
t1 := future x.a(); t2 := future y.b(); t3 := future t1.c(t2)
このようにすると t3 は即座に計算される。ただし、t3 から情報を得ようとすると待たされる。
future構文は MultiLisp や Act1 といったプログラミング言語で実装された。並行論理プログラミング言語における論理変数もよく似ている。これは当初 Prolog with Freeze や IC Prolog で使われ、Relational Language、Concurrent Prolog、PARLOG、GHC、KL1、Strand、Vulcan、Janus、Mozart/Oz、Flow Java、Alice といった言語で真の並行性プリミティブとなった。Concurrent ML のような単一代入規則型データフロー言語の I-var は並行論理変数とよく似ている。
future による遅延最小化のようなパイプライン化技法はまずアクターモデルで生み出され、1988年にバーバラ・リスコフが再発明し、1989年ごろにはザナドゥ計画でも再発明されている。
future, promise, 並行論理変数, データフロー変数, I-var をサポートする言語:
java.util.concurrent.Future
より加えて、promise pipelining をサポートする言語:
非標準ライブラリによる実装:
Human history | |||
---|---|---|---|
↑ Prehistory | |||
Recorded history | |||
Ancient | |||
|
|||
Postclassical | |||
|
|||
Modern | |||
|
|||
↓ Future | |||
|
The future is what will happen in the time after the present. Its arrival is considered inevitable due to the existence of time and the laws of physics. Due to the apparent nature of reality and the unavoidability of the future, everything that currently exists and will exist can be categorized as either permanent, meaning that it will exist forever, or temporary, meaning that it will end. The future and the concept of eternity have been major subjects of philosophy, religion, and science, and defining them non-controversially has consistently eluded the greatest of minds.[1] In the Occidental view, which uses a linear conception of time, the future is the portion of the projected time line that is anticipated to occur.[2] In special relativity, the future is considered absolute future, or the future light cone.[3]
In the philosophy of time, presentism is the belief that only the present exists and the future and the past are unreal. Religions consider the future when they address issues such as karma, life after death, and eschatologies that study what the end of time and the end of the world will be. Religious figures such as prophets and diviners have claimed to see into the future. Organized efforts to predict or forecast the future may have derived from observations by early man of heavenly objects.
Future studies, or futurology, is the science, art and practice of postulating possible futures. Modern practitioners stress the importance of alternative and plural futures, rather than one monolithic future, and the limitations of prediction and probability, versus the creation of possible and preferable futures.
The concept of the future has been explored extensively in cultural production, including art movements and genres devoted entirely to its elucidation, such as the 20th century movement futurism.
Forecasting is the process of estimating outcomes in uncontrolled situations. Forecasting is applied in many areas, such as weather forecasting, earthquake prediction, transport planning, and labour market planning. Due to the element of the unknown, risk and uncertainty are central to forecasting.
Statistically based forecasting employs time series with cross-sectional or longitudinal data. Econometric forecasting methods use the assumption that it is possible to identify the underlying factors that might influence the variable that is being forecast. If the causes are understood, projections of the influencing variables can be made and used in the forecast. Judgmental forecasting methods incorporate intuitive judgments, opinions and probability estimates, as in the case of the Delphi method, scenario building, and simulations.
Prediction is similar to forecasting but is used more generally, for instance to also include baseless claims on the future. Organized efforts to predict the future began with practices like astrology, haruspicy, and augury. These are all considered to be pseudoscience today, evolving from the human desire to know the future in advance.
Modern efforts such as future studies attempt to predict technological and societal trends, while more ancient practices, such as weather forecasting, have benefited from scientific and causal modelling. Despite the development of cognitive instruments for the comprehension of future, the stochastic and chaotic nature of many natural and social processes has made precise forecasting of the future elusive.
Future studies or futurology is the science, art and practice of postulating possible, probable, and preferable futures and the worldviews and myths that underlie them. Futures studies seeks to understand what is likely to continue, what is likely to change, and what is novel. Part of the discipline thus seeks a systematic and pattern-based understanding of past and present, and to determine the likelihood of future events and trends. A key part of this process is understanding the potential future impact of decisions made by individuals, organisations and governments. Leaders use results of such work to assist in decision-making.
“ | Take hold of the future or the future will take hold of you. —Patrick Dixon, author of Futurewise |
” |
Futures is an interdisciplinary field, studying yesterday's and today's changes, and aggregating and analyzing both lay and professional strategies, and opinions with respect to tomorrow. It includes analyzing the sources, patterns, and causes of change and stability in the attempt to develop foresight and to map possible futures. Modern practitioners stress the importance of alternative and plural futures, rather than one monolithic future, and the limitations of prediction and probability, versus the creation of possible and preferable futures.
Three factors usually distinguish futures studies from the research conducted by other disciplines (although all disciplines overlap, to differing degrees). First, futures studies often examines not only possible but also probable, preferable, and "wild card" futures. Second, futures studies typically attempts to gain a holistic or systemic view based on insights from a range of different disciplines. Third, futures studies challenges and unpacks the assumptions behind dominant and contending views of the future. The future thus is not empty but fraught with hidden assumptions.
Futures studies does not generally include the work of economists who forecast movements of interest rates over the next business cycle, or of managers or investors with short-term time horizons. Most strategic planning, which develops operational plans for preferred futures with time horizons of one to three years, is also not considered futures. But plans and strategies with longer time horizons that specifically attempt to anticipate and be robust to possible future events, are part of a major subdiscipline of futures studies called strategic foresight.
The futures field also excludes those who make future predictions through professed supernatural means. At the same time, it does seek to understand the models such groups use and the interpretations they give to these models.
In physics, time is a fourth dimension. Physicists argue that space-time can be understood as a sort of stretchy fabric that bends due to forces such as gravity. In classical physics the future is just a half of the timeline, which is the same for all observers. In special relativity the flow of time is relative to the observer's frame of reference. The faster an observer is traveling away from a reference object, the slower that object seems to move through time. Hence, future is not an objective notion anymore. A more significant notion is absolute future or the future light cone. While a person can move backwards or forwards in the three spatial dimensions, many physicists argue you are only able to move forward in time.[4]
One of the outcomes of Special Relativity Theory is that a person can travel into the future (but never come back) by traveling at very high speeds. While this effect is negligible under ordinary conditions, space travel at very high speeds can change the flow of time considerably. As depicted in many science fiction stories and movies (e.g. Déjà Vu), a person traveling for even a short time at near light speed will return to an Earth that is many years in the future.
Some physicists claim that by using a wormhole to connect two regions of space-time a person could theoretically travel in time. Physicist Michio Kaku points out that to power this hypothetical time machine and "punch a hole into the fabric of space-time", it would require the energy of a star. Another theory is that a person could travel in time with cosmic strings.
"The trouble with the future is that it's so much less knowable than the past."
In the philosophy of time, presentism is the belief that only the present exists, and the future and past are unreal. Past and future "entities" are construed as logical constructions or fictions. The opposite of presentism is 'eternalism', which is the belief that things in the past and things yet to come exist eternally. Another view (not held by many philosophers) is sometimes called the 'growing block' theory of time—which postulates that the past and present exist, but the future does not.[6]
Presentism is compatible with Galilean relativity, in which time is independent of space, but is probably incompatible with Lorentzian/Einsteinian relativity in conjunction with certain other philosophical theses that many find uncontroversial. Saint Augustine proposed that the present is a knife edge between the past and the future and could not contain any extended period of time.
Contrary to Saint Augustine, some philosophers propose that conscious experience is extended in time. For instance, William James said that time is "...the short duration of which we are immediately and incessantly sensible."[citation needed] Augustine proposed that God is outside of time and present for all times, in eternity. Other early philosophers who were presentists include the Buddhists (in the tradition of Indian Buddhism). A leading scholar from the modern era on Buddhist philosophy is Stcherbatsky, who has written extensively on Buddhist presentism:
“ | Everything past is unreal, everything future is unreal, everything imagined, absent, mental... is unreal... Ultimately real is only the present moment of physical efficiency [i.e., causation].[7] | ” |
While ethologists consider animal behavior largely based on fixed action patterns or other learned traits in an animal's past[citation needed], human behavior is known to encompass anticipation of the future. Anticipatory behavior can be the result of a psychological outlook toward the future, for examples optimism, pessimism, and hope.
Optimism is an outlook on life such that one maintains a view of the world as a positive place. People would say that optimism is seeing the glass "half full" of water as opposed to half empty. It is the philosophical opposite of pessimism. Optimists generally believe that people and events are inherently good, so that most situations work out in the end for the best. Hope is a belief in a positive outcome related to events and circumstances in one's life. Hope implies a certain amount of despair, wanting, wishing, suffering or perseverance — i.e., believing that a better or positive outcome is possible even when there is some evidence to the contrary. "Hopefulness" is somewhat different from optimism in that hope is an emotional state, whereas optimism is a conclusion reached through a deliberate thought pattern that leads to a positive attitude.
Pessimism as stated before is the opposite of optimism. It is the tendency to see, anticipate, or emphasize only bad or undesirable outcomes, results, or problems. The word originates in Latin from Pessimus meaning worst and Malus meaning bad.
Religions consider the future when they address issues such as karma, life after death, and eschatologies that study what the end of time and the end of the world will be. In religion, major prophets are said to have the power to change the future. Common religious figures have claimed to see into the future, such as minor prophets and diviners. The term "afterlife" refers to the continuation of existence of the soul, spirit or mind of a human (or animal) after physical death, typically in a spiritual or ghostlike afterworld. Deceased persons are usually believed to go to a specific region or plane of existence in this afterworld, often depending on the rightness of their actions during life.
Some believe the afterlife includes some form of preparation for the soul to transfer to another body (reincarnation). The major views on the afterlife derive from religion, esotericism and metaphysics. There are those who are skeptical of the existence of the afterlife, or believe that it is absolutely impossible, such as the materialist-reductionists, who believe that the topic is supernatural, therefore does not really exist or is unknowable. In metaphysical models, theists generally believe some sort of afterlife awaits people when they die. Atheists generally do not believe in a life after death. Members of some generally non-theistic religions such as Buddhism, tend to believe in an afterlife like reincarnation but without reference to God.
Agnostics generally hold the position that like the existence of God, the existence of supernatural phenomena, such as souls or life after death, is unverifiable and therefore unknowable.[8] Many religions, whether they believe in the soul’s existence in another world like Christianity, Islam and many pagan belief systems, or in reincarnation like many forms of Hinduism and Buddhism, believe that one’s status in the afterlife is a reward or punishment for their conduct during life, with the exception of Calvinistic variants of Protestant Christianity, which believes one's status in the afterlife is a gift from God and cannot be earned during life.
Eschatology is a part of theology and philosophy concerned with the final events in the history of the world, or the ultimate destiny of humanity, commonly referred to as the end of the world. While in mysticism the phrase refers metaphorically to the end of ordinary reality and reunion with the Divine, in many traditional religions it is taught as an actual future event prophesied in sacred texts or folklore. More broadly, eschatology may encompass related concepts such as the Messiah or Messianic Age, the end time, and the end of days.
Futurism as an art movement originated in Italy at the beginning of the 20th century. It developed largely in Italy and in Russia, although it also had adherents in other countries - in England and Portugal for example. The Futurists explored every medium of art, including painting, sculpture, poetry, theatre, music, architecture and even gastronomy. Futurists had a passionate loathing of ideas from the past, especially political and artistic traditions. They also espoused a love of speed, technology, and violence. Futurists dubbed the love of the past passéisme. The car, the plane, and the industrial town were all legendary for the Futurists, because they represented the technological triumph of people over nature. The Futurist Manifesto of 1909 declared: "We will glorify war—the world's only hygiene—militarism, patriotism, the destructive gesture of freedom-bringers, beautiful ideas worth dying for, and scorn for woman."[9] Though it owed much of its character and some of its ideas to radical political movements, it had little involvement in politics until the autumn of 1913.[10]
One[which?] of the many 20th-century classical movements in music paid homage to, included, or imitated machines. Closely identified with the central Italian Futurist movement were brother composers Luigi Russolo (1885-1947) and Antonio Russolo (1877-1942), who used instruments known as intonarumori - essentially sound boxes used to create music out of noise. Luigi Russolo's futurist manifesto, The Art of Noises, is considered[by whom?] one of the most important and influential texts in 20th century musical aesthetics. Other examples of futurist music include Arthur Honegger's Pacific 231 (1923), which imitates the sound of a steam locomotive, Prokofiev's "The Steel Step", and the experiments of Edgard Varèse.
Literary futurism made its debut with F.T. Marinetti's Manifesto of Futurism (1909). Futurist poetry used unexpected combinations of images and hyper-conciseness (not to be confused with the actual length of the poem). Futurist theater works have scenes a few sentences long, use nonsensical humor, and try to discredit the deep-rooted dramatic traditions with parody. Longer literature forms, such as novels, had no place in the Futurist aesthetic, which had an obsession with speed and compression.
Futurism expanded to encompass other artistic domains and ultimately included painting, sculpture, ceramics, graphic design, industrial design, interior design, theatre design, textiles, drama, literature, music and architecture. In architecture, it featured a distinctive thrust towards rationalism and modernism through the use of advanced building materials. The ideals of futurism remain as significant components of modern Western culture; the emphasis on youth, speed, power and technology finding expression in much of modern commercial cinema and commercial culture. Futurism has produced several reactions, including the 1980s-era literary genre of cyberpunk — which often treated technology with a critical eye.
Science-fiction writer Robert A. Heinlein defined science fiction as:
“ | realistic speculation about possible future events, based solidly on adequate knowledge of the real world, past and present, and on a thorough understanding of the nature and significance of the scientific method.[11] | ” |
More generally, one can regard science fiction as a broad genre of fiction that often involves speculations based on current or future science or technology. Science fiction is found in books, art, television, films, games, theater, and other media. Science fiction differs from fantasy in that, within the context of the story, its imaginary elements are largely possible within scientifically established or scientifically postulated laws of nature (though some elements in a story might still be pure imaginative speculation). Settings may include the future, or alternative time-lines, and stories may depict new or speculative scientific principles (such as time travel or psionics), or new technology (such as nanotechnology, faster-than-light travel or robots). Exploring the consequences of such differences is the traditional purpose of science fiction, making it a "literature of ideas".[12]
Some science fiction authors construct a postulated history of the future called a "future history" that provides a common background for their fiction. Sometimes authors publish a timeline of events in their history, while other times the reader can reconstruct the order of the stories from information in the books. Some published works constitute "future history" in a more literal sense—i.e., stories or whole books written in the style of a history book but describing events in the future. Examples include H.G. Wells' The Shape of Things to Come (1933) - written in the form of a history book published in the year 2106 and in the manner of a real history book with numerous footnotes and references to the works of (mostly fictitious) prominent historians of the 20th and 21st centuries.
The linear view of time (common in Western thought) draws a stronger distinction between past and future than does the more common cyclic time of cultures such as India, where past and future can coalesce much more readily.[13]
Look up future in Wiktionary, the free dictionary. |
In a cyclic universe, each event that lies in the past of the present moment, also lies in its future.
Time
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Key concepts |
|
||||||||||
Measurement and standards |
|
||||||||||
Clocks |
|
||||||||||
|
|
||||||||||
|
|
||||||||||
Philosophy of time |
|
||||||||||
Human experience and use of time |
|
||||||||||
Time in |
|
||||||||||
Related topics |
|
||||||||||
Time portal
|
Science fiction
|
|||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Outline |
|
||||||||||||||||||
Subgenres |
|
||||||||||||||||||
Culture |
|
||||||||||||||||||
Media |
|
||||||||||||||||||
Themes |
|
||||||||||||||||||
Related topics |
|
||||||||||||||||||
|
Authority control |
|
---|
全文を閲覧するには購読必要です。 To read the full text you will need to subscribe.
リンク元 | 「prospective」「hereafter」「forecasting」「未来」 |
拡張検索 | 「in future」 |
.