Is Objective-J essentially JavaScript?
Asked Answered
H

2

11

I've been stumbling upon Objective-J. It should be a superset of JavaScript ... but how's that possible without a browser plugin or some addon? How can they drive around the syntax of JavaScript and make it look like Objective-C code? I mean... COOL... but I don't get it ;) Must I compile that Objective-J code before it goes to the browser?

Heartsome answered 31/12, 2009 at 0:5 Comment(1)
Objective-J is a superset of JavaScript: JavaScript code is also valid Objective-J code but Objective-J code is not necessarily valid JavaScript code.Horseman
H
11

According to the Wikipedia article on Objective-J:

Programs written in Objective-J need to be preprocessed before being run by a web browser's JavaScript virtual machine. This step can occur in the web browser at runtime or by a compiler which translates Objective-J programs into pure JavaScript code. The Objective-J compiler is written in JavaScript, consequently deploying Objective-J programs does not require a plugin attached to the web browser.

Hornmad answered 31/12, 2009 at 0:8 Comment(0)
O
2

“Must I compile that Objective-J code before it goes to the browser?”

Nope.

All programming languages are written in another programming language. (E.g. Python — or the main implementation, anyway — is written in C.)

Objective-J is written in JavaScript, hence it can run entirely in the browser.

Ornstead answered 31/12, 2009 at 0:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.