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

Is my extension-like library allowed to be used in answers?

+2
−0

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)?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

Library feedback (3 comments)
library link is broken (2 comments)

2 answers

You are accessing this answer with a direct link, so it's being shown above all other answers regardless of its score. You can return to the normal view.

+6
−0

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.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

Additional points (1 comment)
+1
−1

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

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.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

2 comment threads

Golfing languages (4 comments)
General (2 comments)

Sign up to answer this question »