« first day (1794 days earlier)      last day (3346 days later) » 

03:00
I mean, I have to defend my poor little pl.
Jelly, 5 bytes w/o list ’,2Ḍ» jelly.tryitonline.net/…
nue
noo
noooooo
why
my poor little pl
Did you try my approach in pl?
What is your approach?
Sorry I've lost the ability to read Jelly
max(10(x-1)+2, x)
03:08
Well pl doesn't have that yet (nor does it actually have base conversion)
But if it did it would look like this I suspect:
What does it not have yet? max?
Max
It doesn't have a lot of stuff yet
Same deal for Jelly.
_↓10*2+M where M is max
Jelly would have killed yersterday's XOR challenge if I had implemented print as table as I had planned.
03:10
7 bytes
Well, I actually do max(dec([x - 1, 2]), x) which is shorter.
what's dec?
Base conversion (decimal).
Why does it take two arguments?
Because I suck at pseudo-code.
03:13
@Doorknob冰 i'm guessing from what base
Mathematica pseudo-code should be clearer: TakeTheMaximumOf[x, ConsiderTheElementsOfThisListDecimalDigits[{x - 1, 2}]]
@Dennis That's probably how you do it in Mathematica
I have no idea, but 75 bytes seems appropriate for Mathematica answer that solves everything with two built-ins.
@Dennis ohh, I see
So basically int(str(x-1) + '2')
That would be valid Python, yes.
Base conversion is done on lists in Jelly, never strings.
03:20
pseudocode should just always be done in python
0
Q: Memory Allocator

helloworld922You're designing a new esoteric programming language and one feature you've decided to add is a dynamic memory allocator. Your language specifies a special dedicated virtual address space for the user's program space. To help reduce the cost of distributing your implementation the size of the co...

@Maltysen Meh.
@Dennis hi
Hello.
I like bananas
03:39
Me too.
One time my sister and I tried to make an ice cream-like dessert by mashing up bananas with a bit of vanilla extract, cinnamon, and cardamom. The first few bites are good and the rest is like "oh shit every bite is like 5 whole bananas"
I love homemade banana ice cream. I never tried it with so many fancy spices though.
googles cardamom
Cardamom (/ˈkɑrdəməm/) is a spice made from the seeds of several plants in the genera Elettaria and Amomum in the family Zingiberaceae. Both genera are native to India, the largest producer until the late 20th century; Bangladesh, Bhutan, Indonesia, Nepal, and Pakistan. They are recognised by their small seed pods, triangular in cross-section and spindle-shaped, with a thin, papery outer shell and small black seeds. The German coffee planter Oscar Majus Kloeffer introduced Indian cardamom to cultivation in Guatemala before World War I; by 2000 that country had become the biggest producer and exporter...
Yes, I found that. Still don't know what it tastes like...
@Dennis Do you put actual milk and stuff in it when you make it? This was just bananas.
@Dennis Lick the screen
03:45
hahahaha
Answering Nethack questions is so much fun
@Doorknob冰 else if (is_unicorn(ptr))
wat
@AlexA. Whaddya mean, wat? It tests if ptr is a unicorn. :P
@AlexA. All my recipes have the same steps. Step 1. Tell my loving wife I'd like to eat banana ice cream. Step 2. Wait until banana ice cream magically appears.
@Dennis You've got it good :D
03:47
Can't complain. :)
@Doorknob冰 How could I have been so blind
04:02
so, I've been researching Mafia here: wiki.mafiascum.net
looking at their typical setups
their starter "newbie" setup is easiest to understand, but has a "winning" strategy
but if I take their latest and greatest default setup, there are many more roles (5 or 6)
is it better to be simple or fair?
for reference, this is Original and Latest
04:16
are we doing a mafia KOTH?
KOMWS
yes, I'm wanting to do a Mafia KoTH
awesome! ^.^
there's a post in the sandbox, but its old, so I'll likely be taking it over
will we have to write bots to handle playing all the possible roles?
no
pick a role
@Dennis Cardamom is an indescribable taste
It's very potent
Peppery isn't the right word though
@quartata no it isn't
You've probably had some in curries before though.
04:22
I seriously want to see a Mafia KOTH.
Hmmm
Especially since you've been to Sri Lanka
@quartata That's entirely possible.
@Pietu1998 It's seriously going to happen
but none of you have answered my question:
is simple or fair better?
@Dennis it gives flavor to things, but if you ever bite it, your mouth will die for a couple minutes
04:25
@Maltysen A sweet, wonderful death
Not unlike the death induced by eating cloves
Sounds like something I ate there.
Aug 4 at 3:48, by Dennis
@AlexA. Went well most of the time. Just once, they served us fish-based chips (?) with a red, jelly-like sauce and I thought "hey, jam!".
Aug 4 at 3:48, by Dennis
Well, it wasn't jam...
Aug 4 at 3:48, by Dennis
I took a spoonful. I've never sweated so much in my entire life.
a spoonful?
omg
It wasn't pretty. Luckily, they keep grated coconut on every table, for dumb tourists emergencies.
@Dennis Clearly it was Jelly
hahaha
04:58
0
Q: Staircase Program

geokavelThe challenge is simple: given two parameters, x and y, output y staircases with x steps. For example: f(3,1) - 1 staircase with 3 steps. _ _| _| f(5,2) - 2 staircases with 5 steps. _ _ _| _| _| _| _| _| _| _| Make sure you outp...

@NewMainPosts Not even 10 seconds. Nice work!
05:12
What monospace font does everyone use?
(assuming you use a monospace font for programming)
Droid Sans Mono in nano and TIO, and whatever came with Atom in Atom.
Weird, Atom defaulted to Monaco for me, despite having Inconsolata already installed.
I like Inconsolata a lot but I don't like that the quotes are angled. :/
mine don't look angled. I prolly also have Monaco
I think Monaco is a Mac font
Menlo, not Monaco
Sorry
05:26
Until recently, I used Ubuntu Mono in my terminal, but it's not at all compatible with Jelly...
Does Ubuntu Mono not have the right glyphs for the characters Jelly uses?
Nope. The modified letters are a huge problem. In TIO, it just means that the monospace font isn't really mono. In the terminal, all hell breaks loose.
O.O
raise hell
Uh huh.
05:41
@AlexA. I use Comic Sans MS
> A programming font, designed with functionality in mind, and with some wibbly-wobbly handwriting-like fuzziness that makes it unassumingly cool.
5/10 cannot beat Comic Sans MS
Closest to Comic Sans MS Mono.
06:10
ok I have a brainfuck program that solves the stairs thing
converting to headsecks
0
Q: In a string or not?

DoᴡɴɢᴏᴀᴛRecently I've been having some trouble with the new TeaScript interpreter. The biggest problem is identifying whether a unicode character is within a string or not. Because there are only 1,114,112 characters in unicode, your code will need to be as short as possible Challenge "Hello, World¡...

06:33
@Mego @Sp3000 @AlienG @quartata @GamrCorps @TreFox You were all removed from the ppcg minecraft server whitelist due to inactivity. Details here: chat.stackexchange.com/transcript/message/26456885#26456885
What was Flip Flop about? I just got it
0
A: Staircase Program

MaltysenHeadsecks - 0 points I took up @Mauris' idea. I didn't want to actually do this brainfuck, so I used bfbasic. Here is the Basic program: INPUT A INPUT B A=A-2 B=B-2 J=0 DO I=0 DO IF I=0 THEN IF A-J>1 THEN K=0 DO ...

 
2 hours later…
09:08
75 stars to go...
 
3 hours later…
12:27
1
Q: Using Symbols for Letters

Nathan MerrillInput: A single word as a string (matches [a-zA-Z]+). If the input doesn't follow these guidelines, print "Error" (but no error should be thrown) Output: The NATO pronunciation of the word. Print out a space separated list of the NATO word that matches each letter of the input word. Trailin...

13:16
@Sherlock9 Upvote or downvote.
Does anyone know about the Mersenne Twister implementation in Python?
I need to know whether it's [0-1], (0-1], (0-1) or [0-1).
Come on! Somebody must know...
@Adnan? @grc? Do you know anything about Seed or Python?
13:35
@wizzwizz4 Flip Flop?
Yes.
Do you know about the bounds for the floating point numbers in the random number generator used in Python?
Hey guys
I would look in the Python docs for random
But let me check
I don't think it's there.
Oh... It is!
@Sherlock9 If you're looking, it's 53-bit precision.
I was looking through chat for a link to Mersenne Twister, so I didn't get a chance to look at random
13:39
Here it is:
The Japanese deserve a localised version of PPCG.
Unfortunately, as we're in Beta and localisation is in Beta, they won't have one for a while.
@Sherlock9 Actually, it's [0, 1)... I'm silly.
14:18
@AlexA. RE: comment on my swagmas post: My pleasure; I really enjoy this community and I'd love to see this community graduate, so I wrote it up.
0
Q: What is the smallest positive base 10 integer that can be printed by a program shorter (in characters) than itself?

ArandurI think the question as above is clear, but just in case: Write a program which prints a positive base 10 integer, optionally followed by a single newline. Qualifying programs will be those whose output is longer than the source code of the program, measured in bytes (assuming ASCII or UTF-8 en...

Who wants to hazard guesses to members of the top ten cable tv series in the U.S.?
14:37
Hi number 1.
Hello flawr.
Shimer college sent me an email that said I would qualify for a $14,000/yr 4 yr scholarship if I went to college there.
That sounds like a nice deal, doesn't it?
I don't know. I haven't even started applying to colleges yet.
15:02
17
Q: Default for Code Golf: Program, Function or Snippet?

Martin BüttnerOne of the things many (new?) users forget to specify in code-golf challenges is whether the answers should provide a full program or a function (or even just a snippet). For most such things, we have defaults in the tag wiki (like scoring by bytes), but not for this. The conclusion in chat was ...

I have a feeling that answers that only work in a REPL are frowned upon, but I can't find a meta post about it. All I can find is these conflicting posts about functions and snippets:
35
A: Loopholes that are forbidden by default

Victor StafusaPosting a code snippet instead of a complete answer This is a issue mainly for code-golf, code-challenge and variants. Only in very few cases this seriously affects popularity-contest. The issue is when someone post a function, a method, an instruction or a code-snippet instead of a complete p...

Is there a meta post I've missed? If not I might post one.
The policy has always been "REPLs don't count" AFAIK
\o/ AppleScript is mildly competitive!
0
A: What is the smallest positive base 10 integer that can be printed by a program shorter (in characters) than itself?

FlagAsSpamAppleScript, 10^4 10^4 Implicit output? :o (this technically outputs 1.0E+4, but that number has 5 digits)

@Doorknob冰 I assumed that was agreed, but on wanting to leave a comment to that effect, I couldn't find anything to back it up.
hey, the Mafia framework I'm building is going to be really flexible (to where lots of different games are going to be possible)
would you guys be opposed if I had a monthly mafia post, each featuring a different set of roles?
@NathanMerrill I am thinking about an agario koth, but I don't think your controller would be that flexible. :P
@NathanMerrill I think that is a good idea.
15:19
@NathanMerrill that really depends on how different the roles will be
well, there will be similar roles from game to game
even identical ones
but there will likely be new ones that change the dynamic of the game
for example, a "role switcher" character
or character that adds another faction
Javagony doesn't seem too agonizing
but the biggest potential problem I see is that answers will definitely work on different posts, but they simply won't do well
@quartata Well this only needed one single loop (for the factorial), wait for a more complex one=)
mkay
I'm ready for agony
15:26
Or a decision that is not based on the comparision of numbers.
@quartata You should make IsoJavagony, which is javagony wrapped into a isocohedron.
searches the transcript for "javagony"
Javagony? Is that just regular Java?
pretty much apparently
it's just Java minus all control flow syntax except try/catch
very creative language name, I must say ;)
Based on your Hexagony?
15:33
¯\_(ツ)_/¯
@RikerW where did that icosahedron idea come from?
@MartinBüttner I like them, plus they are a platonic solid in every dimension.
And they would be almost impossible to code on. :P
> impossible to implement
well that's number 3...
I remember hearing about a 3D Befunge.
I wonder how they implemented that
I'm currently working on a new esolang with 3 major components, and all three have been suggested to be turned into esolangs by people since I started working on it o.O
15:35
I think there is also 4d befunge.
@RikerW the (Be)funge 98 spec is N-dimension. Befunge is just the 2D instance of that spec.
@MartinBüttner Which ones? I won't steal it, I promise.
@RikerW Minkolang has time, but it isn't 4D
@MartinBüttner Okay, then maybe Multi-dimension befunge, i.e. it switches in the code?
15:36
It's just 3D in that regard (two dimensional space and time)
@MartinBüttner Right, but how exactly would you encode a 3D program? :P
@quartata it's just 20 faces. pick any order for them (e.g. the net I used for my Roll a d20 challenge)
Right but then coding them is painful
Dec 17 at 15:16, by Martin Büttner
that said, this challenge may or may not have been inspired by an esolang I'm working on...
I guess that's what people get for wanting a 3D befunge though
@MartinBüttner lol. That sounds cool.
15:37
I was thinking about creating a language on triangular grid, too. I can’t wait to see yours. — M L yesterday
@MartinBüttner Sorry.
@quartata oh, wrong message
well, you'd encode it in slices, I suppose
Oh I was a little confused
I am making an esolang too, need a cool name.
and yes it's painful.
15:38
Yeah basically
which is why I'm not planning on writing a 3D language any time soon (if ever)
@RikerW naming things is hard.
I know. I am thinking Cubex?
that said, for this esolang I'm currently working on, a large part of the design was actually informed by the name and not the other way round
@MartinBüttner Soooo... no Truncated Icosahedrony?
:(
@quartata truncated?
15:40
@quartata YES PLS!!!
In geometry, the truncated icosahedron is an Archimedean solid, one of 13 convex isogonal nonprismatic solids whose faces are two or more types of regular polygons. It has 12 regular pentagonal faces, 20 regular hexagonal faces, 60 vertices and 90 edges. It is the Goldberg polyhedron GV(1,1), containing pentagonal and hexagonal faces. This geometry is associated with footballs (soccer balls) typically patterned with white hexagons and black pentagons. Geodesic domes are often based on this structure. It also corresponds to the geometry of the "Bucky Ball" (Carbon-60, or C60) molecule. It is used...
an icosahedron as 2D as far as its surface is concerned
Thought it might be a good fit
It's an interesting shape
well that's number 3 (not truncated though)
So Soccerballagony?
That is kinda what you just said, but a cooler name.
15:46
Yes
0
Q: Diamond Puzzles!

Ashwin GuptaExplanation: Last year in math class, on homework we would occasionally get these extremely simple, although equally annoying questions called diamond puzzles. These were basically questions where we would be given a sum, and a product then were asked to find the two numbers which when multiplie...

Thank you, @NewMainPosts.
@NewMainPosts So, factor quadratics, basically?
Of the form x^2 + bx + c
@Doorknob冰 Yes.
I think.
I'll see if I can write a julia answer for that.
@NewMainPosts lmao mathemagica time
15:55
@quartata True. I wish I had mathematica.
16:08
Oh
well hello
@RikerW where is your Julia answer?
@AshwinGupta Did you ask about my julia answer? I just got the popup notification.
I am working on it.
right now.
3
Q: Pyth Practice 2

JakubeTime for another Pyth practice. I present here 8 problem statements with a Pyth solution each. These solutions are written by a Pyth beginner. He is quite happy about these solutions, since they are a lot shorter than his Python answers. Your task however is to show him better. Create equivalent ...

@RikerW ok great :D
@NewMainPosts Thank you, @NewMainPosts.
Is it possible to have java code in a DLL?
16:21
@AshwinGupta No clue, cause I don't know Java. Sorry.
16:39
@AshwinGupta Unless you can compile it to exe, you probably can't compile it to dll.
@AshwinGupta Done with it.
16:53
@AshwinGupta Context?
Also, do you have Java 8?
..
Sorry.
I'm also a Java programmer...
Anyways, Java 8 has this thing:
Thank doesn't change the fact the you use perl
True.
16:54
perl is awesome
Opinion, not fact. Very far from it.
Nope. Provable fact. :P
Yeah one second lemme dredge up the proof
Show it to me.
It needs to be better in terms of readibility and golf.
16:56
Perl is readable.
Unless you intentionally write it to be unreadable.
For certain definitions of readable.
What about Perl isn't readable?
It's golfed form.
Nothing more.
Nothing less.
In perl, are variables pre-initialized?
Of course. STDOUT, command line arguments, etc.
(if that's what you mean)
16:59
No, if I use a variable $var, what is its starting value if I didn't initialize it? Or is it empty?
You shouldn't not initialize it. That's bad practice.
And Perl will throw warnings about that.
But IIRC all scalars start as 0, so $a++; print $a will print 1 (I think)
Okay, but I sometimes wish python had variables pre-initialized to 0 or something.
"perl" converted into ASCII char codes and summed is 328, which is one away from 327 -- a perfect totient number
So, almost perfect.
There's your proof.
Your silence is deafening.
Oops, sorry, got distracted with julia
brb
Just can't face the truth.
17:04
who is julia?
are you cheating on me?
rofl
Perl is as close as a programming language can get to perfection
Julia is a high-level dynamic programming language designed to address the requirements of high-performance numerical and scientific computing while also being effective for general-purpose programming, web use or as a specification language. Distinctive aspects of Julia's design include a type system with parametric types in a fully dynamic programming language and multiple dispatch as its core programming paradigm. It allows concurrent, parallel and distributed computing, and direct calling of C and Fortran libraries without glue code. Julia is garbage-collected, uses eager evaluation and includes...
lol i no
@Optimizer She might be cheating on you with @AlexA.
17:05
damn ಠ_ಠ
@Optimizer get rekt.
@quartata python summed is exactly nontotient.
That doesn't mean much though. :P
It is one away from a proth prime though.
Vi is perfect too.
Assembly is perfect as well.
@quartata Never used it, so can't say.
But no it literally is perfect.
In Roman Numerals it is 6 which is a perfect number
You've probably seen that joke before though
17:08
@quartata Nope. :P
Really, no.
17:27
I do understand it though.
hullo.
@quartata You misspelled Rust.
@Doorknob冰 I tried rust once, and liked it.
17:42
> Look closely at this little boy's photo with dad. It's going viral for one touching reason..
Its going viral because you are asking people to stare at it -.-
and then sharing it.
Are you a llama?
@Doorknob冰 do mods have chat editing powers?
@Optimizer I like llamas.
17:44
like .. eating them ?
@Optimizer No, like them and riding on them at summer camp last year.
They spit in my best friends face. :P
he deserved it
in fact, we were being generous
Hello world\
So, you are a llama and Downgoat is a goat?
exactly
17:47
Cool. Am I a cat, or is cat a cat?
cat is a cat
cat cat
Can I be a cat too?
> cat
you are a cat
My cat in my photo is named cat cat.
really?
17:50
Yeah, Stormy Cat Cat Shrodinger Wachtler.
ok now you overdid it
its no longer believable
Seriously. I call her Stormy or cat-cat normally.
And you have to name your cat Schrodinger.
3
will there be a day where a machine can convert from English to a programming language?
understanding language is already possible, but converting that to an actual program is where I'm unsure
So am I a ___ now?
I have had a catastrophic very disruptive system failure. My C program was overwritten with null bytes, and the entire system crashed. However, I was using Pelles C for Windows, and I still have all the compiled files as well as the output and a debug file. Is there any way to get my source code back?
Yes, this chat room is my first source of help and guidance. It has clever people in it.
17:59
@BlockCoder1392 Lego block. :P

« first day (1794 days earlier)      last day (3346 days later) »