Timeline for Add a language to a polyglot
Current License: CC BY-SA 3.0
23 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | CommunityBot | Commonmark migration | |
| Feb 2, 2017 at 17:57 | comment | added | Muzer | @Chance Just fixed compilation in Clang. I discovered a potential future use for this is Objective-C, since TIO only supports Clang for that language. | |
| Feb 2, 2017 at 17:57 | history | edited | Muzer | CC BY-SA 3.0 | Fix C/C++ compilation in Clang. |
| Feb 2, 2017 at 17:05 | comment | added | Chance | @Muzer Cool! Thanks. I love how much out of the norm stuff I'm learning from this project. | |
| Feb 2, 2017 at 12:07 | comment | added | Muzer | @Chance I've just been looking at how that first line is valid in the C Preprocessor, it looks like it's the output from the Preprocessor used for debug info etc. It means "now returning (2) to file with name "16" line 1". I think it's the 2 that makes Clang choke (and gcc warn) since it never went into any files in the first place, so there's nothing to return from. When I get the chance I might experiment with changing it to something else to make it compile in Clang too. See gcc.gnu.org/onlinedocs/cpp/… | |
| Feb 1, 2017 at 21:13 | comment | added | Muzer | Incident works! | |
| Feb 1, 2017 at 21:13 | history | edited | Muzer | CC BY-SA 3.0 | Incident Works! |
| Feb 1, 2017 at 20:54 | history | edited | Muzer | CC BY-SA 3.0 | Fix Hexagony bug |
| Feb 1, 2017 at 20:50 | comment | added | Muzer | @Chance Oops! Cheers, dunno how I missed that. Trying to add an extra character to the detokenising string in last line seems to make Prelude go insane, so I'm replacing the semicolon back with an s, and adding an extra semicolon after the "gets" statement. | |
| Feb 1, 2017 at 20:05 | comment | added | Chance | I noticed one more thing. Hexagony is outputting a couple trailing nul bytes because it's alignment is one space left of where it wants to be. Throwing in another character anywhere before /3!@ will fix it. | |
| Feb 1, 2017 at 19:49 | comment | added | Muzer | @Chance Thanks for that! I just made a less golfed more useful version of the C program, and with its help I think I've managed to sort out Incident in this. I will try to test it when I get home (archive.org is blocked on the train and esolangs wiki appears to be down). | |
| Feb 1, 2017 at 19:47 | history | edited | Muzer | CC BY-SA 3.0 | Add link to tokeniser |
| Feb 1, 2017 at 18:49 | comment | added | Chance | @muzer Ignoring the incident jump tokens and the actual incident code, my solution was balanced with one token on the left ␉␊ and 8 on the right p()␉␊␉␊()()pp . The token's here being ␉␊, p, and (). Yours has none on the left and 9 on the right: ()z␠␠␠z()()z␠␠␠␠␠␠ with the tokens being (), z, and ␠␠␠. I believe as long as the number of right tokens minus left tokens = 7 then everything is balanced. I'd try eliminating the triple space as a token then create a token weighted once on the left and twice on the right. Maybe there's one available in the detokenizing string? | |
| Feb 1, 2017 at 18:29 | comment | added | fəˈnɛtɪk | the Stack overflow treatment of spaces made me take a while looking for why my code was getting 3 spaces in a row as a token but the C program was not. | |
| Feb 1, 2017 at 18:14 | comment | added | Muzer | @LliwTelracs I've now figured out how to get rid of that semicolon token without using an extra byte (I somehow missed the bit about the detokenising string at the bottom which I could modify; very useful!). I don't know if the centre token is right, but I hope so! | |
| Feb 1, 2017 at 18:11 | history | edited | Muzer | CC BY-SA 3.0 | Make some attempt at fixing Incident |
| Feb 1, 2017 at 17:57 | comment | added | Muzer | @LliwTelracs Just trying to figure out the tokenisation myself, it looks like I've now got a semicolon appearing three times. I could add an extra one except that I don't think I can spare the byte as that'll misalign Hexagony. Hmm... | |
| Feb 1, 2017 at 17:25 | comment | added | fəˈnɛtɪk | The error was that I was copy pasting the value to my program so it couldn't recognize the tabs or escapes | |
| Feb 1, 2017 at 17:23 | history | edited | Muzer | CC BY-SA 3.0 | Extend and break up explanation. |
| Feb 1, 2017 at 17:06 | history | edited | Muzer | CC BY-SA 3.0 | Add bit about implementing byte-saving changes suggested by Chance. |
| Feb 1, 2017 at 16:49 | comment | added | Muzer | @LliwTelracs Huh, the C program linked by Chance in his answer had a different output for the list of tokens: ;#yy;#yy#yy0l0m1k1k0l0i0j0h0h1d0e0b0b0o1d0b0e0e1d0i0f0g0n0n0o0n0c0c0o0f0c0g0g0f0h0j0j0i1k0m0m0l^_()z z()()z; ^_^_ | |
| Feb 1, 2017 at 16:39 | history | edited | Muzer | CC BY-SA 3.0 | char replaced with character constant. |
| Feb 1, 2017 at 16:34 | history | answered | Muzer | CC BY-SA 3.0 |