« first day (1967 days earlier)      last day (1274 days later) » 

12:00 AM
@Upgoat That's not an accurate name?
On the other hand, Δ is "Delta" and means a change, usually small, that depends on context. For instance, if you're trying to approximate a root of a polynomial, 1 is pretty big.
Speaking of unicode, have we talked about the new emoji?
I've never seen it used to mean "increment".
Exciting additions like SELFIE and PANCAKES and AVOCADO
... they added avocado...
Who even decides what gets added and how? o.O
The Unicode Consortium.
@El'endiaStarman I remember that there is some application form you have to fill out to request one, and then it does to the consortium
they already have the best emoji though: 🐐
12:07 AM
I found ghost ಠ_ಠ: ರ‍_ರ‍
I thought ಠ_ಠ meme was over, are we still starring ಠ_ಠ :P
What should some static string properties be? e.g. String.something
@Upgoat .len or .length if you're not doing it as a function.
that is not static property though
I advocate for doing it as a function. :P
Oh right.
More general.
12:13 AM
because python does it? :P
That surely has a significant influence on my reasoning, yes. :P
Anyway, you mean properties of the String class itself?
How goes the Byte?
@El'endiaStarman yes
@HelkaHomba it's being golfed
@TimmyD yeah, I know what he is.
@EᴀsᴛᴇʀʟʏIʀᴋ can you halp wriet unit test for chedr
\o/ time to work on stdlib
12:26 AM
Whats the best argparser for ruby?
@Upgoat: There aren't a whole lotta static String things that are useful in general. Maybe you could put in the alphabet, uppercase and lowercase, and numerals.
@DrGreenEggsandIronMan commander
@El'endiaStarman ah, good idea. What should I name the alphabets. alphabet lowerAlphabet?
Oooh, I got a good idea. String.alphabet would detect the locale and output a localized alphabet
Python's string module has these:
>>> import string
>>> string.ascii_letters
>>> string.ascii_lowercase
>>> string.ascii_uppercase
>>> string.digits
>>> string.hexdigits
>>> string.octdigits
>>> string.printable
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c'
>>> string.punctuation
> .printable
> \x0b\x0c
@Upgoat That could be cool if/when it works.
12:36 AM
idk seems complicated, will add to TODO list
import StringLib from '../../../../../../stdlib/primitive/String/static';
npm has beautiful module support
My plan for this in Cheddar is in the Cpmfile to have an entry that says root=<path>. So you can do @/foo/bar and it'll become <path>/foo/bar Is this smart idea? :D
It'd probably be wise to add some sort of security consideration.
I'm assuming Elendia meant stuff like that
Well, I was thinking more along the lines of how easy it is to use @, so if you let someone execute code on your server/computer, it seems like it'd be difficult to prevent part of your filesystem from leaking.
how do other languages handle relative depepdencies then?
i dont want cheddar to be inseucre
i sohuld totally put padlock icon on website brb
12:48 AM
@Upgoat I don't know how Python does it, or any other language, for that matter.
I'm not totally sure how valid my point is since in Python, you can do the same with import os; print(os.getcwd()).
At least, it's not an intrinsic feature of the language, so there's a chance of preventing access.
TIL JS doesn't allow computed imports
halp, how fix circular dependency ;-; shit i think its impossible to fix this one
@Quill halp how solve ciurclar dependenci bug i tri so muc but eror
Why are you trying for a circular dependency
Sorry, was in an exam
oh, sorry for disturbing you then >_>
Okay so I have string class that looks like:
import static_props from 'blah.js'
class String {
     static scope = static_props
and then blah.js is:
@Upgoat What's that got to do with the language's security? o_O
import String from 'string.js';
export default new Map([
    ["alphabet", new String("abcdefisdfalj")]
so as you can see I have no idea how to resolve this one
1:00 AM
@Upgoat It's alright
When computer hackers see the padlock, they will know Cheddar is a hardened target and be dissuaded from hacking.
@feersum lol, basically.
and I left the cheese out so it is pretty hard and stale now :/
> Cheddar cheese is a relatively hard
from wikipedia
@Upgoat is that 'static props'
1:01 AM
@Quill yeah
I want String.alphabet to be a string itself
So string.alphabet is going to have a string.alphabet.alphabet
no because it's static prop
@Quill but that should error either
the same way the following works:
What's Cheddar for printing "Hello, Cheddar!"?
print "Hello, Cheddar!"
@Upgoat so what will string.alphabet look like?
1:07 AM
I'm away from a computer right now, so I can't really do much ;-; I should be home soonish
1:21 AM
halp, how to recursion optimize
@Upgoat convert non-tail recursion into tail recursion then replace tail calls with gotos and local variables
how to do that
@Upgoat how is code stored right now?
seems vrey hard gaot gievs up
@Upgoat well for every function def, check if you have a call to itself at the last node, then change the ast to replace with gotos
1:29 AM
pls gimme teh codez
@Upgoat If it helps in the slightest shtriped does tail call optimization and is written in JS
Though it's a much simpler language
@HelkaHomba I cannot read that source code. It uses tabs
._ .
1:57 AM
Nuke requested.
Check the main page.
@Upgoat No t right now, on mobile. Maybe 45 minutes?
If anyone can think of a better place to direct the poor soul, please comment
(the rep requirement's a tad annoying sometimes, unfortunately)
@Sp3000 ?
Q: I want to be a software develoler

user8790I want to be a software developer so which language i should start first, how aggressive should i practice to excell in it. And i have a lot of intrest in Android and IOS development.

^^ that
2:16 AM
Speaking aloud clearly and accurately is hard work :|
@Insane lol
am i the only one who thinks that "i want to be a software develoler" can be considered a variation of "how does juice an avocado"?
I wonder when people see Java golf's from a complete beginner what their first thought is. Either "Why are you using Java this is Code Golf" or "At least if you're using Java make it creative"
@dorukayhan yes
@HelkaHomba yes
especially when they don't speak cat. :/
2:35 AM
There is lookbehind in java? :o
@Insane I like how Leaky uses "we"
@LeakyNun So how are you all today?
@HelkaHomba I am fine, thank you
@HelkaHomba I know lol
@EᴀsᴛᴇʀʟʏIʀᴋ meowy aide
2:43 AM
yes i have
is borked
says "eggplant" all time
Side note: it's annoying when something simple is available as an app but not online
is char[] allowed for an output of String in Java?
@HelkaHomba appetize.io
@LeakyNun yes
@dorukayhan thanks
2:45 AM
u can simply use System.out.println(someCharArray);
@LeakyNun ;)
@Insane Welcome to PPCG and to this chatroom!
@Maltysen 'Nother note: it's annoying when free trials still require you to create an account
@HelkaHomba wait shit, that isn't free
Didn't look like it. I may be wrong
2:51 AM
@Insane Why have you still not updated, lol
@LeakyNun Because I can't get it to work in my compiler
which part of it errored?
I haven't checked it in java
@EᴀsᴛᴇʀʟʏIʀᴋ Not surprised, I love VintageBeef.
char[]r(char[]s){int i=0,j=0,n=s.length;char[]o=new char[n];for(;i<n;i++){if((s[i]+"").matches("(?![eiou])[b-z]")){o[j++]=s[i];s[i]=‌​65;}}for(i=0;i<n;i++)if(s[i]==65)s[i]=o[--j];return s;}
2:54 AM
Yeah, I get the same errors
try breaking the code up into lines
Don't you have a ungolfed version?
No, I just modified your code directly.
@VTCAKAVSMoACE have you tried the life in the woods modpack?
One second
2:56 AM
if so, is the shader + graphics part of it?
wow, I have a Chromium process that's taking >10GB ram
@EᴀsᴛᴇʀʟʏIʀᴋ I use those shaders by default. The modpack is too heavy for me.
2:58 AM
I gtg, bye!
@EᴀsᴛᴇʀʟʏIʀᴋ obai
@Insane You see the linebreak in the code above? There, it inserted a U+200B (zero-width space)
Type that part by hand
Why the heck did it do that lol
It actually inserted like 4 of them
Also y is a vowel per OP definition. Should I add that to the regex?
3:02 AM
s/s[i]=65/s[i]=0/, s/s[i]==65/s[i]<1/
sure, I forgot that
What's that snippet?
I mean, s/replace this/to this/
@Insane nice!
3:10 AM
thanks, I learned quite a bit
65 instead of 'A' saves a byte, I love it
@EᴀsᴛᴇʀʟʏIʀᴋ >_> sorry forgot to give you RW perms
@HelkaHomba I actually had to do a bit of math to figure out whether I rode in a car as often as I've posted messages in here, and it turns out to be about a 1:3 ratio.
I've got to go for a bit but I will get to any other suggestions you got @LeakyNun side note I answered 2 other Java golf's earlier if you want to check those out also
@Insane Ok, see you
@HelkaHomba I have posted exactly 23551 messages in 19B (counting this one). I have been alive for 15 years (rounding down). I would have to have eaten approximately 4.302 M&Ms every day since I was born to exceed my message count here. Assuming ~17 M&Ms per bag, that's a little under 2 bags per week. So yeah, I'm pretty sure I have more messages than M&Ms.
On the other hand, 2 car rides per week (well, more, compensating for when I was very young) is perfectly reasonable.
3:16 AM
@El'endiaStarman In favor of TNB?
@HelkaHomba Yep.
@Doorknob we need a challenge to calculate M&Ms per day
It's tricky to estimate, though thinking about it more I feel I should have selected car if every time I get in or out of a vehicle counts
@Doorknob For my rough estimation, I assumed that I had ridden in a car on average once a day.
Especially since a large portion of my life was spent living out in the country, so a car ride was basically a necessity if you wanted to go anywhere further than the neighborhood.
How did you still get more 19B messages? O_o
You have 24.9k, about the same number as I do.
3:20 AM
365.25 * 24 = 8766. A little more than the number of days I've been alive.
@El'endiaStarman well, now we know your age :P
@Maltysen My age wasn't really ever a secret in here. :P
How about compare to: Number of times you've unlocked your smartphone (if you have one)
@HelkaHomba That'd be 0 since I don't have one. :P
If you count anyone's smartphone though, the number is probably less than 100 still.
@HelkaHomba this one is close...
3:24 AM
@Upgoat yeah
@Doorknob Jeez. I swear El'endia has been a common PPCG user for less than half the time I have but has over double my message count
.... :D ?
@El'endiaStarman I'm not sure if it's good or bad either :P
Oooh, hey @Geobi- @Bigtoes, how hard would it be to calculate the total word count of every user's messages?
3:32 AM
Help us @Geobiwan Bitsobi, you're our only hope.
1, 2, 4, 6, 8, 10, 12, 16, 18, 20, 22, 24, 28, 30, 32, 36, 40, 42, 44, 46, 48, 52, 54, 56, 58, 60, 64, 66, 70, 72, 78, 80, 82, 84, 88, 92, 96, 100, 102, 104, 106, 108, 110, 112, 116, 120, 126, 128, 130, 132, 136, 138, 140, 144, 148, 150, 156, 160, 162, 164, 166, 168, 172, 176, 178, 180, 184, 190, 192, 196, 198, 200, 204, 208, 210, 212, 216, 220, 222, 224, 226, 228, 232, 238, 240, 250, 252, 256, 260, 262, 264, 268, 270, 272, 276, 280, 282, 288, 292, 294, 296, 300
What do these numbers have in common?
@El'endiaStarman nice passive/aggressive name change hate
not hate, but it's late and I have no better word
@LeakyNun they are all even
@EᴀsᴛᴇʀʟʏIʀᴋ That's neither necessary (e.g. 1) nor sufficient (e.g. 14)...
oh okay
they are all integers
No, seriously..
3:34 AM
i am right
do i get cookie
@EᴀsᴛᴇʀʟʏIʀᴋ No, it's more like I started typing his usual name and then realized/remembered what it is now. :P
oh okay
@LeakyNun thankee
gtg again bai!
@EᴀsᴛᴇʀʟʏIʀᴋ May the force be with you.
No response to "Geobiwan Bitsobi"? Is TNB broken?
3:38 AM
CMC: Generate the n-th positive that can be written as a product of the Fibonacci numbers (1,1,2,3,5,8,13,21,...)
NOT duplicate:
Q: Fibonacci products

orlpYou can decompose a number greater than 0 as a unique sum of positive Fibonacci numbers. In this question we do this by repeatedly subtracting the largest possible positive Fibonacci number. E.g.: 1 = 1 2 = 2 3 = 3 4 = 3 + 1 12 = 8 + 3 + 1 13 = 13 100 = 89 + 8 + 3 Now, I call a Fibonacci produ...

@LeakyNun were those numbers you posted earlier our test cases?
@Maltysen Related, but not exactly the same.
In particular, I have no idea how to generate the testcases, because I currently do not have an algorithm for that.
1,2,3,4,5,6,8,10,12,13,15,16,18,20,21 (by hand)
@El'endiaStarman Not hard I guess, if you have a recent chat dump. I have one from months ago :/
Assuming you have a good definition for "word". I'm not quite sure whether faces or other artwork should count.
Links and oneboxing would also need to be taken into account.
Etc and so on.
Standard disclaimers apply
@LeakyNun I think this will still come out shorter but what sucks is you have to add return""; at the end.
for(int j=0;j<26;j++)if(p.equals(l[j])&&j<13){p=l[j+13];break;}else if(p.equals(l[j])&&j>=13){p=l[j-13];break;}return p;}
for(int j=0;j<26;j++)if(p.equals(l[j]))return l[25-j];return"";}
How is yours shorter?
3:54 AM
It's not by a long shot
I was just saying
what are sequences that are like the Fibonacci sequence, but start with 2 given numbers called?
@Maltysen I think 'Lucas sequence' is used as the general term.
@El'endiaStarman Isn't "Lucas sequence" 2,1,3,4,...?
@LeakyNun well that looks a little different
the starting numbers are all 1, but there are c of them
@LeakyNun Yeah, I knew Lucas sequence referred to a specific one, but I thought it was also a general term.
Alright then
Huh, looks like I was right that "Lucas sequences" is a general term, but wrong about the kind of generalization.
@LeakyNun this is kinda what i want, but a little more specifc
this seems completely general
22 mins ago, by Leaky Nun
CMC: Generate the n-th positive that can be written as a product of the Fibonacci numbers (1,1,2,3,5,8,13,21,...)
Is anyone thinking about this?
4:02 AM
@LeakyNun thinking about it got me to think of an another challenge :P
@El'endiaStarman "Fibonacci integer sequence", I guess
@LeakyNun I think its 0, 1, and then the X. and x. versions of each response? Which is 14
@Maltysen go ahead and post it, I don't mind
@Insane without the dot
@Maltysen Yeah, looks like it.
@LeakyNun well, its a completely different challenge
4:04 AM
@Maltysen by the way, the original sequence I posted is called "totientable numbers" (I named them)
well, the name is a bit misleading
but they're basically the image of the totient function
You could help me find a better name
and then I'll use that name in the title of my next challenge
@LeakyNun It works but not for X. and x. inputs. The problem requires you to leave the periods alone
@Sp3000 Wow, I never even bothered to search, I never thought they would exist!
@Insane which is why I used replace
4:06 AM
More like it was hard to search with the terms you posted because you missed out 9 :P
Maybe I did it wrong one second @LeakyNun
@Sp3000 oh, sorry :p
@HelkaHomba Goat's can't even eat M&Ms or ride in cars >_>
it's a... interesting job trying to hitch a ride on a car as a goat
I'm pretty sure I have it right @LeakyNun
4:12 AM
@Insane nice!
But it's not working though @LeakyNun :'(
btw I had a cameo in goat sim if anyone noticed:
@Insane why not?
Unsure. Example "yeah" returns "Nope"
"yeah." returns ""
4:14 AM
change 14-i to 13-i
Oh I should've caught that
@Insane My usual reaction is "Oh look another Java golfer. Oh wait, why did he do that there? sigh Time to comment about some savings."
@Bigtoes (⌐■_■)
If it's really badly done I'll just add my own answer though.
I always feel almost sorta bad about that though.
@LeakyNun So yeah everything works now except . still returns ""
By . I mean with the . at the end of any input
4:17 AM
@Upgoat Because then this happens?
@Bigtoes Mine were/are pretty badly done but it's helping me learn so I don't mind it when people like @LeakyNun come in and help
@Insane that is interesting...
@HelkaHomba shit they actually wrong a news article about that!?!?! I told leftgoat not to....
4:18 AM
@LeakyNun on the bright side to save a byte instead of return "" we can just do return p in the event of bad input :P
@Insane Oh sure. My first few were terrible I'm sure. I got quite a bit of help from others learning the ropes, so I try to return the favor when I can fit it into a comment or two.
@Insane return"" and return p have the same byte-count
Oh I was putting a space
Can you send me the code and the proof that "yeah." doesn't work?
String s(String p){String[]l={"True","true","Yes","yes","Yeah","yeah","0","1","nope","Nope","no","No","false","False"};for(int j=0;j<14;j++)if(p.matches(l[j]))return p.replace(l[j],l[13-j]);return "";}
Er I forgot to change it to yeah.
4:23 AM
Try p.matches(l[j]+".?")
@LeakyNun that did it
Q: Parity of Nth Term in Fibonacci Integer Sequences

MaltysenIf you look at the Fibonacci Numbers, you will notice a pattern in their parity: 0, 1 , 1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 , 55 , 89 , 144. Every three numbers is even, and all the others are odd. This makes sense because an even plus an odd is odd, but an odd plus an odd is even and the sum for a ...

:D thanks
I wish there was a like there is on Code Review
@NewMainPosts o_O
4:37 AM
@xnor Why did you delete your solution?
@LeakyNun i think you're right, i did have it flipped
then just change the description?
Yeah, I think it is flipped
@LeakyNun no, the both even case is flipped relative to the others
oh, alright
4:38 AM
when both are even, the the sides are always unequal, which gives True
What the ****
Dennis also deleted his solution
hah it wasn't that easy :D
Nah, still easy - just golfing it for double even case :P
I fixed it by just excluding double-even directly
How would you capitalize "bric-a-brac" in a title? Bric-a-brac. Bric-a-Brac. Bric-A-Brac.
4:40 AM
@HelkaHomba the first
we seem to be forgetting the direct implementation: lambda a,b,n:[a,b,a^b][n%3]%2
@El'endiaStarman are you affiliated with this movie in any way? :P
Hey guys
Does anybody think that making a country/nation (somewhat like a micronation) on the Internet would be a good idea?
What's there to gain from doing so?
@MamaFunRoll are you talking about PPCG? ;P
4:48 AM
@MamaFunRoll idk you mean like ppcg?
ninja'd ;-;
like a micronation
Have you solved brain uploading?
just a nation made for fun
idk why, just popped into my mind
@MamaFunRoll I'm not sure it could ever be a "nation" without land or a geographically clustered population
@MamaFunRoll soudns simlar to Bálint's idea earlier:
6 hours ago, by Bálint
A PPCG country for testing purposes
4:56 AM
@Upgoat hm
halp, how solve circular dependnecy ;-; i tri long tiem stil undefnd
if this might help
with anything
I can't seem to parse the text too well tho, so here you go

« first day (1967 days earlier)      last day (1274 days later) »