« first day (2322 days earlier)      last day (2513 days later) » 

Yes it is
 
0
A: Sandbox for Proposed Challenges

musicman523Transpose the input code-golf Given a textual input, output its transposition. Test cases Test 1 Hello, world! Hello, world! Test 2 ABCDEFGHIJKLMNOPQRSTUVWXY AFKPUBGLQVCHMRWDINSXEJOTY Test 3 Some lines maybe longerthan others. Sbtoehm aeln o lnoigtneheres r sm .ay

 
@BetaDecay CMC: find a number on wolframcloud.com/objects/sw-blog/capanels that makes a smiley face pattern
 
@HelkaHomba That's harder than finding a Hello World program in Seed :D
Anyone here from Cambridge?
 
hi all
@BetaDecay Which country?
codegolf.stackexchange.com/q/125158/9206 is confusing me.. isn't there a simple formula?
 
6:29 AM
@Lembik UK haha
 
aha :)
uni or town?
 
Either really
 
that's quite a difference!
are you hoping someone with vote by proxy for you? :)
 
Haha yeah, we need to get the votes for the Monster Raving Looney Party in ;)
 
now..which leader are you referring to ? :)
 
6:34 AM
Excuse me. My vote goes to Harambe
 
as an outside observer it seems no one has any idea what is going to happen in the election
 
Anyway, I was just wondering. I'm thinking​ of applying to enter in 2018
 
is that right?
@BetaDecay oh applying to the university!
 
@Lembik Yeah haha
 
then someone from cambridge would be completely irrelevant wouldn't they? Unless you want a map
I might be able to help... what would you like to know?
 
6:35 AM
We need a strong and stable gorillament
 
Which subject?
 
Nat Sci
I was just gonna ask if the train station was as good as it looks in the photos really
 
What music goes good with Rubik's Cubes?
 
Something Hungarian
 
@Mego how do you get to 437 for N = 5?
 
6:46 AM
@BetaDecay that is ~20min long, mostly ambient, and free to use,?
 
@Mego ah... it is 2^N :)
@BetaDecay train section??
@BetaDecay do you go to a fancy high school?
@BetaDecay actually.. are you really deciding if you want to go to cambridge or more if you will be likely to get in?
 
@Lembik I go to Ruthin School. Well I know I want to go and I think I've got the grades... But I'll just wait and see
I have to get an average of 85% in every exam for my headteacher to let me apply
 
@BetaDecay isn't the first rule of high school, never tell anyone online any personal information?
but I had no idea that school existed so thank for that!
 
0
A: Sandbox for Proposed Challenges

SteveFestWhich HEX color should I use? Introduction Oh dear! I can't choose which color to use! So... I've been working on a console with only 16 colors. And sometimes, the color I want does not perfectly match the 16 colors. Can you help me out a bit? Challenge Given an input(could be from STDIN o...

 
Well I don't think there's that much harm in knowing which high school... Pretty much everyone here is international and that's the only personal information anyone knows about me AFAIK
 
6:53 AM
@BetaDecay it allows a crazy person to physically find you but it's up to you of course
 
Mm I suppose
 
so not so many Welsh people there?
 
2
Q: ELECTRONIC SURVEILLANCE REPORT 1706

RubioI found this in my Inbox today. I think someone is playing a prank, but ... well ... I'm really not sure! Puzzling friends, can you please take a look and see if you can tell what's up with this message? Date :   08-JUN-2017 Dossier : RAND AL'THOR Subject : ELECTRONIC SURVEILLANCE REPO...

Be careful we're being monitored :P
 
that's a fun puzzle!
 
Noooo
 
6:57 AM
@BetaDecay ?
was Noooo about Welsh people?
 
No haha, the monitoring
 
so what about the Welsh? :)
 
And no, there are very few Welsh people
 
fascinating
and not so many English either it sounds
 
How does soundcloud play and keep track of music playing across tabs without interruption? So smooth
Some fancy cookies I guess
 
6:59 AM
@Lembik Haha nope. Mostly from China/HK
 
sounds like the school could be on the moon!
they don't even get home tuition fees I understand from living in the UK
you wonder why they bother
 
Sorry, gtg
 
bye
 
7:19 AM
@ASCII-only <insert sheep joke>
 
@Downgoat O_o ono it's super late aren't you going to die from sheep sleep deprivation
 
7:37 AM
While using the getchar() function, you need a input file to read, right ? How'd you load that ?
 
def _copy_immutable(x):
    return x
Well played, python
 
@Downgoat if you're still online: why does foo {} cause ambiguity
 
@ASCII-only which language?
 
@LeakyNun VSL, what other language do I have access to the parser of :P
 
Anyone on my question ?
 
7:40 AM
@AlexKChen which language?
 
@AlexKChen int getchar(void)
 
what do you mean "how would you load that"?
 
It reads from STDIN
 
#include <stdio.h>

int main ()
{
   char c;

   printf("Enter character: ");
   c = getchar();

   printf("Character entered: ");
   putchar(c);

   return(0);
}
 
7:41 AM
Wait, I'm telling you.
 
@AlexKChen You can't use an input file
 
@ASCII-only and what is VSL?
 
I have loaded Code::Blocks yesterday, and running codes. When you write code to count words or space or some other characters, it just opens a command prompt, and I keep adding characters and it doesn't shows anything.
 
@AlexKChen You can't use an input file with getchar()
@AlexKChen Well yeah? It reads from STDIN, not a file
 
7:43 AM
What's STDIN ?
 
What you want is probably getc(file)
@AlexKChen Console input
 
Okay, but I keep typing and when does it know that it has reached EOF ?
It just never shows any output.
 
Use Ctrl+D to send end of file, Ctrl+Z then Enter if you're on windows
 
Wait, I'm giving the code.
 
@ASCII-only any example program? test.vsl and test2.vsl aren't very satisfying...
 
7:46 AM
#include <stdio.h>

main()
{
int c,l;
l = 0;
while ((c = getchar()) != EOF)
if (c== '\n')
++l;
printf("%d",l);
}
 
press Ctrl+K
 
When I am running this, it's opening a command prompt, and I keep typing a pressing enter, nothing happens.
@LeakyNun It's showing "^K", nothing still
 
@LeakyNun Well there's no compiler yet, a full-featured language isn't exactly easy to write a compiler for, plus the syntax used to change quite a lot so there was no point having an example file
 
@AlexKChen I mean, press Ctrl+K to format your code
@ASCII-only alright
 
3 mins ago, by ASCII-only
Use Ctrl+D to send end of file, Ctrl+Z then Enter if you're on windows
@AlexKChen If you want it to end on enter then check against enter not EOF
 
7:48 AM
@ASCII-only What to do ? I keep pressing Ctrl D, Ctrl Z (I am on windows) and it's showing "^D" or "^Z".
@ASCII-only I mean, the programme is for counting enters, so how will it terminate ?
 
@AlexKChen Wait yeah you need to press enter after pressing Ctrl+Z
Or you should be able to just pipe in a file: program.exe < file.txt
 
But then how it would work for multiple lines ? The lines before the Ctrl+Z are all ignored, so the output is always 1 @ASCII-only
@ASCII-only Any tutorial on that online ?
 
gtg now sorry will be back in like 45 minutes
 
@AlexKChen you just need to type < file.txt in CMD
 
Suppose my file is located on desktop, and it's named "test.txt". What should I do to read from that file @LeakyNun ?
 
7:53 AM
@AlexKChen what do you type in CMD to run the C file?
 
I don't type anything in CMD. I type the code on Code::Block, and then click "Build+Run", it automatically does.
 
oh, I don't know then
 
@ASCII-only Any ideas.
Anybody else ?
 
0
A: Sandbox for Proposed Challenges

ChristophWhat type are my suffixes? So I've been wasting my time again researching suffix sorting algorithms, evaluating new ideas by hand and in code. But I always struggle to remember the type of my suffixes! Can you tell me which type my suffixes are? Left-most what? A lot of suffix sorting algorith...

 
8:19 AM
Hmm, so in the case of the anagram quine challenge, would \n1 (which outputs 1\n in Braingolf) be valid? I don't think it meets our definition of a proper quine (minus the quine part), but I'm not entirely sure
 
@AlexKChen Ctrl+D then Enter really doesn't work? O_o
 
@ASCII-only Nope. I'm windows 8.1 64 bit.
 
@AlexKChen *Ctrl+Z
 
Ctrl+Z only reads that line - not all lines before it.
 
8:23 AM
Oh yeah it does !
Sorry.
Danke, @ASCII-only
 
Should I make a new subreddit for programming language design?
 
@Qwerp-Derp there's probably one already
 
@Qwerp-Derp Well you can, IDK if you should
 
@Mayube I mean there is, but there's no posts, and the author's managing something else
 
8:39 AM
Oh hey @ASCII-only, I'm finally making progress with that lisp-y language I was working on
 
@Mayube Yay :D
 
@Mayube Did someone say lisp? :P
 
@Qwerp-Derp no, I said lisp-y
and it's only really lisp-y in the sense that it follows the general syntax of (func arg arg)
 
@Mayube Regardless, can you give some snippets?
 
(: val 11) (@ (: val (- val 1)) (p val)) Will print 10, 9, 8... 1
Same snippet, verbose func names: (set val 10) (while (set val (sub val 1)) (print val))
 
8:42 AM
@Mayube Oh, it's a golfing language
 
no, it isn't
just some of the primitive functions have 1 character aliases
: - set p - print @ - while + - sum - - sub * - mul / - div
 
@Mego only one user answered the CMC: you...
 
@LeakyNun that means he wins by default, right?
 
@Mayube sure
@Fatalize I just discovered that long variable names also work in the code, as long as every letter is uppercase
 
8:57 AM
@JDoe Very good ideas! Thanks, edited. I got rid of | and :, in case they are useful for 24
 
@Mayube pls link to github repo
 
@Mayube oh god it looks so slow
 
Still faster than Jelly
 
@LeakyNun Of course it does, Brachylog transpiles the Input/Output using the same code as what transpiles the program, so if it works in the former it works in the latter!
 
9:05 AM
> tfw your language takes a whole second to parse and run the sourcecode 1, when all it does is print 1
poor jelly
 
Well Mathics took 9 seconds
 
I don't have any sort of timer or benchmarker on ArcPlus, but (p 1 doesn't take long at all :P
 
Also :| Charcoal takes 0.3s total (0.05s sys time though), probably from needing to load like 100kb of python lol
@Mayube But it's got like 100x fewer builtins
 
heck even (p 1) all the way to (p 30) runs near instantly
true
but the builtins are all just in a dict, and it's key-based lookup, so it won't be that slow even with a bunch of em
 
@Mayube also pls initialize dict using {'foo': bar} not dict['foo'] = bar
plssss
 
9:09 AM
@ASCII-only no, for the same reason I use semicolons in python :P
That reason being: because I can
 
but it's slow ;_;
 
@ASCII-only but like, is it actually?
 
yay finished exams today :D
 
9:28 AM
@Mayube D: D: D: how could you do this heresy this is terrible starts making another interpreter
@Mayube also pls change sum to add
 
@ASCII-only no C:
 
@Mayube also oh god what black magic does runFunc do
 
black magic?
all it does is run the passed function...
 
I can do that in like 40 characters with verbose argnames though
 
9:36 AM
@Mayube hmm how do you define functions
 
@ASCII-only look in initEnv()
a function is an env variable of type = func where value is an anonymous js function
 
@Mayube Yeah as in how do you define functions in the language
 
oh, you can't yet
 
@Mayube also forgot to say but: ew
 
0
Q: Smallest Java program

hanifWhat is the smallest, in terms of space, possible compilable and runnable Java code? The first code I can think of is below: public class C { public static void main(String[] a){ } }

0
Q: ROT13 and upside-down text (flip text)

James WebsterWhen I saw this title in the Hot Network Questions I thought it was going to be a PPCG challenge. I was a little disappointed when it was on Mathematica. So now it is on PPCG: Challenge Given an input string, output the ROT13, flipped value. The input will contain characters from the following...

 
9:39 AM
@Mayube oh btw can you have like (fn arg1 arg2 arg3)
@Mayube Also is there a non hacky way to take number input
 
@ASCII-only define non-hacky
 
@Mayube Not using JS cast hacks (i.e. using defined behavior in the interpreter)
 
10:08 AM
I might need to write a new flavour of regex for Dart, mainly because JS regex is trash :P
 
@Qwerp-Derp You make it sound 1. easy to write a new regex flavor, 2. like you're a core dev for Dart :P
 
@ASCII-only But JS regex is awful... and it's an opportunity to learn some new cool stuff in both Dart and regex design while making a new flavour
But yeah, I get what you mean :P
 
@Qwerp-Derp How exactly is JS regex awful
 
Underdeveloped, it's pretty painful to write a good regex
No recursion, named capturing groups, lookbehinds, variable-length lookaheads
I could go on
 
@Qwerp-Derp Good regex?
@Qwerp-Derp Well you usually don't need that unless you're trying to parse a non-regular language
And seriously? Regex isn't the way to parse a language
 
10:14 AM
@Qwerp-Derp are you trying to parse html? don't try to parse html, regex is not a tool designed to parse html
 
@Mayube ZALGO IS COMING AGAIN
@ASCII-only But cool features... :(
 
@Qwerp-Derp Well yeah but how often do you really need to use them
Also you need to be really careful to write a good parser otherwise the regex will take like 1 second just to parse
 
use regex to parse your regex
so you can regex while you regex
 
@Mayube "Hey dawg, I heard you like regex"
@ASCII-only How should I go about making a regex parser thing?
 
@Qwerp-Derp Step 1: don't
 
10:23 AM
@Qwerp-Derp wait what why are you asking me
 
IDK, I just thought you can help
 
If I have the finite field F_p for prime p, how hard is it to find a primitive element?
 
@Qwerp-Derp Well I'd just use Jison because it's fast :P
 
So I'm using a parser engine, which uses regex, to parse regex?
What
 
@Qwerp-Derp Yes because using regex is faster than using a JS lexer
 
10:32 AM
But I'm going to be using this regex for a parser engine
So I'm using a parser engine (Jison), which uses regex (JS regex), to parse regex (my regex), which I'm going to use to make a parser engine (my parser engine)?
Regex-parserception
 
@Qwerp-Derp Yep
 
maybe it makes a good code-golf question :)
 
That seems like an awful idea on paper, but it might work
 
But seriously? Jison is a shift-reduce parser generator = super fast, I don't see why you'd want yet another layer of abstraction
@Qwerp-Derp Well VSL uses nearley, which is bootstrapped
beat that :P
 
Let me make a diagram real quick
Regex (JS regex) -> Parser (Jison) -> Regex (Dart regex) -> Parser (my own parser)
It should be fine with Dart, right?
 
10:36 AM
@Mayube :| I feel like opening up like a million issues on arcplus' repo
@Qwerp-Derp ._. how does Dart make this fine
 
Didn't I tell you I'm doing this in Dart?
Let me rephrase: Jison should be fine with Dart, right?
 
@ASCII-only arcplus doesn't have a repo
also I'll probably close half of them with the response "No C:"
 
@Mayube :(((
 
@ASCII-only if you'd like, I can move arcplus to it's own repo, and you can spam all the issues and even PRs you'd lke
 
10:42 AM
0
A: Sandbox for Proposed Challenges

ShaggyIt's Hip to be Square! code-golfmath Meta Is this a good challenge? Is it a dupe? Would it add anything to the challenge if, instead of reducing the array by addition, I alternated between adding & subtracting each integer? Any suggestions for test cases? Tag suggestions? ...

 
I'll even genuinely read and maybe consider each one
 
Looking for some more feedback on that, please.
So, both FryAmTheEggman and @Mayube have mentioned that we don't have a code golf challenge asking if a given number is a perfect square. Is that true? Can someone provide a link if not? If so ... dibs!
 
quickly goes to post it before you have the chance to
@Shaggy only one I can find is Sqrt without Sqrt which is considered a duplicate of Sqrt without Sqrt which was closed for being unclear
 
@Mayube Yeah, and there are a couple of others that ask the same with other shapes or multiple shapes.
 
There's Is this a triangle number? which I remember solving about a month ago
 
10:57 AM
And there's this one‌​.
 
TFW you finished your exams and you're like "SE 24/7"
 
11:10 AM
Hmm ... I'm going for it, if it's dupe-hammered, so be it.
 
Thanks to your doc @LuisMendo I thought since ~0 is a logical ~0: converts 1 to a numerical vector. I guess that’s why 0X#~X#:X# is different from 1X#:X# (input shifts to the left in the stack when logical)?
 
0
Q: Can a specification define a language?

isaacgThe current meta consensus is that the implementation defines the language. The cannonical answer is: What's the policy on interpreter bugs? I think this is too rigid: I think that a specification should also be able to define a language, if and only if the specification is sufficiently rigorous...

 
0
Q: It's Hip to be Square

ShaggyChallenge So, um, it seems that, while we have plenty of challenges that work with square numbers or numbers of other shapes, we don't have one that simply asks: Given an integer n (where n>=0) as input return a truthy value if n is a perfect square or a falsey value if not. Rules You may ...

Huzzah, my first challenge, at last!
 
usually we wait for nmp insteaed of oneboxing ourselves...
...otherwise nmp might complain
 
@EriktheOutgolfer ninja'd me by 5 seconds
 
11:22 AM
the nmp thing or the Jelly thing?
 
Jelly
 
oh...I cared to be tremendously fast because of trivial challenge
 
it's also trivial in Retina
 
0
Q: It's Hip to be Square

ShaggyChallenge So, um, it seems that, while we have plenty of challenges that work with square numbers or numbers of other shapes, we don't have one that simply asks: Given an integer n (where n>=0) as input return a truthy value if n is a perfect square or a falsey value if not. Rules You may ...

 
hmm
i have a feeling my punnett square challenge would get closed as a dupe of the cartesian product one
 
11:43 AM
Christ, I didn't think such a simple challenge would cause so many issues!
 
Anonymous
That's what happens when people rush answers without thinking about large inputs
 
Should I have included a max value for n in the challenge? I always thought the default max was whatever your language could handle.
 
Top of HNQ right now, it's crazy what we can do:
 
this should be in HNQ soon...
 
@EriktheOutgolfer It already is! :o
 
11:52 AM
basically many PPCG questions are in HNQ because PPCG is just awesome! in PPCG we normally post way more answers than in any other SE site
 
CMC: harmonic mean of a list of positive floats
 
Dyalog APL, 6 bytes, ≢÷+/∘÷
 
Anonymous
@LeakyNun Actually, 4 bytes: ♂ìæì
 
CMC: given for example "abcab", print:
a
ab
abc
abca
abcab
 

« first day (2322 days earlier)      last day (2513 days later) »