Hacker Timesnew | past | comments | ask | show | jobs | submit | deathbob's commentslogin

I don’t bother to log in and vote often, but this is such a cool idea AND so well executed. Fantastically well done. Thanks for sharing


works well for me in chrome / os x. Used the 'a' key to cut / tear.

Cool demo! I don't know much about this sort of stuff, could you talk about what's going on in the vertlet.js file a bit?


Verlet.js is a physics engine written in javascript [0]. It was posted and discussed on HN a few days ago [1]. OP didn't write it, but probably understands it very well.

[0]http://subprotocol.com/verlet-js/ [1]https://qht.co/item?id=5580596


I didn't use the aforementioned verlet.js physics engine, but that's basically what this is. Verlet integration is a simple way of modeling forces. If you are referring to the actual js code, it's asm.js-compatible javascript, which you can read more about here: http://asmjs.org/


"Create a species" doesn't seem to work, even with all fields filled out.


Did you verify your email address?


If you're spending more than 5-10% of your time typing, you might want to consider spending more time thinking, googling, or running tests.


What a beautiful and fun idea.

Here's one I did that develops really nicely.

http://www.earslap.com/projectslab/otomata?q=062m4l6s8q2p610...


The print statements to debug was a constant in "Coders at Work" too. Also in that book I found interesting that everyone interviewed was asked what the most difficult thing they had to debug was, and almost all of them said something to do with concurrency.


That's not surprising though, if there's one thing I've had drummed into me throughout my education and career, it's that concurrency is /hard/. Particularly since it requires thinking about things in a completely different way to a lot of single-threaded programming.


Yes, and its because programming languages actually provide almost nothing to help out here.

E.g. methods cannot be declared 'non-reentrant'. Data cannot be declared 'atomic'. Yes, you can hack together solutions using library methods etc. but the language doesn't help much.

We wrote an 'operating environment' for a major computer manufacturer once - a storage device they eventually cancelled (hardware was problematical). Programmers wrote objects that were each invoked single-threaded, passed workitem messages between services instead of directly calling. The environment managed message queues, handled all the threading and reentrancy invisibly.

The programming team loved it. They could write restartable, failoverable modules in this model without every dealing for an instant with concurrency explicitely.


It's also completely avoidable.

Concurrency is only hard because it's a stupid thing to do - to give a bunch of instructions to the CPU and tell it to execute them in a random order.


Why not, if you compiler proves that it's safe?

I don't even care in which order my single-threaded code gets executed (if it's in the right language).


Without meaning a personal dig it's clear that you're quite ignorant about drugs. Anyone who's ever done any knows they're the original augmented reality. There are few drugs that one would take to escape reality entirely; the vast majority of drug use is social in nature and rooted in reality by definition.


Agreed. And the "acceptability" of such substances varies from society to society (case-in-point: khat). But that still does not take away the societal distress and human cost their abuse causes.


The website seems to be down, anybody got a cached copy?


Sorry, should be back up.


master>python idiocy.py Traceback (most recent call last): File "idiocy.py", line 2, in <module> import getopt, sys, pcap, dpkt, re, httplib, urllib ImportError: No module named pcap

Is there a python equivalent to RubyGems ?



Yeah how do you use this? I see pcap here http://pypi.python.org/pypi/pcap/1.1 but can't seem to install it.

master>pip install pcap Downloading/unpacking pcap Could not find any downloads that satisfy the requirement pcap No distributions at all found for pcap Storing complete log in /Users/bob/.pip/pip.log


Grab the tarball from http://downloads.sourceforge.net/project/pylibpcap/pylibpcap... and then "pip install pylibpcap-0.6.2.tar.gz"

You'll need the Apple Developer tools / XCode first.


Nope.

$pip install python-dpkt && pip install libpcap && pip

install python-pcap

Downloading/unpacking python-dpkt

  Could not find any downloads that satisfy the requirement

 python-dpkt
No distributions at all found for python-dpkt

Storing complete log in /Users/davidfisher/.pip/pip.log


I think "Lamb" is my favorite Christopher Moore book.


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

Search: