Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Scriptor
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
211.
▲
by
Scriptor
15y ago
One of the symptoms of the hodge podge is things that should be in the interpreter when they're actually in the parser. For example: isset($foo, 2) Returns a parse error, even though isset looks like a function call and you're just
212.
▲
by
Scriptor
15y ago
I actually had the opposite experience. I have both the electronic version and the paper version of a very large book. While it is fun in a nostalgic way to read it from the book, it's really awkward to read it anywhere other than a table w
213.
▲
by
Scriptor
16y ago
I really need to get around to reading this. The original LOTR did have a rather "western" bent to it. Looking at things in another way would be pretty fun. Also related: http://www.mcsweeneys.net/2003/04/22fellowship.html , if Noam Chomsk
214.
▲
A Whole Lotta Automata (with Clojure)
(sexp.posterous.com)
3 points
by
Scriptor
16y ago
|
0 comments
215.
▲
by
Scriptor
16y ago
That's a really good question. The main case I can see is if someone is already familiar with PHP and its deployment and doesn't want to learn another language/platform. It might also be useable for basic scripting tasks (the compiler has a
216.
▲
by
Scriptor
16y ago
The current dictionary syntax is actually typical for lisps, particularly this is exactly what Clojure does. It's just a series of elements except in this case it's designed to look at every two elements as a pair. What do you mean by it's
217.
▲
by
Scriptor
16y ago
>Is there a way to expand macros only and not do the compile-to-php step? So that it would just generate the Pharen code resulting from the expansion? Unfortunately, not yet. As soon as a macro is done executing it returns the node tree
218.
▲
by
Scriptor
16y ago
I guess I wasn't exactly sure just how widespread PHP 5.3 was and wanted to play it safe. Also, even if new servers nowadays come with 5.3, a lot of existing code is still running on 5.2.
219.
▲
by
Scriptor
16y ago
Possibly, it might have a use in some web framework ideas I have (such as designate a series of actions to perform on something like input data).
220.
▲
by
Scriptor
16y ago
I'd say it's closer to Clojure than others lisps, but there are still some differences. For example, no keywords (:foo, :bar, etc.) and lists are not functions of their members. This can get a little confusing with Pharen's array access syn
221.
▲
by
Scriptor
16y ago
Nope, it should work for PHP 5.2 as well. Closures are implemented using a static member on a class that handles all the lexically scoped variables, not PHP 5.3's native closures.
222.
▲
by
Scriptor
16y ago
I haven't done any real benchmarks, but theoretically Pharen would have at least the same order of magnitude performance as regular PHP. The main things slowing it down is the memory overhead needed for using lexical scope.
223.
▲
by
Scriptor
16y ago
Thanks Mahmud :) Efficient sequences are what I'm working on right now, particularly trying to make persistent versions of the major data structures in PHP. Tail calls are another thing, though with PHP 5.3's gotos they could be done (who'd
224.
▲
by
Scriptor
16y ago
The big one is that Lisphp is an interpreter while Pharen is a compiler. Lisphp takes source code and just runs it, which means that it's lisp code running on Lisphp, which in turn is running on the PHP interpreter. Pharen generates regular
225.
▲
by
Scriptor
16y ago
Both really, since interop with PHP is pretty easy so you can use those native features in a lispy way.
226.
▲
by
Scriptor
16y ago
Originally, for fun! It gives you a chance to use Lisp's syntax and mentality if you're stuck with PHP on the backend. Moreover, you have features like macros and lexical scope, which can be useful.
227.
▲
by
Scriptor
16y ago
Hi everyone, I'm the creator of Pharen. Feel free to ask me questions or remind me why this is a terrible idea. :) Yes there are a lot of issues with cross-language compilers. That said, Coffeescript: http://coffeescript.org , which compil
228.
▲
by
Scriptor
16y ago
He was just having fun with by combining this with another site which does a similar thing.
229.
▲
Iteration in Scala - effectful yet functional
(debasishg.blogspot.com)
2 points
by
Scriptor
16y ago
|
0 comments
230.
▲
by
Scriptor
16y ago
Not sure, but I think it's a journalistic convention. Since the person was not generally well known, the quotes indicate that it's something others who do know him say. They're not being sarcastic.
231.
▲
by
Scriptor
16y ago
Hey, creator of Pharen here. I've been procrastinating on another release for a while but still developing it. If anyone wants to check it out there is a better site over at http://scriptor.github.com/pharen .
232.
▲
by
Scriptor
16y ago
I'm not sure about the specifics of what iwwr is thinking, but basically I think he means that humans have the ability to create and pass on knowledge (state) from one generation to the next. Because each generation only has to build off of
233.
▲
by
Scriptor
16y ago
People are missing the point of this article. It's not that they used fire, it's that Neanderthals used it to cook vegetables when previously we thought they just ate meat.
234.
▲
by
Scriptor
16y ago
As far as I'm aware, there is no such debugging mode for CoffeeScript. The current method of debugging really is to look in the JS and then find the corresponding CS code. They do make this easier by keeping the JS code as readable as possi
235.
▲
by
Scriptor
16y ago
Those aren't just "books", it's going to helping "literacy and gender equality" in third world education. For example, fact that women are often under-educated is a major source of issues in these countries. So yes while it's still about ha
236.
▲
by
Scriptor
16y ago
Awesome! Is there any way we can have access to the previous issues as well?
237.
▲
by
Scriptor
16y ago
Or Clojure again (for [username all-users] :when (admin? username))
238.
▲
Proggit has a mini-challenge up: Word ladders
(proggitquiz.com)
2 points
by
Scriptor
16y ago
|
1 comments
239.
▲
by
Scriptor
16y ago
I've never taken a marketing course, but it kinda felt like that was part of some general template. The first part is <attempt to relate to audience with inside jokes> followed by the rest of the stuff. Of course, this backfired spe
240.
▲
by
Scriptor
16y ago
It is certainly okay for some functions to be complex. Some may rely on simpler functions, but the one you'd use can still do a complex task in general. A function that squares a number is simple, one that computes the standard deviation is
More ›