« first day (200 days earlier)      last day (1042 days later) » 

07:23
This is my Brain-flak Magnum Opus:
0
A: Are the brackets fully matched?

DJMcMayhemBrain-Flak, 1101 bytes {({}<>)(<>())(<>{}<>)(({}))((((()()()()()){}){}){})({}[{}]<(())>){((<{}{}>))}{}{{ }{}(<{}>)((()))(()<>)(<><{}>)}{}(({}))((((()()()()()){}){}){}())({}[{}]<(())>){(( <{}{}>))}{}{{}{}(<{}>)((()))(()<>)({}[{}](<()>)){{}{}(<(())>)}{}{<>{{}}<>{{}}((<( )>))}{}(<><{}>)}{}(({}))(((...

2
@WheatWizard ^
 
7 hours later…
14:35
@DJMcMayhem Do you have an easy way to filter out non-brackets? If so, this could help you golf that down a lot (it's 126 bytes, but assumes everything is a bracket)
Hmmm... Is there a was to send really long links?
Here it is without an explanation: tio.run/nexus/…
15:12
@DJMcMayhem Here's a quick golf I threw together
 
3 hours later…
17:53
Here's a golf of that golf
@WheatWizard I appreciate it, but since that doesn't have comments I don't understand how it works so I won't be able to golf it anymore. And I'd like to do some golfing on my own, this is a rough first draft
Also, I tried running your metagolfer on my original, and it added two bytes, lol
@DJMcMayhem Ok I don't know how it works either I just did a bunch of small golfs on your solution
@DJMcMayhem Yeah the metagolfer needs some work
Have you seen my commented version?
@DJMcMayhem link?
17:58
Thanks!
Oh man this is so much clearer
The big thing you can do to reduce bytes overall is the pushpop reduce
It's extremely inefficient though, the algorithm is fully repeated for each bracket
17:59
#Push 123
((((((()()()()()){}){}){}())){}{})

#Check if they equal
({}[{}]<(())>){((<{}{}>))}{}
Can be reduced into
((((((()()()()()){}){}){}())){}{}[{}]<(())>){((<{}{}>))}{}
Oh, I see. Nice
That should save 16 bytes
@WheatWizard BTW, I noticed yesterday that it's possible to setup a chatroom so that certain GitHub activity is automatically posted into the room. Would you like me to add brain-flak commits to this room?
I can also set it up for all activity (PRs, issues, comments, merges, commits, etc.) but I'm not sure exactly how (or if that's wise)
I think its a good idea neither github or this chat are terribly active so it shouldn't hurt anyone
OK. All activity or commits?
@DJMcMayhem I think all activity would be fine
we can change it if it becomes a problem
Actually, I can't figure out how to. I could do each one individually
18:07
eh just do commits then
While I'm at it
@Riley Here's one that reverses the stack
and Here's a slightly longer one that keeps everything in the same order
I guess I didn't mean filter... I need a way to exit if there are any non-bracket characters.
I don't think you want to filter, you want to error if there are non-brackets
Oh, ninja'd
@Riley I zeroed a counter once it matches any bracket, and if the counter was non-zero I pop everything to break
There's probably a better way to do it though
Could you make a commented version of your code?
18:23
posted on January 01, 0001 by Wheatwizard

Fixed #57

posted on January 01, 0001 by DJMcMayhem

Removed utf8 mode, changed handling of non-ASCII Now all ASCII IO will use utf8 encoding

posted on January 01, 0001 by DJMcMayhem

Fixed bug with unicode input

posted on January 01, 0001 by DJMcMayhem

Updated version number

posted on January 01, 0001 by Wheatwizard

Fixed inconsistencies between erorr messages

@Riley This will determine if a character is in ()<>[]{} I don't know if that is helpful
@DJMcMayhem I have one, but I'm not sure what the best way to post to TIO link is because it's too long
I used gist
I guess that's what tinyurl is for. I don't know why I didn't think of it right away...
Without comments it's 428 bytes.
I'm not 100% sure there aren't any bugs though

« first day (200 days earlier)      last day (1042 days later) »