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 »

Review Suggested Edit

You can't approve or reject suggested edits because you haven't yet earned the Edit Posts ability.

Approved.
This suggested edit was approved and applied to the post 6 months ago by Lundin‭.

7 / 255
  • If you actually use the library, sure, I guess. How you are going to get it running on online compilers, I have no idea. It's very uninteresting for others to view some code using a custom library though... you'd be golfing "single player".
  • Your answer here is doesn't use the library and is against the rules IMO:
  • https://codegolf.codidact.com/posts/279147?sort=age&page=1#answer-282484
  • Because you don't use some library, you just defined a function-like macro and then don't count characters in that macro. That can obviously not be alloweded, or otherwise I can easily beat you:
  • # [C (clang)], 1 byte
  • <!-- language-all: lang-c -->
  • M
  • [Try it online!][TIO-kqkmu1g5]
  • [C (clang)]: http://clang.llvm.org/
  • [TIO-kqkmu1g5]: https://tio.run/##S9ZNzknMS/@vnJmXnFOakqpgU1ySkpmvl2HHpZySmpaZl6rgq8CVmVeikJuYmaehWc2lAAQFpSXFGkoeqTk5@ToK4flFOSmKSprWXLX/ff//BwA "C (clang) – Try It Online"
  • ---
  • The only sensible rule is that all C contributions using macros have to post the macro as part of the counted code.
  • If you actually use the library, sure, I guess. How you are going to get it running on online compilers, I have no idea. It's very uninteresting for others to view some code using a custom library though... you'd be golfing "single player".
  • Your answer here doesn't use the library and is against the rules IMO:
  • https://codegolf.codidact.com/posts/279147?sort=age&page=1#answer-282484
  • Because you don't use some library, you just defined a function-like macro and then don't count characters in that macro. That can obviously not be allowed, or otherwise I can easily beat you:
  • # [C (clang)], 1 byte
  • <!-- language-all: lang-c -->
  • M
  • [Try it online!][TIO-kqkmu1g5]
  • [C (clang)]: http://clang.llvm.org/
  • [TIO-kqkmu1g5]: https://tio.run/##S9ZNzknMS/@vnJmXnFOakqpgU1ySkpmvl2HHpZySmpaZl6rgq8CVmVeikJuYmaehWc2lAAQFpSXFGkoeqTk5@ToK4flFOSmKSprWXLX/ff//BwA "C (clang) – Try It Online"
  • ---
  • The only sensible rule is that all C contributions using macros have to post the macro as part of the counted code.

Suggested 6 months ago by Timwi‭