« first day (2139 days earlier)      last day (2694 days later) » 

12:00 AM
@AlexA. that's not really an option at work because of the software we use, and not an option at home because I like my video games to run
 
@AlexA. Yus. Notepad and Windows voice recognition for coding.
3
That's sure to summon some demon.
 
@mınxomaτ There's a NeoVim plugin that uses Rust behind the scenes and offers live markdown rendering. I uninstalled it because it slowed everything down. Just initializing it in my startup file slowed down startup.
 
@AlexA. I would but I can't code without syntax highlighting
 
In principle it's really cool though.
@ConorO'Brien Amen
 
12:02 AM
@AlexA. I actually bought MDP. One of the best decisions ever. I've yet to come across a better performing MD editor (with live preview for many flavors). For windows at least.
 
@mınxomaτ "For i equals one to ten, line break, space space space space, x plus equals one. Line break, end." Voice recognition makes it for i = 1 2 10
 
> space space space space
You can actually say "press space four times"
 
For comedic effect. No one actually indents like that unless they use Notepad.
 
@mınxomaτ same number of words and syllables
 
@noɥʇʎPʎzɐɹC That was a failed attempt at a satirical comment about WSR.
Because one of the first sentences it has you teach it is "it's faster to dictate then type".
 
12:04 AM
That one and the terminal emulator are the two features I'd really like
The better defaults and plugin support don't really affect me at all
 
Um.. I program in notepad.
 
Don't
 
Stop now and reevaluate your life
 
It's only Befunge. There's not a lot of indenting going on.
 
12:06 AM
@AlexA. Why? Only a single undo-depth really makes you think about what you write. It's like whiteboard coding with a permanent marker.
 
@mınxomaτ I'm not hardcore enough for that. Also lol.
 
you can always reload the file from backup / your VCS
 
@AlexA. Lazy reevaluation is more efficient
 
@ais523 If you're using Notepad for writing code, chances are you aren't using a VCS
 
@mınxomaτ you code like that!?
 
12:10 AM
Math nomenclature question:
 
Really high performance, cross-platform GUI editors are Sublime and SciTe. SciTe is much faster still, but Sublime has better support for custom syntax. Both are infinitely faster and more responsive than Atom, VSC et al.
 
Say you have a number x in the interval (0,1) and express it in binary as 0.101110111, for example. What would you call the n-th digit to the right of the decimal point? "The n-th digit in the fractional part of the binary expansion of x" seems too long. But if I don't mention the "fractional part", then "the n-th digit" refers to those to the left of the decimal point, doesn't it?
 
I know of someone who wrote a large program in Wordpad, because it was too large for Notepad to open
there was a VCS involved there, but only at the urging of a third party
 
@ais523 Notepad will open any file until you run out of memory. There's no hardcoded limit (at least on my Windows installs).
 
@LuisMendo I didn't know that binary representations typically had decimal points?
 
12:11 AM
@mınxomaτ was that a response?
 
@AlexA. Well, if the number is not an integer...
 
Oh, good point
 
@noɥʇʎPʎzɐɹC Oh that wasn't a rhetorical question?
 
That's why I said "a number in the interval (0,1)"
 
Wait, don't answer that.
 
12:12 AM
@AlexA. that's not a decimal point, it's a binary point
 
Good point :-)
 
@LuisMendo haha I missed that, sorry
 
The n'th digit to the right of the decimal/binary point?
 
Yeah, but I wanted a more "professional"/mathematical-sounding term :-)
 
@LuisMendo I would think that "nth digit" would either be too ambiguous or have "left of the point" implied. "The nth digit in the fractional part of the binary expansion" sounds reasonable and precise to me.
 
12:14 AM
Then I would go with "The n-th digit in the fractional part of the binary expansion of x" :P
 
Ninja würde
 
@mınxomaτ (...waiting...)
 
@AlexA. Thanks both :-)
I'll go with that
 
0
Q: Is it an emoji? 🤔

DopappI've been working on this iOS app recently and I encountered a (rather easily solved) problem: How do I determine if my string is comprised only of emojis? Well, that's your job today! Input A string. If the presence of unicode characters is problematic for you then you may use a different re...

 
Ah god no!
I can't handle emojis in titles.
 
12:15 AM
Edit it
 
Dec 2 at 16:46, by mınxomaτ
I will never get used to emojis.
 
Haha, I just found a great Google Easter egg
If you google "what are the odds of successfully navigating an asteroid field" it will give the correct answer
 
> the correct answer
How could anyone know what's correct?
 
Yes. 3,720 to 1
 
Does it show its work?
 
12:17 AM
> How would anyone know? - Yes.
11/10 logic.
 
Yes
 
Hm. I need to figure out how to unfuck my sleep schedule over the next 40h. I realized this after drinking another litre of coffee. Oh boy ...
 
@mınxomaτ A day in the life of minxomat...
> 40h
 
It's 1:30 AM
 
Congrats...
 
12:21 AM
Wow.
And I thought having another cup of coffee at 5:30 pm was weird
 
Sleep for 24 hours. Or 48.
 
I am as awake and alert now as I need to be tomorrow (strictly speaking) at 8 AM.
 
Meeting?
 
No, another unplanned talk to give.
And a panel discussion after that.
 
Can you give a free talk to TNB? :P
googles "how many cups is a litre" -> "4.8 US Cups" -> wowwww
@mınxomaτ How many gallons of coffee have you consumed over the past 24 hours?
 
12:28 AM
That cup unit is pretty close. I use 5x7 grams of coffee per litre. Which is just about 5 of my smaller cups.
 
> "∞ gallons, sir"
 
Dunno gallons. Today I drank a little over 2l.
 
2l = > half a gallon (0.5) of coffee... oh boy
 
The one time I have been in Europe, I remember that the coffee cups were really small
 
Country?
 
12:30 AM
That sentence isn't grammatical, but I don't care to fix it
 
The cafes targeted at tourist will use miniature cups.
 
@mınxomaτ You may be interested in this....
 
@noɥʇʎPʎzɐɹC A metal canister?
 
@mınxomaτ no, drinking gasoline
 
@noɥʇʎPʎzɐɹC Iceland, which is technically Europe, but on the edge
Other than that, I've flown through London, but that doesn't really count
 
12:32 AM
not "via"?
 
What do you mean?
 
> through London
 
Oh. I meant a layover in London
 
12:52 AM
doodoodo
 
@LuisMendo do you think we should jut assume he meant the part it only being ascii or unicode since he isn't responding?
 
I think the question makes most sense as "all of assigned Unicodes, except for control characters"
I have a very clear Perl solution which sadly isn't golfable enough to submit
 
@mınxomaτ How do you like your coffee?
 
1:19 AM
0
Q: What path will santa take?

Dave JonesQuestion Santa must get to every house in the world to deliver gifts, can you make a program that will calculate the shortest path that Santa could take, and still visit all the cities listed? Specifications The program does not have to accept any input. It just has to return a list of cities ...

 
@NewMainPosts The answer to the question in the first paragraph is "no".
 
@Maltysen He said only ASCII plus emojis, but then the challenge is very simple. Anyway that info should be in the text. I think I'll VTC
 
is that it
is that the whole page
 
@GabrielBenamy yes
 
it doesn't even have <html> tags it's literally just a <center> tag with a couple <br>s in it this is disgusting
 
I viewed sources
Is this some kind of puzzle?
 
where did you find it?
 
1:55 AM
@GabrielBenamy /r/xkcd
google shows no signif. hits
It's not random either
@GabrielBenamy
 
Apparently there are a number of these "hidden" pages, although burlap seems to be the strangest. forums.xkcd.com/viewtopic.php?f=2&t=110093
 
0
Q: Print a Sorry Board

MaltysenI was just playing the board game Sorry! with some people, and I realized that I could base a few interesting challenges off of it. This one is pretty simple. You task is simply to output an ascii-art version of a sorry board, placing pieces where I tell you to. Specs First, here is an image o...

 
2:19 AM
@TimmyD hahaha
yep, the middle eastern ones of us can be pretty 2D at times
 
@MartinEnder I wonder how long it will take people to realize that NestWhile[#+1&,...] is a thing (I even use it in non-golfing code!)
 
2:47 AM
@quartata you may be happy to hear that in jext I will have support for multiline nested explicit verbs!
test =: monad.
  c =. x + 3
  c * x
stop.
compiles to
test =: monad def ('  c =. x + 3' ; '  c * x' )
 
@ConorO'Brien is this J?
 
yes it is
 
3:04 AM
@DJMcMayhem you have ubuntu right? can you test this? :P
 
You'd also need a GPS
 
yep
but that's pretty easy to get
 
Compared to ubuntu, it's a bit trickier to get.
 
yep
looking at the top askreddit questions of all time, interesting that the discussion of the orlando shootings has 2x the votes of announcement of president-elect trump
 
Especially if you need directions and real-time navigation to the store that sells them. For that you'd probably want GPS :P
 
3:09 AM
@Dennis this reminds me: can anyone who can comprehend cpython source help me make my spin-off with braces (c-cobra)
 
@EᴀsᴛᴇʀʟʏIʀᴋ no, lol
I guess I have a VM though
 
one day I'm gonna understand anything about writing quines and I'm gonna write a quine in COW
today is not that day
 
@Downgoat I thought my image explained well enough that Pythons and braces don't go well together...
 
Does anyone know what's going on with TIO? tio.run seems to work, but tryitonline.net is dead. Is that a permanent thing? Will all the old tryitonline links stop working now?
 
Probably a misbehaving interpreter. I'll give the server a kick as soon as I can get to a computer.
 
3:14 AM
Just post the credentials needed in this public forum. That way we don't have to bother you to kick it every time.
 
10/10 very good idea
 
@Dennis No rush. I was just concerned that it might be gone for good. If it's just a temporary death that's no problem.
 
Server needs backup. There, back up!
 
@Dennis will you be adding support for COW eventually, or will I forever be doomed to use my Perl interpreter
 
> COW - Programming For Bovines
Oh deer.
 
3:21 AM
@Dennis or just add my public key to root's ssh and i won't need to bother you either
@Dennis oh great. The pun goat has sailed
 
You can buck the trend if you like.
 
It'll be hard goating a hold of things since we've started though
 
Anonymous
You'll have to moove the interpreter over to the server
 
Goat again? C'mon, you can doe better than that :P
 
Anonymous
As a pleasant distraction from the puns, this needs more eyes
 
3:25 AM
@JamesHolderness Just to be clear: Although tryitonline.net as is will cease to exist as soon as I deem TIO Nexus stable, the permalinks for the old version won't stop working; they'll just redirect to the new version of TIO. A few subdomains that never existed for version 1 do that already. For example: python3.tryitonline.net/…
 
@Mego I voted it up earlier as part of my sandbox-catchup. Looks halfway decent, for a quine challenge ;)
 
@Dennis That's perfect. Although I think I still kind of prefer the old interface, I'm sure I'll get used to the new one.
 
@Geobits all the puns i goat are brilliant goat puns
 
All the smurfs I smurf are good smurfs, too. Smurf.
 
I have the best smurfs i know more smurfing than the smurfs, better than chinas smurfs :P
TIL smurf is also verb
 
3:31 AM
@GabrielBenamy I add most languages because somebody requests them. I'll try my luck with the official C++ interpreter later. Feel free to remind me if I forget.
 
Anonymous
Speaking of C++... C++?
 
You should totally drop that and use jQuery
 
@Geobits Node + jQuery?
 
Anonymous
C++14 on gcc 6.2 would be nice :)
 
Right, that one too. On a related note, I really should implement compile flags.
 
3:33 AM
@Downgoat JQuery is great and does all things. No need for node.
 
@Geobits but... but... webpack and great and does all things too :(
 
Nah, webpack just runs jQuery under the hood anyway.
 
@Mego I'd have to check which version of gcc ships with Fedora.
 
@Geobits brb proposing ECMAScript rename to jQuery to TC39
jQuery McjQuery Face
 
@Downgoat It's a smurfingly smurfy good word to smurf on your smurfs.
 
3:38 AM
@Downgoat And watch as you chmod -R 777 /usr/bin? No, thanks. :P
 
@Mego I think idea is great but I feel like it is dupe
@Dennis :| can we pretend like this never happened
 
Anonymous
@Downgoat I found no dupe targets prior to posting it in the sandbox
 
# gcc --version
gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-2)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Great start.
 
> Your goal is to write a polyglot where the output for each language is the code from the polyglot that produces that output
 
Anonymous
@Dennis Perfect :D
 
3:41 AM
i mean if its a language like hexagony, i could say all characters are in fact required to product output but only some chars interpreted
 
Anonymous
@Downgoat Read more
 
I'm hardly an expert on polyglots or quines, but I don't remember seeing this variant before.
 
So I think something along lines of "output program source code where maximum amount of chars can be removed without modifying behavior" would be clearest first line for challenge
 
Anonymous
@Dennis I don't see it yet. Caching, I guess.
 
3:45 AM
Ctrl + F5 all the things!
 
Anonymous
@Downgoat I think it's fine as it is.
 
I do. It seems to work for a simple cout at least :D
 
Everything else that doesn't work is on GNU. :P
 
Is that almost a pun?
 
@Dennis I could be wrong but should it be UTF-8 instead of SBCS?
 
3:46 AM
The encodings are picked more or less randomly for now.
 
Anonymous
@Downgoat It depends. C++ (like a lot of languages) can use any encoding.
 
I prefer SMBC
 
Anonymous
Only poorly-designed languages force you to use UTF-8 :P
 
cough Julia cough
 
Refactoring a C project to SCU is a really good way to go insane fast.
 
3:49 AM
@Mego IIRC gcc has option to convert input file to what is uses internallu (which I believe to be UTF-8) but if you mean in terms of strings not having a specific character set, yeah.
@Mego :( this includes Cheddar
however cheddar is poorly designed all around
 
Things invented in the 90s often force you to use UTF-16...
 
@feersum this includes JS :P
 
Does JS force you to use UTF-16?
 
But browsers nowdays deal with differently encoded JS
@feersum i mean it was invented in 90s :P
 
Of course the source encoding can be easily changed.
I mean the strings in the language.
 
3:51 AM
Yes
 
Yes to what?
 
All strings are converted and treated as UTF-16
 
Welcome to COW!

Executing [.code.tio]...

Hello,�world!
Done.
Argh!
 
figures
 
otherwise you get À!d kinda thing
 
CMC: write a Turing machine in as few nodes as possible to determine if input is of the form "0"*(2**n) where n >= 0
 
4:18 AM
"This is how pirates are made."
 
> ninja'd by ETHproductions 4 seconds ago
 
0
Q: ASCII-Art Zombie Invasion Simulation

Challenger5To simulate a zombie invasion, start with a grid of # and representing the map: ## ## ### # ## ## # ### # #### # represents land. represents water. The zombies start at a point on the map... ## ## ### # ## %# # ### # #### ...and spread. % denotes land infected by zomb...

 
Anonymous
4:37 AM
Unless anyone sees anything that needs fixing, I'm going to post this to main shortly
 
5:15 AM
0
Q: Print Polyglot Pieces

MegoTypically, polyglots are constructed in such a manner that each language can ignore parts of the code that are present for other languages, by wrapping them in string literals, using comment syntax, or other similar tricks. Your goal is to write a polyglot where the output for each language is t...

 
5:44 AM
Mego's avatar in 1756 bytes (just HTML): jsbin.com/mohipivuwe/edit?html,output
 
Yay I reached 2.5K
@mınxomaτ that's technically SVG
 
No.
It's not a valid SVG, since it has no format specification and missed some tags.
 
I need halp with Clojure
And Clojurescript
 
6:36 AM
I messed up some Hilbert curve instructions and got this neat fractal
Oh yeah. Didn't leave out the a's and b's and they became extra left turns. Whoops
 
Looks like someone trying to do a 3 point turn and overthinking it...
 
n-point turn
 
The abstract case - they should add that to the driving test to cover all eventualities
 
Here's one with extra forwards rather than extra turns
 
6:56 AM
1
Q: What additional information should be allowed in a submission?

DennisUnlike traditional coding competition sites, submissions (answers) on PPCG are free form; the only hard requirement is that all submissions must contain the scoring header and the code that solves the challenge. While some answers stop there, others contain a lot of additional information. Usual...

 
7:24 AM
Is anyone on?
Argh need halp with css sliding stuffs
 
 
1 hour later…
8:57 AM
@Qwerp-Derp Done, you probably should add more slots
 
3 should be enough though
 
Processing is awesome
 
What is processing?
I'm mainly using Python and Clojure to golf now
Sometimes I use Coffeescript
 
You don't know Processing?
WHAT
It is based on Java, but is more focused on graphical output
and it is slightly more golfy
 
0
Q: Winter is coming, let it snow!

Mr.GeorgeI was thinking about snow this morning, and so I made a d3 random snow page. Tryed to do it thinner, but not lower than 300 bytes. Let you have a try, show me how you make snow whit these roles: Random position flakes (At least 10 flakes) No images snowflake can be every type of letter or car...

 
9:46 AM
0
Q: Go directly to Jail. Do not pass Go. Do not collect $200

James WebsterSo you've got your Monopoly board, shall we start a game? To start with, we'll need some dice and to know where we land! Write a program that outputs the rolls and resting places of a given number players for a given number turns. Input In any suitable format for your language The number of...

 
10:12 AM
lol, I have 17 tabs opened for the answer-chaining polyglot challenge
 
(No mod is currently here, but stay tuned to my profile Dec 14 for the next exciting installment of Unipants!)
Oh, and to make my existence in the room meaningful
I'm installing Ubuntu on a new Virtual Machine :D
No, no Easy Install (TM), I'm doing it all by myself. I'm serious.
 
10:34 AM
Mad lad.
 
Kinda.
But at the very least I can have fun while waiting out the long install, including all the system updates.
And 1) I can cancel the install when it takes too long, 2) I can change the configuration at any point, and 3) I don't have to install VMware Tools! \o/
 
10:49 AM
Guess who's back
Back again
Unipant's back
Tell a friend
 
Zyabin is back? :O:O:O
 
No one cheered for me :(
 
I think I began dwelling here after you left, sorry @seequ
 
Heh, very likely.
 
I joined when after you left too
 
11:08 AM
0
A: Sandbox for Proposed Challenges

ZgarbZipper multiplication code-golf arithmetic Introduction Let's define a new arithmetical operation, which I call zipper multiplication. To zipper multiply two nonnegative integers, you add leading zeros to make the lengths match, multiply the corresponding base-10 digits of the numbers, add l...

 
11:18 AM
hi @Dennis I just tried your permanent code with the Intel C Compiler with icc -std=c99 -O3 -qopenmp -Wall Dennis.c
it gives completely the wrong answers . Typically 11910984139051480114196905982
any idea why this might be?
 
11:47 AM
0
A: Sandbox for Proposed Challenges

Roman GräfVerify my lasagne Scenario I often cook lasagne, but I also have a few mistakes. Since I repeat this faults so often I thought I maybe could do an programm that checks if I did everything right. Valid lasagne A valid lasagne is At least 5 columns wide At least 4 layers high The top layer is...

 
@Dennis The problem is -qopenmp it seems. Works fine on one core without it
 
12:22 PM
@Dennis Also are you implementing Ryser or Glynn's algorithm?
 
@Dennis I found a typo on tio.run
> [...] alpha stageand should be used [...]
 
1:12 PM
@betseg Ooh, I'm quite glad right now that my phone is an S7 since that means I can use it for a while yet and have that headphone jack port. :P
 
:)
and it won't explode on an aeroplane!
 
1:31 PM
Hi everyone.
I recently posted this question: codegolf.stackexchange.com/q/102423/15394
 
@JamesWebster not looking good :(
 
But the scoring has raised some contention.
Is it too late for this question.. Should I just abandon it?
Or should I attempt to repair it
 
yes.. re do it as a code-challenge
people only like simple and small tasks for code-golf
 
@Lembik Done as a code-challenge, what's the scoring mechanism?
 
"Generally, a code-challenge should have some form of quantifiable scoring criteria."
 
1:35 PM
@TimmyD dunno :)
 
@TimmyD, @Lembik, that's the question I was about to pose
 
@JamesWebster if there is no scoring mechanism you are in trouble
 
I've gathered :P
That's what happened here
 
my rule of thumb, having had many negative comments (:) ) is code-golf question have to be answerable in Jelly in <20 characters
@JamesWebster I would move it back to the sandbox until you have it worked out
 
Good idea
 
1:36 PM
@JamesWebster I don't necessarily agree with this rule of thumb
but it seems to be the culture here
 
Hello :)
 
@Lembik People get antsy if their precious golfing languages can't be used to full effectiveness :P
Meanwhile I'm just here with my Java
 
@Xanderhall exactly!
they sometimes get really upset if the challenge requires IO for the same reason
 
I've shifted it back to the sandbox for now
 
cool
I do think it's wonderful that there is a challenge based SE with some really talented people though
so I shouldn't complain too much :)
anyone here know both the Intel C compiler and openmp?
seems a long shot :)
 
1:57 PM
62
A: Things to avoid when writing challenges

xnorCumbersome I/O formats Generally, allow flexible input and output formats. People want to write code to do your task of, say, composing permutations, not reading/writing numbers in a particular semicolon-separated format, or from a file, or with input validation. For code golf, it's annoying whe...

 
@Xanderhall right but I also hear complaints about anything that an esolang finds hard but no complaints if Java finds it hard
for example code-golf :)
 
While I like that you can allow for input into a given answer to be taken with some leniency
 

« first day (2139 days earlier)      last day (2694 days later) »