« first day (2481 days earlier)      last day (2348 days later) » 
00:00 - 17:0017:00 - 00:00

12:01 AM
@Uriel My father used to write databases in APL, back in the good old days, where instead of creating a UI, they'd define functions (and later operators too) which would make it possible for users to use (what appeared to be) plain English to issue queries.
 
Now we just use SQL.
(Except when we don't)
 
@ATaco Right. And that's pretty much what it looked like. But the amazing thing is that the user could easily define their own extensions, and it would "just work".
 
"Shards are the secret incredient in the webscale sauce. They just work."
 
@Adám well, the amazement depends on the savvyness of the viewer
 
Personally I prefer good 'ol .txt because I'm a monster.
 
12:06 AM
@ATaco I'm talking early 70's.
 
I understood that much, which is why I said now.
I would have loved to be in the rise of early computing.
 
@ATaco yup, every trivial thing of this era would look like a magic
 
0
Q: Give the associated Legendre Polynomial

BarocliniCplusplusThe challenge: Given two numbers (m and n), return a usable function (such as a lambda function in Python or an anonymous function in MATLAB) that can be used to calculate the associated Legendre Polynomial. If a decimal is inputted, the function should return an error or a NaN. Restriction: Can...

 
@Adám What percentage of APL developers are Jewish? Odd that you coin them all that way haha!
 
12:09 AM
@Uriel My father started working for IBM right after they got the new computer which could do multiplications and divisions. You didn't need to write subroutines for that!
 
Imagine showing Regex to Pre-C programmers.
 
@MagicOctopusUrn Adám is, and there's not that many other APL golfers.
 
@Adám that's nice. I think you could do something similar in haskell
 
@Pavel Also meant in terms of the actual development team. Not that it matters, or affects anything. I just remember reading the page of employees a long time ago, seeing "Marshal" and laughing my ass off.
 
@ATaco They already had those back with SNOBOL. The syntax was really different, though.
 
12:12 AM
@Adám no way. Built in multiplication??!
 
"Gah, my CPU is only 3.2 Ghz!"
 
@MagicOctopusUrn No, idea frankly. I don't deal much with our customers. APLers just like making puns with APL≈"apple", so I thought APL-Jews≈"apple juice" was cute. We have APL Tree (a utils lib), APL core (crash dumps), is a whole APL pi(e) (i.e. multiply by pi), etc.
7
 
@Adám Omg, lmfao, I've never giggled so hard in public. Thanks for that one. APL JEWS! Lordy... That's wonderful.
 
@ATaco They would claim you as a no programmer. How can code related stuff be readable?!
 
@Uriel I'd say languages like BASIC and COBOL are far more readable than PCRE.
 
12:16 AM
@Adám Do you at least know what sector your most common customer is in? Mathematics? Robotics? Financial? Aeronautics?
 
@Pavel well now when you mention it, I did mess up to much with APL and Perl lately...
 
@MagicOctopusUrn You may enjoy this (official) collection of APL puns.
 
Jul 10 at 23:47, by ATaco
@Adám Do or do not, there is no :Try
 
@MagicOctopusUrn In terms of number of customers, no. Income? Financial sector, for sure. But production and logistics planning seems to be quite big too.
 
@Uriel SNOBOL regexes were much more readable, according to my dad who actually wrote parsers in it once.
 
12:21 AM
@Pavel Readable? My father punched holes into punch cards one bit at a time. He could read and write binary.
 
@Adám binary has dialects. I bet he couldn't read Jelly's binary
 
@Uriel It was System/360 assembly in EBCDIC.
 
@Adám I hear stories of that, too. Once someone went through the equivalent of millions of dollars in punch cards with an infinite loop that ran over the weekend.
My dad went to University in Russia during the time of the Soviet Union, mind you, so punch cards were really expensive.
 
I want to make a challenge where the catch is that no character in it is repeated twice
It's kinda hard to make a substantive one for the latin alphabet
 
@Pavel One day at IBM, someone turned on the computer without starting the air conditioning an hour before… Ouch.
 
12:31 AM
So would one for chinese work?
There's a classic thousand-character poem where none is repeated twice
 
@eaglgenes101 You can edit your posts by hovering over the left side. (See?)
 
Good to know
Sounds like a good kologmorov complexity challenge?
 
@eaglgenes101 Also, remember to "reply" (hover over right side of message you want to reply to) so others can see what you are referring to, and the target gets a ping.
@eaglgenes101 Meh, my solutions rarely have letters in them ;-)
 
@Adám Ah yes, the good old days of the graphics driver you wrote yourself failing and blowing out your monitor.
 
@Adám left side?
oh there's both
 
12:35 AM
The Thousand Character Classic (Chinese: 千字文; pinyin: Qiānzìwén), also known as the Thousand Character Text, is a Chinese poem that has been used as a primer for teaching Chinese characters to children from the sixth century onward. It contains exactly one thousand characters, each used only once, arranged into 250 lines of four characters apiece and grouped into four line rhyming stanzas to make it easy to memorize. It is sung in a way similar to children learning the Latin alphabet singing an "alphabet song." Along with the Three Character Classic and the Hundred Family Surnames, it formed the...
 
i didn't even notice that before
well i almost noticed
 
Kologmorov complexity challenges consistently have obvious patterns
I want to shake that up by putting down one where there aren't obvious patterns
Except that all the characters are chinese
 
@Pavel What's a "monitor"?
@eaglgenes101 But there is a pattern? So it is just a matter of waiting for the first post to show the pattern, and then the game is on?
 
At the very least, all the characters are relatively high BMP codepoints in unicode, and are delineated in a predictable pattern
I wonder if it's possible to take advantage of the lack of character repetition in the poem to squeeze some more bytes out of the solved solution
 
@Adám That was a little later, I suppose. They already had Assembly.
 
12:43 AM
@Pavel I think assembly was with general purpose computers from day 1, basically.
 
@Adám you're not a REAL programmer if you need user friendly command names
 
@DestructibleLemon You're an APL programmer if your commands don't need names.
 
Real Programmers use Butterflies.
 
Real programmers get their computer to do everything for them, so they don't ever need to touch it
 
12:45 AM
@eaglgenes101 no
 
@Adám Did they have those back in 1949? Because apparantly that's when Assembly was created.
 
@Pavel Hey, I didn't say that they didn't have assembly before day 1.
 
:P
 
did they have them on day 0?
 
@DestructibleLemon One of my colleagues once during a presentation pretended to have called ⎕DL with a negative number.
 
12:56 AM
@Adám sci-fi music plays
 
@DestructibleLemon Unfortunately, I don't think it was recorded. You can here him in a hilarious (imho) sketch here. @MagicOctopusUrn, you may appreciate it too.
 
@Adám /me doesn't know what ⎕DL is
 
click the link
 
@Pavel I linked the doc.
 
@Adám haha ninja'd
 
12:59 AM
@DestructibleLemon Ah, I have syntax highlighting on for chat so I didn't see it was a link
 
@Pavel feature request...
 
1:14 AM
@cairdcoinheringaahing I have more gold badges than I have questions...
 
1:46 AM
I have infinitely more challenges than gold badges.
 
@ATaco I have 3 gold badges muhahaha
 
@Neil That's hilarious
 
I am waiting patiently for the delay I stop being the highest rep user without a gold badge D:
 
#Imcommingforyou
Oh, I forgot the Unary Minus operator for Funky.
 
@HyperNeutrino obviously you don't spend enough time on the site
 
1:51 AM
It's got Bitwise not, but no Unary Minus.
 
1
Q: The thousand character classic

eaglgenes101Background The Thousand Character Classic is a chinese poem written around the 4th Century CE in China, and memorized by large populations since then. The name comes from not only its length, but its number of characters: each character occurs only once in the text. It is commonly used to teach ...

 
@DestructibleLemon strange, I'm usually told I spend too much time on the site
then again, I do, just not enough time answering questions lol
 
i mean you don't have fanatic
 
well that's because I got deleted at 97 days
and then I just gave up
I mean it is my fault but still lol
 
@HyperNeutrino ._. sad
 
1:57 AM
oh what I'm at 71 days
lol I might be able to get this
wondering what comes first, fanatic or gold code-golf?
I have 29 days and 98 score to go for them
 
 
2:41 AM
fun fact: in dota2 using a hero and a few minor game changes you can make a computer
@Adám I read your bio on dylog and noticed this: Adám prides himself on having got APL with the breast-milk, as he attended his first APL conference at the age of one.
HELLO???
 
2:54 AM
@Christopher2EZ4RTZ what about it
 
@ASCII-only does nothing about that statement sound odd?
 
Nope
His father did work at Dyalog
@Mego Too bad it's not 3D :P
 
@ASCII-only ಠ__ಠ
 
3:21 AM
@Christopher2EZ4RTZ I think that's just you
 
3:40 AM
1
Q: Output an Anagram! No Not That One!

Mistah FigginsGiven a list of unique strings that are anagrams of each other, output an anagram of those words that is different from each word in the list. The strings will be alphanumeric, and there is guaranteed to be a valid anagram. The program or function can, but doesn't have to be non-deterministic, ...

 
 
2 hours later…
5:53 AM
0
A: Sandbox for Proposed Challenges

WallyWestPaper Sizes code-golfkolomogrov-complexity Task: Given a letter (A, B, C), and a number (0-10), output the size of the matching standard paper size (Series A and B) or the matching standard envelope size (C series) in millimetres in the format aaaa x bbbb where aaaa and bbbb are the width and...

 
6:27 AM
Any shorter way to permute inputs by designates indices?
e.g.

4
abcd
4 3 2 1

output: dcba
current approach:

i=input
i()
c=i()
print(''.join(c[int(k)-1]for k in i().split()))
 
@MarcusAndrews What's the first line for?
 
number of letters
i just toss the input
 
Ah
 
Anonymous
Probably not a shorter way than that
 
what about ruby?
 
Anonymous
6:30 AM
IDK about Ruby
 
Anonymous
To me, Ruby is an excellent Pokemon game
 
n,s=gets.to_i,gets
(0...n).each{|x|$><<s[gets.split.map(&:to_i)[x]+1]}
@MarcusAndrews ^
 
interesting
 
Although, I just realized it's probably better to do something more like the python one you had
 
6:37 AM
I have another one that's just reading n and then outputting the binary of the next n ints each on their own line) -- I can't use your dollar-sign trick for that right? (my approach here is gets.to_i.times{puts gets.to_i.to_s 2} )
(also just learned that sometimes you can ditch the parens)
 
gets;s,i=gets,gets.split.map(&:to_i)
i.each{|x|$><<s[x+1]}
 
I think you beat me with that one
although when I try it it only outputs "dc"
 
6:53 AM
@MarcusAndrews replace +1 with -1
 
Oops
gets;s=gets
gets.split.map(&:to_i).each{|x|$><<s[x-1]}
@MarcusAndrews Fixed and made shorter
gets;s=gets
gets.split.each{|x|$><<s[x.to_i-1]}
Even shorter
 
looks similar to the python approach
but shorter XD
 
@ASCII-only No, he was an early APL adopter, though. Dyalog didn't exist yet…
 
7:18 AM
@Christopher2EZ4RTZ I was with my parents at the May 10-14, 1987 APL conference in Dallas, Texas, USA. I didn't turn two until June 25 that year. I was supposed to demonstrate that even a toddler could use some proposed UI, but unfortunately someone mistook a screwdriver for plain orange juice and I ended up sleeping through my session.
 
7:52 AM
@Adám So, you get drunk at one when supposed to use APL? Who says programmers can't have fun :P
 
@Adám How do you confuse a screwdriver for juice
 
A screwdriver is a popular alcoholic highball drink made with orange juice and vodka. While the basic drink is simply the two ingredients, there are many variations; the most common one is made with one part vodka, one part of any kind of orange soda, and one part of orange juice. Many of the variations have different names in different parts of the world. The International Bartender Association has designated this cocktail as an IBA Official Cocktail. == History == This drink appears in literature as early as 1938 "And answered it 'The famous Smirnoff Screwdriver', Just pour a jigger of smirnoff...
 
Oooohh
 
8:17 AM
@cairdcoinheringaahing That actually sounds really really tasty
On a completely unrelated note, I just slammed my car door on my finger.
It was unpleasant
 
8:46 AM
1
Q: Bitwise XOR of rational numbers

ZgarbIntroduction Every rational number between 0 and 1 can be represented as an eventually periodic sequence of bits. For example, the binary representation of 11/40 is 0.010 0011 0011 0011 ... where the 0011 part repeats indefinitely. One way of finding this representation is the following. Star...

 
9:03 AM
@Adám Oh, my bad
 
@ASCII-only How would you know? :-)
 
well if I did some research I'm sure I'd be able to find Dyalog's founding date, probably?
Also you've mentioned a bit about it in TNB I think
 
 
3 hours later…
11:59 AM
Classic Docker team.
 
@mınxomaτ what's the feature?
 
 
1 hour later…
1:17 PM
@orlp Closing ports that might have been EXPOSEd by parent Dockerfiles
Or a more general UNSET command
 
wonders whether @Adám has heard of the "The_Dark_Lord" guy from this comments page: thedailywtf.com/articles/comments/theory-versus-reality
 
Anonymous
1:40 PM
@mınxomaτ Got it: abuse open ports in Docker's enterprise software until they fix it
 
@Neil No, but it makes sense. However, who needs about 6 APL LOC?
 
1:56 PM
@DJMcMayhem A screwdriver is not really really tasty! It's awful! The only reason to use orange juice is because it has a very distinct and strong taste, so it compensates for the bad vodka taste. At least that's what we did in our teens...
 
@StewieGriffin You can't fool a <2yo into drinking something awful.
 
Is it called a screwdriver because it screws you up?
 
@Fatalize Yes! The Sundays sucked!
I bet Adám had a rough morning following that event too... I'm willing to place a fairly big bet that Adám cried that day!
 
Anonymous
Screwdrivers are wonderful :)
 
@Adám Try it (offline), and we can continue the discussion! :P
 
2:01 PM
CMC: Given a list/array/vector of integers, return the one with the highest totient, without using any built-ins or modules that directly compute the totient.
[2, 4, 9, 10] -> 9
 
totient?
 
Euler phi function?
 
Yes
In number theory, Euler's totient function counts the positive integers up to a given integer n that are relatively prime to n. It is written using the Greek letter phi as φ(n) or ϕ(n), and may also be called Euler's phi function. It can be defined more formally as the number of integers k in the range 1 ≤ k ≤ n for which the greatest common divisor gcd(n, k) is equal to 1. The integers k of this form are sometimes referred to as totatives of n. For example, the totatives of n = 9 are the six numbers 1, 2, 4, 5, 7 and 8. They are all relatively prime to 9, but the other three numbers in this range...
 
@Mego [...] if you're assembling furniture!
 
@Mr.Xcoder Jelly, 8 bytes..‌​. or 8 bytes
 
2:05 PM
Already outgolfed me
 
Anonymous
@Mr.Xcoder Actually, 17 bytes: ⌠;;R♀g♂D♂YΣ@k⌡MMN
 
@Mego nice
 
Anonymous
Probably can golf it more
 
Anonymous
15: ⌠;;R♀g1♀=@k⌡MMN
 
Shame ;╗R`╜┤`░ no longer works for coprimes up to N.
 
2:07 PM
One of or all of?
Is that SOGL?
 
Anonymous
@Mr.Xcoder Actually...
 
@user202729 Up to you. For instance, mine returns all of them
@user202729 No it's a language called Actually (made by Mego).
 
Of course I know Actually, but the looks too weird to be in any language I know.
 
Anonymous
@Mr.Xcoder 13: ⌠;;R♀┤Σ@k⌡MMN
 
(actually I know neither Actually nor SOGL, just look and guess)
 
Anonymous
2:08 PM
@user202729 That's filter in Actually
 
Anonymous
SOGL and Actually use the same code page - CP437
 
I recognize ⌠...⌡ as Actually :P
 
That's a literal function.
 
Is Actually stack-based?
 
Anonymous
With builtin: ⌠;▒@k⌡MMN (9)
 
Anonymous
2:09 PM
@HyperNeutrino Yep
 
Poll: What is the golfing language with the best (not necessarily golfiest, but very good) control flow?
 
ah ok
 
Anonymous
@Mr.Xcoder Pyth or Jelly
 
@Mr.Xcoder I vote Jelly but I may be biased :P
 
@Mego Lol Actually + Built-in longer than Jelly without
 
2:10 PM
I only know Jelly and I don't know what is control flow.
 
In my opinion, Pyth has wonderful control flow structures
 
Anonymous
@Mr.Xcoder It's because I don't have a way to do max/min by key yet
 
Because the filler often extends past the upper of the message, I find it very notice-able.
 
oh god what
 
What font do you use ಠ_ಠ
 
Anonymous
2:13 PM
That's default Chrome font for chat
 
Renders nicely on Safari though
 
Chrome, Windows 10.
 
Anonymous
Apparently it's Arial
 
Best I could do in 05AB1E is ΣÕL}θ (uses built-in)
 
@Mego SOGL doesn't use CP437 :p
though the characters in each are very similar :o
 
Anonymous
@dzaima Oh, I thought it did. It uses quite a bit of CP437, though!
 
@Mego yeah, I was very surprised about the similarness, as I've never looked at CP437 for more than a second. Makes sense how one could mistake the two
 
3:03 PM
> The function is named after the integer function ⍳ from the programming language APL.
Pretty surprising for me.
 
@DJMcMayhem If you say so. I dislike vodka though, so I may be a little biased :P
 
@cairdcoinheringaahing A (good) screwdriver usually doesn't taste like vodka at all.
That's usually why it screws you up :p
 
3:19 PM
Can someone explain to me how this question is still unclear after my edits?
 
@RamenChef It already has 3 reopen votes. Be pacient and it might be reopened :-)
Reopened :P
 
Yeah I was gonna it's pretty clear to me.
 
Anonymous
@J.Sallé Yep, it just tastes like orange juice. They screw you up because you don't realize how much alcohol you've been drinking until you faceplant after trying to stand up.
 
so this might be why my class two years ago had some sort of running joke about orange juice
 
@Mego A long island iced tea has a similar effect ;]
 
3:27 PM
CMC: Given a list, output a random substring of a given length
 
Anonymous
@Poke By a different mechanism. A Long Island has so many different kinds of alcohol in it, it all balances out and doesn't taste like alcohol at all.
 
unless you over pour one :]
but pretty amazing how that all works
first time i had one i didn't believe it was all alcohol
 
@Mego I guess that's the "feature" which got me.
 
@Mr.Xcoder contiguous sublist? Distribution?
 
@user202729 Contiguous sublist
 
3:32 PM
@Mego my point exactly. Been there done that (maybe more than once >.>)
 
Jelly, 2 bytes: ṡX
 
Jelly, 2 bytes: ẆX (probably)
@HyperNeutrino You need ṡXX.
 
oh huh
@user202729 that doesn't conform to the "given length" thing
 
Oh ok I misread it. Anyway probably it can't be made shorter.
 
@cairdcoinheringaahing I like other vodka based drinks I've had before. For examine, I really like Moscow mule
But that has relatively less vodka then a screwdriver, so idk
 
3:36 PM
 
3:47 PM
CMC: Random substring. Any distribution as long as all are possible. You may include or not include empty and entire.
 
@Mr.Xcoder I was looking at the review queue, where everybody had voted to Leave Closed.
 
Strange...
 
@Adám Isn't that exactly the same? (at least in Jelly where string = list of character)
 
@user202729 The other CMC was of a given length.
 
16 mins ago, by user202729
Jelly, 2 bytes: ẆX (probably)
Now it is correct.
 
3:50 PM
anyway gtg o/
 
4:04 PM
@Adám l=$_.length;a=rand 0...l_.length;$_.slice!a,rand(0..l-a)
 
4
Q: Is it a substring of itself?

caird coinheringaahingGiven a substring, return whether the substring is contained in the program's source code. Standard quine rules apply, meaning you cannot read your own source code. The length of the input is guaranteed to be less than or equal to the length of the program. You may return any two distinct values...

 
weird one:
In order to make your tweets more understandable, you need to replace the long complicated words by covfefe.
Your task is to replace the longest word starting by c in a tweet by covfefe.
If no words starts by c, put covfefe at the end. If multiple words start by c and have the same length, choose the last to appear in the sentence.
(input is just a space-delimited alphanumeric sentence)
 
@MarcusAndrews Is the c guaranteed to be lowercase
 
4:32 PM
CMC: Given an orthogonal (non-ragged) array, return a random subarray of the same number of dimensions. Any distribution as long as all are possible. You may include or exclude empty and/or entire.
 
@Adám VTC as unclear
 
@NieDzejkob How so?
 
how do you define subarrays in multiple dimensions?
Also, what do you mean by "You may include or exclude empty and/or entire."?
 
@NieDzejkob E.g. for 3D you may remove leading and trailing layers, rows, and columns.
@NieDzejkob You may decide whether returning the entire array is acceptable. So too, you may decide whether removing all layers or rows or columns is acceptable.
 
@Adám I had two possible definitions in mind, this one is the third :P
@Adám Vote retracted ;)
 
4:40 PM
@Adám surely that reduces the number of dimensions?
 
Hello TNB!
Today is my birthday :)
19
 
@DJMcMayhem Happy birthday :D
 
Happy Birfday!
 
CMC: Write an anti-virus checker for the "Salutations, Cosmos!" virus. You must be able to detect at least 256 different variants, but no false positives. Suitable variants are a) at least 4 different salutations b) optional comma c) at least 4 different regions d) ! or . e) upper, title, proper or lower case
 
@Adám Are x⍴y, x x⍴y, x x x⍴y 1D, 2D and 3D respectively?
 
4:45 PM
Happy birthday!
 
CMC: Given [NAME] output:
Happy birthday to you
Happy birthday to you
Happy birthday dear [NAME]
Happy birthday to you.
 
@DJMcMayhem Happy birthday mate!
 
@J.Sallé Yes, assuming x is a scalar.
 
@Adám okay good
 
@DJMcMayhem Waves; Happy birthday, best wishes!
 
4:47 PM
Thanks all :)
 
You turn 20?
 
Yep, just did
 
oh, forgot the "dear"
 
Wow, how is it already halfway through november?
uh oh, I need to finish my language for the time machine thingy
 
Surprisingly it is, I don’t even recall entering November lol :-)
 
4:49 PM
@MistahFiggins Technically that's tomorrow :p
 
Unless you're in australia, if so nvm :p
 
@Adám Charcoal, 36 bytes: for (4) Print("\rHappy birthday to you"); Print(:UpLeft, "."); Multiprint(:Left, " read"); Print(q) (actual succinct code might be shorter due to string compression)
 
@Neil How is that 36? Looks like 101 to me.
 
it's pseudocode
run charcoal with -vl to translate it
 
4:52 PM
 
@Adám Fixed, for +2
 
Not that close in fact :P
 
@Neil F⁴“O¶γU↧ε⪫e⁵↥9⌈[⁷dSy|π”↖.P← raedθ (fixed typo for you but still outputs leading newline)
 
bah, what about trailing newlines?
are they allowed?
 
4:59 PM
@Adám a,o='"Happy birthday #{i==2?$_:"to you"}"','';(0..3).each{|i|o+=eval a};$><<o+?.
 
Actually no doesn't work
 
I'd say so:

Happy birthday to you
Happy birthday to you
Happy birthday tdearDJMcMayhem
Happy birthday to you.
 
00:00 - 17:0017:00 - 00:00

« first day (2481 days earlier)      last day (2348 days later) »