« first day (1990 days earlier)      last day (3077 days later) » 

04:01
Attempting to validate information not meant to be read by a computer is a futile task
@Quill why don't you have like a drop-down for country code. and three text boxes for the three parts of a phone number. then all you gotta do is check if the textboxes are numbers
@Downgoat because that's not how this works
How about this phone?
new xkcd:
I really want to do that now
04:14
Well you don't see this everyday
A question with no votes cast on any answers
-1
Q: Print the ASCII printable character set

Dmitry KudriavtsevChallenge: Print the entire printable ASCII charset, in order. [space]!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ (Of course, replace space with the actual space character.) Rules: read closely No other characters allowed in the output. Pro...

You could fix that by upvoting my answer ;)
It's not a particularly interesting challenge, IMHO
@charredgrass Cute. Maybe my answer instead?
:P
;)
@Phrancis True
Yeah none of these answers are interesting because the challenge is quite bland
woah I didn't know Mego was into Pokemon Go:
25
A: Why would a Pokemons CP show as "???"?

MegoThe CP is hidden if it's higher than any CP that you've caught. This is easily seen when starting out a new game, where all of the starter choices' CPs are hidden, despite being very low.

04:17
The challenge might as well be "write a loop from X to Y"
I suppose we're going to see this Pokemon Go shit for a while. The folks on Gaming.SE are probably annoyed.
Anybody willing to help me optimize a program?
>_> cheddar is 1 byte away from CJam
@Quill what is a unique?
@Downgoat Varys from GOT I guess
@Quill Please, no. The Pokémon GO fad is crazing me. à_á
04:22
is pokemon go like new game?
ughh I hate all this Pokemon Go talk
I just want to stop thinking about it until I get back to the US where it works :P
._.
@anyoneplshalp how to ternary without left recursion?
You'd think you could do:
@Downgoat hwat
I have expression like:
04:25
brb tearing off a new account and claiming the name anyone pls halp on there.
So you'll have someone to help.
E -> Ea Eb
Ea -> Function
      U_op E
      Property
Eb -> P_op E
      whitespace
So i need to add ternary to Ea
In the meantime, I'm reading the Apollo 11 Guidance Computer source code for the command and lunar modules. github.com/chrislgarry/Apollo-11
i hvae no idea how because if i do:
E -> Ea Eb
     E ? E : E
Ea -> Function
      U_op E
      Property
Eb -> P_op E
      whitespace
that's a problem
and if I do:
E -> Ea Eb
     EaEb ? E : E
Ea -> Function
      U_op E
      Property
Eb -> P_op E
      whitespace
oh shit that works nvm
2
# pp. 1517-1751: GAP-generated tables.
@Downgoat Can you help me with an algorithm really quick?
04:30
This may be the longest digitised book I've ever seen.
@VTCAKAVSMoACE as long as it isn't too much maths ok
@Downgoat Unique IP access
oh
wow ok
@zʏᴀʙiɴ101 ;-; why u do dis Zyabin
@Downgoat It's a little mathy
I'm trying to reduce my big-O from O(log(n)) to O(1).
04:32
The fad is crazing me à_á
^
@VTCAKAVSMoACE ono
Okay, so, basically, I've got this program that does this:
@VTCAKAVSMoACE I thought you were mınxomaτ you avatars look alike >_>
... V ≠ m
Let's call my function f. It takes a positive integer and returns a boolean array.
ok
@MᴀʀsUʟᴛᴏʀ would CheddarShuntingYard work with ternaries? I've added a ternary class but idk if it'll work
04:35
f(1) = [false]
f(2) = [true]
f(3) = [false, false]
f(4) = [true, false]
f(5) = [true, true]
f(6) = [false, false, false]
f(7) = [true, false, false]
f(8) = [true, true, false]
f(9) = [true, true, true]
f(10) = [false, false, false, false]
See the pattern?
still looking :P
declare @ int=32;while(@<=126)begin;print char(@);set @+=1;end
ah ok see it now
Yay I did it too
76 bytes but, oh well
Cheddar beat you by 69 bytes :P
04:38
0
Q: Is case sensitivity important?

user6245072Tom is going to implement a new programming language of his invention. But before actually starting working on it, he wants to know if his language should be case sensitive or not. On one hand case insensitivity seems more easy to implement to him, but he worries that it could cause a lack in t...

@Downgoat Don't worry, we all do errors. :)
@Downgoat Well, I'm using a production language ;P
So far, my algorithm looks like this:
@Phrancis ಠ_ಠ ;_;
boolean[] f(int val) {
	int length = 0;
	for (; length < val; length++, val -= length);

	boolean[] set = new boolean[length];

	for (int i = 0; val > 0; i++, val--) {
		set[i] = true;
	}

	return set;
}
04:39
ok
However, this requires that weird for loop.
@Downgoat can you update the REPL with the new version, your Cheddar answer is borked on the REPL
That doesn't matter for really small numbers, but up in the billions, it becomes troublesome.
You just gotta do a make browser_build and then copy Cheddar.js to the main site repo
@Quill uh if someone wants to encrypt my SSH key with travis sure
I've already got an auto-deploy script
04:40
like do it manually
with your hands hooves and everything
ew no cheese gets dirty because hooves touch mud
ok, sure I'll update
@VTCAKAVSMoACE Is that an empty for loop with no body?
@Phrancis It executes ; on every iteration. It's just a shorthand for:
@Phrancis can't while(@<=127) become while(@<126)?
for (; length < val; length++) {
    val -= length;
}
04:43
@Quill Yeah I suppose :)
or whichever direction it is
@VTCAKAVSMoACE idk Java but in JS:
@VTCAKAVSMoACE that one is more clear. but in either case, I would make sure to leave a very obvious comment explaining why you are doing this
// README! This is needed because ...
var totalsize = ((Math.sqrt(1+8*n)-1)/2)|0;
var noftrues  = ((Math.sqrt(8*n-7)-1)/2)|0;
Array(noftrues).fill(true).concat(Array(totalsize-noftrues).fill(false))
@Phrancis Oh, I'm not doing this for readability yet.
04:48
@VTCAKAVSMoACE Sometimes I forget I'm on PPCG and not Code Review >_>
@Downgoat noftrues ?
noftrues = number of trues
Just call is numberOfTrues then :P
too long
50 secs ago, by Phrancis
@VTCAKAVSMoACE Sometimes I forget I'm on PPCG and not Code Review >_>
you forgot again :P
OK, call it trues then
nah
ok
04:49
nah you can golf it, just call it t
@Downgoat What is |0;?
floor
Ah, cool
|0; does look like a guy falling on the floor, if you look at it sideways
3
04:53
@Downgoat Can you explain this algorithm to me?
@Downgoat You you prefer a challenge about cheddar cheese or goats?
well the totalsize is the triangle sequence thing. this:
0,
1, 1,
2, 2, 2,
3, 3, 3, 3,
4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6,
7, 7, 7, 7, 7, 7, 7, 7,
I looked that up on OEIS and I got this:
floor((sqrt(1+8*n)-1)/2)
the next sequence was
0;
0, 1;
0, 1, 2;
0, 1, 2, 3;
0, 1, 2, 3, 4;
0, 1, 2, 3, 4, 5;
0, 1, 2, 3, 4, 5, 6;
0, 1, 2, 3, 4, 5, 6, 7;
0, 1, 2, 3, 4, 5, 6, 7, 8;
0, 1, 2, 3, 4, 5, 6, 7, 8, 9;
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10;
I did an OEIS lookup for that too and got:
Floor[(-1 + Sqrt[8 n - 7])/2]
the latter sequence is the number of trues at the beginning of each array
so i have no idea how the algorithm works i just do OEIS lookups :|
@Downgoat // TODO learn how this algorithm works
3
05:01
@Downgoat Doesn't work.
f(1) = [true]
f(2) = [true]
f(3) = [true, true]
f(4) = [true, true]
f(5) = [true, true]
f(6) = [true, true, true]
f(7) = [true, true, true]
f(8) = [true, true, true]
f(9) = [true, true, true]
f(10) = [true, true, true, true]
wait wat
@HelkaHomba About both!
ah whoops i know what I did wrong
@Phrancis I assume you know Java and JS, right?
@VTCAKAVSMoACE I know some Java, very little JS
05:03
Ah, okay, I wanted to make sure I did the last line of his code right.
Next to SQL, Java is probably my best language, for all that's worth. Not that good at it though.
@VTCAKAVSMoACE What's a Laura?
@Phrancis Laura is a programming language that accepts libraries as though they were plugins, but it can fundamentally change behavior and syntax.
Read the README.md
05:07
o.o
Okay
Basically, it formats to whatever seems best (either as told by the user or by an algorithm), mixes the libraries together into a syntax-flexible language.
Laura runs on JVM?
I'm planning to build language plugins to allow it to splice CJam and Pyth together or something crazy like that.
;_; OEIS failed me sequence didn't work
@Phrancis ye
05:08
JVM <3
Eh.
I'd like Java more if it compiled to computer byte code instead of Java byte code.
They would both compile to ML though, wouldn't they? (eventually)
@Phrancis ML?
/me hunts for a wikipedia article.
Machine Language
Ones and zeroes
oh yeah
That's what I meant.
It's not currently, as far as I'm aware.
05:15
@VTCAKAVSMoACE fixed:
Because the thing I dislike about Java is the start time. .14 seconds to boot up isn't very fun.
function f(n) {
  var totalsize = Math.floor((Math.sqrt(1+8*n)-1)/2);
  n++;
  var _nft = Math.floor((-1 + Math.sqrt(8*n - 7))/2);
  var noftrues = (n - _nft * (_nft + 1)/2) - 1;
  return Array(noftrues).fill(true).concat(Array(totalsize - noftrues).fill(false))
}
@VTCAKAVSMoACE You haven't done much C#, have you? ;P
@Phrancis Learning it now, for that specific purpose. ;)
@VTCAKAVSMoACE Cheddar makes Java look blazing fast >_>
05:16
It is worth noting that I'm a high school student. ¯\_(ツ)_/¯
i have 0.2s-0.3s startup time ;_;
C# is pretty fast, if you can get Visual Studio to boot/work
@Downgoat _nft symbolizes a helper value of some sort, I assume?
yeah
Anyways, Java seems like a pretty decent language/platform, seems to have less baggage than C# and JavaScript (but more than Python)
05:18
you can ditch the n++ for:
function f(n) {
	var totalsize = Math.floor((Math.sqrt(1+8*n)-1)/2);
	var noftrues = (n - totalsize * (totalsize + 1)/2);
	return Array(noftrues).fill(true).concat(Array(totalsize - noftrues).fill(false))
}
@Downgoat Vitsy runs on Java and loads up a JS evaluator as well. ;) It's about a .6 second startup time.
@Downgoat Still no:
f(1) = [false]
f(2) = [false]
f(3) = [true, false]
f(4) = [false, false]
f(5) = [true, false]
f(6) = [true, true, false]
f(7) = [false, false, false]
f(8) = [true, false, false]
f(9) = [true, true, false]
f(10) = [true, true, true, false]
> function f(n) {
var totalsize = Math.floor((Math.sqrt(1+8*n)-1)/2);
var _nft = Math.floor((Math.sqrt(8*n+1)-1)/2);
var noftrues = (n - _nft * (_nft + 1)/2);
return Array(noftrues).fill(true).concat(Array(totalsize - noftrues).fill(false))
}
for (var i = 1; i < 11; i++) {
console.log(f(i));
}
[Log] [false] (1)
[Log] [true] (1)
[Log] [false, false] (2)
[Log] [true, false] (2)
[Log] [true, true] (2)
[Log] [false, false, false] (3)
[Log] [true, false, false] (3)
[Log] [true, true, false] (3)
[Log] [true, true, true] (3)
what
anybody around who knows some PHP?
oh maybe i did my maths wrong one sec
05:21
@Quill yeah
I forgot something, lol
@Downgoat why does this not work: foreach(range(32,128)as $i)echo chr($i);
f(1) = [false]
f(2) = [true]
f(3) = [false, false]
f(4) = [true, false]
f(5) = [true, true]
f(6) = [false, false, false]
f(7) = [true, false, false]
f(8) = [true, true, false]
f(9) = [true, true, true]
f(10) = [false, false, false, false]
Yay
fun fact: I spent a month debugging a bug why my thing wasn't working, turns out a spelt password_verify as password_vertify
@Downgoat erect thine password
> vertify
05:22
@Quill uh
works for me
php > foreach(range(32,128)as $i)echo chr($i);
 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~?
you updated and all?
@Quill they are probably running old version of php
;-; I'm gonna post it anyway
ok
i feel like Cheddar looks too much like Ruby >_>
ruby's lambda literals turn out to be exactly like what I was planning to do in Cheddar:
-> (foo, bar) { baz }
f(100000000) takes .04 seconds to calculate now.
<3 thanks @Downgoat
05:27
:) np
thanks for the help there Pokemon@Downgo
@Quill where? :|
The only problem is that it reaches a point where it can't calculate anymore, but I likely won't be running the 100000000th round of Rummy anytime soon. :P
@Downgoat with the PHP thing
oh np :)
they should totally make a pokemon named "Downgoat"
11
I'd buy the game if they did that
brb sending email
05:29
@Downgoat Ruby doesn't have the parens
(Or at least they're optional)
@Downgoat Go is free to play though!
@Downgoat Inverted goat-like creature? yes please.
@charredgrass oh :|
@Doorknob yeah, but generally a lot of other things are pretty similar like .upper .lower .each
idk imo ruby has neat syntax
dammit they don't have a "contact us"
alright I'm going to work on my emoji JavaScript interpreter
omg found a contact us
pokemon website devs forgot CSS happened
05:33
lol
@Downgoat Wow. That design is... something...
RIP CSS
@Downgoat I'll have a go in Photoshop later for you
> Gogoat has the ability to sense the feelings of whoever grips its horns; this ability is so acute that it can move as if it and its rider were one being. Wild Gogoat live in mountainous regions and choose their leader by locking horns.
That's pretty awesome
05:37
@Quill <3
@Doorknob ._.
I have a trick with the leader thing. I am upside down so I can't lock horns with normal goats so i automatically win everytime :D
@Downgoat Nope.
The upright goat wins.
wat why
The leader holds their horns up.
no i turn around to hold my horns down
oh cool I have access to "Review"
05:48
\o/
@charredgrass You now have access to review queues First Posts and Late Answers, which frequently have nothing to do.
@zʏᴀʙiɴ101 yeah I realized that, still cool for a SE newbie
>_> I think I just made the most inefficient parser:
I want to make a dialect of Python where the only change is that lambda can be substituted with λ just for golfing purposes
T -> Ea Eb ? E : E
E -> T
     Ea Eb
05:54
@charredgrass I see you got the association bonus.
@Downgoat wat?
I am repeating the Ea Eb 6 times
Ea and Eb take some time to parse
I wouldn't know, since I can't read that code ;_;
// TODO write readable code
05:57
my code is very readable >:|
Walk me through pls
I guess there's a difference between Code Review readable and PPCG readable...
Code Review: "I can't read that it's too short"
PPCG: "I can't read that it's too long"
9
05:59
@Downgoat That's more like it
:D
btw i made it more efficient :D

« first day (1990 days earlier)      last day (3077 days later) »