News for hackers. Stuff that matters.
Re:Ask Hackers: Are you planning to do your startup in Arc? by marcus on Wednesday January 16, 2008 @05:43AM (#99164)
Ever heard of the concept of Turing Completeness, Google it...
Re:Ask Hackers: Are you planning to do your startup in Arc? by HiddenBek on Wednesday January 16, 2008 @10:59AM (#99293)
Viaweb was a cash strapped startup in a competitive market, who succeeded against odds because of their speed and agility. They were running on fumes when they were acquired. A longer development period would have certainly meant the death of the company.

So, no, they could not have written it in C.

Re:Ask Hackers: Are you planning to do your startup in Arc? by pchristensen on Wednesday January 16, 2008 @03:22PM (#99422)
Wow, that was a cool comment. I don't think I've ever agreed with and wanted to argue with a comment so much as that one. I sat there for about 30 seconds deciding whether to vote it up or down. Kudos! (note - that was totally sincere)

At first I thought you were leaving out their smarts and technology, but speed and agility were because of the smarts and tech. Then I thought I remembered pg saying they were going to close another round of funding when they got bought instead.

But I totally agree with your main point.

Re:Ask Hackers: Are you planning to do your startup in Arc? by mooneater on Thursday January 17, 2008 @02:09AM (#99675)
Makes sense from that perspective.
Re:Ask Hackers: Are you planning to do your startup in Arc? by emfle on Wednesday January 16, 2008 @01:52PM (#99377)
The theory says that for any two programming languages there is a constant c such that any given program can be translated from one to the other with only a c difference in size.

That's just an elaborate way of saying that you can write an interpreter (of size c) for one language in another.

Nevertheless, I have a hard time believing that viaweb could not be written in C short of writing a Lisp interpreter. For that to be true, the runtime compilation of s-expressions would have to be essential to the application; there would have to be no other way to write it.

Re:Ask Hackers: Are you planning to do your startup in Arc? by pg on Wednesday January 16, 2008 @08:23PM (#99582)
Do you think I would have done something as heavy-handed as compile s-expressions at runtime if it weren't necessary?

We had a page description language called RTML that was Lisp underneath. Users created templates in it, which we then executed to generate their pages. It is these page templates that are still stored on disk as s-expressions in the C++ version.

Re:Ask Hackers: Are you planning to do your startup in Arc? by emfle on Wednesday January 16, 2008 @10:06PM (#99606)
> Do you think I would have done something as heavy-handed as compile s-expressions at runtime if it weren't necessary?

Why not, if the language makes it simple? I am not claiming that Lisp does not have more powerful abstractions than C, just that they are not usually essential to any given feature in the application.

If Lisp is actually part of the user interface, then clearly there is no way to avoid having a Lisp interpreter. This is begging the question though.

Re:Ask Hackers: Are you planning to do your startup in Arc? by pg on Wednesday January 16, 2008 @05:39PM (#99503)
That's why I said "could not write it in C, short of writing a Lisp interpreter," instead of just "could not write it in C."