« first day (2471 days earlier)      last day (2371 days later) » 

0
A: Sandbox for Proposed Challenges

MegoMatrix Determinant code-golf math linear-algebra array-manipulation (see this for more information) Given a square integer matrix as input, output the determinant of the matrix. Rules You may assume that all elements in the matrix, the determinant of the matrix, and the total number of eleme...

 
12:14 AM
@Mego 10/10
 
12:49 AM
is there really not a determinant challenge already
 
Do you mean this?
8
Q: matrix determinant

olivecoderCalculate the determinant of a n x n matrix. Rules read matrix from standard input write to standard output do not use ready solutions from library or language input: columns separated by any space char input: lines separated by cr and/or lf Winner The shortest code :)

Oh, you are refering to Mego's proposed challenge. I've left a comment there
 
I see; yes, I was referring to the sandbox proposal
 
7
Q: Should we have a new, improved matrix determinant challenge?

MegoThere is currently a challenge to compute the determinant of a matrix. However, it was written 5 years ago, before our current quality standards were established. It falls short of those standards in several ways: Inflexible I/O (must be STDIN and STDOUT) Cumbersome I/O format (whitespace-separ...

@EricTressler ^
 
I just saw :-) Mego pointed me to that
 
:o I finally got marks back from my CS course
 
How'd it go
 
18/18, 16/16, 14/16, 1/1, 15/15 :P
overall 97.5% lol :( <-- sad face because the only reason I lost 2 marks was because I forgot to explain something lol
 
@HyperNeutrino How dare you lose 2 marks! You are hereby banished from PPCG ;P
 
@cairdcoinheringaahing :P
or if you weight it properly, 96.[96...]%
also sad face because really I should be getting 100 :P
 
1:31 AM
Over 80% of people who take the APCS exam score either a 5 or a 1. No one is "basically ok but not amazing" at High School CS.
 
hm interesting
also technically I have no course grades because they're in the feedback but not as official grades :P :P
 
1:44 AM
@HyperNeutrino So, is that possible?
@HyperNeutrino And can you see this image (I find pasteboard having too many ads)
 
1:59 AM
@user202729 turns out it's not. but I have an actual laptop now so I can do that. and yeah I can see the image perfectly fine
and yay it worked just doing curl ... > file.xxd and then xxd -r file.xxd hn.png and then open hn.png :P
I also managed to golf off a few more bytes with a bunch of tiny golfs (like 1-2 bytes each :D)
 
@HyperNeutrino 0/10 curl ... | xxd -r hn.png
 
oh
I wasn't sure if that would work so I decided to just do it the way I knew would work :P
 
I don't use Linux so I don't even know curl, but what's the problem?
 
nothing :P
anyway gtg o/
 
curl <address> downloads the contents of <address> and prints it.
All I want now is a way to open a png from a stream.
 
2:31 AM
I just profiled my code, and found the bottleneck
and then I discovered that it was in useless code, so the fix was to comment it out
I don't know whether to be thrilled or appalled
 
2:56 AM
There's a Mathematica extension to generate optimized C++. Idea: run it on a single built-in then use the interop most languages have with C++ to call it and never implement ObscureMathFunction manually again.
 
@Pavel that sounds like turning 1 problem into a number of problems
 
@EricTressler but you only ever have to solve that number of problems once ever and then never implement a math function again
 
3:20 AM
@Pavel but I like implementing math functions
 
3:35 AM
@Pavel @ASCII-only either of you got time for a DnD sess?
 
 
2 hours later…
5:28 AM
0
Q: Build a tool that allows the user to see how many words, sentences, spaces, and average words per sentence are contained within a passage of text.

Audrey Simmonsn this project we will build a tool that allows the user to see how many words, sentences, spaces, and average words per sentence are contained within a passage of text. Requirements HTML Include an area for users to enter text Include a button that a user can click to trigger the analysis of th...

 
5:59 AM
0
Q: Basic sort, with annoying bug

Vadim PonomarenkoYour input is a list/sequence/vector/array of 5-255 positive integers, not necessarily unique. You may assume whatever input format is most suitable, and that each integer (as well as the quantity of integers) is chosen uniformly at random from the range 5-255. The goal is to output the same li...

 
6:44 AM
Does anyone know about the internals of Pycharm here?
I might have symlinked over 2TB of data into my working project, not noticing I should probably exclude the directory first
 
7:42 AM
0
Q: Number of Subtrees

Kiran SaxenaYou are given a tree (not necessarily binary) with a special property which is, forming multiple sub-trees. This happens as follows: A random node of the tree is broken. After this, the node along with its immediate parents up to the root vanishes from the tree. The tree has N number of nodes ...

 
 
1 hour later…
8:51 AM
@Mr.Xcoder I don't think you can just "ignore a bonus", even though I won't recommend them either, because I think that it's your code that has the bonus, not your decision...I actually have a feeling that answers not qualifying for the bonus should be invalid instead
 
 
1 hour later…
Anonymous
9:52 AM
Any more feedback on this before I post it in a few hours?
 
10:09 AM
@EriktheOutgolfer I ignore the bonus because I am not sure whether my code qualifies for it. I’ll see
 
10:22 AM
Currently I have a solution to the next OEIS sequence (A000112) (MD5 = 1816cbca5788befa7e8ae62b89f257c2) but I don't feel like posting it because it is brute-force and takes a lot of time calculating for 4. I've tested for values 0 - 4 and it gives correct result. There are still 3 days remaining, if I can't understand the efficient algorithm listed on the OEIS page and no-one post any answer I will post this anyway.
 
@muddyfish :/
 
I got it working again though
 
@Mego Hi, what am I being blamed for exactly?
 
yesterday, by Pavel
@Mego The herokuapp link in https://github.com/Mego/Seriously/blob/master/docs/index.rst#id1 is dead
 
See, I don't think I ever touched that rst
 
10:29 AM
@Sherlock9 maybe you ran the heroku app? idk
 
@Mego what exactly is a shell (sincere question)?
 
Nope, I didn't use heroku when I was writing the docs in the docs branch, but then again, I never merged my docs branch back because I never got around to finishing those docs
 
Anonymous
@ASCII-only I ran the heroku app, but Sherlock wrote the docs
 
Anonymous
In computing, a shell is a user interface for access to an operating system's services. In general, operating system shells use either a command-line interface (CLI) or graphical user interface (GUI), depending on a computer's role and particular operation. It is named a shell because it is the outermost layer around the operating system kernel. The design of a shell is guided by cognitive ergonomics and the goal is to achieve the best workflow possible for the intended tasks; the design can be constricted by the available computing power (for example, of the CPU) or the available amount of graphics...
 
Anonymous
10:37 AM
Oh, then blame phase :P
 
CMP: What is the notation for periodic numbers in your country: Ellipsis, Vinculum, Dots, Parentheses, Arc?
 
@Mr.Xcoder periodic?
 
@ASCII-only With repeated decimals e.g 0.77777777...
 
@Mr.Xcoder I don't remember but I guess it's parentheses.
 
@Mr.Xcoder dots on first and last digit/continuous bar above all digits
 
10:48 AM
@Mego so the gui of any operating system is also a shell?
 
It's 0.xyzxyzxyzxyz = 0.(xyz) here... Confusing that there is no universally accepted notation.
 
Anonymous
@flawr According to that definition, yes
 
Just write fraction. / I guess ellipsis is universally understood.
 
Anonymous
@Mr.Xcoder Ellipsis, dots, parens, or arc, depending on how you're writing it. Parens or dots/ellipsis for typing, any for writing (though I learned arc first)
 
@Mr.Xcoder why would there be? It has no real use. (in my country you draw a bar above the repeating part)
 
10:51 AM
@flawr idk ¯\_(ツ)_/¯
 
What about this → CMP: What is your decimal point in your country? . | ,
 
And even if there was a standard, I bet the US would come up with something completely different.
 
@user202729 Unfortunately it is , here.
 
@user202729 . or ,
 
@user202729 .
 
10:52 AM
@user202729 sadly , :/
 
@dzaima so pi = 3, :/141592...?
 
You can write numbers like 1000000.48 with 1.000.000,48; I dislike this notation so much, yet I have to use it
@flawr Exactly; Same here :/
 
@flawr :/ Pi isn't a recurring fraction
 
@flawr ok from now on if I have to write pi, I'll write that :p
 
@flawr The face is not inside the backticks / formatted as code. (I see that is just a joke)
 
Anonymous
11:06 AM
@user202729 ., US
 
11:19 AM
I think ellipsis, but what ticks me off is that the decimal point and the comma as thousands separator is reversed here
@Mego Should I just merge the docs I have back into the master branch?
 
11:49 AM
That is exactly why I'm a big fan of my country's notation: Use ' for thousand separators and use . or , as decimal point.
Totally unabiguous. In contrast a certain neighbour who writes stuff like 123,456.789
 
But I guess that is a problem with CSVs
 
@ASCII-only there are way more:)
 
In that case I'd go with the one used in programming: 100_000_000.00
 
@ASCII-only too easily confused with the attribute OO of the object lOO_OOO_OOO
 
@flawr If your font makes them hard to tell apart then then something's wrong
Especially a monospace font
 
11:53 AM
@ASCII-only haha, well I don't think the font is the biggest problem if someone uses variable names like those XD
 
12:11 PM
0
Q: Tips for Golfing in SQLite?

aloisdgI was looking for this page to help me enhance my first answer with SQLite, but I couldnt find one. So here we are! What general tips do you have for golfing in SQLite? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to SQLite. Pleas...

 
After 24 hours, I have internet back,.
 
@ATaco is a-ta.co/cookie 404 intentionally?
 
0
A: Sandbox for Proposed Challenges

LaikoniVisualize Merge Sort code-golfsortingarray-manipulation Merge sort is a sorting algorithm which works by splitting a given list in half, recursively sorting both smaller lists and merging them back together to one sorted list. The base case for the recursion are singleton lists which cannot be s...

 
That’s because I’m lazy and still haven’t written anything on the cookie page.
It’s just a single cookie that acts as a session Id, Aswell as google analytics
 
12:57 PM
@ASCII-only That looks to me like something else.
 
Then use C++14 notation (' for thousand grouping) which is programming, and happens to be the same as flawr notation.
 
@user202729 O_o
 
_ is, as far as I know, only used in Java. (any other programming language use that?)
 
@user202729 C# :P
 
@user202729 you can do that in Java?
 
1:10 PM
@NieDzejkob Yes.
 
@NieDzejkob TIO
 
When was this added? Java 8?
 
oh, sorry, you're right. How did I not know about it... the first language I've seen it in was Emojicode :P
 
@NieDzejkob >_> <_< wat
TIL emojicode has underscore numeric separators
 
@ASCII-only Because Emojicode is not an esoteric language. / @NieDzejkob How do you type the characters?
 
@user202729 ??????
 
@user202729 I'm using ibus-uniemoji, but I'm considering configuring the composite key for the more common ones
 
@ASCII-only My edit cause you to double number of ??
@INCOMING Emoji (the stack based language) is definitely esoteric, but Emojicode is object oriented and stuff. Believe it or not, but there is real software written in Emojicode, ~~in contrast to Haskell~~. — NieDzejkob Sep 12 at 12:44
This is Emojicode, the only serious programming language that's bursting with emoji! Stay tuned for the explaination. — NieDzejkob Sep 1 at 14:15
@ASCII-only See? ↑
 
I think this issue can be considered proof: github.com/emojicode/emojicode/issues/91
 
1:28 PM
@user202729 yes. what does not being an esolang have to do with having underscore numeric separators
the thing is very few languages do have them afaik
 
@ {whoever who make the code snippet / leaderboard} Can you make the [Link] button change the page address or open in new tab instead of open in the code snippet?
 
@user202729 it's --- here not ~~ @NieDzejkob
 
@ASCII-only The digit separator is used to improve readability, and to avoid you counting number of zeroes in decimal literals like 1000000000000000000.
 
@user202729 yes? but my point still stands that this is pretty much only implemented in Java and C# out of all the mainstream languages
 
I feel offended
 
1:30 PM
hmm i've seen this language before
but it's got the least easily remembered syntax possible
i mean seriously even the worst golflangs beat emojicode in terms of readability
 
Ruby also have underscore in literal: stackoverflow.com/questions/4946305/…
 
that's why there's a major redesign going on
 
@NieDzejkob oh good :D
@user202729 oh TIL
 
Once you remembered how are emoji pronounced you will find it easy to read. I'm pretty sure that Sclipting is hard to read.
 
@user202729 ok apparently most mainstream languages have this feature, ruby and python included
wait crap ninja'd
 
1:33 PM
'course that one targets Py 3.6, so anyone with older Py is screwed :P
 
@ASCII-only How would you read this λ£↕↶¡¿ (example Enlist code, not really valid)
2
 
@user202729 lambda pound updown arrow undo i spanish question mark
 
@user202729 i don't know enlist (and it's memorability may be slightly quite a bit worse than other golflangs) but most golflangs have builtins that are at least slightly releated to their symbols
 
¡ is not i (somehow they look really similar), but anyway.
@ASCII-only So as emojicode, which have emojis related to their functions. If you don't know what emoji does you can't remember it.
 
1:40 PM
@user202729 lambda pound updown_arrow undo upsidedown_exclamation_point upsidedown_question_mark
shot
 
Relevant Wikipedia article on decimal marks en.wikipedia.org/wiki/Decimal_mark
 
@user202729 grape and watermelon have absolutely no relation to start and end brace though
@NieDzejkob that's not an i
@ThomasWard basically ninja'd
 
@ASCII-only Emojicode is still in 0.x, give it a break
 
@NieDzejkob I'm well aware of that, but why did they even choose random emoji for a non-esolang in the first place >_>
 
Because it looks fun?
Example Sclipting code: 丟낆녬닆묬긅덯댦롤긐. Totally unreadable.
 
1:45 PM
well not unless you can speak chinese and hangul :P
 
but you still can't make sense of it
 
@user202729 well sclipting isn't exactly meant to be used
 
@ASCII-only Hm, valid argument.
 
2:20 PM
@user202729 lambda pound vertically anticlockwise inverted pling inverted question mark
 
2:31 PM
@user202729 lambda pound up-down arrow counterclockwise inverted exclamation point inverted question mark
 
 
2 hours later…
4:28 PM
CMC: Generate all possible pairs of the set {-1,0,1} and concatenate them to a list.
 
J: ,{;~_1 0 1
Unless 0, 0 or 1, 1 are not valid
 
@flawr 5 bytes in jelly: Try it online!
 
@DJMcMayhem the concatenating part is missing:)
But I'm impressed, I htink you both use something like a cartesian product built in?
 
4:45 PM
[TIO](https://tio.run/##y/r/PzU5I9@62rou3lDBQMHw/38A)

Concatenated.
 
@flawr DJ uses unordered pairs (every combination of 2 elements)
 
got it
 
@FrownyFrog markdown doesn't work in multiline messages
 
We should make a regarding multiline comments. This is so annoying.
 
I'm still not sure what concatenate to a list means
 
4:49 PM
But I think DJ’s is invalid because it doesn’t return reversed pairs too, or maybe ours is?
@FrownyFrog flatten.
 
Just a flat list, like I did?
ok
 
@flawr SOGL, 11 bytes. If I'm allowed to output each item as an item on the stack, the last 3 chars can be removed for 8 bytes
 
@FrownyFrog concatenate [[1,2],[3,4],[5,6]] = [1,2,3,4,5,6]
 
4:58 PM
right
it's a flat list
 
@flawr ah. Append F to flatten it to one list
 
5:28 PM
@Fatalize just noticed this answer needs the two Ls to work, and it seems weird why (btw brachylog room frozen)
I'd normally expect ­ to just return the list as-is, if there's at least one duplicate element in it, but removing the Ls seems to return [] instead
 
 
2 hours later…
Anonymous
7:03 PM
@Sherlock9 If you want
 
7:14 PM
You guys wouldn't want this question, would you? :P codereview.stackexchange.com/q/179620/34073
Just thinking back to the long-dead code-trolling days.
 
@Mego Hm, not quite yet
@Hosch250 Probably not
 
7:31 PM
Definitely not on topic here
 
7:44 PM
Sorry if wrong room, but was there any suggestion on meta to add sorting by byte count in answers? I think that would be better than the snippet. Just click a tab and the answers are sorted the way the leaderboard snippet does
 
@Soaku We have had that feature request, but given that not all answers use the same answer format, I think it was rejected. It might come with the site design if we're lucky though.
 
@cairdcoinheringaahing, but why not include a (?) sign next to it, explaining the format? I think that could help...
 
@Soaku an answer template hes been suggested too IIRC
@Soaku here is the suggestion in question
 
@dzaima, So what's wrong with it, heh? Let's just hope they'll implement that with site design, as @cairdcoinheringaahing said.
 
I think the biggest problem is that it would be quite a bit of work, just for this one community, so SE wouldn't really do it, given that they basically ignore us as much as they can
 
7:52 PM
@Soaku The problem is that the design should've been made like a year ago :p
 
@cairdcoinheringaahing, but... well... It's already implemented. But just as a stack snippet. So... I don't think that it would be really hard
 
@Soaku Well, the stack snippet doesn't sort the answers on the actual page, just in a separate window.
 
@Soaku There's also the PPCG design collaboratively made by users here which adds byte count sorting to every question (plus many other things)
 
@cairdcoinheringaahing, ikr, but still, they could make it, by modifying the code
@dzaima, oh, I seen this rep, but I didn't know that it adds that.
Good to know tho
 
Anonymous
8:25 PM
@cairdcoinheringaahing Also with 20% of the SE staff gone, it's even more unlikely
 
Anonymous
With all these problems we've been having with SE, I wonder if it would be worth it to move PPCG elsewhere
 
-2
Q: why we can not modify the vote we already assign?

RosLuPVote assignment Why we can not modify the vote we already assign? It is prohibit even change idea?

 
@Mego I don't think it would. I don't mind PPCG here on SE, mainly because I think its better than it is worse
@NewMetaPosts Huh?
 
Anonymous
@cairdcoinheringaahing They regularly post word salad on meta
 
@cairdcoinheringaahing probably asking why votes get locked in after a few minutes
 
8:31 PM
@Mego Hmm, 9/11 posts are voted below 0. That isn't good
 
Anonymous
Their posts are mostly thinly-veiled nearly-incompehensible rants
 
@Mego Convincing everyone to migrate would be hard, and we'd lose the traffic HNQ generates.
It would be intrsting to build a PPCG site ourselves though, so we could get all the features we want.
 
Anonymous
@Pavel The debate would be whether the decreased traffic would be worth the increased support
 
would be real hard to clone the Q/A models here though
plus the chat portion would be hard to clone too
 
Anonymous
We could have a somewhat-best-of-both-worlds implementation: post challenges both on PPCG.SE and the standalone site, and cross-link
 
8:37 PM
@ThomasWard Discord in an iframe
 
Anonymous
@ThomasWard Chat could be done on Discord
 
hmm, true.
 
Or just link to discord
 
@Pavel iframes are evil though
 
Although the replying to messages is a neat feature.
 
8:37 PM
so a discord invite/join button
yeah that's missing in Discord
 
Anonymous
Discord bots can emulate every feature that chat.se has
 
Anonymous
Except for replying
 
How hard would building a chat system be, anyway?
Might be a fun exercise.
 
Anonymous
@Pavel It would be pretty difficult
 
When Mego says something is difficult, you know its difficult :P
 
Anonymous
8:39 PM
Web chat is something a lot of people have tried to do, and have done wrong in many different ways
 
Yeah discord would probably be the way to go.
 
I volunteer to be mod everywhere if you guys move :P
shot
just kidding ;)
 
Anonymous
@ThomasWard How thoughtful
 
@ThomasWard Having a low rep user be mod may not be the best idea :P
 
@cairdcoinheringaahing well if we move sites everyone's low rep :P
in any case i have space if you need a place to drop things for a new site. Advantage: sysadmin.
drifts back to the shadows
 
Anonymous
8:40 PM
We could sync rep between PPCG.SE and the other site
 
@ThomasWard If we do move, we should make users have the same amount if rep they currently have here
 
Anonymous
Well, it would be one-way, but it's possible
 
(except me, I should have 300k :P)
 
@cairdcoinheringaahing you mean Jon Skeet right?
 
@ThomasWard Whoops, typo :P
 
8:41 PM
:P
@cairdcoinheringaahing as I said, though, just kidding about mod.
 
@Mego I want to actually build this now. Even if nothing happens with it.
 
But i'll be glad to give you guys server space for this if you want it.
since it costs me $0 to run extra servers on the mass of IPs I already have xD
 
Anonymous
@Pavel It would be an interesting experiment. #1 thing would be a solid API so that clients can be customizable
 
What if we hosted TIO on the same servers, it would make TIO integration easier and Dennis wouldn't have to solely pay for TIO's servers.
 
Anonymous
If this is something we want to try, we should make a new chat room for it :P
 
8:46 PM
Sure
 
Anonymous

 Axtell

An experiment in a custom site: github.com/Axtell gist.github....
7
 
i wonder how much in resources Dennis has to have to make everything work heh
 
@ThomasWard $25 a month in $5 Linode servers
If that means anything to you
 
so, 5GB allocated vRAM spread over 5 CPU cores. (excludes ZRAM and any swapping on disk)
at $25/month, so that equates to...
$300/year
 
@ThomasWard There's actually more RAM due to the mystical powers of ZRAM.
 
8:57 PM
@Pavel without knowing the upper bounds of actual RAM needs, I've got systems that can have a ton of ram allocated to them. I've got things running in containers all on 8GB RAM servers with dedicated vCPUs, so blah, but meh.
I'd be happy to absorb some of the infrastructure if @Dennis would like to share, not that hard to set things up after all :P
 
@ThomasWard Also there is literally a script to set up a mirror of TIO, as well as a docker container.
 
indeed.
 
9:40 PM
Feedback on this? I'd like to post it
 
0
A: Sandbox for Proposed Challenges

flawrFind local Minimum META: This is just meant as an introductory challenge for functional input (black box functions) and hopefully establish some more inputs. code-golfmathoptimization Given a real number e > 0 and some black box function f: (0,1) → (-10,10) ⊆ ℝ, return a value x that is within...

 
Any feedback on this^ ?
It is supposed to be a challenge to get the idea of (black box)-functions as inputs going.
 
10:19 PM
0
A: Sandbox for Proposed Challenges

caird coinheringaahingHow good are 5 year olds? Very young children have a "cliché" method of adding numbers, where, rather than add them, they concatenate them. Your task is to find out how close the kids actually are to the correct answer. In shorter terms, you are to find the quotient between the inputs summed an...

 

« first day (2471 days earlier)      last day (2371 days later) »