Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The question is a very good one. However the answer is unconvincing to me. By this reasoning, should someone make a jquery compiler that blocks the access to the original javascript language, and perhaps fills in any resulting holes in fuctionality, then jQuery would be a language. But how much would have really changed? And also, should then someone implement this new JQuery within a javascript environment, we would be talking about an embedded language within another language. but isn't that what we have now? I think to the extent that a library brings in new syntactic styles, it becomes more and more similar to a language.

As an aside, this got me thinking about compilers that can compile multiple languages in the same source file.. a kind of linguistic pick-n-choose... has anything been done along those lines?



A couple years ago I actually wrote a sort of meta language on top of jQuery (sort of a combination between jQuery and Python). http://ejohn.org/apps/jquery2/ Be sure to view the source and look for: script type="text/jquery".


There are a lot of multi-language quines, but that's cheating, because it's multiple compilers passing over one source file.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: