| Bytes | Lang | Time | Link |
|---|---|---|---|
| nan | Uiua | 240730T205258Z | Europe20 |
| nan | Japt | 230612T102529Z | Shaggy |
| nan | 05AB1E | 230609T163242Z | Makonede |
| nan | Pascal | 230219T225055Z | Kai Burg |
| nan | Mathematica | 221017T225415Z | hakr14 |
| nan | Pyth | 221017T222801Z | hakr14 |
| nan | Charcoal | 220902T054928Z | Neil |
| nan | Brachylog | 221017T123601Z | Fatalize |
| nan | Python | 220902T032811Z | dingledo |
| 4109 | Vyxal s | 220902T173143Z | naffetS |
| 222 | Zalgo | 220902T055329Z | Bubbler |
| nan | K ngn/k | 220902T052904Z | Bubbler |
Uiua, score 57.067 33.064
-736"̨͌͌ͅ͏̷̌̀͏̴͈͕͉͒͌̈́́̀̀͑̓͋̀͂͒ͅ͏͎͗̀͆͏͕͍͓̀͊͐̀͘͏͖͚͙͒̀́̀͌́̀̈́ͅ͏͇̎"
Putting diacritics directly after a quote will now register as a string.
Explanation
-736"̨͌͌ͅ͏̷̌̀͏̴͈͕͉͒͌̈́́̀̀͑̓͋̀͂͒ͅ͏͎͗̀͆͏͕͍͓̀͊͐̀͘͏͖͚͙͒̀́̀͌́̀̈́ͅ͏͇̎"
"̨͌͌ͅ͏̷̌̀͏̴͈͕͉͒͌̈́́̀̀͑̓͋̀͂͒ͅ͏͎͗̀͆͏͕͍͓̀͊͐̀͘͏͖͚͙͒̀́̀͌́̀̈́ͅ͏͇̎" mish-mash
-736 subtract each codepoint by 736
05AB1E, score 40.062
’̨͌͌ͅ͏̀͗͏̴͈͕͉͒͌̈́́̀̀͑̓͋̀͂͒ͅ͏͎͗̀͆͏͕͍͓̀͊͐̀͘͏͖͚͙͒̀́̀͌́̀̈́ͅ͏͇̎’ÇŽ2ã-
Try it online! Outputs as a list of byte values.
Pascal, 495.092
program i(output);begin write('Hello world! The quick brown fox jumps over a lazy dog.')end.
Mathematica, score 261.096
FromCharacterCode[ToCharacterCode@"̨͌͌ͅ͏̀͗͏̴͈͕͉͒͌̈́́̀̀͑̓͋̀͂͒ͅ͏͎͗̀͆͏͕͍͓̀͊͐̀͘͏͖͚͙͒̀́̀͌́̀̈́ͅ͏͇̎"-736]
Pyth, score 58.092
smCldc""\
Near literal translation of dingledooper's Python answer.
Charcoal, score 49.089 27.235 27.107
⍘⍘̔̆́̐̐̑̊̓̇̂̐̇̋̒́̒̎̏̌́̄̐́̉̌̇̀̍̌̌̓̒̊̋̎́̄̎̅̍̃̂̒̃̂̉̏̑̈̋̄̎̋̂̂̃̋̋̍̎̀̈̍̀̆̇̐́̐̒́̑̄̑̎̒̌̎̑̐̔̄¦̀́̂̃̄̅̆̇̈̉̊̋̌̍̎̏̐̑̒̓̔γ
Try it online! No verbose version because the deverbosifier extraneously quotes the strings, which is longer than using the ¦ separator. Explanation: Converts a string from base \u0300-\u0314 and then into base -~ (printable ASCII).
̔̆́̐̐̑̊̓̇̂̐̇̋̒́̒̎̏̌́̄̐́̉̌̇̀̍̌̌̓̒̊̋̎́̄̎̅̍̃̂̒̃̂̉̏̑̈̋̄̎̋̂̂̃̋̋̍̎̀̈̍̀̆̇̐́̐̒́̑̄̑̎̒̌̎̑̐̔̄ Literal string of \u0300-\u0314 characters
⍘ Convert from base
̀́̂̃̄̅̆̇̈̉̊̋̌̍̎̏̐̑̒̓̔ Literal string `\u0300-\u0314`
⍘ Convert to base
γ Predefined variable printable ASCII
Implicitly print
Brachylog, score: 494.078 (78 bytes)
"He
llo
wo
rld
! T
he
qui
ck
bro
wn
fox
ju
mps
ov
er
a l
azy
do
g.
"ṇc
Not as competitive as the rest, but the program contains the expected string with no specific encoding.
Explanation
"ṇc ends a string, splits it on linebreaks into a list of strings, and then concatenates it back into a single string with no linebreaks.
We then split the string into chunks of at most 3 chars with linebreaks, as Brachylog supports inline multi-line strings.
Python, 125.833 score
ᵉᵛªˡ(ᵇʸᵗᵉſ(ᵐªᵖ(ˡᵉⁿ,''.ſᵖˡᵢᵗ(''))))
Attempt This Online! or Score this online!
Explanation
Through some experimentation, I found that \u200a (zero width space) takes up zero pixels. In addition, as kindly pointed out by Mukundan314, \u200c seems to use up zero pixels as well, though only when surrounded by \u200a. Using this fact, I created an algorithm to encode any string using only the characters \u200c and \u200a. The algorithm works by encoding each character as a string of \u200cs whose size is the value of its unicode codepoint. Then, they are joined together by \u200a.
Then, decoding it is simply a matter of splitting the string by the \u200c delimiter, mapping each element to its length, and converting it back into a string using the bytes builtin:
bytes(map(len,'...'.split('\u200c')))
In the implementation, the strange-looking unicode characters are converted to ASCII due to Python's implicit NFKC normalization of identifiers, which help slightly shorten the pixel width.
Python, 139.097 score
-0.002 score thanks to @Neil, who noticed that the \u200bs are apparently unnecessary here.
ᵉᵛªˡ(ᵇʸᵗᵉſ(ºʳᵈ(ˡ)%126for ˡ in'ֲًٌٍٍِّّ֑᷿͈ۘۚ︠̔ۘ̔̔ۛٓ̔̕ﱢٍَْ᷿ۘ̔ͬ̔ۛۙ̔᷾ۘ̔ﱡ̔ﱡٌُ֑۠۟̔︡'))
An alternative solution, which although longer, may port better to other languages. The idea here is that any string of accent characters embedded between two \u200bs has a pixel width of zero.
Vyxal s, Score 41.09
``\/vLC
Port of dingledooper's answer.
Zalgo, score 5.221 0.222
̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̝̐̈̄̐̅̆̐̌̆̐̌̆̐̏̆̐̀̂̐̇̇̐̏̆̐̂̇̐̌̆̐̄̆̐́̂̐̀̂̐̄̅̐̈̆̐̅̆̐̀̂̐́̇̐̅̇̐̉̆̐̃̆̐̋̆̐̀̂̐̂̆̐̂̇̐̏̆̐̇̇̐̎̆̐̀̂̐̆̆̐̏̆̐̈̇̐̀̂̐̊̆̐̅̇̐̍̆̐̀̇̐̃̇̐̀̂̐̏̆̐̆̇̐̅̆̐̂̇̐̀̂̐́̆̐̀̂̐̌̆̐́̆̐̊̇̐̉̇̐̀̂̐̄̆̐̏̆̐̇̆̐̎̂
I think I found the perfect uberperfect language! Tested with the official interpreter locally. Now also uses dingledooper's observation that zalgo surrounded by two \u200bs has width zero. Luckily (and surprisingly) \u200b is not considered as a whitespace in the interpreter (which uses Rust's char.is_whitespace).
Script to generate the source:
s = 'Hello world! The quick brown fox jumps over a lazy dog.'
ans = '\u200b'
ans += '\u031d' * len(s)
for c in s:
d = ord(c)
ans += '\u0310' + chr(0x300 + d % 16) + chr(0x300 + d // 16)
print(ans + '\u200b', end='')
K (ngn/k), score 64.584
`0:`c$#'""\""
Try it online! or Score this online!
A port of dingledooper's answer to K. Uses \u200b as the "word" character and \u200c as the separator. The only difference is that "length" # counts each "space" character as 3 bytes, so I had to do a little calculation so that (word length in characters) * 3 % 256 == output character.