User talk:Salpynx

From Esolang
Jump to: navigation, search

Deadfish in Юᓂ곧⎔

I noticed your Deadfish interpreter in Юᓂ곧⎔ mentioned it was converted from one of Asdf's interpreters, but both of those had bugs. (Meanwhile, the C interpreter by Jonathan Todd Skinner is pretty much the reference implementation.) You might want to check if you're doing the ==256 check (not >255 check) and output (as decimal numbers) correctly. --Ørjan (talk) 01:04, 26 October 2018 (UTC)

Thanks for noticing and checking on this! I based my code on the shorter of the two C examples you corrected. The putchar() in the Asdf version threw me at first as it prints a character rather than a decimal number, but I eventually corrected it in my version and used a printf() equivalent, just like you did in your corrections. I didn't think to update the original, but I fully agree with all of the fixes you made to those C examples.
事⇔᠒᠕᠖ is an equality check to 256, in Mongolian digits (per Юᓂ곧⎔).
FWIW, the output from my Юᓂ곧⎔ Deadfish interpreter using the arithmetic checks on the wiki page is:
 >>iissso
 0
 >>iissisdddddddddddddddddddddddddddddddddo
 0
 >>diissisdo
 288
So I believe my implementation is correct. At your suggestion I compared it to the reference implementation and (unfortunately?) my use of >> is neater, and avoids the repetition of >> for each command, which probably makes it less funny. I missed a space character too, but I guess those are allowable implementation choices? I re-implemented the >> prompt because I like them. Asdf's shorter implementation deliberately ignores them, which I think is fine, since there was a note to that effect.
I am very pleased that my informative non-ASCII comments were comprehensible, and resulted in some improvements to the wiki! :) Salpynx (talk) 22:09, 26 October 2018 (UTC)

Inquiry

Salpynx, I'd like to know what language you used in your + interpreter using my Nope. interpreter, and what language you used for a hello world program using the same interpreter. If this isn't a language, can you explain what you did? Areallycoolusername (talk) 01:38, 13 January 2019 (UTC)Areallycoolusername

For both of those things I was using the Bash shell, which is (an example of) the command line you get with Linux operating systems. General *nix shell info: wikipedia:Unix shell, Bash specific, wikipedia:Bash (Unix shell). I run Ubuntu, so its always there as part of the operating system. The various *nix shells are all scripting languages, and all "interactive command langauges". To prove it's a real programming language (and not esoteric), here is the Hello World entry for a range of *nix shells (being a little tongue-in-cheek there). That shows that most of these shells generally work the same, but there are differences that become a problem when you try and be too clever. Not all the commands will be available in all shells or flavours of linux (and often different versions of the command will behave differently). In my examples on the Talk:Nope. page, xxd (a hexdump tool) is not available on all Linuxes, so it's not guaranteed to be completely portable. Salpynx (talk) 03:41, 14 January 2019 (UTC)