JavaScript may follow Python lead

As it evolves, JavaScript will take its cues from the Python language, Brendan Eich, the creator of JavaScript, said at The AJAX Experience conference earlier this month.

JavaScript is a lynchpin of the popular AJAX (Asynchronous JavaScript and XML) technology for Web development. During his keynote presentation, Eich reflected on JavaScript’s beginnings as well as its future. The language was designed to get a lot of mileage out of a few ideas and has not always been such a hot topic, Eich said.

“It’s been over 10 years, hard to believe. It was the Rodney Dangerfield of languages,” said Eich, CTO of Mozilla. For the future, JavaScript will follow Python. “We’re going to learn from Python. JavaScript is pretty close to Python,” Eich said. Python 2.5 is being tracked, he said.

An attendee at the conference applauded the Python bent. “Python’s a great language and seeing them pattern [JavaScript] after [it] is really exciting,” said Thabo Fletcher, a software engineer with Front Page, which provides online ad services.

Fletcher noted the impacts of Eich’s JavaScript. “He’s invented something that pushed Microsoft to do things,” Fletcher said.

Improvements to JavaScript are eyed in areas such as type systems, name spaces, block statements and structural types. Object types will be nullible by default. “We’re adding a lot of fun features,” said Eich.

Backward compatibility is critical, Eich stressed. “Any evolution of JavaScript has to be backward-compatible. It can’t force you to change the way you write code,” he said.

Developers of JavaScript 2 seek scalability and extensibility. “We definitely want it to be extensible because I don’t plan on doing this amount of work again,” Eich said.

Thread support is not planned, however. Threads are less common in browser implementations and “it’s very hard to program with threads,” Eich said.

New competition in browsers, from Mozilla’s Firefox specifically, has prompted efforts to improve JavaScript. Macromedia’s work on ActionScript also was a factor, Eich said.

“Why the long freeze in JavaScript development? A lot of it had to do with the long freeze on browsers due to the Internet Explorer takeover,” Eich said.

Eich noted JavaScript’s ability to program browsers. “The way you program things that weren’t hardwired into browsers like HTML is with JavaScript.”

“More people are just using JavaScript because it’s certainly fast enough and it’s powerful enough,” said Eich.

QuickLink 061859

Would you recommend this article?


Thanks for taking the time to let us know what you think of this article!
We'd love to hear your opinion about this or any other story you read in our publication.

Jim Love, Chief Content Officer, IT World Canada

Featured Download

Featured Articles

Stemming the tide of cybercrime

By: Derek Manky Technology continues to play a significant role in accelerating...

Power through a work-from-anywhere lifestyle with the LG gram

“The right tool for the right job” is an old adage...

Related Tech News

Tech Jobs

Our experienced team of journalists and bloggers bring you engaging in-depth interviews, videos and content targeted to IT professionals and line-of-business executives.

Tech Companies Hiring Right Now