Is my extension-like library allowed to be used in answers?
I'm not a golfer, I know, but I do have wanted to make a programming language back then. The name is BMPL (Builder's Multi-Purpose Language) and is currently a library I made in C (clang). It's not essentially for golfing or even an esoteric language, but a simple to understand and basic syntax language which I have planned months ago that was never accomplished. Instead, I spent my time making functions for the language and it's what you have in that repository.
I want to use this library for a "Hello, World!" answer which is some simple code:
main(){say("Hello, World!")}
And I've been wondering if I could even post such thing.
Question: Can I answer using this in-progress non-golfing language that's only a library right now (and would stay that way unless I got to know how to make a real compiler)?
2 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 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
M
The only sensible rule is that all C contributions using macros have to post the macro as part of the counted code.
Yes, including the fact that it's in C.
Using a heading such as "C + BMPL" that links to the library and explains what it does should be fine. I also think that having a way to run it (preferably in one line) to verify solutions would be nice.
2 comment threads