« first day (2520 days earlier)      last day (2315 days later) » 

1:01 AM
@LeakyNun Yes. I think it's pretty complete for me. (Central US)
 
@DLosc I see
 
@NickClifford Pardon me for not understanding, but what exactly do you mean? Do you want to match the first and third as in abc"abc"abc, but not the second (or something similar)?
Posted the domino challenge. If I don't get Hero of Time for this I will be extremely disappointed in the SE team
Ah shoot, I missed the "7:00 pm" requirement. nevermind...
 
1:22 AM
0
A: Sandbox for Proposed Challenges

DLoscUngolf my tinylisp code code-golf parsing whitespace lisp balanced-string I like golfing in tinylisp: (d M(q((x)(i x(i(disp x)0(M x))0 But I also like posting explanations with nicely formatted code: (d M (q ((x) (i x (i (disp x) 0 (M x)) 0)))) Can you help me generate the u...

 
@NickClifford so something like: regex101.com/r/EfXDJn/1?
 
0
Q: Draw me a domino

ETHproductionsChallenge Given two digits 0-9 as input, output a domino (from the double-nine domino set) with these number of pips (dots) on the two faces. The ten possible faces look like this (separated by pipes): | | o| o|o o|o o|o o o|o o o|o o o|o o o | o | | o | | o...

 
@ETHproductions yes, pretty much. in the case of Ohm, I want it to match newlines only when they're outside of quotes
@Downgoat I think that should work
although actually there's something I haven't thought about
in Ohm, there's multiple string delimiters
and I wonder if it's possible to match the newlines iff they're not inside a matching pair of only one delimiter?
wait yeah @Downgoat's regex does work for that if I modify it a bit
well thanks for the help
 
1:41 AM
I hate python. I probably have inconsistent tabs and spaces everywhere in my MY code ... ugh! And ETH is back!
 
> Don't use The Nineteenth Byte as a dumping ground for your thoughts or actions. Consider whether a topic would be relevant to others before talking about it. We're here to have discussions, not to listen to someone's stream of consciousness.
 
Never heard that one before
 
thinks to himself but stream of consciousness is interesting
 
...
 
2:39 AM
No freaking way, I earned Hero of Time anyway :O
 
Huh>
 
The answer must have inferred the PM from something
 
@ETHproductions nice challenge
 
thanks :)
I fear I may have been too liberal with the output format, as binary arrays will probably be shorter in most languages than actual ASCII-art
 
Anonymous
@ETHproductions Nepal is UTC+5:45, so posting at :15 works.
 
Anonymous
2:50 AM
However, there are no +:15 time zones, so only :00, :15, and :30 work
 
Anonymous
And sometimes :15 and :30 don't work because none of the time zones align with midnight
 
@Zacharý in that case please read chatiquette
 
Anonymous
CMC: Output the number of minutes it is until it is exactly midnight in any time zone on this page. You may optionally take the current time as input. The output may be rounded either up or down, at your discretion.
 
Anonymous
Alternate wording: output how many minutes you should wait before posting if you want Hero of Time ASAP.
 
@Mego I meant to get the hat, the thing here is that the answer explaining how to get it says you need to post at 7:00 pm, and it was 7:00 am in Nepal
 
Anonymous
2:59 AM
@ETHproductions Huh, that's right. Weird. It was 15 minutes past 7 pm in CST
 
3:53 AM
ಠ_ಠ There haven't been any good challenges recently
 
@cairdcoinheringaahing How would you define "good"...?
 
@user202729 Fairly easy (20-30 answers), not involving arrays.
 
Easy challenges are not always good.
 
They are for me
 
“¤noṛ... what a coincidence.
 
4:00 AM
What's the coincidence?
 
Ok... anyone else working on next OEIS sequence?
 
@Adám [[], [[]], 0]
 
@user202729 Correct me if I'm wrong, but this seems to be incorrect. The B is part of the ŒB, rather than being the "to binary" atom.
 
@cairdcoinheringaahing Not that B, the other B.
 
@user202729 In the second solution?
 
4:08 AM
Yes.
 
@user202729 Doesn't look like it. Looks to be a 2017 only challenge :/
 
I just downloaded Java 1. The installer UI looks old...
@cairdcoinheringaahing Who is/are one oeis after another room owner(s)?
And why are the pinned messages still starred, while it lost the pin status?
 
When you pin a message, you also star it. The pin is temporary, but stars are permanent
 
So RO can star their own message...
 
yes I suppose
 
4:29 AM
Has anyone here used Trajedy before? It seems really mathy
 
@user202729 Me
@quartata Unless they're deliberately removed
 
To be fair, this one is no (or only slightly) harder than the domino sequence...
 
5:10 AM
Hey if I have a finite filed will there always be a element that generates the field under multiplication? If there is I can make a very nice golf.
In field theory, a primitive element of a finite field GF(q) is a generator of the multiplicative group of the field. In other words, α ∈ G F ( q ) {\displaystyle \alpha \in \mathrm {GF} (q)} is called a primitive element if it is a primitive (q−1)th root of unity in GF(q); this means that all the non-zero elements of G F ( q ) {\displaystyle \mathrm {GF} (q)} can be written as ...
 
@WheatWizard I don't think so (if it is not cyclic)
 
I forgot about non-cyclic finite fields for a moment there
I do only mean cyclic
3
A: Finding a primitive element of a finite field

Hagen von EitzenPick an element and compute its powers. If these cover all nonzero elements, you have found a primitive element. Otherwise pick an element that you did not cover and start over again.

This answer is super helpful
 
I think F_4 doesn't.
Naive algorithm, but for codegolf the simpler the algorithm, the better.
 
That's the field extension of the Klein 4 group? I've forgotten the notation
 
Z/4Z.
(the group of integers modulo 4)
 
5:23 AM
Oh, lemme think
I don't think that is a field
 
It is.
 
What is the inverse of 2?
 
Oh... so it isn't.
So, only consider fields F_p[x]/m(x), as in the question, where p is a prime.
 
I'm pretty sure Z_p is only a field if p is prime.
 
Yes that's correct.
testing some fields
 
5:29 AM
Same :)
 
If n is not prime, take n = ab (a,b > 1). Then in Z_n, a*b = 0, so a,b are zero divisors, don't have multiplicative inverses, etc.
 
Hm... what it does? I don't know Haskell.
 
For each prime p it finds all the primitive elements in Z_p. The output is a list of primes and their primatives
 
typo: primitives. / Ok.
 
5:40 AM
- nevermind
 
By Wikipedia it's true.
 
What is?
 
now my output is human readable.
 
That all Z_p multiplicative fields (\0) are cyclic.
 
They're cyclic under addition
 
5:45 AM
Multiplication too.
> The structure theorem of finite abelian groups implies that this multiplicative group is cyclic, that is, all non-zero elements are powers of a single element.
 
Those are the primitives, though (I missed the \0)
Is this for the OEIS challenge?
 
No I'm just working with some prolog code, would be nice if I could find primitives effeciently
 
@WheatWizard I was just trying to remember if there's a better way to determine the primitives than brute force. You can calculate how many there are efficiently (en.wikipedia.org/wiki/Primitive_element_(finite_field))
 
Yeah, I linked that a little while ago
It seems like this is a hard problem
 
Yeah, I just found the same paper through math.se
It's not often obvious what's easy or hard to do in algebra (to me)
 
5:53 AM
If it involves finite fields a good bet is always hard.
Finite fields are used in cryptography because of their hard to compute properties IIRC
 
Mostly discrete log, I think.
 
6:16 AM
@WheatWizard I see some indication that maybe the difficulty is in finding a primitive element for Z_p with p so large that (p-1) can't be factored. There's an implication that with the factorization of (p-1) in hand, there's a fast way to find the primitives. I don't know what it is
@WheatWizard You might want to check out johnkerl.org/doc/ffcomp.pdf S2.5
 
nice
 
I think it might apply to what you're doing. I didn't read it carefully enough to say for sure, but it's written at a very convenient level. I'll stop trying to help, but let me know if you find a better method?
 
At this point what I was doing is completely out the window.
I'm just intrigued
 
 
1 hour later…
7:53 AM
I just realized that regexes form a ring...
 
 
4 hours later…
11:45 AM
@EsolangingFruit With which operations? Alternation and repitition?
Wait that doesnt make much sense, repition is a unary operator. I think I was thinking of concatenation.
 
 
2 hours later…
1:26 PM
I got an idea for challenge, and I thought that it would be cool to name it "The ting goes [skrrrahh in BF]", but it's gotta be quite long... Anybody got a better idea? xD
 
2:00 PM
why do I have this icon here? lol, I changed it long time ago...
 
2:34 PM
0
A: Sandbox for Proposed Challenges

SoakuThe ting goes >+++.--------.+++++++...<+.+++++++..! popularity-contest kolmogorov-complexity The title is actually valid BF code, but only if you initialize the tape with hex 50 60. Well... not even sure if that's correct. One of the latest memes is the song by Big Shaq, "Mans not hot". When...

 
3:21 PM
@HyperNeutrino You may want to take a try at the next sequence...? This time it's not harder than the polyomino one.
 
Is it OK to write this in C?
char *memory = malloc(memory_size);
srand((unsigned int)(size_t)(void *)memory);
 
3:37 PM
@wizzwizz4 char *memory = malloc(memory_size); is ok if memory_size is the correct size in bytes
srand((unsigned int)(size_t)(void *)memory); this is wrong because srand() initialize the random function with a seed : One can write srand(1) (and call rand() for obtain the random value ) or srand(5000) for to have a fixed sequence or srand(time(0)) for have one not fixed sequence
 
Anonymous
@wizzwizz4 Yes but why?
 
@Mego Because I want something that imitates UB.
I'm making a sort of simulated simplified processor.
 
Anonymous
I'm not 100% sure that it's UB as defined by the standard. You just might get garbage data.
 
@Mego I don't think it's UB.
malloc is guaranteed to give a pointer.
That pointer is guaranteed to fit in a size_t.
size_t, being an integer type, can be cast to unsigned int.
 
@wizzwizz4 possible you want
char *memory = malloc(99);
srand(*(int *)memory); for a UB C initialization of the sequence returned from rand()
char *memory = malloc(99);
srand((int )memory); possibly
 
3:52 PM
@RosLuP That will probably just initialise it to 0.
@RosLuP That is pretty much what I'm doing.
(I think.)
 
char *memory = malloc(99);
srand((int)memory); with this even if malloc(99) return 0 (fail) it initialized srand(0); but what about (int) memory is out of the integer range allow as argument in srand()?
 
@RosLuP Mine does the same.
(Except technically srand takes an unsigned int.)
 
char *memory = malloc(99);
srand((unsigned) memory);
 
@RosLuP I went through two other casts because I didn't know you could do that.
 
Anonymous
@RosLuP That is not undefined behavior in any way.
 
4:01 PM
@Mego There might be some garbage data left in memory, but in practice it's zeroed.
 
Anonymous
@wizzwizz4 Not true. It's OS-dependent. I believe MSVC doesn't zero the memory by default. Either way, it's not UB - the standard specifies exactly what happens.
 
correct me if i'm wrong, but a highly specific challenge asking for something to be turned into a one-liner only within a specific language is not on topic on PPCG, correct?
 
Anonymous
@ThomasWard Probably not
 
Anonymous
@wizzwizz4 Not zeroed
 
that's what I thought
 
4:06 PM
@ThomasWard No, I think that's off-topic.
@Mego It's usually cleared in some way.
 
@wizzwizz4 this seems ok #include <stdio.h>
#include <stdlib.h>
main(){
char *memory = malloc(99);
printf("%x\n",(unsigned) memory);
srand((unsigned) memory);
printf("%u\n", rand());
}
 
@RosLuP Yeah, that should be fine.
Thanks.
 
If one not consider the memory leak (I forget to free(memory) at end )
 
@RosLuP By that time the program's exited.
 
Who know if the OS free the memory... Ok 99% of Os will free that memory but if one meet the Os not free it?
 
4:29 PM
1
Q: Be as evil as possible

Bruce ForteIntroduction This is a follow-up of this challenge where you're taking the role of that person's evil twin. Being evil you don't want to maximize your share, but rather be as unfair as possible and you're not going to make it too obvious, that's why you came up with the following scheme: You're...

 
4:39 PM
@RosLuP If the OS doesn't then the kernel will.
If the kernel doesn't, there's probably lots of other stuff about the PID that it's keeping that it doesn't need to, so freeing memory is only delaying the inevitable drought (the end result of a leak).
 
 
1 hour later…
6:00 PM
:41922397 If that was a password I can hard-delete it (as opposed to the current soft-delete).
 
@Dennis I did think of the æ. atom, but I don't think that's something you can reference to as the built-in ;)
 
Not a password, Something else (that is hard to explain) But thanks anyway
Would be a pretty crap password :)
 
Yeah. I didn't want to say, in case it advertised your accounts.
 
4
Q: Is my number Unique

Wheat WizardIn this challenge we learned a way to encode every positive integer using factor trees. Here is how it works: The empty string has value of 1. (S) where S is any expression with a value of S evaluates to the Sth prime. AB where A and B are arbirary expressions with values of A and B respective...

2
Q: Primes ’n’ Digits

RamenChefThis has no practical purpose but it could be fun to golf. Challenge Given a number n, Count the amount of each digit in n and add 1 to each count Take the prime factorization of n Count the amount of each digit in the prime factorization of n, without including duplicate primes Create a new ...

 
6:37 PM
Is oeis challenge dead?
 
@HusnainRaza Not yet, I believe it dies tomorrow
Although we've been working on a solution in chat
 
7:04 PM
If I knew enough Java and enough group theory, I'd help.

I encourage others to do so.
If nobody submits a solution, the challenge will be over tomorrow. :-(
(But it has gathered over 260 answers, so there's that.)
 
@wizzwizz4 The group theory is pretty light
Its more geometry than anything
I also don't know any java
 
7:29 PM
I just stumbled onto NixOS Linux, which claims to be "The Purely Functional Linux Distribution", and I"m not sure how that makes sense.
 
7:53 PM
@Pavel There are no procedures. No programs.
Only functions.
Everything runs in kernel space except when explicitly unprivileged.
Unprivileged functions can't run functions privileged.
There are "modules" which can contain functions.
Most "modules" contain a main function which can be run with one of several prototypes.
Basically, all of the jargon is mapped to other jargon.
 
8:54 PM
Except maybe "jargon", which will be mapped to "jargon"
 
9:34 PM
I HAZ TEH STAH?!
 
@Zacharý Yeah! Du hast deinen Stern!
 
^ Je ne parle pas allemand.:(^
Speaking of languages: how many programming languages do you guys know? (Esolangs don't count)
So, ðproductions is back!
 
@Zacharý define know
 
9:49 PM
How many have you used at all, and still have a basic knowledge of.
 
@Zacharý probably >7. Took me opening tio to remember some though :p
if only learning human languages was as easy as learning different programming languages
 
Me: APL, BASIC, Batch, Bash, C, C++, C#, D, Dart, Forth, FORTRAN, Fortress, Haskell, Java, JavaScript, Lisp, Lua, Mathematica, Perl, Python, and Ruby.
I might be forgetting some
My knowledge of some of them is pretty shaky (Lisp, FORTRAN, and Perl, specifically)
@dzaima Or at least as easy as learning APL or something
I mainly only program in APL, D, JavaScript, and Python though.
 
@Zacharý reading your list, at least >12 actually. Forgot quite some (including JS o.O)
 
You know it's ridiculous when you FORGET that you know some of the languages ...
Including esolangs: Brainfuck, Befunge, Jelly, and MY (obviously MY, I created it)
 
@Zacharý hell, until I opened TIO I completely forgot about APL..
 
9:58 PM
I'll never forget $850 APL
 
0
Q: Find the smallest triangle encompassing the specified polygon

McLinuxInput: An integer N which represents the polygon's vertices and a list of their x and y coordinates. Expected output: The smallest difference possible between the area of the(not necessarily convex) polygon and the triangle containing it. If there is no such triangle print -1.

0
Q: Organize Your Christmas Party!

tfbninjaChristmas is coming up, and this year you have been charged with organizing your family's christmas get-together. You have a list of foods you want be there, but before you assign foods to people, you need to know who's coming. So... Challenge Given an input of relative's names separated by com...

 
NOOOOOOOOO .... I forgot that I had a program running when I restarted my computer!
Anyone have a link to the Integral github?
@MDXF ?
 
10:19 PM
@BruceForte @Emigna @user202729 @IanH. I'm removing the community wiki answer to Find the longest word in an array. Please repost your individual solutions.
 
10:37 PM
@Dennis: Yes, just saw it, glad this is sorted out now.
 
11:28 PM
Happy Festivus everybody!
 
@PhiNotPi Festivus?
 
Festivus is a secular holiday celebrated on December 23 as an alternative to the pressures and commercialism of the Christmas season. Originally a family tradition of scriptwriter Dan O'Keefe, who worked on the American sitcom Seinfeld, Festivus entered popular culture after it was made the focus of the 1997 episode "The Strike." The non-commercial holiday's celebration, as depicted on Seinfeld, occurs on December 23 and includes a Festivus dinner, an unadorned aluminum Festivus pole, practices such as the "Airing of Grievances" and "Feats of Strength," and the labeling of easily explainable events...
If you google search "festivus" there is a festivus pole on the left of the results page.
 
0
Q: Form a list using prime numbers

McLinuxYou have been given N piles of coins. You have decided to divide each of those B1, B2...BN piles among separate groups of people. The amount of people receiving coins has to be a prime number and the amount of money given to each person must be different in each pile. Input: N, B1, B2...BN(The a...

 
my copied-from-a-constest sense is tingling, but I'm not sure
 

« first day (2520 days earlier)      last day (2315 days later) »