Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for dzaima‭

Type On... Excerpt Status Date
Comment Post #283620 There probably should be an even `n` test-case to make sure it's clear that those happen. (important as even/odd lengths mess with palindromization)
(more)
over 2 years ago
Comment Post #282932 @#54151 Comments with shortened code are usually made with the intent of updating the answer (while letting the author review the changes). When updating the answer, you'd write `language, <strike>oldCount</strike> newCount bytes` in the header.
(more)
almost 3 years ago
Comment Post #282903 golfed to [97 bytes](https://tio.run/##Lc2xDoIwEADQX2k63UUpSoxRtBDC4u5ggnFoSkVM5cjRMPjzlcH5De9tZjNZ7seQzIfoXRBMQWgRSResC1LsRm@sg/Rukm@VNI@0Wy92DdwPnXoyfeqX4ZpaB0BnLRtZHjf5Nsuw0ECalP1zFQBXjCXllGR7xGhpmMg75amDJQV5cd6TuBH7ViLsEE/xBw), also with a proper format, separating implementation and invocation.
(more)
almost 3 years ago
Comment Post #279408 hm, I guess it could make sense to just not get rep from meta answers at all. Don't know what's better though. I guess most posts are ones where votes on answers just mean public consensus, for which getting rep doesn't make sense.
(more)
almost 3 years ago
Comment Post #282491 It's listed as the language "C (clang) + BMPL". The leaderboard counting it under C is a problem though.
(more)
almost 3 years ago
Comment Post #282491 Pretty much nothing in this answer applies to libraries but not golfing languages. Golfing languages can too "cheat" by having builtins that immediately solve the challenge, and golfing languages are (at least in their start) used by just one person. Adding a library to C results in a new language...
(more)
almost 3 years ago
Comment Post #279743 HTML can be used, but I don't think you'll get beyond 2 solutions.
(more)
almost 3 years ago
Comment Post #279770 Well, you'd also need `|` + `-` + `/` and `|` + `-` + `` \ ``
(more)
about 3 years ago
Comment Post #279770 @Razetime Diagonal lines can't really be overlapped, which is the whole point. Like, there's no character for `/`+`|`
(more)
about 3 years ago
Comment Post #280729 In an unfinished [completely random file](https://github.com/dzaima/Canvas/blob/master/files/implemented.md#palindromizator-defs) where it definitely doesn't deserve to be, with an unreadable description (where the described "basic overlap", "background overlap", and "mirror vertical" aren't even us...
(more)
about 3 years ago
Comment Post #280729 Hint: all palindromization builtins repeated twice disables the fancy mirroring
(more)
about 3 years ago
Comment Post #280673 (obligatory regular alphabet kolmogorov-complexity challenge)
(more)
about 3 years ago
Comment Post #280083 [67](https://tio.run/##SyzI0U2pTMzJT///v1rjUe9UDY20R13THvWuUnd0dXJzdncBUS7qmjpFj3r2Gho9apt4aL0ZkDR91LtFXVdd81HvZpDgo96tmjqP@qYmPurZ/qh3haG2waPOBWmP2iYcWm@sXQSkjQ9PV89Uf9TRBVRZ@x8k86i371FX86PeNUCTgKpAhvRNDQ5yBpIhHp7B/9MU1F0VfBOz8ovUuYBsN93gjMSiAgXfzDyoiJOuW05iCVQAAA) by mostly not changing the algorit...
(more)
over 3 years ago
Comment Post #279778 So, just reverse vertically & swap `/` and ``\``? Still ends up [looking ugly](https://dzaima.github.io/paste/#0M1RQUHjUs13BCEobQ2kTKG0Kpc0UoAxzGMMCxrCEMQyANBeMEx8fD6YVFPTBdAxUHEYDQQ0qA6gDlQE3C07rQ@kYNBrDLAwGhln6cH4MGk3YLITfFLDSyPJwAewiAA). (and regardless, this should be fully specified in the chall...
(more)
over 3 years ago
Comment Post #279778 How does a vertically mirrored 5 look like?
(more)
over 3 years ago
Comment Post #279779 Yep, seems fine now. (fwiw you could save a `0` with `←←…←←333`)
(more)
over 3 years ago
Comment Post #279743 @Lundin The importing of the library, if required in the code, is required in the answer. (reasoning being that the import probably requires using `.` in each answer anyways, and if it doesn't, it's polluting the global scope with arbitrary functions which I definitely wouldn't allow)
(more)
over 3 years ago
Comment Post #279684 @Hakerh400 good point, I'll mention that solutions must be at least 1 character long.
(more)
over 3 years ago
Comment Post #279684 UTF-8 is used there just as an example. Golflangs usually have custom encodings for themselves, where each character is a unique byte.
(more)
over 3 years ago
Comment Post #279684 @JoKing fwiw, unary actually only scores 1 as it only allows zeroes in its source. Lenguage is the one getting 256. Don't think it's worth it doing anything about this.
(more)
over 3 years ago
Comment Post #279408 @Lundin the tag can be used for answer standards, and isn't restricted to code-golf only either though. And calling them "rules" isn't preferable either, as they are only defaults, allowed to be overridden at will by the challenge specification. I'm now more leaning towards the "defaults" tag name
(more)
over 3 years ago
Comment Post #279382 @Lundin Code golf is about using any and all tools you have to achieve the shortest byte count in a specific setting (language, implementation, OS, etc). As far as this site is considered, you can consider a non-standard C dialect as not at all related to C beside the name, and competing with it as p...
(more)
over 3 years ago
Comment Post #279444 What can the non-array contents of the arrays be - only numbers, or any arbitrary non-array object?
(more)
over 3 years ago
Comment Post #279382 Ah, I misunderstood what you were trying to say with freestanding mode. Sure, you can make an answer as such, if you can actually find a system that will run the function `x` on startup. But at that point you could just say your answer is a function (a meta post on what's a valid program, if there we...
(more)
over 3 years ago
Comment Post #279382 (really that C hello world answer _should_ be specifying that the answer is e.g. "C (GCC 10.2 on Linux)" or equivalent, but that'd be boilerplate on most C answers so it's often left out, plus it works just fine on any GCC/clang versions and probably on most OSes)
(more)
over 3 years ago
Comment Post #279382 'you can't prove that something isn't UB with "it seems to be working just fine"' I have the binary of GCC. Assuming it compiles deterministically, I _could_ actually prove it outputs `"Hello, World!"` in at least one version of it. And my answer proposes that that's all that matters here.
(more)
over 3 years ago
Comment Post #279382 "just set gcc to freestanding mode" That's applying a completely arbitrary change to my answer.. If we now allow you to do anything you want with the system running it, you could also define `puts`, `printf`, etc to call `exit(1)` and now I can never ever print anything and now noone can ever answer ...
(more)
over 3 years ago
Comment Post #279382 "it produces numerous diagnostics" but I still get a binary, and it outputs the required string. Warnings completely don't matter. Sure, it's not valid standard C, but it is completely valid & good "GCC/clang C".
(more)
over 3 years ago
Comment Post #279386 @Lundin A function is just allowed as a form of an answer (as an alternative to a full program). e.g. otherwise you are restricted to only a single string I/O (stdout/stdin) which is often extremely limiting (e.g. you'd need to have a JSON parser equivalent to take, as an input, an array of arrays of...
(more)
over 3 years ago
Comment Post #279386 @Lundin this answer is only about the specific problem of allowing functions as answers. My answer deals with the requirements for the actual language - you have 2 "places" where `stuff()` could be defined - your answer code whose bytecount you count, and the language you're answering in (whose size ...
(more)
over 3 years ago
Comment Post #279382 (and if you want to write strictly compliant programs, go ahead (under, say, the language name of "ISO C11")! It's a separate "language", so you can still win in the competition of ISO C11.)
(more)
over 3 years ago
Comment Post #279382 @Lundin Also UB doesn't matter if the answer _works_, though it's a good question how much "crashing and burning" can be allowed (certainly not to the point of time travelling before the output was printed, but beyond that it's complicated).
(more)
over 3 years ago
Comment Post #279382 "and now I will win every competition" The specific compiler is part of the language, so, assuming a challenge with the "Shortest byte count _per language_ wins" criterion, you might win on that obscure C compiler's C version, but won't actually compete with GCC/clang.
(more)
over 3 years ago
Comment Post #279382 "will not compile on a single reasonable C compiler" - it works fine on GCC and clang without additional arguments, so I have no clue where you got that from. It may not be standards compliant, but it's valid GCC/clang code, and, per my definitions, that's fine as one working implementation is enough...
(more)
over 3 years ago
Comment Post #279382 @Lundin "Where is this written?" Here. This site was just started, and obviously we haven't gotten around to re-writing the dozens of standards posts. This one is progress in starting doing that.
(more)
over 3 years ago
Comment Post #279245 Is there any delay required between the frames? As-is, any reasonable solution would easily get thousands of frames per second, probably with the screen refreshing mid-frame too. (unrelatedly, for reference, clearing the screen with ANSI escapes appears to work as just `"\x1Bc"`)
(more)
over 3 years ago
Comment Post #279245 "if and only if it cannot clear the screen" Any language that can output arbitrary bytes to stdout can "clear the screen" in a unix terminal with ANSI escape codes.
(more)
over 3 years ago
Comment Post #279212 Polyglot with Canvas, Charcoal, and possibly a couple more golflangs
(more)
over 3 years ago
Comment Post #279204 [Example 1](http://oeis.org/A333977) - its first number doesn't fit in a 32-bit integer, so we, by outputting nothing, always identify it correctly. (there are at least a thousand like this, probably many more if looking at the first 5); [Example 2](http://oeis.org/A088110) - there are only 4 items, ...
(more)
over 3 years ago
Comment Post #279204 You should mention that there must actually be a valid input corresponding to a claimed sequence (otherwise every answer is valid on _at least_ a thousand sequences); Also, the constant sequences continue up to 32 - `A007395 A010701 A010709 A010716 A010722 A010727 A010731 A010734 A{010850-010871}` (t...
(more)
over 3 years ago
Comment Post #279193 Canvas doesn't have English compression, so it's as long as just the string constant itself.
(more)
over 3 years ago