Skip to main content
13 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Feb 21, 2020 at 14:13 comment added Mathgeek The entire program is a single-execution function. It gets called automatically on program compilation and execution. The top comment on that post literally says "+1, this is the de facto standard for CJam and GolfScript" All that the "input" tab on TIO does is stick it on the stack anyways, as a string. Golfscript doesn't "take in parameters", so this is how it's done.
Feb 19, 2020 at 23:36 comment added Jo King @Grimmy I don't think this is a function though? I'm not that familiar with Golfscript, but given that the only thing in the header is the input, and the code doesn't seem to be called from the footer, it looks just like a snippet that relies on the input being on the stack
Feb 18, 2020 at 13:21 history edited Mathgeek CC BY-SA 4.0
lower bytecount
Feb 18, 2020 at 2:10 comment added Grimmy @JoKing There is.
Feb 18, 2020 at 0:51 comment added Jo King What IO rule allows Golfscript to take hard coded input? I'm pretty sure there isn't one
Feb 17, 2020 at 20:09 history edited Mathgeek CC BY-SA 4.0
Fixed links
Feb 17, 2020 at 18:19 comment added Mathgeek 21 bytes by using header-input. This is a very clever solution! using line-break comma-notation. I do try to avoid using newlines in Golfscript as a rule since it messes with my explanation block, but I can probably find an equivalent.
Feb 17, 2020 at 18:12 history edited Mathgeek CC BY-SA 4.0
Bitcount and repair
Feb 17, 2020 at 18:02 comment added Grimmy Down to 23 bytes.
Feb 17, 2020 at 17:46 comment added Mathgeek It's funny because I thought about doing it in this way, and I thought about the string-array-splicing thing, but for some reason I never thought about doing both! I'll edit that in :)
Feb 17, 2020 at 17:05 history edited Mathgeek CC BY-SA 4.0
fixed IO a bit.
Feb 17, 2020 at 16:52 history answered Mathgeek CC BY-SA 4.0