12:01 AM
deja vu

@LuisMendo i don't think its the OP because IIRC he left a positive comment on Dennis' Jelly answer asking for an explanation

He didn't downvote J which is kinda amusing

12:03 AM
it's probably our friend again

The answers in Jelly, Pyth, MATL have been downvoted
@quartata Yes, I thought the same :-)
They probably consider that a serious language

It is a serious language?

@CᴏɴᴏʀO'Bʀɪᴇɴ Huh? Is he/she well known?

If it's the same dude from last time, he's learned that J is real by now :P

12:04 AM
@Adnan YES! Come to the glory of functional programming!

It's a weird case
@CᴏɴᴏʀO'Bʀɪᴇɴ i prefer jquery

@LuisMendo Slightly infamous on a challenge whose name escapes me
2

@LuisMendo Can you golf this further:
3 hours ago, by Dr Green Eggs and Iron Man
MATL 11 bytes: 1:3t3+y6+ 0

@CᴏɴᴏʀO'Bʀɪᴇɴ functional programming is one thing, but tacitness is stupid

3 hours ago, by Helka Homba
Mini-challenge: Write a program or function that runs for exactly one second before terminating
@DrGreenEggsandIronMan ?
how does that work

12:05 AM
@Maltysen whyyyyyyyyyy
tacitness is glory
wait nvm you're a pyth guy

@DrGreenEggsandIronMan `3:t3+y6+O`
Maybe more
What is it supposed to do?

@CᴏɴᴏʀO'Bʀɪᴇɴ I would encourage you to learn a proper functional language like LISP though :P

Oh duh. I don't know why I did `1:3`

@quartata I'm going to be learning haskell and/or racket soon. But J is so much fun

@DrGreenEggsandIronMan This seems to do the same?
`9:IeO`
Range 1:9, reshape in 3 rows, then a zero

12:07 AM
And I knew there was a zero, I just couldn't remember.
That's close, but not quite right.
Just a sec
3 hours ago, by Dr Green Eggs and Iron Man
CMC output a keyboard numpad. e.g.

Oh, I forgot to tranpose: @DrGreenEggsandIronMan
`9:Ie!0`

Has anyone here used inline assembly in C before?

Nice. That's way better.

`use InlineAssembly;`

@quartata infrequently. You mean using `asm(...)`?

12:13 AM
@FryAmTheEggman yeah

@LuisMendo What are the preinitialized variables? O=0 I=3, ... ?

I'm using GNU assembler but it doesn't seem to like my hexadecimal literals:

Well, no promises but I can try ;)

```asm("outb \$0x3D4 \$0x0F");
asm("outb \$0x3D5 %0"::"r"(pos & 0xFF));
asm("outb \$0x3D4 \$0x0E");
asm("outb \$0x3D5 %0"::"r"((pos >> 8) & 0xFF));```
`Error: junk '\$0x0F' after expression`

lel it called your code junk :P

12:15 AM
That is how you do hexadecimal literals correct?
I might be using `outb` wrong dunno

@quartata does it work if you use decimal?

Uh, I thought you just wrote hex literals like `FFh`? This is for intel, right?

GNU Assembler

@Maltysen Get ready to FGITW that I guess. I'm about to post any second

@DrGreenEggsandIronMan These are the predefined clipboard contents:
Then there are `l` for `1` and `O` for `0`. They are functions, but by default produce those scalars.
And then there are functions that simply produce predefined literals. These are `X1` through `Z9` (not all have been defined yet). For example, `X1` gives literals handy for specifying output format:
```X1  predefined literals
1;  1
predefined literal depending on input. 1: 'bank', 2: 'compact',
3: 'hex', 4: 'short', 5: 'shortg', 6: 'long', 7: 'longg', 8:
'loose', 9: 'rat', 10: 'longe', 11: 'longeng', 12: 'shorte', 13:
'shorteng'```
Oh and `YP` produes `pi`
And `YY` produces `inf` (infinity)
I think those are all

12:20 AM
nvm I think I'm using `outb` wrong

@HelkaHomba I posted so fast, that SE thought I was a bot and made me do a captcha :P

chat mini challenge: given numbers J and K, calculate `J^(K^J)`. E.g., `J = 2, K = 3 => 2^(3^2) => 512`

Shit, the first argument has to be a register. Oops.

@quartata Alright, I was just looking some stuff up, but it seemed like `\$` was used to start symbols, FYI. Not sure if reading wrong stuff though

Fattest Gopher In The West

12:22 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ MATL, 3 bytes: `y^^`

2

Well, sum it down really. Write a program or function that takes in a nonempty list of decimal integers (0-9) and outputs a downward pointing "triangle" of digits with the input list at the top where every digit after the first line is the sum of the two digits above it modulo 10. For example, ...

@NewMainPosts pretty fast

@CᴏɴᴏʀO'Bʀɪᴇɴ y^^

ninja'd

Crap.
I gave a link though, that counts for something.

12:24 AM
so did he

rekt lvl 100

No interpreter available yet, but `*â`

12:30 AM
J: `[^^~`, as `2 ([^^~) 3`

Woo compilers!

I've made some great progress on the game-of-life compiler (aka it isn't totally broken now).

@DrGreenEggsandIronMan :-D

12:33 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ We're killing time while waiting for the circuit simulator, so we've put together an outline of our architecture/assembly language, and I'm now making a compiler for it.

@PhiNotPi oh, cool
Jelly, 3 bytes: `**⁴`

Chat mini challenge: Win the lottery in as few bytes as possible.

Jelly, 0 bytes:

Where is it? I can't see it.

You can't see it because I'm taking my million dollars and going on vacation :P

12:39 AM
s/million/half a billion (the other half belongs to EasterlyIrk)/
pls halp im stuck in mobile chat view
how fix

Have you tried getting out of it? :P

refresh did nothing
...
quit chrome did othign
oh well
@CᴏɴᴏʀO'Bʀɪᴇɴ nethack? :3

maybe
gimme a minute

@CᴏɴᴏʀO'Bʀɪᴇɴ I can't play tf2 rn. :(

12:49 AM
@DisplayName Nice display name

^
ರಹಗಮ ೋನದಮೋ್್ ಗಲ ಕೋಲಲೋ್್ೋ ತೋಬದಹೂ

translate: ರಹಗಮ ೋನದಮೋ್್ ಗಲ ಕೋಲಲೋ್್ೋ ತೋಬದಹೂ

Uhhh, hello? Bing Translate? Where'd you go ;-;
translate: ರಹಗಮ ೋನದಮೋ್್ ಗಲ ಕೋಲಲೋ್್ೋ ತೋಬದಹೂ

try something else?

12:52 AM
translate: el gato
(from Spanish) the cat
Huh. Must just not like that particular text for whatever reason.

:DDDDDD
@AlexA. It's from the kannada alphabet.

I know

I don't even think it has a translation. Somehow I switched to that keyboard layout and decided to type a sentence.

Oh, in that case it probably doesn't translate to anything. I don't think Bing knows Kannada anyway though.

ಬಾೋಪ
...
#fail
@CᴏɴᴏʀO'Bʀɪᴇɴ nethack or not rn?

12:55 AM
not rn

okay

:D YAY

1:01 AM
Give it time. He'll emerge victorious.

@Maltysen 10/10

@Quill did you see my comment?
nvm yes you did

yeah, and I golfed it further
I don't know my operator incidence very well, so it took me a while to get rid of all the brackets

@HelkaHomba \o/
@AlexA. probably true :(

It is a fact of life.

1:08 AM
99

If you are not absolutely certain that your team, your manager, and your company will chuckle at this, don't include an easter egg. I have seen cases where developers were summarily dismissed for including an unauthorized easter egg. The problem is that, almost by definition, the easter egg was...

in Discussion on question by zundi: Consequences for leaving an easter egg in code?, 4 hours ago, by Carl Witthoft
IIRC one of the early Mac OS upgrades went "gold master" with a not-so-well-hidden EasterEgg of a seminude. The clown that did it was fired; Apple had to kill all copies in existence and regression test the cleaned OS master at rather some cost.

hm
Getting closer....
19 to 18 bytes

@EᴀsᴛᴇʀʟʏIʀᴋ *crosses fingers and hopes Dennis gives up*

attempts to cross paws

@Quill I say... either go full-blown flight simulator or don't make an easter egg. Preferably the former.

1:17 AM
@EᴀsᴛᴇʀʟʏIʀᴋ ...and there it goes

RIP gg
but you still win because you are the earliest

@EᴀsᴛᴇʀʟʏIʀᴋ got 17 bytes
:D
nvm

>_>
@Maltysen gl!

@AlexA. Thanks :D

1:35 AM
And yet no answer has an explanation :/

@HelkaHomba what are you talking about >_>

1:53 AM
@HelkaHomba Unless the task is fairly straightforward, I always try to golf it for a bit before explaining how it works. I've added an explanation now.
@HelkaHomba Strings are Jelly's arch-enemy. I managed a tie though, so I'm happy.

I like the progress on Calka's problem so far. 4/4 golfing.

2:11 AM
1

This is a script I made for the ESP8266 that uses the Wi-Fi chip and creates a new Access Point every 5 seconds in order to display a message on WiFi lists on nearby devices that looks like this: The code is: #include <ESP8266WiFi.h> const char* ssids[] = {"Never gonna give you up","Never go...

@Quill ._.

two PPCG answers in one day... I feel accomplished

o_O suspicious of 147

;_; why does node take so long to build

2:44 AM
Pretty

@Mego I was thinking about the dict/function post (which I'm agreeing more with you), but would it mean that a switch statement would be a function?
or, taking it a bit further, an if statement?

@CᴏɴᴏʀO'Bʀɪᴇɴ I don't think glory is the right word

How'd you like an to generate this @Martin? :D v

@HelkaHomba too late, Mathematica added a built-in

@BaldBantha (choose)

2:57 AM
@Quill you familiar with nexe?

noxe

wat

My Joxe just aren't funny

noks?
Should functions be interpreted as primitive literals (as in should they be constructed as a literal class), or should they be interpreted as a primitive (like with classes).

3:04 AM
My laptop is set up to take a picture after 3 incorrect password attempts http://fb.me/58fFSVa02
2

3:22 AM
How do you perform math on each element of an array of numbers in Pyth? (For example, multiply each element in `[1, 2, 4]` by 2 to make `[2, 4, 8]`)

@ANerd-I M or m
e,g, `m*2d[1 2 3` -> [2,4,8]
@Quill +1 for the NN not being marky

@Upgoat What's subtracting 1? `m-1d` is subtracting 1 and negating.
@Upgoat Also, what's division? `/3` is making everything turn to `1`

3:39 AM
Can we start a pun fest in here? I need to get rid of some of my effusiveness :D
Where's @Geobob when you need him

0

Tonight, my fiancée took me out to dinner to celebrate my birthday. While we were out, I heard Happy Birthday sung to 5 different guests (including myself), in a restaurant full of 50 people. This got me wondering - the original birthday problem (finding the probability that 2 people in a room of...

@HelkaHomba You mean Bitsy, right?

Anonymous
@NathanMerrill No, that would be a snippet. It wouldn't be assignable/reusable.

@ANerd-I Potato pototo

@HelkaHomba Geobob's gone to the geotropic to do some geophysics since they're so geological.

3:44 AM
xD

ME: [checks TripAdvisor] TRIP ADVISOR: You should really watch where you walk ME: Wow, this is good trip advice

Things you can say about Stack Exchange but not your girlfriend. Go!

Stack Exchange exists.

StackExchange exists?

Anonymous
@HelkaHomba It's getting bigger every day.

3:49 AM
@HelkaHomba You ask too many questions.
You just have all the answers, don't you?

Anonymous
Too much low-quality content.

Anonymous
Needs better moderation.

Flagged as too chatty.

Anonymous
Flagged as obsolete.

Flagged as "should be closed".

3:51 AM
Deleted

Flagged as primarily opinion-based

Anonymous
Lots of red flags everywhere.

Flagged as too flaggy
@Doorknob declined
@Doorknob oh :(

meta

Anonymous

3:52 AM

Anonymous
@Quill Depending on the decade (and thus the meaning of the word), that might not be a bad thing :P

Anonymous

Anonymous
The Roomba needs to hurry up and clean it up.

13 is an acceptable age

~1 million people reached

Anonymous
3:54 AM
I can't wait for it to turn 7 in a few months!

@Quill +1 and accepted. You win.

@Dennis would probably do better than you.

Anonymous
I use "unclear what you're asking" a lot

Anonymous

Anonymous

3:57 AM
Looks haven't improved in the past 6 years

99% uptime

Anonymous
On the previous topic: the back-end could use some work

Anonymous
@Mego You need several to get the job done.

Programming languages generally work

Anonymous
3:58 AM
It's not working and I don't know why

@Mego It's full of bugs

Anonymous
PHP: looking at it makes me want to vomit

I expect to need \$ when I use PHP

(To be more pc, "girlfriend" should really be "significant other". No intent to offend anyone here, just a little fun :P)

Lisp

4:02 AM
@Mego Time to play with python

(Implied esolang/best-when-its-short joke that's too off-color for me to say)

new xkcd: xkcd.com/1692

> like gecko
hahaha

> or Best Offer

> Martin beat me to it
I'm sorry @Mar@Den btw :3

4:26 AM
MarDen
I feel like that should be surrounded with xXx and appended with 420
😌

@HelkaHomba That's an ugly hack job, but it'll do for now.

1 hour later…
5:49 AM
@HelkaHomba The shorter the better

1 hour later…
7:05 AM
@HelkaHomba are you talking about @zʏᴀʙiɴ101 ?

7:45 AM
Hello
Mom broke my computer ;_;

What is the first PPCG question? It's definitely not on this site right?

If you're going by creation date including migrations, then pretty much that question, yeah

@Sp3000 But it doesn't look like the first question...

That's because it was migrated - if you're counting first code golf on SO, then I'm not sure

2
Programming resources

Proposed Q&A site for programmers looking after viable resources on different algorithms and techniques.

Currently in definition.

Anyone joining?

8:03 AM
@Bálint is it satisfactory?

@LeakyNun What?

@Bálint I posted an example question there
@AmeyVaidya Welcome to The Nineteenth Byte (and PPCG)!

8:26 AM
@Sp3000 You've got some competition :D codegolf.stackexchange.com/a/82548/26997

8:43 AM
Any constant output mini challenge?

@LeakyNun Constant ouput would result in lots of `print(output)` type of answer :3

@Katenkyo well, not really
or just any mini challenge
cause i'm bored

Can't think of one right now...

9:20 AM
@Katenkyo Are you still here?

@LeakyNun Yes I am, why?

@Katenkyo because I just golfed something

@LeakyNun Want some help golfing it down?

@Katenkyo No, I just golfed something you answered

Oh, I just saw the coments
Need to go back in the challenge, can't understand my choices right now ^^
SO let me some time to work on that :p
Hum, effectively, I was dumb when writing this Oo
Thanks for the comments, I'll edit the post !
and wouldn't have think of the `#b:gsub(a,"")>0` trick alone ^^

9:37 AM
@Katenkyo Wouldn't it save one byte to use `p=print`?

It does, but I'm trying to change my way of outputting, may gain some bytes ^^
nevermind it doesn't, as I have to write `p=print;`, else it would try to use `p=print(...):gsub()`

oh...

Exit codes are valid output, right?

well, not sure

they write to stderr, valid output is usually stdout

9:47 AM
because I could do `o=os.exit;(...):gsub("(.)(.+)%1",function(a,b)if 0<#b:gsub(a,"")then o(1)end end)o(0)`
Gonna dig the meta
25

Programs may output using their exit code... ... if and only if the challenge requires an integer as output, obviously. Exit codes are basically a return value for programs. If functions can output using their return values, it makes sense that programs should be able to do the same. Examples:...

I can :D
so no need for the `i=#0` @LeakyNun

@HelkaHomba Not surprised :P at first I wasn't bothered to golf mine properly because I knew it just took a better language to beat it, although tbh I am a bit surprised said language is PHP
Still think there's surely better though, but as I said lack of newlines is a pain

10:03 AM
Hafta go, have a nice day guys!

@Katenkyo BAI

@LeakyNun Not-so-mini challenge: Given a list of integer pairs, assign each pair an operator out of `+-*` so that the results after applying the operator to each pair results in a different answer, or print something to indicate the task is impossible. e.g. for `[[1,2], [3,4], [5,6]]` you can do `+-*` since `1+2, 3-4, 5*6` all give different results, but you can't do `--*` since `1-2 == 3-4`.
And by not-so-mini challenge I mean: not code-golf, try to find an efficient algorithm :P

@Sp3000 :- use_module(library(clpfd)).
a(L,Z):-maplist(b,L,Z),all_different(Z).
b([A,B],I):-I#=A+B;I#=A-B;I#=A*B.
This doesn't return the operator though, only the results of the operation on each pair
and it's efficient cause it uses constraint programming :p

o___O
SWI-Prolog?
Hmm how do I test this :P

@Sp3000 Chat mini-challenge: Find an online compiler for SWI-Prolog.

10:17 AM
ideone has it, I just mean I'm not sure what the input format is
(since I've only ever touched Prolog once and that was years ago :P)

Note that SWISH is a limited edition of Prolog, and I'm sure that's very limited.

0

In this code golf: You have to confirm the mysterious illuminati! /\ / O\ / \ ------ (No,This is not the question.) You have to input a number, and do random calculations until the answer is 3. Input Example. 10 Output Example. 10 + 5 = 15 15 - 7 = 8 8 / 2 = 4 4 % 3 = 1 1 * 2 = 2 2 ...

@Sp3000 this looks like an instance of maximum matching on a bipartite graph, which can be done in polynomial time
is that enough to call it efficient?

Yeah, that was basically the intended answer :)

10:40 AM
@Quill It has an age check. I'd rather not click that link again.

@Sp3000 a smarter brute-force?

@Upgoat ¯\_(ツ)_/¯

11:38 AM
@HelkaHomba Nonononono. Alex = False. Everyone knows that....

hides in barrel

@BaldBantha hahaha so funny can't breathe argh

20 hours ago, by Geobits

11:56 AM
thank you

run `a([[1,2],[3,4],[5,6]],Z).` as a query in bottom right for example

I'm honestly impressed Prolog lets you do that :)

this works roughly the same way in Brachylog: `:{+.|-.|*.}a.d.`
run_from_atom(':{+.|-.|*.}a.d.',[[1:2]:[1:2]:[1:2]],Z).
Z = [3, -1, 2] .
=> +,-,*
outputting the operators is annoying :p
@Sp3000 If it didn't Prolog would be awful to use :p

12:14 PM
@Geobits I just pop in the room and the first thing I see is this. Did I enter some sort of temporal loop? Are we still talking about cheese?

@TimmyD I figure I should post it just often enough for it to become ironic.

@El'endiaStarman The pitstop one is insane, looks right 'shopped.
@Geobits Can't you find any more annoying gifs?

I'm sure I could, but...

@flawr possibly, but not any more appropriate ones

12:32 PM
-1

Consider the following picture : The goal is to find where the word "the" is hidden. Challenge Write a program which, for a given image input, find where the word "the" is located. As output, it should print the X and Y (zero based) coordinates where the first letter of the word is (0;4 in t...

^ consider voting

@flawr I tried to.
The post was deleted just when I went to vote.

12:52 PM
I kinda bailed on the "weekly 'dare to answer?' question" thing as I didn't read the most recent two releases of the PPCG newsletter. :(

@Fatalize Yes.
Category Technology or Recreation, I forgot which.

oh
but it's just a sum up of questions
I don't need it I waste my life here all day already
2

1:01 PM
Twitter's blocked at school for you?

I'm not at school, I'm at work and no it's not blocked
scala all by itself

@Mego functions don't have to be assignable.
if a language supports goto doesn't that make things reusable?
actually, lets say I make a language where you can assign statements to a variable. `a = if (b) { code }`. Wouldn't that make it a function under our guidelines
it would look around for a variable `b` under the current scope (or maybe in the declaring scope, doesn't matter), then call the code

1:33 PM
Ugh, sooo hot already here today. And it's just going to get worse.

Twice already today I began typing a programming question in this chat box and found the answer while I was typing. You guys are awesome!
And we're only 35 minutes into the day. Keep up the good work.

^ you're welcome

Well, that means I accomplished something today. Time to go home.

@Quill If you're clever enough, there's nothing such us blocked website

1:44 PM
I voted for the answer that sounded logical in your strawpoll, Rainbolt, but I don't use enums in Python so my vote could be based on faulty logic

@Rainbolt Depends, does anything else uses that enum?

@Bálint Yes. I should have said that it is public
Did I screw up the poll?
Private enums go with the only class that uses them, and I thought that was just a given
Actually... can you even make an enum private an declare it outside of a class?
@Bálint Okay, you can make enums private if you declare it inside of a class, but not outside of a class. So your question is answered by default.

@Rainbolt Where's the answer for "Wherever PowerShell or .NET decide to stick 'em?" ;-)

0

Distance between two words You are given an input of two strings consisting entirely of letter characters. The "distance" between two such strings is the number of operations from the following list that it takes in order to transform one word into the other: Adding a letter anywhere Removing ...