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

Type On... Excerpt Status Date
Comment Post #283137 @#53588 Oh I misunderstood it then. Means I can easily shave this down some more.
(more)
almost 3 years ago
Comment Post #283137 @#53588 No idea what you mean. The task is to print a string "true" or "false".
(more)
almost 3 years ago
Comment Post #283138 Headers would have given it away, it was already quite easy 🙂 The answer is C or C++. Compiles with gcc default settings. C++ does not need iso646.h I believe.
(more)
almost 3 years ago
Comment Post #282482 @#8046 I think the most sensible implementation would be that each community can decide which categories that should use rep or not. Meta being one (perhaps set to no rep by default?), another example is sandbox categories like here on Code Golf.
(more)
almost 3 years ago
Comment Post #282477 @#54114 If you post it under Code Review, there doesn't need to be a specific problem to solve. Rather you are expected to post complete & working code. If you are extra curious about for example portability or performance or style etc you can mention it in the question though, as that tells reviewer...
(more)
almost 3 years ago
Comment Post #282491 @#53501 Except it is listed as C (clang). And with the new scoreboard system, it bumps away all solutions that _are_ actually C (clang).
(more)
almost 3 years ago
Comment Post #282491 @#54114 In this case you should add the function/function-like macro used. Otherwise anyone can just use the "`M` library" from my example for any single challenge.
(more)
almost 3 years ago
Comment Post #282239 Couldn't we have Codidact-specific challenges. Recreating the [Mathematics logo](https://codidact.com/community-assets/math/logo-large.png) sounds like fun but tricky challenge.
(more)
almost 3 years ago
Comment Post #282482 @Monica Cellio Isn't the issue here rather that the various metas shouldn't count rep of the main site. The posts proposed here would sit on meta. Other than that, I don't have any problem personally with giving a lot of rep to someone who makes the effort to draft up these rules in detail per langua...
(more)
almost 3 years ago
Comment Post #282477 There's a lot of issues with the library - most notably you should never define functions inside header files. I'd recommend to post it for Code Review at https://software.codidact.com/categories/44
(more)
almost 3 years ago
Comment Post #282345 I posted a solution too, just for reference. Would this challenge be interesting in other languages too?
(more)
almost 3 years ago
Comment Post #282345 Curious to see how this turns out. Wasn't sure if I should restrict it to 15 or go with 100. The snippets would turn rather long in that case. Is this challenge sensible in a lot of different languages? The language won't need a line number counting feature, though it probably helps.
(more)
almost 3 years ago
Comment Post #281029 CD is an abbreviation for Codidact now? :( Aargh... I'm allergic to strange abbreviations. Especially of the kind that are already taken by Compact Disc.
(more)
about 3 years ago
Comment Post #281542 You need to specify if these strings are taken as program input or if they can be constants. For example in C, you can merge two string literals by just typing `"ABC" "DEF"`. But to merge strings taken as input in run-time, it turns much more intricate.
(more)
about 3 years ago
Comment Post #279722 @trichoplax. This one already went live [here](https://codegolf.codidact.com/posts/279820). And we still need a way to formalize moving things from sandbox to live challenge... guess I should mark it as "finalized" like some people do. As for the link, Roman numbers should be common knowledge really....
(more)
about 3 years ago
Comment Post #280408 @Hakerh400 Ok. I have a feeling overall that these requirements would rule out a lot of languages, why I never posted it.
(more)
over 3 years ago
Comment Post #280408 @Hakerh400 How so? It's pretty clear what a comment consists of in most languages?
(more)
over 3 years ago
Comment Post #280408 The only requirement is that the symbols must visually appear as "ABC..." etc and the underlying encoding symbol table doesn't matter.
(more)
over 3 years ago
Comment Post #280408 @DJMcMayhem‭ Yeah it won't be possible to solve this challenge in Brainfuck and similar languages.
(more)
over 3 years ago
Comment Post #280408 @Razetime I think we should allow any source code format?
(more)
over 3 years ago
Comment Post #280408 Curious to know how if the 26 line requirement holds in plenty enough different languages or if too many languages enforces either stand-alone symbol-only lines, or non-alphabetic order (for example VB `Private Sub... End` wouldn't work since that language enforces line feed formatting with `End` on ...
(more)
over 3 years ago
Comment Post #279883 Covid 19 holidays happened unfortunately, I had no time to post this before xmas.
(more)
over 3 years ago
Comment Post #280343 "We can't currently vary properties of post types per category" This is strange though. The various metas shouldn't give rep IMO and that's a much bigger issue than the sandbox category on some sites.
(more)
over 3 years ago
Comment Post #280242 I think test cases (such as examples of input/output) should not only be encouraged but mandatory. An example snippet of a non-golfed version in some common programming language is encouraged, as discussed [here](https://codegolf.codidact.com/posts/279635).
(more)
over 3 years ago
Comment Post #279883 @Razetime‭ That's kind of the core of this whole silly joke :) Tannenbaum = Christmas tree in German, though it could as well have been the name of some less famous computer scientist :) O Tannenbaum refers to a famous Christmas carol, etc.
(more)
over 3 years ago
Comment Post #279883 Would appreciate some feedback on this! Is it too confusing? Too silly? Could I clarify it? Or draw ASCII art prettier somehow?
(more)
over 3 years ago
Comment Post #279856 Amusingly, this is "Y macros", not "X macros"... because X didn't sit well with Roman numerals. I got trouble in one version of the code that used `X(10,X)` :)
(more)
over 3 years ago
Comment Post #279797 I went ahead and proposed a [move post between different categories feature request](https://meta.codidact.com/questions/279815). It would be generally handy to have, I think.
(more)
over 3 years ago
Comment Post #279797 Great idea. Although... is there a point in archiving old, finalized sandbox posts? Otherwise I believe that the best solution would make it possible for the poster move the post between categories, from sandbox to live challenges.
(more)
over 3 years ago
Comment Post #279755 However, chasing down a specific poorly-specified program output to a certain compiler, system + options could perhaps be an interesting and very different challenge. If you write a program that purposely does something bad, resulting in crazy results, then task people to find a system and compiler t...
(more)
over 3 years ago
Comment Post #279755 A problem with your example is that can only be reproduced with a non-standard compiler for that language. So you would have to specify to what extent non-standard language extensions are allowed and if your program relies on them... which in turn would be a major spoiler. Running `main;` on a confor...
(more)
over 3 years ago
Comment Post #279759 @Quintec‭ That's a l (L). And yeah the reason that l and 1 look identical on some fonts is the reason why one shouldn't name identifiers like that.
(more)
over 3 years ago
Comment Post #279754 Isn't it a big problem that the robbers can just "brute force" it with trail & error by trying online compilers until they find a match?
(more)
over 3 years ago
Comment Post #279759 And yeah `(int){8<88}<<8` can be rewritten as `1<<8` or `u'\xff'+!!u'\xff'` as `u'\xff'+1` but I'm saving the 1 for a rainy day.
(more)
over 3 years ago
Comment Post #279743 If snippets are ok, what about necessary libs to make the snippet run? That is, to access some language features I would strictly speaking have to include/import etc a lib.
(more)
over 3 years ago
Comment Post #279679 Oh, and `t` actually doesn't have to be char. So with gcc implicit int abuse, this should be possible: `t;f(char*s){s[1]?f(s+1):0;for(t=*s;s[1];*++s=t)*s=s[1];}`.
(more)
over 3 years ago
Comment Post #279679 Also, switching `while` with `for` will save you lots. `for(char t=*s;s[1];*++s=t;)*s=s[1];` should work. So how about this? `f(char*s){s[1]?f(s+1):0;for(char t=*s;s[1];*++s=t)*s=s[1];}`, 59 bytes.
(more)
over 3 years ago
Comment Post #279679 I think this might be a possible improvement: `f(char*s){s[1]?f(s+1):0;while(s[1]){char t=*s;*s=s[1];*++s=t;}}}`. In case s[1] is a character, it makes the recursive call and then while loop. If not, a `0;` dummy statement. `s[1]` is zero in that case so the while loop isn't executed.
(more)
over 3 years ago
Comment Post #279657 `*p=b+strlen(gets(b))` works too but gives identical size.
(more)
over 3 years ago
Comment Post #279639 Max length of input string?
(more)
over 3 years ago
Comment Post #279635 Probably a good idea. If the OP makes an attempt to write the non-golfed version of the challenge, then they'll realize various requirements that need to be addressed.
(more)
over 3 years ago
Comment Post #279601 What's the upper limit to number of items supported and the values themselves? Does it need to cover negative numbers?
(more)
over 3 years ago
Comment Post #279426 How can you say that it relies on non-standard extensions while lecturing me about the standard at the same time? It's either, not both at once.
(more)
over 3 years ago
Comment Post #279415 I think this is kind of cheating since that online compiler declares a main() elsewhere. Otherwise you could improve it to `m(){m();}`, 9 bytes, a recursive call that will eventually stack overflow with seg fault
(more)
over 3 years ago
Comment Post #279383 Nice solution since it's quite straight-forward, +1. I managed 108 bytes with same compiler settings (default gcc) but a much more obscure solution [here](https://codegolf.codidact.com/a/279365/279534).
(more)
over 3 years ago
Comment Post #279479 Then maybe the Q&A category needs to be "seeded" with some example questions so that people understand what it's for. The current help for categories and FAQ on this site isn't helpful.
(more)
over 3 years ago
Comment Post #279467 Seems to me like the majority of such questions should be asked on meta rather than Q&A. Otherwise this site has main site + 2 layers of meta...
(more)
over 3 years ago
Comment Post #279382 But essentially they are lying just to pose and feel good about themselves. If you post an ill-formed, non-conforming program in "language X", that also relies on non-standard extensions, you are actually not programming in language X but in something else. That gives them an unfair advantage to thos...
(more)
over 3 years ago
Comment Post #279408 default-rules then?
(more)
over 3 years ago
Comment Post #279408 This sounds reasonable enough, especially if help files can get kept up to date to match community consensus on meta. Maybe "code-golf-rules" or "challenge-rules" are better tag names though? Since standards might be confused with formal language standards.
(more)
over 3 years ago