By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,261 Members | 1,658 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,261 IT Pros & Developers. It's quick & easy.

a bizarre take on the fibonacci sequence

P: n/a
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/

Sep 16 '08 #1
Share this Question
Share on Google+
16 Replies


P: n/a
sh************@gmail.com wrote:
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.
Sep 16 '08 #2

P: n/a
<sh************@gmail.comwrote in message
news:d5**********************************@v39g2000 pro.googlegroups.com...
>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
Sep 16 '08 #3

P: n/a
On Sep 16, 10:51*am, Stevo <n...@mail.invalidwrote:
showellshow...@gmail.com wrote:
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.
Actually, since the sequence is infinite, you'd need a very large
computer system with a very reliable power supply.
Sep 16 '08 #4

P: n/a
sh************@gmail.com wrote:
On Sep 16, 10:51 am, Stevo <n...@mail.invalidwrote:
>showellshow...@gmail.com wrote:
>>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.

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 ;-)
Sep 16 '08 #5

P: n/a
Stevo <no@mail.invalidwrote in news:ga*************@news.t-online.com:
sh************@gmail.com 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?

Sep 17 '08 #6

P: n/a
Stevo wrote:
sh************@gmail.com wrote:
>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.
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.

--
John W. Kennedy
Read the remains of Shakespeare's lost play, now annotated!
http://pws.prserv.net/jwkennedy/Doub...ood/index.html
Sep 17 '08 #7

P: n/a
On Sep 16, 8:05*pm, John W Kennedy <jwke...@attglobal.netwrote:
showellshow...@gmail.com wrote:
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/


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?


Sep 17 '08 #8

P: n/a
sh************@gmail.com wrote:
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.
Sep 17 '08 #9

P: n/a
On Sep 17, 6:15*am, "showellshow...@gmail.com"
<showellshow...@gmail.comwrote:
>
Has there ever been an attempt to write a Javascript-based Javascript
implementation?
http://www.google.com/search?q=beaut...ied+javascript

--
Jorge.
Sep 17 '08 #10

P: n/a
On Sep 17, 5:15 am, "showellshow...@gmail.com" wrote:
<snip>
Has there ever been an attempt to write a Javascript-based
Javascript implementation?
Yes, at least 3. E.G:-

<URL: http://en.wikipedia.org/wiki/Narciss...aScript_engine) >
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.
Sep 17 '08 #11

P: n/a
On Sep 17, 3:09*am, Henry <rcornf...@raindrop.co.ukwrote:
[...]
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.

Sep 17 '08 #12

P: n/a
Mike Duffy wrote:
Stevo <no@mail.invalidwrote in news:ga*************@news.t-online.com:
>sh************@gmail.com 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?
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.
Sep 17 '08 #13

P: n/a
On Sep 17, 5:10*pm, The Magpie <use...@pigsinspace.co.ukwrote:
Mike Duffy wrote:
Stevo <n...@mail.invalidwrote innews:ga*************@news.t-online.com:
showellshow...@gmail.com 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?

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 !

--
Jorge.
Sep 17 '08 #14

P: n/a
On Wed, 17 Sep 2008 09:27:53 -0700, Jorge wrote:
On Sep 17, 5:10*pm, The Magpie <use...@pigsinspace.co.ukwrote:
>Mike Duffy wrote:
Stevo <n...@mail.invalidwrote
innews:ga*************@news.t-online.com:
>showellshow...@gmail.com 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?

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 !
A Mac is a PC.

--
I told you this was going to happen.

Sep 17 '08 #15

P: n/a
Jorge <jo***@jorgechamorro.comwrites:
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--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
Sep 17 '08 #16

P: n/a
On Sep 17, 6:40*pm, Sherm Pendley <spamt...@dot-app.orgwrote:
>
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.

--
Jorge.
Sep 17 '08 #17

This discussion thread is closed

Replies have been disabled for this discussion.