473,786 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1731
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******** *************** ***********@v39 g2000pro.google groups.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.inva lidwrote:
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.inva lidwrote:
>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.invali dwrote 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...@attglo bal.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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
7745
by: Niks | last post by:
Can anybody explain me what is a "Fibonacci search"? even an URL will do. Thanks for reading.
12
2706
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 newsgroup there is an ongoing discussion about the famous fibonacci sequences, and a fine program written by a poster got my attention so just for fun I wrote one myself and put it on the web just about two days ago. It can be found on the site ...
14
4946
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; std::cout << a/b << std::endl;
0
3302
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 provided, the first five numbers in the Fibonacci sequence will be output by the child process. Because the parent and child processes have their own copies of the data, it will be necessary for the child to output the sequence. Have the parent invoke...
3
11983
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
4975
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
2470
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 exponent though) After sequence 47 using long type the program won't display the output properly (I am assuming because of size limit of type) so I switched type to unsigned long and now number 49 outputs as 512559680 when it should be 4807526976 ...
1
6368
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 example, if 5 is provided, the first five numbers in the Fibonacci sequence will be output by the child process. Because the parent and child processes have their own copies of the data, it will be necessary for the child to output the sequence. Have the...
1
8837
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 program should prompt the user to enter a limit and indicate whether the last number in the sequence printed is either even or odd.
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9492
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.