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 »
Meta

Post History

50%
+1 −1
Meta Is my extension-like library allowed to be used in answers?

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 ...

posted 3y ago by Lundin‭  ·  edited 6mo ago by Timwi‭

Answer
#2: Post edited by user avatar Timwi‭ · 2024-05-14T06:10:13Z (6 months ago)
grammar
  • 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.
#1: Initial revision by user avatar Lundin‭ · 2021-07-01T08:17:49Z (over 3 years ago)
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.