Chronos is one of the many Smalltalk-related blogs syndicated on Planet Smalltalk
χρόνος

Discussion of the Essence# programming language, and related issues and technologies.

Blog Timezone: America/Los_Angeles [Winter: -0800 hhmm | Summer: -0700 hhmm] 
Your local time:  

2006-02-28

Physicists Predict Stock Market Crashes


Physicists Predict Stock Market Crashes from PhysOrg.com

On Monday, October 19, 1987 – infamously known as “black Monday” – the Dow fell 508 points, or 22.9%, marking the largest crash in history. Using an analytical approach similar to the one applied to explore heart rate, physicists have discovered some unusual events preceding the crash. These findings may help economists in risk analysis and in predicting inevitable future crashes.
[...]



See also:


2006-02-26

Preliminary Port of Chronos To Squeak Published

Avi Bryant has published a very preliminay (and only partially functional) port of Chronos to Squeak. It's available from SqueakSource or from Squeak Map. It is very much a "work in progress." When Avi is satisfied that the port is sufficiently functional and stable, he will make a general announcement to that effect. No promises have been made with respect to when a version suitable for general use may become available, nor is there any commitment to provide all the same functionality as is available from the VisualWorks version. Of course, nothing prevents others from contributing improvements/enhancements in addition to whatever Avi publishes (hint, hint.)

I am very appreciative of the contributution Avi is making towards porting Chronos to Squeak.

Fair warning: As of Mon, 27 Feb 2006 01:39:04 +0000 (Universal Time,) the version on SqueakMap will not work "as is" in versions of Squeak from 3.7 onward (you can load it, but if you execute the initialization/installation "do it" that the pop-up Transcript window suggests, you will then be unable to either save the image or compile any methods.) The problem is caused by the fact that the installation procedure (as implemented in the version currently available from SqueakMap) redefines both DateAndTime and Duration so that they are aliases for the Chronos classes Timepoint and ScientificDuration (respectively,) in place of the native Chronology classes named DateAndTime and Duration (and this issue is precisely why I chose not to use the names "DateAndTime" and "Duration" as class names.) This problem can be fixed if you install Chronos according to the following procedure:

  1. Download the Chronos Update for Squeak (based on Chronos Version B1.64).

  2. Extract the files Chronos-B1.64.1.cs and Chronos-Squeak.cs from the zip archive downloaded in step 1.
  3. File in both of the changeset (*.cs) files extracted in step 2 (this assumes you have already installed Chronos from the version on SqueakSource/SqueakMap.) The file Chronos-B1.64.1.cs contains all the platform-independent Chronos code, less some of the initialization/installation logic. The file Chronos-Squeak.cs contains deltas to the Squeak-specific code provided by Avi that substantially improve the functionality of Chronos on Squeak (but it does not enable accessing any time zones from the Chronos Time Zone Repository.)
  4. Evaluate the following expression in a workspace:

    Chronos
    at: #Duration put: ScientificDuration;
    at: #DateAndTime put: Timepoint.

    If this is not done, many of the code examples in the method comments won't work, because they expect DateAndTime and Duration to be references to Chronos.Timepoint and Chronos.ScientificDuration. Since all the Chronos classes have the global Chronos as a shared pool Dictionary, the above code makes the Browsers bind #DateAndTime and #Duration to their Chronos implementations when browsing a Chronos class. If you'd also like to achieve the same effect in any of your own classes, just add #Chronos and #ChronosConstants as pool Dictionaries.

  5. Now evaluate "ChronosEnvironment install." (But dont't do so until until the above steps have been completed.)

Avi is using Squeak 3.6 to do the porting work. The Chronology library did not become part of standard Squeak until version 3.7, and so there is no issue raised by (re)defining the globals DateAndTime and Duration as global aliases for Timepoint and ScientificDuration (respectively) in versions of Squeak prior to 3.7. That may well be why Avi is using Squeak 3.6 to do the port. (Squeak badly needs a mechanism to more elegantly handle issues such as this one.)

Note that the version currently available from SqueakMap has not been given the ability to access files--so it can't retrieve any time zones from the Chronos Time Zone Repository, and therefore Olson time zone keys such as 'Americal/Los_Angeles', 'Europe/Paris' and 'Asia/Tokyo' cannot be used to identify a time zone. Nor is there any code that makes any attempt to determine the local time zone from the host operating system, nor any code that provides any locale information.



Consequently, the Chronos system time zone simply defaults to Universal Time (which is what the native Chronology library does also, so at least you're no worse off than you were before.) Nevertheless, you can still do quite a bit. For example, after loading and properly initializing Chronos, you can evaluate the following expression to set the Chronos system time zone so that it matches the zone rules that have been in effect since 1996 for CET/CEST (Central European Time):

(ChronosTimezone
key: #'Europe/Berlin' name: #'Central European Time'
initialOffset: (ScientificDuration hours: 1) withAbbreviation: #CET
until: (WeekOfMonthDayOfWeek month: 3 week: 0 dayOfWeek: 1)
"The 'zeroeth week' means the last week of the month"
at: (TimeOfDay hour: 1 minute: 0 second: 0) relativity: #universal
thenOffset: (ScientificDuration hours: 2) withAbbreviation: #CEST
until: (WeekOfMonthDayOfWeek month: 10 week: 0 dayOfWeek: 1)
at: (TimeOfDay hour: 1 minute: 0 second: 0) relativity: #universal)
beSystem

Then, you can evaluate "Timepoint now" to see the current time. And if you find yourself in Madrid, Paris, Berlin or Amsterdam, the answer will even be correct. However, due to the fact that the Squeak system clock reports local time, setting the Chronos system time zone has no effect on what is displayed when "Timepoint now" is evaluated. It only changes the results of evaluating "Timepoint utNow." On a system whose clock reported Universal Time, the situation would be reversed.




2006-02-24

Version 2006b of the Chronos Time Zone Repository Published

Arthur David Olson has published version 2006b of the Olson Time Zone Database. Consequently, version 2006b of the Chronos Time Zone Repository has been generated from the new version of the Olson TZDB, and is available from the Chronos web site.


Chronos Version B1.60 Published

Version B1.60 of the Chronos Date/Time Library has been published. It's available from the Chronos web site, or from the Cincom Public StORE Repository. You will also need to obtain and install the Chronos Time Zone Repository according to the Chronos Installation Instructions, if you have not done so previously.

Version B1.60 mostly includes changes and additions to address issues that have arisen in porting Chronos to non-VisualWorks Smalltalk implementations. It also includes some minor and/or obscure bug fixes.

Note also that the URLs for dowloading both the Chronos archive and the Chronos Time Zone Repository archive have changed. The new URLs are as follows:


The Chronos codebase is now also available in a file-out format that should be directly consumable by non-VisualWorks Smalltalk platforms. VisualWorks refers to this format as the "VW3.0" format. It should be completely compatible with the original "Blue Book" file-out format, and I have verified that it is consumable by Squeak, Dolphin and Smalltalk/X.

The "platform-neutral" version of the Chronos distribution is called the "Chronos Seed." You can obtain the latest Chronos Seed Archive from http://www.chronos-st.org/downloads/Chronos-Seed.zip.

The files in the "Chronos Seed" archive are as follows:

  1. Chronos.st: The platform-independent code of Chronos. Chronos will not be functional with only this code installed. To make a functional version of Chronos, you must do the tasks specified in the Chronos Porting Instructions, and you must file-in Chronos-Class Initialization.st and Chronos-Installation.st (but see the comments below before doing that!)

  2. Chronos-Class Initialization.st: Class initializaion methods, and "do its" that execute them on file-in. This code is necessary, but you will need to avoid execution of the "do its" unless and until your port is sufficiently functional.

  3. Chronos-Installation.st: Code that causes Chronos to fully initialize and install itself on file-in. You must avoid execution of this code until your port is sufficiently functional.

  4. Chronos-VW-Extensions.st: Useful extensions to base VisualWorks classes. Optional--and this file is specific to VisualWorks. However, it is probably a good idea to add analogous extensions to the target Smalltalk environment (although that is not at all required.)

  5. Chronos-ST80 (and VW) Compatibility.st: Adds methods to various Chronos classes so that they will be type-compatible with the VisualWorks Date, Time and Timestamp classes. Optional--and this file is specific to VisualWorks. However, you may want to add methods to Chronos so that some of the Chronos classes will be type-compatible with the native Date/Time classes of the target platform.

  6. Chronos-Utilities.st: Contains the code for the Chronos Time Zone Compiler. Optional--and hopefully, not VisualWorks specific.



2006-02-23

Sci/Tech: Scientists develop better method for converting sounds to electronic signals


Scientists develop better method for converting sounds to electronic signals from PhysOrg.com

Inspired by the way sound is processed in the brain, researchers at Carnegie Mellon University (CMU) have devised a new, highly efficient scheme for converting sounds to digital form. The payoff could be a significant improvement in the sound quality of cochlear implants, digital audio players, cellular telephones and many other devices.
[...]




Sci/Tech: Computer chips can get smaller, cheaper than first thought: IBM researchers


Computer chips can get smaller, cheaper than first thought: IBM researchers from PhysOrg.com

Researchers at IBM have discovered that current chip-making technology has the potential to make computer processors even tinier and cheaper than was first thought.
[...]


So Moore's Law gets yet another reprieve. And once lithographic techniques finally meet their limits, there are other technologies waiting their chance to play the game.


2006-02-22

Sci/Tech: Quantum telecloning: Captain Kirk's clone and the eavesdropper


Quantum telecloning: Captain Kirk's clone and the eavesdropper from PhysOrg.com

Imagine Captain Kirk being beamed back to the Starship Enterprise and two versions of the Star Trek hero arriving in the spacecraft's transporter room. It happened 40 years ago in an episode of the TV science fiction classic, and now scientists at the University of York and colleagues in Japan have managed something strikingly similar in the laboratory - though no starship commander was involved.
[...]





Einstein Equations


Einstein Equations from PhysOrg.com

Throughout the years mathematicians and physicists have been finding various solutions to Einstein’s equations. These solutions have helped scientists better understand the nature of our cosmos, as well develop theories about the relationships between space and time. Now two physicists at the University of Waterloo in Waterloo, Ontario, Canada, have developed a new family of solutions to Einstein’s equations — in five dimensions.
[...]





Sci/Tech: Quantum computer solves problem, without running


Quantum computer solves problem, without running from PhysOrg.com

By combining quantum computation and quantum interrogation, scientists at the University of Illinois at Urbana-Champaign have found an exotic way of determining an answer to an algorithm – without ever running the algorithm.
[...]




2006-02-21

Sci/Tech: New material means 'x-ray specs' no longer required


New material means 'x-ray specs' no longer required from PhysOrg.com

A new optical effect has been created in a London laboratory that means solid objects such as walls could one day be rendered transparent, scientists report today in the journal Nature Materials.
[...]