Skip to content

Conversation

@Yewzir
Copy link
Contributor

@Yewzir Yewzir commented Apr 19, 2025

No description provided.

@Yewzir Yewzir marked this pull request as draft June 19, 2025 12:30
@github-actions
Copy link

Your pull request has conflicts that need to be resolved before it can be reviewed and merged.

@github-actions github-actions bot added the conflicts Pull Request has conflicts. label Jun 27, 2025
@github-actions github-actions bot removed the conflicts Pull Request has conflicts. label Jul 14, 2025
@Yewzir Yewzir changed the title Build latest Erlang to build latest Elixir to build 05AB1E on bookworm Rebuild 05AB1E using resources from codegolf/lang-elixir Jul 14, 2025
@github-actions github-actions bot added the conflicts Pull Request has conflicts. label Jul 22, 2025
@github-actions
Copy link

Your pull request has conflicts that need to be resolved before it can be reviewed and merged.

@github-actions github-actions bot removed the conflicts Pull Request has conflicts. label Jul 22, 2025
@Yewzir Yewzir marked this pull request as ready for review July 30, 2025 08:42
@github-actions github-actions bot added the conflicts Pull Request has conflicts. label Aug 7, 2025
@github-actions github-actions bot added conflicts Pull Request has conflicts. and removed conflicts Pull Request has conflicts. labels Sep 6, 2025
@github-actions github-actions bot added conflicts Pull Request has conflicts. and removed conflicts Pull Request has conflicts. labels Sep 20, 2025
@github-actions github-actions bot removed the conflicts Pull Request has conflicts. label Sep 24, 2025
@github-actions github-actions bot added the conflicts Pull Request has conflicts. label Oct 2, 2025
@github-actions github-actions bot removed conflicts Pull Request has conflicts. labels Oct 2, 2025
@github-actions github-actions bot added conflicts Pull Request has conflicts. and removed conflicts Pull Request has conflicts. labels Oct 13, 2025
@github-actions github-actions bot removed the conflicts Pull Request has conflicts. label Nov 9, 2025
@github-actions github-actions bot added the conflicts Pull Request has conflicts. label Nov 12, 2025
@github-actions github-actions bot removed the conflicts Pull Request has conflicts. label Nov 18, 2025
I'm adjusting a few things so that all builders are tagged correctly and
the new slave also ends up in the base image.
@Yewzir Yewzir changed the title Rebuild 05AB1E using binaries and libraries from Elixir Rebuild 05AB1E using binaries and libraries from Erlang's and Elixir's images Nov 19, 2025
@github-actions github-actions bot added the conflicts Pull Request has conflicts. label Nov 27, 2025
@Yewzir Yewzir marked this pull request as draft November 30, 2025 12:05
@github-actions github-actions bot added conflicts Pull Request has conflicts. and removed conflicts Pull Request has conflicts. labels Nov 30, 2025
@github-actions github-actions bot removed the conflicts Pull Request has conflicts. label Dec 13, 2025
That is to say: more or less. This fully displays multi-line command
line arguments, so some progress has been made. Unfortunately, this
isn't the solution yet, as it leads to the same problem as with Stax:
each line is treated as a separate argument. I believe executing an
empty source file should also fully display the first command line
argument. That would solve the problem.
This also works the same way for single-line string input. However, it
breaks the sample code because the action under "Accessing arguments"
constantly displays the triple quotes. I don't know the language well
enough yet, and I wouldn't know how to repeat `I,I,I,I,I,I,I,` the
required number of times. I've tried a few things, but it's making me
far too nervous at the moment. With something similar to what it does
for numeric values, absolutely nothing seems to work. So far, changes in
`play.go` have also failed every time, so I'm leaving it as is for now.
1.14.0
Command-line arguments containing Unicode characters are not yet
supported. Almost.
Comment on lines 39 to 75
const char* table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

ERR_AND_EXIT("write");
for (int i = 2; i < argc; i++) {
int len = strlen(argv[i]);

char* arg, *str;

if (!(arg = str = malloc((len + 2) / 3 * 4 + 1)))
ERR_AND_EXIT("malloc");

int j, chunk;

for (j = 0; j + 2 < len; j += 3) {
chunk = argv[i][j] << 16 | argv[i][j+1] << 8 | argv[i][j+2];

*str++ = table[chunk >> 18 & 63];
*str++ = table[chunk >> 12 & 63];
*str++ = table[chunk >> 6 & 63];
*str++ = table[chunk & 63];
}

if (j < len) {
chunk = argv[i][j] << 16 | (j + 1 < len) * argv[i][j+1] << 8;

*str++ = table[chunk >> 18 & 63];
*str++ = table[chunk >> 12 & 63];
*str++ = j + 1 < len ? table[chunk >> 6 & 63] : '=';
*str++ = '=';
}

*str = 0;

if (!write(fd, arg, strlen(arg)) || !write(fd, "\n", sizeof(char)))
ERR_AND_EXIT("write");

free(arg);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example, the arguments from the Hexdump hole.

Hello, World!
0
1
2
3
4
5
6
7
8
9
["In mathematics and computing, the hexadecimal (also base 16 or simply hex)
numeral system is a positional numeral system that represents numbers using a
radix (base) of 16. Unlike the decimal system representing numbers using 10
symbols, hexadecimal uses 16 distinct symbols, most often the symbols "0"-"9"
to represent values 0 to 9, and "A"-"F" (or alternatively "a"-"f") to represent
values from 10 to 15.

Software developers and system designers widely use hexadecimal numbers because
they provide a human-friendly representation of binary-coded values. Each
hexadecimal digit represents four bits (binary digits), also known as a nibble
(or nybble). For example, an 8-bit byte can have values ranging from 00000000 to
11111111 in binary form, which can be conveniently represented as 00 to FF in
hexadecimal.", "Code Golf", " !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~", "Lorem ipsum dolor sit amet,

 consectetur adipiscing elit
", "multi-
line
string", "Code Golf is a game designed to let you show off your code-fu by solving problems in the least number of characters.", "0123456789abcdef"]

@Yewzir Yewzir marked this pull request as ready for review December 27, 2025 04:20
@Yewzir Yewzir changed the title Rebuild 05AB1E using binaries and libraries from Erlang's and Elixir's images Rebuild 05AB1E using binaries and libraries from the Erlang and Elixir images, fixing the parsing of multi-line strings Dec 27, 2025
@github-actions github-actions bot added the conflicts Pull Request has conflicts. label Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts Pull Request has conflicts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant