473,385 Members | 1,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

a bizarre take on the fibonacci sequence

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
16 1702
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
<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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Niks | last post by:
Can anybody explain me what is a "Fibonacci search"? even an URL will do. Thanks for reading.
12
by: CII | last post by:
Hi everybody. I've been reading posts a year old about the fibonacci series right on this newsgroup, and while it's not directly games related, I'll share my own notes as well. On another...
14
by: felixnielsen | last post by:
Im actually kinda embarassed to ask this question... @code start #include <iostream> int main() { unsigned long long a = 1; unsigned long long b = 1; for (int i = 0; i < 45; i++) { a += b;...
0
by: misho | last post by:
Write a C program using the fork() system call that that generates the Fibonacci sequence in the child process. The number of the sequence will be provided in the command line. For example, if 5 is...
3
by: veeru | last post by:
Hi All, Can anyone tell about how to create a FIBONACCI series in VB.Net and C# Thanks in Advance, Veeru
6
by: Andrew Tatum | last post by:
I'm having some problems with the below equation. I have no problems when it comes to positives. Negatives create the problem.. C 2 1 4 However, this doesn't work:
5
by: coleslaw01 | last post by:
Hello, I am trying to teach myself C++ while babysitting a stable network in Iraq and have put together a program to display the fibonacci sequence. It works with long and long double(output in...
1
by: iugamage | last post by:
Help me to write a C program using the fork() system call that that generates the Fibonacci sequence in the child process. The number of the sequence will be provided in the command line. For...
1
by: altaey | last post by:
Question Details: Write a program to find and print a Fibonacci sequence of numbers. The Fibonacci sequence is defined as follow: Fn = Fn-2 + Fn-1, n >= 0 F0 = 0, F1 = 1, F2 = 1 Your...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.