Is it possible to create a quine in every turing-complete language?

Any programming language which is Turing complete, and which is able to output any string (by a computable function of the string as program — this is a technical condition that is satisfied in every programming language in existence) has a quine program (and, in fact, infinitely many quine programs, and many similar curiosities) as … Read more

Why Is Dynamic Typing So Often Associated with Interpreted Languages?

Interesting question. BTW, I’m the author/maintainer of phc (compiler for PHP), and am doing my PhD on compilers for dynamic languages, so I hope I can offer some insights. I think there is a mistaken assumption here. The authors of PHP, Perl, Python, Ruby, Lua, etc didn’t design “interpreted languages”, they designed dynamic languages, and … Read more

Why are many languages case sensitive?

I don’t think you’ll get a better answer than “because the author(s) of that language thought it was better that way”. Personally, I think they’re right. I’d hate to find these lines anywhere in the same source file (and refer to the same object+method)… SomeObject.SomeMethod(); … SOMEOBJECT.SOMEMETHOD(); … someObject.someMethod(); … sOmEoBjEcT.sOmEmEtHoD(); I don’t think anyone … Read more

When someone writes a new programming language, what do they write it IN?

It’s not a stupid question. It’s an excellent question. As already answered the short answer is, “Another language.” Well that leads to some interesting questions? What if its the very first language written for your particular piece of hardware? A very real problem for people who work on embedded devices. As already answered “a language … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)