Matthew's Place on the Web
Posts tagged Programming
Next Edition of JavaScript MAY Break the Scripts of Today.
Dec 21st
Jeff Walden, one of the Peer members of the Mozilla JavaScript module (SpiderMonkey) has brought to light some changes coming to their JavaScript interpreter in Firefox 3.7. These change will bring SpiderMonkey in line with the next edition of the JavaScript standard, ECMA-262. These count not only break existing code, but also introduce a new opt-in mode of execution for JavaScript called strict mode.
Jeff mentions that not only does the new standard add to it many features that where merely extensions to JavaScript present the current browsers, but they don’t behave the same way unless strict mode is turned on. He also elaborates how turning on strict mode can complicate things for existing code as well. As the saying, “if you do, and if you don’t.”
Jeff describes changes in detail and examples of where they are relevant, but also states that this may be only a small minority of JavaScript code currently in use on the Web. The truth is, we will only know when browsers start rolling out versions with these new changes. You can read more details about it on Jeff’s blog posting.
Code Snippet, Easier use of boost::variant.
Dec 16th
I have been using boost::variant a lot lately in many project and have gotten tired having to recheck code I’ve written to determine what result boost::variant::which() would return for which type. As such I have written one solution for this, but decided to come up with a more generic solution. This solution provides a very readable way to do type checks on variants as runtime and with inline produces very optimal code. Read the rest of this entry »
TCL-R 0.1 Released
Feb 28th
I’ve been working on this first version for a while now, and I think it is ready. The first release of TCL-R marks the beginning of what I hope will be a great project. This version is really minimal and can only be compiled on Visual Studio 2008 as a static library at the moment. It is only an interpreter in a library and isn’t designed to be used as a shell or full TCL distribution.
Limits of a Regular Expression
Feb 16th
I have been using regular expressions quite liberally since I learned how to write them. I haven’t really made any very complex ones at all. Until I decided to make one that would validate e-mail addresses. I first downloaded the RFC822 and RFC2822. These are the documents that actually outline the format of e-mail messages. I also grabbed the RFC1035 which describes the domain name service formats for the Internet , to make sure that domain part of an e-mail follows its more strict rules.