Timeline for Division and remainder
Current License: CC BY-SA 4.0
129 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 11 at 22:49 | answer | added | ATaco | timeline score: 1 | |
Nov 6 at 20:25 | answer | added | xrs | timeline score: 1 | |
Oct 16, 2023 at 0:49 | answer | added | chunes | timeline score: 3 | |
Jul 28, 2023 at 1:46 | answer | added | The Thonnu | timeline score: 3 | |
Jul 27, 2023 at 19:06 | answer | added | Bbrk24 | timeline score: 1 | |
Jul 27, 2023 at 3:18 | answer | added | chunes | timeline score: 1 | |
Jul 27, 2023 at 2:40 | answer | added | noodle person | timeline score: 3 | |
Mar 23, 2023 at 21:41 | answer | added | ATaco | timeline score: 2 | |
Mar 22, 2023 at 20:12 | answer | added | The Thonnu | timeline score: 2 | |
Mar 22, 2023 at 11:50 | answer | added | Shaggy | timeline score: 2 | |
Dec 5, 2022 at 5:33 | answer | added | SectorCorruptor | timeline score: 2 | |
Dec 4, 2022 at 23:23 | answer | added | Jordan | timeline score: 2 | |
Jul 11, 2022 at 4:59 | answer | added | Monad | timeline score: 2 | |
Jul 11, 2022 at 3:10 | answer | added | Vadim Tukaev | timeline score: 1 | |
Jul 11, 2022 at 2:22 | answer | added | bigyihsuan | timeline score: 1 | |
Jul 1, 2022 at 21:05 | answer | added | Aiden Chow | timeline score: 1 | |
Jul 1, 2022 at 20:19 | answer | added | naffetS | timeline score: 3 | |
Feb 12, 2022 at 17:36 | answer | added | Deera Wijesundara | timeline score: 1 | |
Nov 30, 2021 at 0:14 | answer | added | chunes | timeline score: 1 | |
Nov 29, 2021 at 22:59 | answer | added | DLosc | timeline score: 4 | |
S Apr 19, 2021 at 17:59 | history | bounty ended | rydwolf | ||
S Apr 19, 2021 at 17:59 | history | notice removed | rydwolf | ||
S Apr 12, 2021 at 17:00 | history | bounty started | rydwolf | ||
S Apr 12, 2021 at 17:00 | history | notice added | rydwolf | Reward existing answer | |
Apr 12, 2021 at 16:55 | answer | added | Aaroneous Miller | timeline score: 3 | |
Apr 6, 2021 at 2:57 | answer | added | lyxal | timeline score: 1 | |
Apr 6, 2021 at 2:29 | answer | added | Deadcode | timeline score: 7 | |
Apr 6, 2021 at 1:45 | comment | added | Deadcode | To get even more the the core of the issue, I actually do think the divmod ban could have been really interesting in and of itself, but only if the question required people to show both the with-divmod and without-divmod versions side by side, so the ban's effect could really be appreciated by people not familiar with the language. But as it is, I feel it's a blemish on the question, like how Is it a completely even number? is the closest thing to a Powers of 2 question on the whole site, but it isn't one. | |
Apr 6, 2021 at 1:05 | comment | added | Deadcode | To elaborate, I think answers to questions like this in languages designed for short golf aren't going to be too interesting anyway, divmod ban or not. What those answers can serve is to give a feel for what the languages are like / capable of. This is a question begging for answers like the BitCycle, brainfuck/flak, OIL, and regex ones. Languages with no modulo builtin, or no division, or even no arithmetic. If some answers are more interesting from the divmod ban, it should've happened in a different question asking for 2 related functions that no language is likely to have a built-in. | |
Apr 6, 2021 at 0:34 | comment | added | Leo | That's an interesting point of debate, I would still rather see less straightforward solutions but I can understand why you can argue about allowing single-builtin solutions. In any case, this challenge is definitely too old and with too many answers to change the rules now, but you can always post an answer respecting the rules stated in the challenge and add a "if divmod builtins were allowed" extra section to your answer. Posting the single builtin alone as a separate answer would still be against the rules, though. | |
Apr 6, 2021 at 0:25 | comment | added | Deadcode | @Leo I want questions like this to serve as a "library" showing how various languages golf a particular iconic/common calculation. To me the builtin of any language that has one is the most interesting answer, because it shows what that language is capable of. Every single language that has such a builtin is an example of this, with no exceptions. Answers that are handicapped by the "no divmod" rule are completely uninteresting to me. Also, P.S.: in my previous comment, where I said "allow", I actually meant "encourage". | |
Apr 6, 2021 at 0:15 | comment | added | Leo | @Deadcode my reason for banning divmod builtins is that in many languages the shortest answer would be just the builtin itself, which I would describe as a very uninteresting answer rather than a "best golf". Did you have any example language in particular where the divmod builtin would result in an interesting answer? | |
Apr 5, 2021 at 23:26 | comment | added | Deadcode | This challenge's rule about not using divmod builtins is horrible. Maybe the challenge's author didn't want them used, but I would much rather see each language's truly best-golfed form of division and modulo. At this point it's too late to simply remove that rule since dozens of answers took it into account, but how about editing the challenge to allow you to submit two answers, one that uses a builtin if available and one that doesn't? | |
Apr 5, 2021 at 22:05 | answer | added | Deadcode | timeline score: 11 | |
Jan 21, 2020 at 11:58 | answer | added | Kevin Cruijssen | timeline score: 2 | |
Jan 21, 2020 at 11:42 | answer | added | Kevin Cruijssen | timeline score: 3 | |
Jan 20, 2020 at 14:21 | answer | added | user85052 | timeline score: 0 | |
Jan 20, 2020 at 14:18 | history | edited | user85052 | CC BY-SA 4.0 |
added 3612 characters in body
|
Dec 11, 2019 at 21:23 | comment | added | 640KB | If this could be accomplished in a single operation by a method that isn't a divmod or meant to be a mathematical operation, would that be forbidden? I'm speaking of things like self-modifying code and abusing base-conversion... | |
Dec 11, 2019 at 21:22 | answer | added | 640KB | timeline score: 3 | |
Sep 15, 2019 at 9:04 | answer | added | TheOnlyMrCat | timeline score: 1 | |
Sep 15, 2019 at 8:07 | answer | added | user85052 | timeline score: 1 | |
Apr 12, 2018 at 12:08 | answer | added | caird coinheringaahin g♦ | timeline score: 1 | |
Sep 10, 2017 at 3:53 | answer | added | MD XF | timeline score: 1 | |
Jun 16, 2017 at 18:13 | answer | added | MD XF | timeline score: 1 | |
Apr 11, 2017 at 20:53 | answer | added | Engineer Toast | timeline score: 1 | |
Apr 11, 2017 at 20:41 | comment | added | Albert Renshaw | @Leo Haha! Thank you, I just cmd+f "positive" and "negative", silly me | |
Apr 11, 2017 at 20:40 | comment | added | Leo |
@AlbertRenshaw 0<=a<=255, 1<=b<=255 , it's right there in the Input/Output rules ;)
|
|
Apr 11, 2017 at 20:38 | comment | added | Albert Renshaw |
I'd recommend adding that input will always be positive. Negative modulo is arbitrary in many languages, some return remainder while others return inverse-remainder (or x-rem). For example in C (-5)%(3) is -2 whereas on Wolfram|Alpha (-5)%(3) is 1 . There is no defined standard.
|
|
Apr 11, 2017 at 20:05 | answer | added | Martin Ender | timeline score: 2 | |
Apr 2, 2017 at 20:29 | answer | added | caird coinheringaahin g♦ | timeline score: 2 | |
Mar 31, 2017 at 10:41 | answer | added | Jan Drozen | timeline score: 3 | |
Mar 31, 2017 at 2:36 | answer | added | pizzapants184 | timeline score: 1 | |
Mar 30, 2017 at 18:32 | answer | added | 2xsaiko | timeline score: 1 | |
Mar 30, 2017 at 12:54 | answer | added | Engineer Toast | timeline score: 1 | |
Mar 29, 2017 at 3:47 | answer | added | 0 ' | timeline score: 6 | |
Mar 28, 2017 at 13:57 | history | edited | Leo | CC BY-SA 3.0 |
added 149 characters in body
|
Mar 28, 2017 at 13:55 | answer | added | Tom291 | timeline score: 4 | |
Mar 28, 2017 at 13:52 | answer | added | manatwork | timeline score: 1 | |
Mar 28, 2017 at 13:48 | answer | added | manatwork | timeline score: 1 | |
Mar 28, 2017 at 13:34 | answer | added | Steadybox | timeline score: 1 | |
Mar 28, 2017 at 12:16 | answer | added | idrougge | timeline score: 1 | |
Mar 28, 2017 at 12:06 | answer | added | Adám | timeline score: 2 | |
Mar 28, 2017 at 10:21 | answer | added | Erik the Outgolfer | timeline score: 0 | |
Mar 28, 2017 at 9:00 | answer | added | Shaun Bebbers | timeline score: 0 | |
Mar 28, 2017 at 7:39 | answer | added | DLosc | timeline score: 25 | |
Mar 27, 2017 at 23:23 | comment | added | Brian McCutchon | This error message contains part of the title of an answer to this question. (Are you trying to eval it?) I suggested an edit to said answer to make it follow your format as a temporary solution. | |
Mar 27, 2017 at 23:17 | comment | added | Brian McCutchon |
If it helps, when I run it, I get "[Error] Error: Syntax error, unrecognized expression: QBasic (<a href="https://drive.google.com/open?id=0B0R1Jgqp8Gg4UVliSTE0MzdLcEU" rel="nofollow noreferrer">Get it here</a>) 4.5 ".
|
|
Mar 27, 2017 at 22:42 | comment | added | Leo | @BrianMcCutchon strange, it worked fine earlier... unfortunately, I can't check it now since I'm from my phone. If anyone knows how to fix it feel free to edit the question, otherwise I'll have a look at it tomorrow morning. | |
Mar 27, 2017 at 22:34 | answer | added | Leo | timeline score: 5 | |
Mar 27, 2017 at 22:30 | comment | added | Brian McCutchon | The code snippet doesn't appear to display anything? (Actually, it displays "Winners by Language Language User Score" but nothing else.) | |
Mar 27, 2017 at 22:18 | answer | added | Dennis | timeline score: 15 | |
Mar 27, 2017 at 22:05 | answer | added | Brian McCutchon | timeline score: 2 | |
Mar 27, 2017 at 22:04 | answer | added | ATaco | timeline score: 3 | |
Mar 27, 2017 at 21:51 | answer | added | kaoD | timeline score: 1 | |
Mar 27, 2017 at 21:31 | answer | added | Bijan | timeline score: 3 | |
Mar 27, 2017 at 21:16 | answer | added | steenbergh | timeline score: 1 | |
Mar 27, 2017 at 21:08 | answer | added | steenbergh | timeline score: 1 | |
Mar 27, 2017 at 21:04 | answer | added | steenbergh | timeline score: 1 | |
Mar 27, 2017 at 19:47 | answer | added | Redouane Red | timeline score: 2 | |
Mar 27, 2017 at 19:20 | answer | added | DLosc | timeline score: 6 | |
Mar 27, 2017 at 19:14 | answer | added | MickyT | timeline score: 6 | |
Mar 27, 2017 at 18:52 | answer | added | DLosc | timeline score: 2 | |
Mar 27, 2017 at 18:29 | answer | added | Blue | timeline score: 2 | |
Mar 27, 2017 at 17:27 | answer | added | Greg Martin | timeline score: 1 | |
Mar 27, 2017 at 17:03 | history | edited | Cyoce | CC BY-SA 3.0 |
added 1 character in body
|
Mar 27, 2017 at 16:42 | answer | added | Leo | timeline score: 1 | |
Mar 27, 2017 at 16:10 | answer | added | Martin Ender | timeline score: 6 | |
Mar 27, 2017 at 16:07 | answer | added | SuperJedi224 | timeline score: 1 | |
Mar 27, 2017 at 15:53 | answer | added | Abel Tom | timeline score: 4 | |
Mar 27, 2017 at 15:49 | answer | added | Laikoni | timeline score: 3 | |
Mar 27, 2017 at 15:47 | answer | added | Neil | timeline score: 1 | |
Mar 27, 2017 at 15:46 | answer | added | SuperJedi224 | timeline score: 0 | |
Mar 27, 2017 at 15:41 | answer | added | SuperJedi224 | timeline score: 0 | |
Mar 27, 2017 at 15:21 | answer | added | Adám | timeline score: 11 | |
Mar 27, 2017 at 15:14 | history | tweeted | twitter.com/StackCodeGolf/status/846379895555047425 | ||
Mar 27, 2017 at 14:59 | answer | added | Erik the Outgolfer | timeline score: 2 | |
Mar 27, 2017 at 14:40 | answer | added | Luke | timeline score: 3 | |
Mar 27, 2017 at 14:26 | answer | added | Riley | timeline score: 5 | |
Mar 27, 2017 at 14:22 | answer | added | Jörg Hülsermann | timeline score: 0 | |
Mar 27, 2017 at 14:13 | answer | added | Luis Mendo | timeline score: 7 | |
Mar 27, 2017 at 14:11 | answer | added | Martin Ender | timeline score: 15 | |
Mar 27, 2017 at 14:04 | answer | added | AdmBorkBork | timeline score: 2 | |
Mar 27, 2017 at 13:58 | answer | added | Suever | timeline score: 2 | |
Mar 27, 2017 at 13:56 | comment | added | mbomb007 | The BF algorithm for divmod, of course. esolangs.org/wiki/Brainfuck_algorithms#Divmod_algorithm | |
Mar 27, 2017 at 13:55 | answer | added | adrianmp | timeline score: 0 | |
Mar 27, 2017 at 13:54 | answer | added | mbomb007 | timeline score: 0 | |
Mar 27, 2017 at 13:54 | answer | added | Luke | timeline score: 5 | |
Mar 27, 2017 at 13:53 | answer | added | Jörg Hülsermann | timeline score: 0 | |
Mar 27, 2017 at 13:47 | comment | added | Leo | @mbomb007 Which BF algorithm? | |
Mar 27, 2017 at 13:45 | comment | added | mbomb007 |
Unfortunately, the BF algorithm doesn't work if the divisor is 1 .
|
|
Mar 27, 2017 at 13:45 | comment | added | Leo | @EriktheOutgolfer if you know that they need to be reversed you have no problem in distinguishing them :) | |
Mar 27, 2017 at 13:32 | comment | added | Erik the Outgolfer | @Emigna Yeah, I was not sure if reversing didn't make them indistinguishable though. | |
Mar 27, 2017 at 13:30 | comment | added | Emigna |
@EriktheOutgolfer: You may choose any format you like for both input and output, as long as the two numbers are clearly distinguishable
|
|
Mar 27, 2017 at 13:29 | comment | added | Erik the Outgolfer |
Can I reverse the arguments, i.e. instead of providing a b providing b a instead?
|
|
Mar 27, 2017 at 13:28 | answer | added | Mama Fun Roll | timeline score: 0 | |
Mar 27, 2017 at 13:24 | answer | added | Erik the Outgolfer | timeline score: 1 | |
Mar 27, 2017 at 13:18 | answer | added | Erik the Outgolfer | timeline score: 0 | |
Mar 27, 2017 at 13:13 | answer | added | Erik the Outgolfer | timeline score: 6 | |
Mar 27, 2017 at 13:13 | answer | added | Socratic Phoenix | timeline score: 7 | |
Mar 27, 2017 at 13:08 | answer | added | fəˈnɛtɪk | timeline score: 2 | |
Mar 27, 2017 at 13:05 | answer | added | Fatalize | timeline score: 9 | |
Mar 27, 2017 at 13:04 | answer | added | Erik the Outgolfer | timeline score: 6 | |
Mar 27, 2017 at 12:59 | answer | added | Martin Ender | timeline score: 4 | |
Mar 27, 2017 at 12:51 | answer | added | L3viathan | timeline score: 5 | |
Mar 27, 2017 at 12:50 | answer | added | Martin Ender | timeline score: 6 | |
Mar 27, 2017 at 12:48 | answer | added | Rod | timeline score: 5 | |
Mar 27, 2017 at 12:40 | answer | added | fəˈnɛtɪk | timeline score: 10 | |
Mar 27, 2017 at 12:38 | history | asked | Leo | CC BY-SA 3.0 |