Project Hapax needs your help

UPDATE (16.06.2019): Check out the original
is more fun. Faster! animations coming but now you can see what it means.
UPDATE (15.06.2019): I made a github repository. Compared with the page available at my home page, I corrected some bugs, two subtle errors and sped the thing a little.
While at homepage you can play with ackermann_2_2 (which does not end well because subtle errors in the algorithm, will update tomorrow that page), at
you can play with the 9quine. See how much it lives!
I’m working on a project called “hapax cheon” (means “poured only once in Ancient Greek) and I tried for this javascript and used chemlambda as an example.

It is incredibly slow, at least compared with the original chemlambda version. I tried it with ackermann(2,2), used many times before related to chemlambda. Here is it:

and the fun thing is to read the annotated js sources which are used in that page.
Why is so slow?
  • I am a js noob and I made some time consuming mistakes, I hope so!
  • or the program, which is written this time for humans, it spends the most time to give meaning to stuff, which is of course time consuming,
  • or js is not good for this and I should pass to something else, like C.
Which is which? I want to do lots of stuff with this basis. There are even tokens there 🙂
I don’t know which is which but the js sources are annotated aplenty and mathematically the formalism is fun.
If you know your javascript then please show me!
Some more context:
  • the project asks how can we anchor a cost to a computation?
  • also, there is nothing special to the models of computation we have. Probably we just fond a drop in the ocean of possibilities. See the 14400 alternatives to the beta rewrite.
  • which hopefully brings the desire to have your own, private, “poured only once”, model of computation, incomprehensible to anybody else.
  • if you don’t think that there are as many other models of computation, I can prove you wrong by showing several other alternatives, which you know (or specialist know) as calculus, or knot theory 🙂

But for this, and also for other reasons (like if I want to paint a canvas 5 times/second to show you the molecules and (reasonable) physics in action), I have to know if I can do it as fast as I did it with not for humans scripts in awk used previously.

Not to talk about gamifying all this stuff, which is certainly possible if this first step is sufficiently fast.

And finally, I ask: why does a browser have a 1GB footprint if I can’t do fast things like this? Is like I am in a kitchen, preparing some fancy food, and over my shoulder there is always a policeman which asks me: “is this a crumb of bread? let me put it in the heap of bread crumbs. Is this a piece of a potato, let me put it in the heap of potato pieces”. Why, policeman? Who gives a shit? I certainly know what to keep and what to throw away! “Is for your help”, says the policeman. Well, FY, if so, give me back the GOTO and give me a  break.

But probably I am a js noob. Hope so. Prove me so.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s