tag:blogger.com,1999:blog-5983110881018172452.post4444191241849743770..comments2023-03-25T02:55:49.760-06:00Comments on Bot Thoughts: Infinite Output in Different LanguagesMike Shimniokhttp://www.blogger.com/profile/17602015624941667574noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-5983110881018172452.post-71555909865526002562014-02-19T01:23:38.818-07:002014-02-19T01:23:38.818-07:00Pascal:
Program z;
begin
while true do
...Pascal:<br />Program z;<br />begin<br /> while true do <br /> write('x');<br />end.<br /><br />or<br />Program z;<br />begin<br /> repeat <br /> write('x');<br /> until false;<br />end.<br /><br />or if you like bad programming structure even ...<br />Program z;<br />begin<br />a: write('x');<br /> goto a;<br />end.<br /><br />Arduino:<br />void setup() { Serial.begin(9600);}<br />void loop() { Serial.write(1); }<br /><br />Javascript: (html tag not allowed in this comment box, so tag modified)<br />html><br />body><br />script type="text/javascript"><br />i=0 while (i<1)<br />{<br />document.write("1")<br />}<br />/script><br />/body><br />/html><br />Electronic Kiwihttps://www.blogger.com/profile/03744532848554410736noreply@blogger.comtag:blogger.com,1999:blog-5983110881018172452.post-39188761059092156462014-02-17T20:29:49.958-07:002014-02-17T20:29:49.958-07:00C/C++
main(){for(;;)puts("1");}
CSH
whi...C/C++<br />main(){for(;;)puts("1");}<br /><br />CSH<br />while(1)<br />echo 2<br />end<br /><br /><br />Fortran 90<br /><br />PROGRAM X<br />DO WHILE(1)<br />WRITE(*,*)'3'<br />ENDDO<br />END<br />JesseJayhttps://www.blogger.com/profile/16776490988500940947noreply@blogger.comtag:blogger.com,1999:blog-5983110881018172452.post-92114518558624995462014-02-16T23:22:18.689-07:002014-02-16T23:22:18.689-07:00Fair enough. Now, to make things more interesting,...Fair enough. Now, to make things more interesting, how about an example of your own? :)Mike Shimniokhttps://www.blogger.com/profile/17602015624941667574noreply@blogger.comtag:blogger.com,1999:blog-5983110881018172452.post-50236062797109565262014-02-16T20:49:17.151-07:002014-02-16T20:49:17.151-07:00Er, what I should have said is you can replace &qu...Er, what I should have said is you can replace "." with 1 to make the Python example shorter.DavidEGraysonhttps://www.blogger.com/profile/14463390566152982599noreply@blogger.comtag:blogger.com,1999:blog-5983110881018172452.post-356152984391143312014-02-16T20:47:37.538-07:002014-02-16T20:47:37.538-07:00I don't really see what's interesting abou...I don't really see what's interesting about the Python one. Also you can make it shorter by getting rid of the quotes.DavidEGraysonhttps://www.blogger.com/profile/14463390566152982599noreply@blogger.comtag:blogger.com,1999:blog-5983110881018172452.post-59810808277640233312014-02-16T16:48:20.081-07:002014-02-16T16:48:20.081-07:00Whitespace would be another fun language to progra...Whitespace would be another fun language to program infinite output in.Tedhttps://www.blogger.com/profile/17446200010203354724noreply@blogger.comtag:blogger.com,1999:blog-5983110881018172452.post-35294304869681851852014-02-15T07:13:52.830-07:002014-02-15T07:13:52.830-07:00Hi there. If you liked brainf*** you will love bef...Hi there. If you liked brainf*** you will love befunge, the infinite output in this language is also pretty neat :<br /><br /> .<br /><br />Yep, a single point will output zeros until the end of times.simbilouhttps://www.blogger.com/profile/16778643170208627933noreply@blogger.com