a bizarre take on the fibonacci sequence

S

showellshowell

I would like to present an unusual take on computing the Fibonacci
sequence using Javascript. Please try out the following link in
Firefox (sorry, having problems with other browsers):

http://webstervanrobot.com/

Click the "multi step" link to see it in action.

I am posting this mostly for entertainment value, and to show off some
of the power of Javascript. But I'm also hoping to solicit some
advice for making this work in other browsers.

Enjoy!

Steve
http://webstervanrobot.com/
 
S

Stevo

I would like to present an unusual take on computing the Fibonacci
sequence using Javascript. Please try out the following link in
Firefox (sorry, having problems with other browsers):

http://webstervanrobot.com/

I generally don't click on people's links, far too dangerous.
I am posting this mostly for entertainment value, and to show off some
of the power of Javascript. But I'm also hoping to solicit some
advice for making this work in other browsers.

LOL! "power" ? To calculate Finbonnaci sequence ? I would think that the
weakest language on the weakest computer system ever invented would have
no trouble calculating Fibonnaci sequence.
 
A

Aaron Gray

I would like to present an unusual take on computing the Fibonacci
sequence using Javascript. Please try out the following link in
Firefox (sorry, having problems with other browsers):

http://webstervanrobot.com/

Click the "multi step" link to see it in action.

I am posting this mostly for entertainment value, and to show off some
of the power of Javascript. But I'm also hoping to solicit some
advice for making this work in other browsers.

As you say "bizarre" !

Aaron
 
S

showellshowell

I generally don't click on people's links, far too dangerous.


LOL! "power" ? To calculate Finbonnaci sequence ? I would think that the
weakest language on the weakest computer system ever invented would have
no trouble calculating Fibonnaci sequence.

Actually, since the sequence is infinite, you'd need a very large
computer system with a very reliable power supply.
 
S

Stevo

Actually, since the sequence is infinite, you'd need a very large
computer system with a very reliable power supply.

Meh! I could calculate the sequence to infinity on my cellphone in 5
minutes flat ;-)
 
M

Mike Duffy

Stevo said:
(e-mail address removed) wrote:
I generally don't click on people's links, far too dangerous.

How do you decide what is safe? Even a reputable site like google is full
of other people's links. Or do you just mean that you do not trust the
people who post here?
 
J

John W Kennedy

Stevo said:
I generally don't click on people's links, far too dangerous.


LOL! "power" ? To calculate Finbonnaci sequence ? I would think that the
weakest language on the weakest computer system ever invented would have
no trouble calculating Fibonnaci sequence.

You're missing something cute: a JavaScript program that interprets a
Ruby-like language that drives a turtle that functions as a sort of
Turing machine with a 2-dimensional tape that calculates the Fibonnaci
sequence. Funniest thing I've seen in its way since I saw, at Brown, in
1967,
a 360/50
running a virtual machine called SOS
running a virtual machine called SEXATAC
running a virtual 4-bit pegboard-and-relay machine;
the real pegboard-and-relay machine (called SSTARC) was faster.
 
S

showellshowell

You're missing something cute: a JavaScript program that interprets a
Ruby-like language that drives a turtle that functions as a sort of
Turing machine with a 2-dimensional tape that calculates the Fibonnaci
sequence.

Are you saying such a thing actually exists? Send me the link! :)
Funniest thing I've seen in its way since I saw, at Brown, in
1967,
    a 360/50
       running a virtual machine called SOS
          running a virtual machine called SEXATAC
             running a virtual 4-bit pegboard-and-relay machine;
the real pegboard-and-relay machine (called SSTARC) was faster.

I've thought about how hard it would be to a bootstrap a language
without any variables to be able to interpret itself. It was
challenging enough just to get it Webster to compute a simple
arithmetic series. Maybe in the next lifetime.

Has there ever been an attempt to write a Javascript-based Javascript
implementation? I'm not sure what the benefit would be...maybe the
ability to debug itself?
 
S

Stevo

Has there ever been an attempt to write a Javascript-based Javascript
implementation? I'm not sure what the benefit would be...maybe the
ability to debug itself?

I'd be concerned it would at some point become self aware and treat
these programs it's asked to interpret as an attack and initiate the
skynet self defence program.
 
H

Henry

On Sep 17, 5:15 am, "(e-mail address removed)" wrote:
Has there ever been an attempt to write a Javascript-based
Javascript implementation?

Yes, at least 3. E.G:-

I'm not sure what the benefit would be...maybe the
ability to debug itself?

A pre-request of writing an ECMAScript engine (assuming the result was
a 100% conforming implementation) in ECMAScript would be an ability to
fully understand the language (all of it, from tokenisation through to
execution). The result could be a useful code manipulation/
verification tool for use in browser environments, but otherwise might
be pretty pointless.

Most of the existing attempts (including Narcissus) 'cheat' and end up
using the underlying language for things like regular expressions
instead of implementing them themselves.
 
S

showellshowell

[...]
A pre-request of writing an ECMAScript engine (assuming the result was
a 100% conforming implementation) in ECMAScript would be an ability to
fully understand the language (all of it, from tokenisation through to
execution). The result could be a useful code manipulation/
verification tool for use in browser environments, but otherwise might
be pretty pointless.

It seems like the manipulation/verification problem is a good one to
solve. You don't necessarily need self-hosting to achieve it, but
having the lower level tools in Javascript obviously opens the doors
for lots of people to improve it.

Most of the existing attempts (including Narcissus) 'cheat' and end up
using the underlying language for things like regular expressions
instead of implementing them themselves.

Understandable.
 
T

The Magpie

Mike said:
How do you decide what is safe? Even a reputable site like google is full
of other people's links. Or do you just mean that you do not trust the
people who post here?
Well, essentially the best way is to use tools like the AVG SafeSite
scanner - but that will not track links in emails, so as a general
rule you just don't use them.
 
J

Jorge

Well, essentially the best way is to use tools like the AVG SafeSite
scanner - but that will not track links in emails, so as a general
rule you just don't use them.

How funny the PC guys... jejeje. Get a Mac !
 
S

Sherm Pendley

Jorge said:
How funny the PC guys... jejeje. Get a Mac !

I do have a Mac. People like you make me ashamed to admit it. Grow up,
moron - it's a computer, not a f**king religion.

sherm--
 
J

Jorge

I do have a Mac. People like you make me ashamed to admit it. Grow up,
moron - it's a computer, not a f**king religion.

Heavy worder :
That we can surf freely to any page is a fact not a matter of
religion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,356
Latest member
Tommyhotly

Latest Threads

Top