1,852 karma · joined Nov 10, 2008 (18y ago) · 533 submissions
213.
Clooj, a lightweight IDE for Clojure(github.com ↗)
2 points · by Scriptor · 15y ago · discuss
comment 15y ago · link · parent
More likely, (in my opinion), is that the translocated chromosome itself contained some beneficial alleles (gene versions) that gave its carriers an edge. This has nothing to do with the translocation itself, it just so happens that that particular chromosome could have a version of a gene (or versions of several genes) that increased the carrier's fitness in the environment. Some of theories regarding early hominid evolution cite a movement away from heavily forrested regions into more open grasslands. Maybe this early translocated chromosome contained alleles that were beneficial in the savannas.
At this point you'd have a number of individuals with one copy of the translocated chromosome and 47 total chromosomes (meaning the other homologous (http://en.wikipedia.org/wiki/Homologous_chromosome) chromosomes are not joined together, "normal") and a number of people who still had the original 48 chromosomes. As the article mentions, only 1/3 of the pregnancies of a 48-chromosome individual with a translocation individual would survive. However, if there was inbreeding present individuals with the translocated chromosome could be mated with each other. Here we have an even less likely chance of a successful pregnancy (8/36 or only 25%) but on the other hand we now have the possibility of individuals with just the translocated chromosome. Instead of a joined chromosome and 2 unjoined chromosomes, these individuals have 2 joined chromosomes and a total of 46 chromosomes.
Now remember that I postulated that the joined (translocated) chromosome could have carried beneficial alleles as opposed to other, unjoined versions. Some of those alleles may be recessive, meaning they'd be eclipsed by other alleles. For an individual with two copies of the translocated chromosome they would only have those recessive alleles, so they wouldn't be as likely to be eclipsed. Again, these recessive alleles may have brought about beneficial traits that weren't expressed in individuals who only had one joined chromosome. Thus, individuals with 46 chromosomes could have had an even higher chance of survival and finding other 46-chromosome individuals, thus continuing this trend.
Anyway, I admit that much of the above is really just guesswork so take it with a grain of salt. I'm primarily exploring the possibilities that could have resulted in the original 48->46 chromosome shift. It was probably a mix of genetic drift, having beneficial alleles, and the founder effect (http://en.wikipedia.org/wiki/Founder_effect). Hope you enjoyed it!
comment 15y ago · link · parent
comment 15y ago · link · parent
comment 15y ago · link · parent
comment 15y ago · link · parent
Also related: http://www.mcsweeneys.net/2003/04/22fellowship.html, if Noam Chomsky and Howard Zinn watched The Fellowship of the Ring.
222.
A Whole Lotta Automata (with Clojure)(sexp.posterous.com ↗)
3 points · by Scriptor · 15y ago · discuss
comment 15y ago · link · parent
Other than that Pharen is still pretty new and nowhere near the same level as mature lisps. Making debugging and interop with 3rd party libraries easier are the main long-term goals, so maybe after that it'll be at least a little viable.
comment 15y ago · link · parent
What do you mean by it's inconsistent? Commas are the same both in dictionaries and anywhere else, they're completely optional.
comment 15y ago · link · parent
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 itself, which is then compiled. There might be a way to hack macro-expand in though.
Let me know how trying to work it into your project goes! I'll be glad to help with any problems that come up.
comment 15y ago · link · parent
(:some-list 1)
Here, some-list is just a variable while the : prefix tells Pharen that you are trying to index into it.comment 15y ago · link · parent
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 have thought that feature would ever be useful?) Could you elaborate on how I could improve efficiency for macros?
comment 15y ago · link · parent
Pharen generates regular PHP source files that you can then throw wherever PHP works.
comment 15y ago · link · parent
Yes there are a lot of issues with cross-language compilers. That said, Coffeescript: http://coffeescript.org, which compiles its own language to Javascript has had a lot of success and is being used in production. So it's at least possible to use languages like this.
The extra layer of abstraction is a big hurdle. When debugging you have to find the source of the problem in the PHP, though ideally after that you can just find the matching Pharen code and go from there. One of the things on my todo list is to have at least a rough line-to-line tracker built, so that it could at least tell you the general location a problem happened, if not the exact line.
Translating docs and example code for existing libraries into Pharen is a bigger issue, I think. Mainly because Pharen emphasizes a functional style of coding while most PHP code assumes you are doing things imperatively. This is something Clojure has to deal with in terms of Java interop so again it shouldn't be too hard to get around.
In terms of efficiency there is tail recursion optimization (converts a recursive function to having a while loop at the end) and a persistent sequence library in the works that would make functional looping through a list about as fast as imperative iteration. More aggressive optimizations might come in the future.
If you're interested, feel free to contribute: http://scriptor.github.com/pharen/contribute.html. If you use IRC you can come hang out (or berate me personally) on #pharen on Freenode. Any suggestions or ideas are welcome.
237.
Iteration in Scala - effectful yet functional(debasishg.blogspot.com ↗)
2 points · by Scriptor · 15y ago · discuss
comment 15y ago · link · parent
comment 15y ago · link · parent
Technically, this ability isn't unique to humans alone. Other species, such as dolphins and chimpanzees, are also able to create and pass on knowledge. For example, certain dolphins around Florida have developed a strategy of catching fish by first encircling areas of water by kicked up sand: http://www.youtube.com/watch?v=ArsoMcVi5MM&feature=playe... This is purely a learned behavior and has to be taught to offspring.