« first day (2254 days earlier)      last day (2885 days later) » 

14:01
Alright, I've been coding this JS parser from scratch for several hours without ever testing it, but now is the time. Wish me luck :P
> without ever testing it
brave
@ETHproductions does it parse normal JS or es6
Isn't ES6 normal JS?
Both, eventually
Right now it just tokenizes numbers, strings, reserved words, identifiers, and any of ;()[]{} and whitespace
Um what does it parse to?
14:03
Right now it just creates a list of tokens
@ETHproductions what about operators
Eventually it's going to be a tool that lets you know where you can cut bytes off of a program or function
@Downgoat Should've added those before testing with alert("Hello\"" + 5); -_-
I'm curious if I could sanely write JS tokenizer in a single regex
I don't think will be too hard
I'm mostly using regex, but not entirely
Obviously you couldn't completely parse it in a JS regex due to the lack of balancing groups
@ETHproductions Is the parser written in JS as well?
Does it work?
14:07
It might be possible to tokenize JS using a JS regex, but the distinction between / and regex literal will be pretty hard
@KritixiLithos Yep, and yes, but not anywhere near fully yet
@ETHproductions wait why do you need blancing group
oh wait no recursion shit
I'll post it on GitHub once I finish the tokenizer
@ETHproductions but what about tokenizing JS regex with JS regex?
That's probably possible. Doing that within the other tokenizing regex would not be pretty though :P
@Riker @ATaco @MendeleevLemon GitGoat idea: I could add it so you have ability to download a repo's Wiki offline. Will this be useful?
14:11
prolly
@ETH finally, can your code tokenize itself?
Hang on, I haven't finished it yet :P
Gonna test it on this when I'm done
Oh hmm, I should probably tokenize comments too
Question: should => be tokenized in the same way as the "regular" operators? (I'm just lumping +, -, **, >=, &&, etc. into "operator")
@ETHproductions I mean technically it doesn't really matter, because you can always do if (token.data == "=>")
but I'd say so yeah
14:27
Hey I need English help.
Does "I couldn't care less" mean "I don't care"?
0
Q: plz send teh codez!

programmer5000 Note to Moderators and editors: This post's title is for effect and should not be changed. The misspelling is intentional and part of the challenge. Backstory The (stereo)typical bad SO question asks something along the lines of "plz send teh codez!" In other words, it asks someone to do ...

@LearnHowToBeTransparent Right. Many people say "I could care less" to mean the same thing, but that's incorrect
@LearnHowToBeTransparent If you can not care less, you care so little that it is impossible to care less.
Hmm, I think this regex matches all regexes: /\/(?:\\.|[^\\\/\n\r])+\/[gimux]*/
Oh shoot, that doesn't account for slashes in character classes (e.g. /[/]/)
@ETHproductions /a/gggg is not a valid JS regex
14:31
> SyntaxError: invalid regular expression flag g
Um. That's... probably not the least misleading error message
@KritixiLithos Not sure how to account for that though
I guess I can just take care of that in the parsing step, right now I'm just tokenizing. It seems like JS tokenizes it in the same way, since the extra g are clearly counted as part of the regex
have all permutations of gimux and separate them with |
What would you suggest then?
I think those are the only flags JS regexes support
I think this one works, excluding flags: /\/(?:\\.|\[(?:\\.|[^\]\n\r])+\]|[^\\\/\n\r])+\/[gimux]*/
I really don't care about the extraneous flags. JS tokenizes them as part of the regex and then throws an error when it tries to parse the regex, so I'll do the same thing
Do you use a regex to detect regex tokens? Isn't that impossible in some situations? Eg. is word /a/g two tokens word and /a/g or five tokens?
Actually, I think I need to replace [gimux] with [A-Za-z], as JS does the same thing for all of those
@fergusq word /a/g is tokenized as ["word", "/", "a", "/", "g"], while /a/g is tokenized as ["/a/g"]
I'm not entierly using regex, so it isn't that hard to determine if the previous token was a value or not
14:38
Yas I just made my first FGITW
stackoverflow.com/questions/17843691/javascript-regex-to-match-a-regex
So it depends on the character before the first / if it is a regex or not? I've never really understood how regex literals work.
Right, because 1/a/g would be 1 divided by a divided by g
0
Q: Climb into America

This GuyNow that other users have helped Trump build the wall, its time for you to climb it. This is a kolmogorov complexity challenge where you need to output a climbing wall with randomly placed holds. A climbing wall is made up of panels each of which has between 3 and 10 holds and is 5 panels high....

There, just finished an odd program of mine which maps strings into strings
LegionMammal978 is mapped to Oluzuyeranutuvimarapuyizuhegowofopubasulerexakazotadezexixitukuzogodevowacenumu‌​muwovowa
(which looks a lot like Welsh)
14:42
@LearnHowToBeTransparent That's pretty much exactly what I have, except I don't have the anti-comment check because I've already handled comments, and I don't have all the permutations at the end because the JS tokenizer really does just do [A-Za-z]*
@ETHproductions i think you are making a programming language, right?
14:56
The MSG about
@NewMainPosts ugh
I just love political challenges
@Riker monosodium glutamate?
15:15
@LearnHowToBeTransparent Just making a JavaScript parser
@Riker AFAIK Monosodium (L-)Glutamate
AFAIK it's not the neurotransmitter glutamate, it's glutamic acid
Is there not an april fools event this year?
Not having an april fools event is an april fools event itself to fool people being aware of april fools events.
15:55
tfw 40 kb is the winner in a code golf
user165474
lol That is hilarious.
user165474
@Riker Madison Square Garden? (Sorry I'm late to join the discussion :D)
There you go :P
user165474
Thanks :P
user165474
NewMainPosts usually takes about 5 minutes or so to post.
16:02
0
Q: PPCG is shutting down! [April Fools]

HyperNeutrinoPPCG is shutting down! April Fools! PPCG is not shutting down... I hope. Your task is to create a program that can be run in the browser console. When it is run with any code golf page open (any questions, the API pages, etc.), it should delete everything from the window and replace it with thi...

I'm surprised there haven't been any other April Fools posts yet
@HyperNeutrino What specifically are the "API pages"?
user165474
@ETHproductions I forgot that the API URLs belong to StackExchange itself. So I'm editing that out of the question. :P But pretty much you make requests to API urls and they give you JSONs.
So the challenge is to edit any page that starts with codegolf.stackexchange.com, right? What about the meta site?
@HyperNeutrino yay rules changed
winner (my answer) has 102 bytes :D
user165474
@ETHproductions lol I just edited that right after you said it :P But meta counts as part of the site.
user165474
16:08
@betseg Sorry about the rule change; I needed to clarify something.
oh i didnt mean your challenge
i meant the plz send codez one
@HyperNeutrino Is my answer valid?
user165474
@ETHproductions What browser are you using to test it?
user165474
@betseg oh lol :P
Firefox 54.0a2 (Developer Beta)
user165474
16:10
Version?
It should work in all modern browsers though
user165474
It doesn't seem to work on mine... It just makes the entire window solid black.
What browser are you using?
just tested, works with Chromium 57
user165474
I am using Firefox 51.0.1 64-bit on Linux Mint
user165474
16:13
Oh well it works now @ETH
user165474
No idea what happened the first time I tried
52 is out, mint plz upgrade ff
user165474
kk
user165474
Does sudo apt-get upgrade firefox work?
16:19
@HyperNeutrino Did you see my comment?
0
A: Sandbox for Proposed Challenges

This GuyClimb to America Now that other users have helped Trump build the wall, its time for you to climb it. This is an ascii art challenge where you need to output a climbing wall with randomly placed holds. A climbing wall is made up of panels each of which has between 3 and 10 holds and is 5 panel...

@HyperNeutrino you need to update first
user165474
Like sudo apt-get update?
yup
user165474
oh rip
16:23
what happened
user165474
I just wasted time doing upgrade ;_;
lol
user165474
probably should've asked people who actually know how to do things first :P
16:36
I got tons of errors from TIO while messing around with sed regex and this happened
'twas just a print statement that caused this
user165474
lol That's very strange
user165474
also my april fools challenge got +2/-2 :(
17:00
I can update my video drivers in the middle of playing a game with no hiccups, but my xbox controller dongle drivers? noooooooo
My entire screen has been flickering for a good fifteen minutes now.
Why is it taking 15 minutes to install a driver in the first place?
/r/place now has a full tux and a full arch logo. what a time to be alive!
Do you think we could be able to do the PPCG Logo?
(The grad-script one)
too few of us :(
Why the heck would someone draw the F1 logo in there :P
lel
17:07
Looks like someone's either working on the Mona Lisa, or it was finished a while ago and it's being overwritten now
2 groups are working at the same time
ninja'd
Oh, found the other one. It's not as sophisticated
You lot see the nearly empty place of to tho the right? There's some green squares?
I propose we start building the PPCG logo there.
17:12
r/greenlattice?
user165474
Apparently my April Fools' challenge gave someone a heart attack rip
I vaguely remember another "PPCG is shutting down" announcement, probably from last April 1st...
user165474
@ГригорийПерельман It was Christopher, hopefully he was joking
user165474
17:15
@ETHproductions Probably another April Fools' prank :P
Hmm, can't find it tho
user165474
Maybe it was deleted afterwards?
lol, four of the top ten posts in r/place are about germany taking over france
> Russian government posts April Fools' Day prank offering "election interference"
@ETHproductions wait what
@ETHproductions oh non
@ГригорийПерельман hahahaha
So should we start on the PPCG logo?
@Downgoat Under the transformation I described earlier, you are now Eluxodahecedavewokabinodujojiyewemilesobupewu
user165474
@LegionMammal978 What transformation is this? I am confused.
17:28
abra.me/place-snaps/recent.png reddit place constantly updating (1000*1000 png)
@HyperNeutrino It maps strings to strings
user165474
Oh cool.
> davewok
oh no what did you do to dave
user165474
@Downgoat How many people have done the Down-[something] thingy?
@betseg What's that from?
17:29
@betseg The ongoing battle between the German and French flags is cool
@LegionMammal978 reddit.com/place
user165474
Would you say that this comment is kind of borderline spam?
user165474
(Public Opinion Poll)
@HyperNeutrino Two. Downchristopher and me
@HyperNeutrino yes
There were a couple others who have done it in the past tho, IIRC (can't remember who)
user165474
17:30
Cool. So wait, you just take your picture, rotate it 180 degrees, make it black-and-red, put a -1 over it, and then make your name start with "Down"?
user165474
@ETHproductions @Downgoat I personally think it's spam, but there are probably other similar ones. Should I flag it for moderator attention?
@betseg What's the pyramid thing do?
ACTIVATES THE ILLUMINATI
Which does...?
It was originally a beautiful prism I believe
user165474
17:33
VEhFX0lMTFVNSU5BVElfQVJFX0hFUkU=
@LegionMammal978 nothing
user165474
Oh god there's a hidden profanity in there ;_;
And this didn't exist before April 1?
yup
17:34
It was published more than 24 hours ago though
Will it continue to exist after April 1?
I'd guess not, but I have no idea
what time is it in the us?
@betseg That's an ambiguous question. The US is huge.
nvm googled it
i asked to estimate the earliest time that place could be removed
at least 15 hours
17:42
New York, 1:42 PM. California, 10:42 AM. Hawaii, 7:42 AM, I think
Ima go grab my mobile device to halve the wait time
Hmm.So I have this really old speaker/radio cabinet that doesn't work any more. Before I tear my Google Home apart to integrate it into this thing, any other ideas?
@SIGSEGV Who, me?
He obviously meant the other Geobits
I don't see why people just assume that the UrbanDictionary user Geobits is me >_>
I can see why
17:59
user image
6
Lenovo is selling notebooks for a just a few million € today. Perfect for students.
Woah
Phone cameras can record near UV
@0 ' Yeah. I didn't watch the video though; I just read the blog post. Then I couldn't find the setting to turn it on.
> while it is on/the eye is red, it will show you when a new pixel is placed.
TIL
@Geobits If you do, you must change the voice and vocabulary to reflect the time the cabinet was made. It's the law.
18:23
@Riker you wanna say the cities everywhere else are shitty? but I saved up so much money for traveling =/
to be honest, I'm not really a city guy anyway :D
0
Q: Draw me the (weird) unit circle!

SEJPMIntroduction You may know and love your normal unit circle. But mathematicans are crazy and thus they have abstracted the concept to any point that satisfies x*x+y*y=1. Because Cryptographers1 are also weird, they love finite fields and sometimes finite rings (it is not like they have much choic...

^ if you need quick clarification, you can also ping me here
I'm gonna stay ready for the next hour or so
@mınxomaτ I'd have to look it up again, but I think it was 1920/30s. So. Many. Vacuum. Tubes.
The only vacuum tubes I remember are those that carry fast-flowing air.
@Geobits Quiet, saying things like tubes or valves will summon many insufferable audio hipsters!
18:34
I think you have to say both tubes and vinyl in the same sentence for that. Shit.
Oh no, what have you done...
And I already felt like a hipster because I'm still using a dedicated MP3-player and not my phone.
I don't listen to music
I only listen to 1-bit music
@TuxCopter ie morse code?
3
18:39
@SEJPM Or just a constant, never ending, brain-piercing frequency. That's my coding music.
3
@mınxomaτ doesn't this hurt?
Less than bad code.
Sounds like Moondog Invocation to me
I hear my thoughts while programming
@KritixiLithos I also hear your thoughts while programming
18:40
I hear the sound of my CPU and GPU suffering while playing KSP
Or usually some background TV sound goes around in the house
@Geobits Have we met before? searches for bug
but bugs only transmit sound, not thoughts
My first pair of PC speakers had some shielding fault which caused them to receive longwave radio - when they were off, and only really quiet. This was a bit unsettling during the night until I discovered it.
I have a cheap pair that pick up a buzz from my wireless mouse :/
I've never used a mouse for a long time
@KritixiLithos so touchscreen or touchpad it is?
18:46
I do because trackpads are for the deranged.
Some trackpads are awesome.
@ConorO'Brien Got the tokenizer fully working, nested template strings and all \o/
I'll upload it to GitHub after I build a basic HTML framework for it
I use my trackpad quite often
@SEJPM trackpad
Not for games though (I imagine), but the only game I play only requires directional keys.
18:47
I only use my trackpad when my mouse bork
@Geobits mac = deranged
I use a trackpad only after cursing about not being able to find my mouse.
I wonder if someone here doesn't use a mouse/trackpad/touchscreen/whatever that controls the cursor
@SEJPM Regarding strange unit circles :)
Movie pirates are really late this year ....
18:54
heh
Maybe they're spending their time in jail?
@JanDvorak How lazy
Not likely. I'm sure there would have been loud "We caught the evil pirates!" stories in the news.
Maybe they've already learned that putting movie pirates in jail is not a very popular move.
Then why are there no decent releases :/
18:58
s/releases/movies/
Dang it, I can't get off of reddit.com/place
@LegionMammal978 Please help with the darth plagueis text
@KritixiLithos how would they reply to messages?
docs.google.com/spreadsheets/d/… <- official plans of the darth plagueis text
it even has an arch linux background on the top right side :D
@MendeleevLemon They wouldn't :P
Or maybe they'd use some JS-fu
@ETHproductions :o awesome!
19:17
@Conor It should show up at ethproductions.github.io/golf/golfer whenever GH pages feels like updating
seems to be working
Huh, now it does
found a bug. Try 3.42e2
/golfer doesn't work, but /golfer/ does
should be a single literal
19:18
@ConorO'Brien Oops, forgot e literals
I was just about to say "I'm sure I forgot something, so please try to break it for me" :P
haha wow
empty strings fail
ಠ = 3 also fails
Should both be fixed
@ConorO'Brien I haven't added unicode support yet
ah ok
> ಠ_ಠ = "why"; console.log(ಠ_ಠ)
< why
alright, looks pretty solid!
gonna try making my autofuscator now lol
19:29
@ConorO'Brien Testing on it your obfuscated code gives 419 tokens :P
I haven't checked to make sure everything's correct
@ETHproductions If I were you I'd separate the tokenizer logic into a separate file for easier modification
It's already in a separate function, is a separate file necessary?
I think it'd be nice, so other pages could include it in a <script> tag
@mınxomaτ Ok, it's a Philco Model 20, made in 1931. If you can provide TTS data for that time period, I will definitely do that.
@ConorO'Brien Hmm, yeah
I should just put all the code in a separate repo though
19:33
true
> Need inspiration? How about solid-palm-tree.
@ConorO'Brien OK, the new repo is here. Code on the way
Ugh. This this site uses cookies message is really annoying.
but they're required by law IIRC
Yeah, but still it's annoying
You should consider making it an npm module too
@Geobits Reminds me of my car gps, which has a Barron/Monarch mode. Though 1931 is not that far back.
Just the tokenizer, or the whole thing?
at least the tokenizer
@MendeleevLemon could you respond to this? codegolf.stackexchange.com/questions/114544/…
19:51
@mınxomaτ Yeah, some kind of fake posh British would work, but Great Depression US would be better lol
20:01
Dangit, I can't participate in r/place because I don't have a reddit account
@ETHproductions did you see the PR I made on the repo?
Now I did
Why /\r?\n|\r|\n/? The |\n should be unnecessary
oh true
modified PR
Looks good, but it won't work if there's a string or template literal containing a newline
20:07
Maybe just line += stripped.split("\n").length - 1; in the string and template code?
ok, did that
Just to double-check, rebase doesn't move changes from one branch to another, it just copies from one branch to another?
@MartinEnder I just did
I'm one of those people who memorized git commit -am and git fetch
20:13
haha
same here
ok, merged
awesome!
Just added it to the output now, I hope
Yay, it works :)
now to include column numbers too...
20:25
@MendeleevLemon Currently working with r/GreenLattice
@ConorO'Brien Recommendation: git commit -avs instead
all files, verbose, add signature
@LegionMammal978 Cool
20:43
0
A: Sandbox for Proposed Challenges

CarcigenicateAm I under Budget? Every 2 weeks when I get my cheque, I allocate a certain amount to last me until my next cheque, and bank the rest. To figure out how much I can spend per day and still remain under/on budget, I just need to divide the allocated amount by the number of days it needs to last me...

21:01
@ConorO'Brien Just pushed column stuff
nice! :D
user165474
3
Q: PPCG is shutting down!

HyperNeutrinoApril Fools! PPCG is not shutting down... I hope. Your task is to create a program that can be run in the browser console. When it is run with any code golf page open (any posts, like questions), it should delete everything from the window and replace it with this exact text: PPCG is shuttin...

user165474
Edited some things to try to clarify some things.
user165474
21:24
0
Q: i want to write a program that intilize the array elements from a user input then displays it

user67627include using namespace std; main() { int Arr[6]; cout << 'enter elements'< cant get around how to let the user enter the elements ;i am actually a begginer

user165474
TFW you have to decide between closing because of Unclear Question or Off-Topic (obvious Off-Topic here)
That wasn't so hard a choice
user165474
I agree.
user165474
Ok For a while, it had 1 view and 3 close votes (caching) which was kinda funny
user165474
Just waiting for the last close vote...
user165474
21:28
Question: After close-voting it, is it appropriate to downvote it as well? (Usually makes no difference as the user is at 1 rep to start with, unless they have the association bonus). Usually I don't downvote it, but some people do; do we have a consensus on this?
I'd say that yes, it is
user165474
Okay. Thanks.
user165474
Should I delete this codegolf.stackexchange.com/questions/114836/…? It doesn't seem to be making too much sense because there are too many loopholes.
I can see why you would
user165474
I'll nominate for re-opening to get some mod attention and if it isn't re-opened by tomorrow I'll probably delete it because it is very flawed.
user165474
21:34
Actually, does nominating for re-opening alert mods?
-1
Q: i want to write a program that intilize the array elements from a user input then displays it

user67627include using namespace std; main() { int Arr[6]; cout << 'enter elements'< cant get around how to let the user enter the elements ;i am actually a begginer

Let's not reopen-vote just to grab some attention
user165474
I mean, I also edited it to try to clarify some of the flaws that Dennis pointed out, and I also looked for some more loopholes, but I think it should be clearer and more well-defined now.
user165474
21:50
Why does the question @NewMainPosts just posted say that the question was asked by Community on the front page?
Prolly cause the user was deleted
That's weird though, I've never noticed that before
user165474
Maybe.
I think you can ask questions as a guest
user165474
But yeah, also on Community's user page, it says that the user hasn't posted.
user165474
Then again, Community is User# -1, so... it probably doesn't behave normally.
21:55
No, it never shows any of Community's activity
user165474
yeah Thought so.
afaicr, that is
user165474
I'm pretty sure Community isn't actually a user but just has a user page for some reason iirc
Hey @Conor, what would be the best way to versionize the tokenizer? I think just an extra parameter esversion would work fine, but should I call the versions 5, 6, 7, ... or 5, 2015, 2016, ...?
hm, I'm more familiar with 5, 6, 7 notation, tho I'm not sure which is objectively better
21:58
They've pretty much dropped 5, 6, 7 notation by now
I've never heard anyone talk about ES8
ECMAScript's standard is just ES5, ES6, ESNext (ES2016, ES2017, etc.)
I've heard ES6 and ES7 tho

« first day (2254 days earlier)      last day (2885 days later) »