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 user‭

Type On... Excerpt Status Date
Comment Post #283341 What counts as a multiplication/exponentiation builtin is quite poorly defined, and although many languages might get by without them just fine here, they might not for other sorts of challenges/other builtins. I'd advise against banning them. One alternative is to create your own mini language for t...
(more)
almost 3 years ago
Comment Post #283305 Since there's no trivial builtins answer yet, I edited my Husk one into one. Any idea on how to CW it? Or perhaps it could be edited into the question itself?
(more)
almost 3 years ago
Comment Post #283312 Oh great, I'll remove it then!
(more)
almost 3 years ago
Comment Post #283312 @#53310 But they're not distinct values otherwise, they're either 0 or some arbitrary positive integer. Is that alright?
(more)
almost 3 years ago
Comment Post #283175 I don't understand what's confusing you about them, but perhaps [this worksheet](https://scastie.scala-lang.org/4rnXDcJVTF27sQ3aVb1eDQ) will help.
(more)
almost 3 years ago
Comment Post #283268 ¯\\_(ツ)_/¯ Blackbox functions have been used a lot Somewhere Else without any problems (afaik). I'll remove that part if you like, though.
(more)
almost 3 years ago
Comment Post #280343 I see. Does Corsaka's answer count as a consensus? It's got 5 upvotes and no downvotes, and there aren't any answers that advocate *for* giving rep.
(more)
almost 3 years ago
Comment Post #283231 Thanks for clarifying that in the draft, but I don't like the error handling part. It doesn't add anything to the challenge and is just cumbersome. Much better to simply say that everything that's currently in the error handling section is just undefined behavior.
(more)
almost 3 years ago
Comment Post #280343 This is a bit embarrassing, but I can't tell if sandboxed posts still give rep, since I don't get a notification for reputation here like I would Somewhere Else. However, I'm about 70% sure I got rep off of a draft in the Sandbox, so if they do still give rep, could that be turned off any time soon?
(more)
almost 3 years ago
Comment Post #283231 What do `^^^` (`^ 3`) and `//` (`/ 2`) return? As far as I know, they aren't used as unary operators in math. Is this simply undefined behavior?
(more)
almost 3 years ago
Comment Post #283175 Ah, thanks, I've edited that into my draft.
(more)
almost 3 years ago
Comment Post #283076 I suspect this works in most golfing languages because so many have implicit input and automatically close strings and other structures 8=}.
(more)
almost 3 years ago
Comment Post #283035 Right, but it's your answer, so there was never any competition between us: it's not as if you could've beaten me to cracking your own answer.
(more)
almost 3 years ago
Comment Post #283175 @#54114 I've clarified what a blackbox function is, let me know if there's anything else I need to add. (btw, how did you write [blackbox-function] like that?)
(more)
almost 3 years ago
Comment Post #283175 @#53588 Yes, anything reasonable is allowed. The challenge explicitly allows "A string that can be evaluated to get a function," actually.
(more)
almost 3 years ago
Comment Post #283176 Of course, this question is about replacing [tag:code-golf-tips] entirely. If all [tag:code-golf-tips] questions are retagged, then it should go away.
(more)
almost 3 years ago
Comment Post #283166 That's true. I was going to go with the (n×"super") factorial question on SE that got closed, but I don't know if the author will let me repost that yet. I'll think up something to change it up a little.
(more)
almost 3 years ago
Comment Post #283135 A p p r o v e d i t !
(more)
almost 3 years ago
Comment Post #283135 I know, I read the docs right after you suggested the golf :)
(more)
almost 3 years ago
Comment Post #283135 Thanks! (pad pad)
(more)
almost 3 years ago
Comment Post #283094 Feels like JSFuck, but it doesn't work on TIO :/. *Might* be brainflak, but given the fact that you're Shaggy, JS seems more likely :P
(more)
almost 3 years ago
Comment Post #283036 Actually, it's `(w-11)>>1`, or `(w-11)/2`, but that can still be `w/2-5`, I guess.
(more)
almost 3 years ago
Comment Post #283036 Oh wow, that was dumb (the `11>1` thing, I mean). Thanks!
(more)
almost 3 years ago
Comment Post #282798 This is already banned, I think, since any macros, functions, or variables you use have to be included in the byte count if they're not available otherwise.
(more)
almost 3 years ago
Comment Post #283035 What do you mean?
(more)
almost 3 years ago
Comment Post #283007 Oh, and you can post an answer [here](https://codegolf.codidact.com/posts/283034).
(more)
almost 3 years ago
Comment Post #283007 @#53196 That's right! How did you find out?
(more)
almost 3 years ago
Comment Post #282982 Why am I not surprised? :P
(more)
almost 3 years ago
Comment Post #282997 [Forth](https://tio.run/##S8svKsnQTU8DUf//62koOOcXFCsk5qUoBOUnJaUWFWv@/w8A)
(more)
almost 3 years ago
Comment Post #282965 Well, robbers deserve to have upvotes on their answers for their effort IMO. There's a lot less motivation to crack a cop otherwise.
(more)
almost 3 years ago
Comment Post #282825 I'm not sure this needs to be said; it's a pretty obvious rule, but it might be good to have it written explicitly.
(more)
almost 3 years ago
Comment Post #282786 This is a good idea, but you may want to restrict it to delimiters that won't be part of the output, or you might get `1.2.3.4` while outputting a list of decimals after using `.` as the separator.
(more)
almost 3 years ago
Comment Post #282537 @#53588 Alright, thanks!
(more)
almost 3 years ago
Comment Post #282537 @#53588 Wow! Are you sure you don't want to write that last one as your own answer?
(more)
almost 3 years ago
Comment Post #282534 [39 bytes](https://tio.run/##K6gsycjPM/7/v6AoM69EI00JQkNwQWmJhqamdjWUVauppPn/v6EBAA)
(more)
almost 3 years ago
Comment Post #282481 Sounds like a great idea. Could a [code-bowling] tag be made to work the same way as [highest-score]?
(more)
almost 3 years ago
Comment Post #281550 @#53579 Oh wow, I can't believe I didn't think of that!
(more)
almost 3 years ago
Comment Post #282449 @#53196 I would personally prefer byte count, but why not post another meta question and let people vote on it? Also, thank you so much for the leaderboards! It's wonderful to have them integrated into Codidact.
(more)
almost 3 years ago
Comment Post #282431 It may help to give a short explanation of how negabinary works (convert 110 to 4 + -2 + 0 = 2 or something like that). If that's given, I'm not sure the example code, which may not be helpful for some people anyway, is needed.
(more)
almost 3 years ago
Comment Post #282455 I agree with Quintec. The input format is just plain cumbersome and adds nothing to the challenge. A lot of submissions are probably going to have to spend ~30% of their bytes on just parsing that. I'm not downvoting this challenge, but I'm not going to upvote it either.
(more)
almost 3 years ago
Comment Post #282449 It's possible this happens because of [this line](https://github.com/codidact/qpixel/blob/develop/public/assets/community/codegolf.js#L233), where it keeps the leaderboard from before if it's already loaded. Perhaps sorting the leaderboard in `getLeaderboard` itself might fix it.
(more)
almost 3 years ago
Comment Post #282426 Nice! It's a pity Python can't do `1.&` or even `1.__and__`.
(more)
almost 3 years ago
Comment Post #282428 Nice answer! A link to this would be nice. You could try using [regex101](https://regex101.com/).
(more)
almost 3 years ago
Comment Post #279221 Wow, never thought I'd actually see toadj_ used somewhere. +1
(more)
almost 3 years ago
Comment Post #282319 @#53196 Whoops, didn't realize that. Off-by-one errors are the two things I hate most :P. And yes, the input will be an array and a set of indices.
(more)
almost 3 years ago
Comment Post #282319 @Moshi Thanks for reviewing my draft! About your first comment - that's not a mistake, the 5 is exclusive, but I'm removing that part anyway, since it won't be a contiguous subset anymore.
(more)
almost 3 years ago
Comment Post #282081 @Hakerh400 Thanks, I don't know how I missed that.
(more)
almost 3 years ago
Comment Post #282075 Is it alright if we number them `n..1` instead of `1..n`?
(more)
almost 3 years ago
Comment Post #281958 You can get this to [62 bytes](https://tio.run/##K6gsycjPM7YoKPr/P802JzE3KSVRoUIn0TY61ipNoyLa0CpWJ1E7uiLaIDY2M00BRKfmFKcqJEZb6RrGaoKEFCAC/wuKMvNKNNI0og10YNBUxzxWU5MLLmOoYwQUNUYTMwVCA7CMgY4FhnpjHROwjCUWk6AQKPMfAA), and probably lower with Python slice black magic.
(more)
almost 3 years ago
Comment Post #281721 Nice! You can get [71 bytes](https://tio.run/##ZVJda4MwFH33V1wCAzMCbZImfmy@7nnvIkHWuAk2Wk0fxuhv764fbS0VYszJ9Zxzc9L9@p/Wyctlbyuowo45mjZZ7l67zeYIVdsjdKS1gw7qCtzL8Z0Xb731p95N5U2@LSjuNGCbwYKbeLwdfDi@vsrB0jQAfLq@dneQgXX7jKRA6GqXfJbDYPdklKputTnp@va7Lw@kYHAHa9edPCkoZNkKbU9@gmc75KOsGySkQTD6OpS1Cxc/1184ZPAHN4...
(more)
about 3 years ago