Talk:Befunge

From Esolang
Jump to navigation Jump to search

I see Befunge is categorized as Cell-based. Shouldn't it be stack-based? I realize that you can use self-modification to emulate cell-based data storage, but I don't think that should count. In fact, we should probably have a category for languages capable of self-modification. --Rune 21:33, 5 Jun 2005 (GMT)

A lot of the categories on the wiki (at the time of this writing) are a bit overdone IMO. I agree that having a "self-modifying" category would be a lot more useful than "cell-based" (which is pretty subjective) or "zero-dimensional" (which is pretty rare.) --Chris Pressey 22:48, 5 Jun 2005 (GMT)
Sorry for that, I'm not really a Befunge programmer. I'm trying to put categories to some languages but seems that I've been mistaken this time. pgimeno 23:03, 5 Jun 2005 (GMT)

Other Funges

What should we do about Befunge-98 and other Funges? Should we have a separate article, or put it in a sub section here? Both options has merits in my opinion. --Rune 22:03, 14 Jun 2005 (GMT)

At this point I think it should probably be a seperate article... when I get around to it.  :) --Chris Pressey 21:32, 5 Jul 2005 (GMT)

Computational class

It's probably worth noting that a trivial extension of Befunge-93 in which it can hold arbitrary integers on the stack is likely to be TC, thanks to the swap instruction which makes it possible to implement a Minsky machine. All that would be pending to check is if 80x25 is enough for the finite-state automaton needed. My guess is that the answer is yes. --pgimeno 08:32, 21 Jun 2005 (GMT)

That's very insightful, and an interesting question, on a couple of counts:
  1. Minsky machines are quite primitive (think OISC), but Befunge instructions are more powerful, and each one can (probably) represent many Minsky machine instructions.
  2. The stack might also be used as a form of virtual memory (think of "swapping out" the playfield to the stack - you could probably roughly double the 80x25 capacity.)
  3. This seems to amount to writing a "universal Minsky machine", and I'm not sure if anyone has considered that concept (to the degree that it's been analyzed for Turing machines. I'm planning to get Minsky's book from the library tomorrow, though, and I'll see if he has anything to say about the idea.)
  4. It still has to be able to run programs of arbitrary size - and where would you store them? On the stack? If so, would you be able to access the instructions in the needed order? --Chris Pressey 00:13, 24 Jun 2005 (GMT)
(My reply starts here)
About point 4, the assumption is that the stack is preloaded with a number representing the program to run, just as an UTM can emulate a TM when the tape is preloaded with the TM to emulate.
About point 2, I don't think that that could possibly help; anyway the power of Befunge will probably be enough for 80×25 to suffice. The multiply, divide and modulo operators can greatly simplify some of the operations needed. --pgimeno 19:28, 25 Jun 2005 (GMT)
Re point 4: But wouldn't that require three stack entries (program, register #1 and register #2)? Whereas Befunge only lets you randomly access (i.e. swap) the top two?
FWIW I'm pretty sure pre-loading isn't necessary; you could write a very small routine which reads the program (in say binary form) from the input, and creates the stack cell, before starting. --Chris Pressey 16:59, 26 Jun 2005 (GMT)
According to the Wikipedia "Counter" article (see Step 3 at the bottom) one of the counters is used as a temporary storage and the other one holds in one single integer the 4 counters that implement the TM tape (though actually I think that 3 counters should suffice since only one scratchpad at a time is needed). The Befunge program should take the role of the FSM that performs the coding/decoding of the counter as tape contents and interprets the tape contents as a TM.
Unfortunately the numbers of the form 2x×3y×5z grow too quickly for a practical implementation to be feasible, even using bignum libraries.
I think, however, that the availability of modulus, division and multiplication operations makes the scratchpad counter unnecessary; if so, each counter can be used as one of the stacks that are needed to simulate the tape, eliminating the need of using exponential coding (only steps 1 and 2 of the Counter article would be needed, replacing the need of two counters in step 2 by the modulus, division and multiplication operations).
About preloading, you're right - I didn't think of using the input stream as a means of feeding the program in.
--pgimeno 18:31, 26 Jun 2005 (GMT)
As a clarification: the program is actually part of the initial tape contents. That's how an UTM encodes the program.
--pgimeno 13:34, 27 Jun 2005 (GMT)
OK. In 14.2 of Computation, Minsky gives a (sketchy) proof that you only need one register if you have multiplication and conditional division (divide by some constant if the number is divisible by that constant, otherwise branch - which is easily done in Befunge with dup, modulo and test.) This seems to agree with what you're saying (insofar as I follow you. and regardless of practical concerns.)
I think the only serious issue remaining is whether the "universal driver" FSA can be coded in 80x25 Befunge instructions. I'm still undecided. They're powerful instructions, but, there's a reason Minsky's proof is sketchy - it's all like "we know A is equivalent to B, and that B is equivalent to C, which is equivalent to a TM" - he doesn't actually build a one-register universal machine. I imagine it could get quite large... only one way to find out, though. --Chris Pressey 20:51, 27 Jun 2005 (GMT)
I think I have done just that (proven that a Befunge-93 interpreter which can hold arbitrary integers in the stack is TC). I didn't implement a Minsky machine, but rather an interpreter of classic dbfi style brainfuck. First I modified mtve's befunge interpreters in perl and c to handle arbitrary bignums in the stack (new sources here and here). My brainfuck interpreter in befunge is here. It stores the code as one bignum and the brainfuck tape as another bignum. It also uses some self-modification, and stores a temporary integer in the codespace; however, it does not write bignums to the codespace. Hence, the implementations of "[" and "]" have to jump through some hoops to allow arbitrarily deep nestings. A much faster brainfuck interpreter in befunge could be written if one kept track of the nesting count by storing the number in a codespace location, but my intention was to prove TC for this dialect(?) of befunge, so I had to allow arbitrarily deep nestings. The perl code was just for debugging the befunge code (plus, it's super easy to add bignums to perl), so use the c code to try this out.
> gcc -O3 -o bigbef_me bigbef_me.c -lgmp
  • Try some brainfuck code that prints out a single "$":
> echo -n '++++++[>++++++<-]>.!' | ./bigbef_me brainfuck.bf
> echo -n '!' | cat 99bottles.b - | ./bigbef_me brainfuck.bf
> echo -n '!++++++[>++++++<-]>.!' | cat dbfi.b - | ./bigbef_me brainfuck.bf
--Nthern 19:20, 20 September 2007 (UTC)
Very nice work, dude! It's a shame the original Befunge-93 was defined to use finite values in its stack, but it seems it was common to set limits like that in esolanguages back in the day, instead of just making implementations that don't allow infinite values. Anyways, this is a great achievement in itself, even if it requires a special dialect. --Keymaker 20:12, 20 September 2007 (UTC)

No longer esoteric???

Found this via Google. Be afraid. Be very afraid. --IanO 21:17, 26 Sep 2005 (GMT)

That site looks like one of those commercial sites made by some company that wants to make money from the internet and things that it's a professional company. Yep, one of those that uses .asp for their site and has pictures of people with the camera angle from above (check the main page). The makers of the site you link at don't even know what an esoteric programming language is, they just saw the name Befunge in a list of programming languages somewhere so added it. --Aardwolf 21:23, 26 Sep 2005 (GMT)
Befunge is not the only one they're offering:
* http://www.expertrating.com/jobs/Programming-jobs/Intercal-Programmer-jobs.asp
:D --Rune 21:49, 26 Sep 2005 (GMT)
Haha, that is fun.. Only if they knew.. Someone should request more information about Befunge programming, preferably acting like one has no idea at all about it. :D

A grammar note

The following sentence:

The word "Befunge" started life as a typographical error for the word "before," typed by Curtis Coleman at 4AM on a BBS chat system.

Was changed by User:Aardwolf (by moving the comma) to:

The word "Befunge" started life as a typographical error for the word "before", typed by Curtis Coleman at 4AM on a BBS chat system.

And then reverted by Graue, who suggested that Aardwolf 'leave the pedantry to those of us who know the rules'. An ironic statement, as both The Oxford Guide To The English Language and the Chicago Manual of Style state that the comma would go inside the quotation if and only if either a comma or a period occur in the material being quoted at that point. I anticipate this causing an argument, so have added this section (and haven't moved the comma again). Clearly the phrase 'the word "before"' is not a direct quotation (as what was actually typed was 'befunge'), and in this situation the comma would never appear inside the 'quotation'. --Safalra 16:02, 6 Oct 2005 (GMT)

I am not a native english speaker, but I also thought that comma inside the quote looked very odd. But then again, we might be making way too much fuzz about just a little comma here... --Rune 16:33, 6 Oct 2005 (GMT)
Okay, I suppose I'll trust the authorities you list. (I may have made that same error, if it was indeed an error, elsewhere as well.) Still, questions should not appear in edit summaries; the Graue Manual of Style forbids it. --Graue 20:28, 6 Oct 2005 (GMT)
Allright, peace man --Aardwolf 11:44, 7 Oct 2005 (GMT)

Yet Another Befunge Interpreter

Hi there.

I have written yet another Befunge93 interpreter (named YABI93). When I began doing so, I didn't know the JavaScript one and thaught it would be somewhat useful to have a platform-independent interpreter.

This was my very first java program and now that I got a little bit more used to object-orientation, I see that the sources are pretty ugly. But it works pretty good. And that's what counts for me at the moment.

Of course it's open source.

You can take a closer look at the project homepage: http://yabi93.sourceforge.net

I didn't know up to today that there is still such a living Esolang community. You peple around here seem to be real enthusiasts, which is great and you could be the first ones that give me a real feedback. Please test my program and discuss it with me. You can even join the "project team" that currently consists only of one person if you want. Or maybe you want to contribute a translation?

Well, I feel like I finally have arrived. ;) I'm looking forward to reading from you. --Efi 20:47, 15 Dec 2005 (GMT)

Well, I guess I could say that the applet doesn't load. The geek dump is "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5". --Ihope127 21:13, 15 Dec 2005 (GMT)
I'm sorry for the confusion. The applet thing was just a test for the new beta version's hybrid classing (It will be applet and aplication in one .jar-file). The current Program is avaiable at http://sourceforge.net/projects/yabi93 (The files are here.) Please notice that YABI93 only runs with the newest Java RuntimeEnvironment (1.5.) I hope this is no fundamental problem. I'm already working on a 1.4-version. --Efi (Thomas Efer) 13:19, 16 Dec 2005 (GMT)
Ah. But still... it doesn't load ;-) Anyway, that program works quite nicely, except for the fact that it seems to mostly be in German. --Ihope127 15:29, 16 Dec 2005 (GMT)
Try using the command-line parameter en this should make it a lot more English. ;) Thx. for trying it out. --Efi (Thomas Efer) 15:52, 16 Dec 2005 (GMT)
Ahh yes... it's much more English now. It doesn't seem buggy so far, but then again, I don't know Befunge very well and thus can't test it. ;-) Nice work. --Ihope127 19:49, 16 Dec 2005 (GMT)

Programs without Put or Get

It seems to me that Put (p) and Get (g) are used in any program where it is necessary to access the third or lower values in the Stack. So I wrote a program which prints the first 15 Fibonacci numbers, without using Put or Get.

00:.1:.>:"@"8**++\1+:67+`#@_v
       ^ .:\/*8"@"\%*8"@":\ <

As Put and Get have the ability to modify a Befunge program's own sourcecode, surely it's more ideal to use alternate methods to do something as simple as access the third or lower values in the Stack?

Unfortunately, if all values in the Stack must be a certain length (signed long int, as the Befunge-93 documentation says, for example), you can only access a certain way down the Stack. If the integers were of an arbitrary length, any value in the Stack would be accessable. This would also lead it to be, in extension, Turing complete. A way of doing this is to merge the two top values into eachother, such as 01100010 (98 = b) and 01100110 (102 = f) would become 01100110 01100010 (26210 = f b). The code I use to do this is:

"@"4**+

And its reverse, to unmerge the two values, is:

:"@"4*%\"@"4*/

These can both be used as many times as needed, to merge as many values as the integer length allows. The example given shifts the number left 8 bits ("@"4* = 256), but can be changed depending on what is required.

-Marz 20:00, 7 December 2007 (UTC)

Interpreter quality

I did some major testing of current Befunge-98 interpreters. The results are freely available for the perusal of anybody interested.

The results are, of course, somewhat biased, since I've done the whole thing by myself and can't guarantee that I've correctly interpreted everything in the spec. Still, my interpreter is the only one that gets through all the tests without dying.

Feel free to send me e-mail if you have anything to say on the subject. I'll try to monitor any discussion here, as well.

Deewiant 19:21, 9 January 2008 (UTC)

The entire Befunge-implementing world (all 12 of us!) owes you a debt of gratitude for this project. So: Thanks! --Chris Pressey 19:14, 28 November 2010 (UTC)

Hello World

The Hello World example:

<v"Hello world"0
 <,_@#:

seems more complex than necessary. Shouldn't

"Hello World",,,,,,,,,,@

work as well? Of course, it demonstrates nothing of Befunge's peculiarities. wr 87.139.81.19 11:34, 10 April 2008 (UTC)

Not quite. Your program prints out "dlroW olle". It should be:
"dlroW olleH",,,,,,,,,,,@
--Keymaker 13:43, 10 April 2008 (UTC)
I think that the purpose of example programs like the Hello World programs is to show off the way that a language typically behaves; the Befunge example shows a loop that's a typical way to print out strings in Befunge, and it would be a shorter way if a long string was used. Hello world programs in C aren't written as putchar('H'); putchar('e'); and so on, even though it's 'simpler' in some sense. --ais523 16:40, 11 April 2008 (UTC)

Compilation

I was running through the article and I had an idea. Wouldn't it be at least possible to remove the need for threaded code and recompilation and use self-modifying x86 code? All the code and data are stored in the same memory, if not the same segment. So couldn't a little snippet along the lines of

PUSH CS
POP DS

Allow direct manipulation of the code? It wouldn't be small, as the code would have to be made into "tokens" of identical sizes, padded with real NOPs, 90h. It still wouldn't be truly compiled, but I think it'd be a step up from multiple simultaneous versions of the same code. --ToothPic 05:43, 1 July 2008 (UTC)

I think the relevant sentence in the article is "Note that the bf2c compiler is not correct since it does not handle p correctly, but it would not be impossible to make it do so (although the C language might not be well-suited for this.)" What you're suggesting would be an implementation of this feature, if I understand you. But there is still the problem that any given sequence of Befunge instructions could be executed forwards or backwards, so you are still on the level of threaded code: your "tokens" have to be executable in multiple orders.
Although, I guess one thing you could do is, every time you change the PC's direction, rewrite all the "directional" JMPs in the program to conform to the new direction... I can't imagine this being terribly efficient except for programs where the PC hardly ever changes direction... --Chris Pressey 19:04, 28 November 2010 (UTC)

What about editor of Befunge programs?

Who knows, are there any editors for Befunge (where it is possible both to write programs and to run it)? Of course, interpreter is a good thing, but... BurSer 20:22, 20 January 2010 (UTC)

My Yabi93-Interpreter (http://sourceforge.net/projects/yabi93/) works as a basic IDE. With command line parameter en you get it in English. --Efi (Thomas Efer) 07:28, 26 January 2010 (UTC)
I'm working on a befunge editor/interpreter, however it is in Petit Computer (for the DSi/3DS), which can no longer be purchased. You can make a befunge editor IN befunge, though:
~&&p
(to exit from the editor, just put a space or something where the p is, etc.) 12Me21 (talk) 13:12, 24 April 2015 (UTC)

I've started on an editor/interpreter/debugger for vim. Vim's already pretty good with r/R for replacement editing & being able to block select. Still needs a lot of work, mostly focused on the interpreter portion at first104.163.150.67 23:25, 28 April 2016 (UTC)

Befunge-93 really 2d

Maybe not worth mentioning, but as I read Befunge-93 uses 80x25 memory cells , thus incrementing the pointer up and down instead of left and right means just adding or substracting 80 from it. In the same way one could define a 1d chess by just saying well the pawn moves eight forward. --(this comment by Mahagugu at 15:37, 16 January 2014‎ UTC; please sign your comments with ~~~~)

that is true, but...12Me21 (talk) 13:13, 24 April 2015 (UTC)

A Befunge-93 code generator

Hi there, I have written an open-source "procedural language"-to-Befunge compiler.

You can create really complex Befunge code, by writing it in a "normal" c-like language and then compile it to Befunge-93 code (except it can exceed the 80x25 size limitations, so Befunge-98 code ?)

You can download it from Github (https://github.com/Mikescher/BefunGen), or my website (http://www.mikescher.de/programs/view/BefunGen).

Oh and here is a quick example of the Game Square-It in Befunge (http://pastebin.com/raw.php?i=1d2U399C).

I really had fun programming it, and perhaps someone else wants to test/use it too.

--Mikescher (talk) 10:25, 5 August 2014 (UTC)

Funge-98 with infinite but repetitive initial program may be TC with only <>/etc instructions

sup it's your man Bike from IRC

By "<>/etc" I mean <> and higher dimensional analogues, i.e. ^v in 2-funge, lh in 3-funge, unnamed others in higher fungespaces. The -98 arbitrary delta instruction shouldn't be necessary, just the absolute alteration ones.

Coming at this from a continuous perspective. A smooth vector field in Euclidean 3-space (I think it's 3 anyway) can run a UTC (D. S. Graça, M. L. Campagnolo, and J. Buescu. Computability with polynomial differential equations. Advances in Applied Mathematics, 40(3):330-349, 2008). A vector field (section) can just be thought of as the assignment of a tangent vector, i.e. direction, to every point in the space; the analogy to Funge with <>ish only is hopefully obvious. N-funge/<> looks like a discretization of an n-dimensional vector field.

I can give a more explicit construction based on Minsky machines. An n-register Minsky machine's state can be entirely described by n+1 nonnegative integers, the registers plus an instruction pointer. In dynamics terms this just says the phase space of the machine is n+1-dimensional , so we ought to be able to describe its operation completely by moving through n+1 dimensional space with no "instructions", i.e. a vector field.

To translate an n-register Minsky machine into n+1-funge/<>, pick one dimension as the instruction pointer dimension, and assign higher dimensions as registers. The state of the Minsky machine will be a position in n+1-fungespace. Pick an origin; divide fungespace in n dimensions into infinitely many 3-wide n-cubes (e.g. for a 2-register Minsky machine, 3×3 squares). We could probably do this with 2-wide cubes but I like me some symmetry.

The cube will be tiled identically over each plane, representing an instruction. E.g. let's say we're doing a 2-register machine, and the third instruction is an increment of the first register, which is a decrement of register 1. We've chosen register 1 to be east/west, so our plane looks like this:

 etc
hhhhhh
 <h <h
hhhhhh
hhhhhh
 <h <h etc
hhhhhh

The h's not directly to the right of a < are obviously pointless. Put spaces there if you want I guess.

Actually let's go ahead and give each instruction two planes. The second plane will just make sure the funge pointer is in the center of the block. So the plane above that one is a tiling of

v<v
>h<
^>^

Hopefully I'm explaining this clearly enough.

This works well enough for decrements and increments in n dimensions. If we made the tiling infinite in all directions we'd have a simple emulation of unit step walks with an explicit time dimension. But we need jumps.

The jumps in a Minsky program are fixed. For each register, count the number of targets of jump instructions, i.e. the x in "decrement rN or jump to x". Allocate that many funge squares to the "left" of the origin, assigning one to each jump target. For instance let's say we're still doing our 2-register machine, and it has four jump targets for register 1 jumps. We revise our plane above to

    hhhhhh
 l   <h <h
    hhhhhh
    hhhhhh
 l   <h <h
    hhhhhh

so if we try to decrement from 0 in the reg1 dimension, we go down in the IP dimension instead. At the target of the jump, let's say an increment the r2 instruction, we just move appropriately:

    h hh h
 >   ^hh^h
    hhhhhh
    h hh h
 >   ^hh^h
    hhhhhh

This puts us at the appropriate plane position. For the odd but legitimate case that the Minsky program jumps to a jump (something like "1: decrement r1 or jump to 2; 2: decrement r1 or jump to 7;") we just have to make sure that the target of the latter jump is to the right of others, something like

    hhhhhh
 > l <h <h
    hhhhhh
    hhhhhh
 > l <h <h
    hhhhhh

and that's about it, really. Minsky programs are hard to come by which is my excuse for the lack of an explicit test here.

69.166.47.145 05:51, 7 October 2014 (UTC)

Befunge programs?

I've been working on a befunge interpreter, but I can't find any complex programs to test it with. I need programs that make use of all the instructions, and are smaller than 32x21 (my interpreter is limited by the size of the screen, plus the need for printing space). --(this comment by 12Me21 at 13:19, 24 April 2015‎ UTC; please sign your comments with ~~~~)


Hmm, if it's befunge-93, you can test it with a hello world (outputs Hello, world!) (if you have syntax highlight, its good not bad if bottom part is not highlighted):
v>:"#"-v>:"_"-v>:">"-v>:"<"-v>:"?"-v>:"^"-v>:"v"-v>:"|"-v>:"g"-v>:"p"-v>>>22pv
  v    >|     >|     >|     >|     >|  > v>|     >|     >|v:\< >|0  < >|^\+6<>
 ^  >v  >$14gv $ v   !<     !<    <!># ?!> >!     >!   v $>1#^+#<0`#^!#<#^_ ^>
  < 4p v1+g13< > >!2*1-31p041pv   ^    <  vp130p14-1*2!< <    v   >#   #<    ^#
    10 >4p24g41g+24p v        <           <                   <  _^#g15<^$p15<
>01-^>24p131p041p051p>"P":14g31g++\%:14p36*1+:24g41g++\%:24p6+g:75*1--#^_51g!^
v>:"#"-v>:"_"-v>:">"-v>:"<"-v>:"?"-v>:"^"-v>:"v"-v>:"|"-v>:"g"-v>:"p"-v>>>22pv
  v    >|     >|     >|     >|     >|  > v>|     >|     >|v:\< >|0  < >|^\+6<>
 ^  >v  >$14gv $ v   !<     !<    <!># ?!> >!     >!   v $>1#^+#<0`#^!#<#^_ ^>
  < 4p v1+g13< > >!2*1-31p041pv   ^    <  vp130p14-1*2!< <    v   >#   #<    ^#
    10 >4p24g41g+24p v        <           <                   <  _^#g15<^$p15<
>01-^>24p131p041p051p>"P":14g31g++\%:14p36*1+:24g41g++\%:24p6+g:75*1--#^_51g!^
>25*"!dlrow ,olleH":v
                 v:,_@
                 >  ^
(you dont see here the "!dlrow ,olleH" string)(also measure execution speed with it) --79.136.173.159 07:42, 14 May 2016 (UTC)

Removed two claims

Deleted the following two claims: 1) "The practice of multiprogramming was probably first developed in Befunge." 2) "The wire-crossing problem was also possibly first considered in the context of Befunge. " The article for wire-crossing reference a 1972 book by Minsky, which "solves" the wire-crossing conjecture before it was raised. The practice of multiprogramming meanwhile, was a common hack when programming on old computers with very low memory, and certainly predates the 1992 language Befunge by 10-20 years.

Nice idea

In Befunge-98, you can use multiple threads. What about making a self-replicating program (with p and, maybe, reading itself with g)? Would be overpowered for fungewars :D.i like this captcha--79.136.173.159 07:03, 14 May 2016 (UTC)

Source of the Wumpus quote

Can anyone dig up the source for the "Hunt the Wumpus" quote? I feel like I've seen this outside of esolangs years ago when I first learned about Befunge, but I can't find anything that isn't just a restatement of the quote here, or just talks about the existing implementation by Wim Rijnders. Is this something Chris Pressey ever actually said? --Martin Ender (talk) 18:12, 9 February 2018 (UTC)

I don't know for sure, but this wiki may well be the source, as Chris Pressey himself added it in this edit (found by bisecting the page history). --Ørjan (talk) 00:47, 10 February 2018 (UTC)
Oh, that's interesting. In that case, I guess only Chris can tell us. Also, if the timestamps here are correct, that was way after Wim Rijnders implemented it. (I somehow assumed, that Wim implemented it to prove the claim that it's possible, not that the implementation was the reason for the quote.) --Martin Ender (talk) 12:46, 12 February 2018 (UTC)

An interpreter in BitBitJump

I've written a Befunge interpreter in BitBitJump. Yes, Befunge is my favorite esoteric programming language, and I wanted to know how much was needed to implement it. Actually it is very few, all the instructions except '&' and '?' are already implemented in the assembly, in terms of the move+jump instruction.

The thing is, the interpreter is 277 lines long. Where is the most adequate place to upload it? I'm new to this wiki. LuisCR (talk) 09:20, 7 February 2022 (UTC)

Try this program

",enoyreve olleH">:v
                 |,<
                 >".ereh edalbonhceT">:v
                                     |,<
v                                    <
>",siht gnihctaw er'uoy fI">:v
                           |,<
                           >".daed ma I">:v
                                        |,<
                                        @

Note for anyone who would like to download PyFunge

The normal link no longer works. However, PyFunge is accessible through pip (the Python package manager). The process is a bit odd:

  1. Make sure you have python 2.7 (you might be able to use other versions, but this is what I used. It for sure needs to be at least python 2.4 and not part of python 3.x), python 3.10 (again, you could probably use other 3.x versions but I haven't tested), and pip for both. You need both python 2.x and 3.x because the driver script that starts PyFunge only downloads in pip 3.x but the actual program only runs in python 2.x.
  2. Run pip3.10 install PyFunge
  3. Find the file pyfunge in usr/local/bin
  4. Copy that file somewhere because it will be deleted from its original location in the next step
  5. Run pip3.10 uninstall PyFunge
  6. Run pip2.7 install PyFunge
  7. Copy the pyfunge file you copied earlier and paste it back into usr/local/bin
  8. Edit that file's top line to say #!/usr/bin/python2.7 (It probably says python3.)

After that, PyFunge should be callable from the Linux shell as normal. You might want to test a few programs.


I use Windows, so I did all of this inside WSL (Ubuntu distro). I have almost no idea how Linux actually works, but from what I can tell, this should maybe probably work on actual Linux. I don't really know for sure though. BoundedBeans (talk) 00:29, 6 July 2023 (UTC)

See below ↓, in fact, you can easily use PyFunge in Windows! --None1 (talk) 09:52, 20 August 2023 (UTC)

Note for anyone who would like to download PyFunge (in Windows)

For people who don't want to use PyFunge in *nix (like me), here are some steps that allows you to download in Windows.

Requirements:

  1. Python 3
  2. Python 2.7
  3. Python launcher (optional)

Legend:

  • <PYTHON3_EXECUTABLE_PATH> is the path of your Python 3 executable (e.g. if you install Python 3 in C:\Python37\, then this will be C:\Python37\python.exe)
  • <PYTHON2_EXECUTABLE_PATH> is the path of your Python 2.7 executable (e.g. if you install Python 2.7 in C:\Python27\, then this will be C:\Python27\python.exe)
  • <PYTHON3_INSTALL_DIRECTORY> is the install directory of Python 3 (e.g. if you install Python 3 in C:\Python37\, then this will be C:\Python37)
  • <PYTHON2_INSTALL_DIRECTORY> is the install directory of Python 2.7 (e.g. if you install Python 2.7 in C:\Python27\, then this will be C:\Python27)

Steps:

  1. Run py -3 -m pip install pyfunge (note: if you don't have Python launcher you have to do <PYTHON3_EXECUTABLE_PATH> -m pip install pyfunge).
  2. Go to the directory <PYTHON3_INSTALL_DIRECTORY>\Lib\site-packages\ and copy the directory funge in that directory to the directory <PYTHON2_INSTALL_DIRECTORY>\Lib\site-packages\.
  3. create a file named pyfunge.cmd, and write @echo off&py -2 -c "__import__('importlib').import_module('funge.main').main(__import__('sys').argv)" %* in it. (note: if you don't have Python launcher you have to write @echo off&<PYTHON2_EXECUTABLE_PATH> -c "__import__('importlib').import_module('funge.main').main(__import__('sys').argv)" %*).
  4. Add pyfunge.cmd to PATH if it isn't already in.
  5. You're done! Enjoy PyFunging! :D

--None1 (talk) 09:50, 20 August 2023 (UTC)

the 99 Bottles of Beer program is incorrect

The 99 bottles of beer program

992+*: v:                                                                      <
v" ".:<_091+".reeb fo selttob erom on ,llaw eht no reeb fo selttob erom oN">:v
,v"Go to the store and buy some more, 99 bottles of beer on the wall."+910<^,_v
 >:#,_@>:101-*+v                  >$0" ,llaw eht no reeb fo ">:#,_$:.1v   ^  $<
>0\ >> ^      v_0"elttob">:#,_$\:!|   >091+".reeb fo ">:#,_$  v
              >0"selttob"^        >1-!|                               >" ",\v
>$2\ ^\2<," ".<                       >091+:".llaw eht no reeb fo "v
^_v  >  ^     |:<    v!:<"Take one down and pass it around, "0< v!:<
 !,v ^          ^:-1$_, ^                                     v$_>,^
>^  ^                                                                       <
^:<"no more "0<    

prints stuff like this

99  bottles of beer on the wall, 99  bottles of beer.
Take one down and pass it around, 98  bottles of beer on the wall.

Take one down and pass it around, 97  bottles of beer on the wall.

Take one down and pass it around, 96  bottles of beer on the wall.

Take one down and pass it around, 95  bottles of beer on the wall.

Take one down and pass it around, 94  bottles of beer on the wall.

Take one down and pass it around, 93  bottles of beer on the wall.

Take one down and pass it around, 92  bottles of beer on the wall.

Take one down and pass it around, 91  bottles of beer on the wall.

Take one down and pass it around, 90  bottles of beer on the wall.

Take one down and pass it around, 89  bottles of beer on the wall.

Take one down and pass it around, 88  bottles of beer on the wall.

Take one down and pass it around, 87  bottles of beer on the wall.

Take one down and pass it around, 86  bottles of beer on the wall.

Take one down and pass it around, 85  bottles of beer on the wall.

Take one down and pass it around, 84  bottles of beer on the wall.

Take one down and pass it around, 83  bottles of beer on the wall.

Take one down and pass it around, 82  bottles of beer on the wall.

Take one down and pass it around, 81  bottles of beer on the wall.

Take one down and pass it around, 80  bottles of beer on the wall.

Take one down and pass it around, 79  bottles of beer on the wall.

Take one down and pass it around, 78  bottles of beer on the wall.

Take one down and pass it around, 77  bottles of beer on the wall.

Take one down and pass it around, 76  bottles of beer on the wall.

Take one down and pass it around, 75  bottles of beer on the wall.

Take one down and pass it around, 74  bottles of beer on the wall.

Take one down and pass it around, 73  bottles of beer on the wall.

Take one down and pass it around, 72  bottles of beer on the wall.

Take one down and pass it around, 71  bottles of beer on the wall.

Take one down and pass it around, 70  bottles of beer on the wall.

Take one down and pass it around, 69  bottles of beer on the wall.

Take one down and pass it around, 68  bottles of beer on the wall.

Take one down and pass it around, 67  bottles of beer on the wall.

Take one down and pass it around, 66  bottles of beer on the wall.

Take one down and pass it around, 65  bottles of beer on the wall.

Take one down and pass it around, 64  bottles of beer on the wall.

Take one down and pass it around, 63  bottles of beer on the wall.

Take one down and pass it around, 62  bottles of beer on the wall.

Take one down and pass it around, 61  bottles of beer on the wall.

Take one down and pass it around, 60  bottles of beer on the wall.

Take one down and pass it around, 59  bottles of beer on the wall.

Take one down and pass it around, 58  bottles of beer on the wall.

Take one down and pass it around, 57  bottles of beer on the wall.

Take one down and pass it around, 56  bottles of beer on the wall.

Take one down and pass it around, 55  bottles of beer on the wall.

Take one down and pass it around, 54  bottles of beer on the wall.

Take one down and pass it around, 53  bottles of beer on the wall.

Take one down and pass it around, 52  bottles of beer on the wall.

Take one down and pass it around, 51  bottles of beer on the wall.

Take one down and pass it around, 50  bottles of beer on the wall.

Take one down and pass it around, 49  bottles of beer on the wall.

Take one down and pass it around, 48  bottles of beer on the wall.

Take one down and pass it around, 47  bottles of beer on the wall.

Take one down and pass it around, 46  bottles of beer on the wall.

Take one down and pass it around, 45  bottles of beer on the wall.

Take one down and pass it around, 44  bottles of beer on the wall.

Take one down and pass it around, 43  bottles of beer on the wall.

Take one down and pass it around, 42  bottles of beer on the wall.

Take one down and pass it around, 41  bottles of beer on the wall.

Take one down and pass it around, 40  bottles of beer on the wall.

Take one down and pass it around, 39  bottles of beer on the wall.

Take one down and pass it around, 38  bottles of beer on the wall.

Take one down and pass it around, 37  bottles of beer on the wall.

Take one down and pass it around, 36  bottles of beer on the wall.

Take one down and pass it around, 35  bottles of beer on the wall.

Take one down and pass it around, 34  bottles of beer on the wall.

Take one down and pass it around, 33  bottles of beer on the wall.

Take one down and pass it around, 32  bottles of beer on the wall.

Take one down and pass it around, 31  bottles of beer on the wall.

Take one down and pass it around, 30  bottles of beer on the wall.

Take one down and pass it around, 29  bottles of beer on the wall.

Take one down and pass it around, 28  bottles of beer on the wall.

Take one down and pass it around, 27  bottles of beer on the wall.

Take one down and pass it around, 26  bottles of beer on the wall.

Take one down and pass it around, 25  bottles of beer on the wall.

Take one down and pass it around, 24  bottles of beer on the wall.

Take one down and pass it around, 23  bottles of beer on the wall.

Take one down and pass it around, 22  bottles of beer on the wall.

Take one down and pass it around, 21  bottles of beer on the wall.

Take one down and pass it around, 20  bottles of beer on the wall.

Take one down and pass it around, 19  bottles of beer on the wall.

Take one down and pass it around, 18  bottles of beer on the wall.

Take one down and pass it around, 17  bottles of beer on the wall.

Take one down and pass it around, 16  bottles of beer on the wall.

Take one down and pass it around, 15  bottles of beer on the wall.

Take one down and pass it around, 14  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 12  bottles of beer on the wall.

Take one down and pass it around, 11  bottles of beer on the wall.

Take one down and pass it around, 10  bottles of beer on the wall.

Take one down and pass it around, 9  bottles of beer on the wall.

Take one down and pass it around, 8  bottles of beer on the wall.

Take one down and pass it around, 7  bottles of beer on the wall.

Take one down and pass it around, 6  bottles of beer on the wall.

Take one down and pass it around, 5  bottles of beer on the wall.

Take one down and pass it around, 4  bottles of beer on the wall.

Take one down and pass it around, 3  bottles of beer on the wall.

Take one down and pass it around, 2  bottles of beer on the wall.

Take one down and pass it around, 1  bottle of beer on the wall.

Take one down and pass it around, no more bottles of beer on the wall.

Take one down and pass it around, -1  bottles of beer on the wall.

Take one down and pass it around, -2  bottles of beer on the wall.

Take one down and pass it around, -3  bottles of beer on the wall.

Take one down and pass it around, -4  bottles of beer on the wall.

Take one down and pass it around, -5  bottles of beer on the wall.

Take one down and pass it around, -6  bottles of beer on the wall.

Take one down and pass it around, -7  bottles of beer on the wall.

Take one down and pass it around, -8  bottles of beer on the wall.

Take one down and pass it around, -9  bottles of beer on the wall.

Take one down and pass it around, -10  bottles of beer on the wall.

Take one down and pass it around, -11  bottles of beer on the wall.

Take one down and pass it around, -12  bottles of beer on the wall.

Take one down and pass it around, -13  bottles of beer on the wall.

Take one down and pass it around, -14  bottles of beer on the wall.

Take one down and pass it around, -15  bottles of beer on the wall.

Take one down and pass it around, -16  bottles of beer on the wall.

Take one down and pass it around, -17  bottles of beer on the wall.

Take one down and pass it around, -18  bottles of beer on the wall.

Take one down and pass it around, -19  bottles of beer on the wall.

Take one down and pass it around, -20  bottles of beer on the wall.

Take one down and pass it around, -21  bottles of beer on the wall.

Take one down and pass it around, -22  bottles of beer on the wall.

Take one down and pass it around, -23  bottles of beer on the wall.

Take one down and pass it around, -24  bottles of beer on the wall.

Take one down and pass it around, -25  bottles of beer on the wall.

Take one down and pass it around, -26  bottles of beer on the wall.

Take one down and pass it around, -27  bottles of beer on the wall.

Take one down and pass it around, -28  bottles of beer on the wall.

Take one down and pass it around, -29  bottles of beer on the wall.

Take one down and pass it around, -30  bottles of beer on the wall.

Take one down and pass it around, -31  bottles of beer on the wall.

... (it's infinitely long!)

instead of the correct 99 bottles of beer message when I copied it and ran it at tio.run --None1 (talk) 14:21, 16 August 2023 (UTC)

When I ran it in PyFunge in my computer (using Befunge-98), I got this:

99  bottles of beer on the wall, 99  bottles of beer.
Take one down and pass it around, 98  bottles of beer on the wall.

TTTTaTaTaTaTkaTkaTkaTkaeTkaeTkaeTkaeTk aeTk aeTk aeTk aeoTk aeoTk aeoTk aeoTk naeoTk naeoTk naeoTk naeoeTk naeoeTk naeoeTk naeoeTk n aeoeTk n aeoeTk n aeoeTk n aeoedTk n aeoedTk n aeoedTk n aeoedTk n oaeoedTk n oaeoedTk n oaeoedTk n oaeoedwTk n oaeoedwTk n oaeoedwTk n oaeoedwTk n onaeoedwTk n onaeoedwTk n onaeoedwTk n onaeoedw Tk n onaeoedw Tk n onaeoedw Tk n onaeoedw Tk n onaaeoedw Tk n onaaeoedw Tk n onaaeoedw Tk n onaaeoedw nTk n onaaeoedw nTk n onaaeoedw nTk n onaaeoedw nTk n onadaeoedw nTk n onadaeoedw nTk n onadaeoedw nTk n onadaeoedw n Tk n onadaeoedw n Tk n onadaeoedw n Tk n onadaeoedw n Tk n onadpaeoedw n Tk n onadpaeoedw n Tk n onadpaeoedw n Tk n onadpaeoedw n aTk n onadpaeoedw n aTk n onadpaeoedw n aTk n onadpaeoedw n aTk n onadpsaeoedw n aTk n onadpsaeoedw n aTk n onadpsaeoedw n aTk n onadpsaeoedw n asTk n onadpsaeoedw n asTk n onadpsaeoedw n asTk n onadpsaeoedw n asTk n onadps aeoedw n asTk n onadps aeoedw n asTk n onadps aeoedw n asTk n onadps aeoedw n asiTk n onadps aeoedw n asiTk n onadps aeoedw n asiTk n onadps aeoedw n asiTk n onadps taeoedw n asiTk n onadps taeoedw n asiTk n onadps taeoedw n asiTk n onadps taeoedw n asi Tk n onadps taeoedw n asi Tk n onadps taeoedw n asi Tk n onadps taeoedw n asi Tk n onadps taaeoedw n asi Tk n onadps taaeoedw n asi Tk n onadps taaeoedw n asi Tk n onadps taaeoedw n asi rTk n onadps taaeoedw n asi rTk n onadps taaeoedw n asi rTk n onadps taaeoedw n asi rTk n onadps taoaeoedw n asi rTk n onadps taoaeoedw n asi rTk n onadps taoaeoedw n asi rTk n onadps taoaeoedw n asi ruTk n onadps taoaeoedw n asi ruTk n onadps taoaeoedw n asi ruTk n onadps taoaeoedw n asi ruTk n onadps taonaeoedw n asi ruTk n onadps taonaeoedw n asi ruTk n onadps taonaeoedw n asi ruTk n onadps taonaeoedw n asi rudTk n onadps taonaeoedw n asi rudTk n onadps taonaeoedw n asi rudTk n onadps taonaeoedw n asi rudTk n onadps taon,aeoedw n asi rudTk n onadps taon,aeoedw n asi rudTk n onadps taon,aeoedw n asi rudTk n onadps taon,aeoedw n asi rud Tk n onadps taon,aeoedw n asi rud Tk n onadps taon,aeoedw n asi rud Tk n onadps taon,aeoedw n asi rud Tk n onadps taon,aeoedw n asi rud Tk n onadps taon,aeoedw n asi rud Tk n onadps taon,aeoedw n asi rud Tk n onadps taon,aeoedw n asi rud Tk n onadps taon,aeoedw n asi rud 13 Tk n onadps taon,aeoedw n asi rud 13 Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  Tk n onadps taon,aeoedw n asi rud 13  bTk n onadps taon,aeoedw n asi rud 13  bTk n onadps taon,aeoedw n asi rud 13  bTk n onadps taon,aeoedw n asi rud 13  boTk n onadps taon,aeoedw n asi rud 13  boTk n onadps taon,aeoedw n asi rud 13  boTk n onadps taon,aeoedw n asi rud 13  botTk n onadps taon,aeoedw n asi rud 13  botTk n onadps taon,aeoedw n asi rud 13  botTk n onadps taon,aeoedw n asi rud 13  bottTk n onadps taon,aeoedw n asi rud 13  bottTk n onadps taon,aeoedw n asi rud 13  bottTk n onadps taon,aeoedw n asi rud 13  bottlTk n onadps taon,aeoedw n asi rud 13  bottlTk n onadps taon,aeoedw n asi rud 13  bottlTk n onadps taon,aeoedw n asi rud 13  bottleTk n onadps taon,aeoedw n asi rud 13  bottleTk n onadps taon,aeoedw n asi rud 13  bottleTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottlesTk n onadps taon,aeoedw n asi rud 13  bottles Tk n onadps taon,aeoedw n asi rud 13  bottles Tk n onadps taon,aeoedw n asi rud 13  bottles Tk n onadps taon,aeoedw n asi rud 13  bottles Tk n onadps taon,aeoedw n asi rud 13  bottles oTk n onadps taon,aeoedw n asi rud 13  bottles oTk n onadps taon,aeoedw n asi rud 13  bottles oTk n onadps taon,aeoedw n asi rud 13  bottles oTk n onadps taon,aeoedw n asi rud 13  bottles ofTk n onadps taon,aeoedw n asi rud 13  bottles ofTk n onadps taon,aeoedw n asi rud 13  bottles ofTk n onadps taon,aeoedw n asi rud 13  bottles ofTk n onadps taon,aeoedw n asi rud 13  bottles of Tk n onadps taon,aeoedw n asi rud 13  bottles of Tk n onadps taon,aeoedw n asi rud 13  bottles of Tk n onadps taon,aeoedw n asi rud 13  bottles of Tk n onadps taon,aeoedw n asi rud 13  bottles of bTk n onadps taon,aeoedw n asi rud 13  bottles of bTk n onadps taon,aeoedw n asi rud 13  bottles of bTk n onadps taon,aeoedw n asi rud 13  bottles of bTk n onadps taon,aeoedw n asi rud 13  bottles of beTk n onadps taon,aeoedw n asi rud 13  bottles of beTk n onadps taon,aeoedw n asi rud 13  bottles of beTk n onadps taon,aeoedw n asi rud 13  bottles of beTk n onadps taon,aeoedw n asi rud 13  bottles of beeTk n onadps taon,aeoedw n asi rud 13  bottles of beeTk n onadps taon,aeoedw n asi rud 13  bottles of beeTk n onadps taon,aeoedw n asi rud 13  bottles of beeTk n onadps taon,aeoedw n asi rud 13  bottles of beerTk n onadps taon,aeoedw n asi rud 13  bottles of beerTk n onadps taon,aeoedw n asi rud 13  bottles of beerTk n onadps taon,aeoedw n asi rud 13  bottles of beerTk n onadps taon,aeoedw n asi rud 13  bottles of beer Tk n onadps taon,aeoedw n asi rud 13  bottles of beer Tk n onadps taon,aeoedw n asi rud 13  bottles of beer Tk n onadps taon,aeoedw n asi rud 13  bottles of beer Tk n onadps taon,aeoedw n asi rud 13  bottles of beer oTk n onadps taon,aeoedw n asi rud 13  bottles of beer oTk n onadps taon,aeoedw n asi rud 13  bottles of beer oTk n onadps taon,aeoedw n asi rud 13  bottles of beer oTk n onadps taon,aeoedw n asi rud 13  bottles of beer onTk n onadps taon,aeoedw n asi rud 13  bottles of beer onTk n onadps taon,aeoedw n asi rud 13  bottles of beer onTk n onadps taon,aeoedw n asi rud 13  bottles of beer onTk n onadps taon,aeoedw n asi rud 13  bottles of beer on Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on tTk n onadps taon,aeoedw n asi rud 13  bottles of beer on tTk n onadps taon,aeoedw n asi rud 13  bottles of beer on tTk n onadps taon,aeoedw n asi rud 13  bottles of beer on tTk n onadps taon,aeoedw n asi rud 13  bottles of beer on thTk n onadps taon,aeoedw n asi rud 13  bottles of beer on thTk n onadps taon,aeoedw n asi rud 13  bottles of beer on thTk n onadps taon,aeoedw n asi rud 13  bottles of beer on thTk n onadps taon,aeoedw n asi rud 13  bottles of beer on theTk n onadps taon,aeoedw n asi rud 13  bottles of beer on theTk n onadps taon,aeoedw n asi rud 13  bottles of beer on theTk n onadps taon,aeoedw n asi rud 13  bottles of beer on theTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the waTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the waTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the waTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the waTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the walTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the walTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the walTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the walTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wallTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wallTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wallTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wallTk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.
Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.
Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.
Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.
Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.

Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.

Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.

Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.

Tk n onadps taon,aeoedw n asi rud 13  bottles of beer on the wall.
... (it's infinitely long!)

And when I ran it in JavaScript Befunge-93 interpreter., it simply prints:

99  bottles of beer on the wall, 99  bottles of beer.
Take one down and pass it around, 98  bottles of beer on the wall.

and stuck in an infinite loop.

Suggest alternative:

v           >v                                            >v                                                                            >v     >v
>110+*>:.:1`|>0" ,llaw eht no reeb fo selttob">:#,_$>:.:1`|>0".reeb fo selttob">:#,_$>91+,0" ,dnuora ti ssap dna nwod eno ekaT">:#,_$1-:|>:.:1`|>0".llaw eht no reeb fo selttob">:#,_$>91+:,,v
            >0" ,llaw eht no reeb fo elttob">:#,_$  ^     >0".reeb fo elttob">:#,_$  ^                                                  v      >0".llaw eht no reeb fo elttob">:#,_$  ^
                                                                                                                                        >0".llaw eht no reeb fo selttob erom on">:#,_$v
      ^                                                                                                                                                                                      <
                               >  v                                                                         >  v                                                                          
                             @<|,:<"Go to the store and buy some more, 99 bottles of beer on the wall.",+91<|,:<"No more bottles of beer on the wall, no more bottles of beer."0,,:+91<
                              ^<                                                                           ^<

--None1 (talk) 12:47, 20 August 2023 (UTC) That program produces this output in Fungide:

99  bottles of beer on the wall, 99  bottles of beer.
Take one down and pass it around, 98  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.

Take one down and pass it around, 13  bottles of beer on the wall.
....

--ChuckEsoteric08 (talk) 15:11, 23 December 2023 (UTC)

Due to the code size restriction in Befunge-93, it doesn't work in some Befunge-93 interpreters. --None1 (talk) 23:15, 24 December 2023 (UTC)

I was talking about the other one.--ChuckEsoteric08 (talk) 09:23, 25 December 2023 (UTC)

Which one is "the other one", the original one? --None1 (talk) 10:26, 25 December 2023 (UTC)