« first day (2309 days earlier)      last day (2539 days later) » 

3:04 PM
@Phoenix APL, 12: {⍞}⍣{⍺=a}a←⍞
 
I'm a bit concerned about this question, sure, it's a terrible question, but it seems to have been closed for a reason that isn't one of the close reasons
do we have a meta post about closing terrible questions?
I'm also not sure whether I should vote to reopen it
 
@Adám Can I add important terms that aren't strictly abbreviations?
 
@Phoenix Probably alright. I can even change the title to "…specific abbreviations and terms". What do you have in mind?
 
"Eleven"
 
@Phoenix huh?
 
3:12 PM
That is, to delete with mod powers.
 
@Phoenix Really‽ Can you explain?
 
e.g. "Yeah, it's gone, Dennis 11'd it."
 
where does that originate from?
 
!!!!!! -> !!1!1!!! -> !!11!!! -> !!eleven!!
 
As in, ^ prepended by "mod abuse"
 
3:14 PM
Search "mod abuse eleven"
 
aah
 
Apr 12 '16 at 6:31, by Dennis
@Sherlock9 mod abuse -> mod abuse!!! -> mod abuse !!11!1!! -> mod abuse !!eleven!1!! -> mod abuse eleven -> eleven
 
Yeah that's a good one, it really confused me first time I heard about it
 
@MDXF Nice! I had no idea that was a thing.
 
What are you referring to? Sorry
 
3:18 PM
probably the C quine
 
Yeah I figured just checkin'
 
@MDXF You can click on the arrow thing to the left of the message to see the reply target.
 
You should mention a compiler though. Your use of s is undefined behavior and may not work in all compilers.
 
Oh that's right
Sorry, still getting used to chat
I'll test it in more compilers @Dennis
 
@MDXF You can click on the arrow thing to the left of the message to see the reply target.
omg potato internet
 
3:20 PM
you can also click the reply button that pops up on mouseover of messages to reply to it
 
Thanks
 
no guys that's the wrong way to reply
you have to click on the arrow
 
No
 
click permalink
 
Don't
 
3:21 PM
lol
 
then copy the last part of the url
 
Noooooo
 
and paste that into the front of the message with a colon before it
 
@Cyoce then tinyurl it and link it
 
@Cyoce like this
 
3:21 PM
@totallyhuman lol
 
Anonymous
@Mayube And then click permalink on that...
 
19 secs ago, by Phoenix
You can also do a trick where you infinitely quote yourself.
 
but please don't do it here
 
Anonymous
Yeah my boot is ready for kicking if people do that here
 
Sorry
 
Anonymous
3:23 PM
Oh that's not as bad as I thought. I was expecting an absurd quote pyramid
 
Anonymous
 
an absurd pyramid starts occurring when you edit the message
 
@Mego Well, I was going to do that, but aforementioned potato internet prevented me for long enough to realize that wasn't wanted.
 
potato internet saves the day!
 
I don't think that's ever been said before in the history of mankind.
 
3:28 PM
0
A: Sandbox for Proposed Challenges

Stephen SRed and Black code-golf In the musical rendition of Les Miserables, a song appears called "Red and Black." Here is part of that song: Red - the blood of angry men! Black - the dark of ages past! Red - a world about to dawn! Black - the night that ends at last! Source Y...

 
@MDXF Btw, github.com/aaronryank/quines/blob/master/c/077-hollingsworth.c appears to be missing curly brackets around main.
 
Does anyone here use VS Code, and is it good?
 
@Mego I think the "abbreviations & terms" meta post is pretty good already. Up for adding a link in the room description?
 
@flawr lol
 
3:44 PM
@Dennis Since it's not my work should I just delete it or fix it?
 
Anonymous
@Adám The ROs had a discussion, and the consensus was that the room description is crowded enough already. It doesn't have room for much more without the text getting truncated. We'd rather keep it just for things directly relevant to TNB (the PPCG link and the Chatiquette).
 
Anonymous
@Phoenix Well yay for potatoes
 
@Phoenix I use it at home, it's reasonable. There's a few extensions for it now and it works well enough as an editor
some design decisions that stop me using it the way I'd like though (unable to open multiple folders in the same window)
 
I've been looking to switch from Atom since I've gotten to the point where it takes a good minute to start up.
 
no ui customization!
 
3:49 PM
plus it's javascript/node based, so it chokes on large files
not quite as bad as atom at least
 
@totallyhuman Actually, according to the patch notes, this is a thing as of very recently.
I mean, there's always vim, but vim is good for making small changes to files and not actually writing projects imo.
 
@MDXF I'd fix it. The #define approach is a nice one.
 
CMC: Write a C++/Assembly polyglot for any existing polyglot challenge.
 
@Phoenix Damn, now I'm gonna do that.
Well, C/Assembly. C++ is of the devil.
 
CMC: reverse every second character of a string, starting from the second, e.g. Hello, World! -> HdlroW ,olle!
 
4:01 PM
@Ephphatha wait what does atom really load the whole thing at once
 
In Visual Studio, whenever you create a new class, it automatically adds using System.Linq (along with some other things). I just looked up what System.Linq is, it only contains one class ImmutableArrayExtensions
@EriktheOutgolfer As in, the unicode reversed character?
 
no, see edit
 
oic.
 
another example: abcdefghij -> ajchefgdib
 
@EriktheOutgolfer I don't get it.
 
4:05 PM
@Adám Swap the second and second to last, 4th and 4th to last, etc.
 
you first separate the chars this way: a c e g i and b d f h j. then you reverse the second list, so now it's a c e g i and j h f d b. finally interleave again: ajchefgdib
 
@EriktheOutgolfer WHat if there is an odd number if chars?
 
abcdefghi -> ahcfedgbi
 
I wonder if anything has an uninterleave command.
 
Jelly, 7 bytes: s2ZU2¦Z
@Phoenix above, s2 converts the string to interleaved chars, then Z uninterleaves, U2¦ reverses the second index only, and Z re-interleaves again
so one could say it's easily simulatable
 
4:18 PM
Can input be an array of code points?
 
Anonymous
Damnit SE... I spent 15 minutes trying to figure out why my code was throwing errors. Turns out SE puts zero-width spaces in code in comments.
 
Been there.
 
Java, golfing in progress:
void f(String n){
	List<Character>a=n.toCharArray().asList(),b=new ArrayList<Character>();
	for(int i=1;i<a.length();i++) {
		b.add(a.remove(i));
	}
	for(int i=0;i<a.length();i++) {
		System.out.print(a.get(i));
		System.out.print(b.get(i));
	}
}
Prolly shorter to return tbh
 
or to combine the print statements
 
Yes
 
4:25 PM
golfing in Java is like racing in kid cars. Which sounds pretty fun, actually.
 
from an actual programming standpoint the asList() and then the remove() calls are a little cringe
but from a golfing standpoint, looks good so far
;)
 
void f(String n){
	List<Character>a=n.toCharArray().asList(),b=new ArrayList<Character>();
	String o="";
	for(int i=1;i<a.length();i++) {
		b.add(a.remove(i));
	}
	for(int i=0;i<a.length();i++) {
		o+=a.get(i)+b.get(i);
	}
	return o;
}
 
b.get(i++) and drop the braces on the for-loops
 
define i before the first loop then reset it in the second
 
4:28 PM
Does java support one-line (as in no braces) for loops?
 
yes
 
Can anyone see any more I can squeeze out of this before I call it quits for the day?
 
@WheatWizard Nice!
 
a->{
	ArrayList<Character>b=new ArrayList<>();
	String o="";
	int i=1;
	for(;i<a.length();) {
		b.add(a.remove(i++));
	}
	for(i=0;i<a.length();) {
		o+=a.get(i)+b.get(i++);
	}
	return o;
}
Lambda taking an ArrayList<Character>
 
@EriktheOutgolfer are trailing spaces allowed?
 
4:30 PM
@Phoenix can still remove the loop brackets since they are only 1 line as KritixiLithos suggested
You can also likely use the List interface instead of ArrayList as the declared type of b
 
#	'SysV-AT'	-- Microport 286 UNIX (put -DUMB in CFLAGS)
somebody has something against that OS
 
since you're using a.length() multiple times it's probably shorter to save it out to a variable
 
doesn't a.remove(i) remove an item from a, changing it's length?
 
oops
good catch
so is the first loop removing every other character
idk what challenge this is for
 
Anonymous
@EriktheOutgolfer Python, 52 bytes: lambda s:''.join(map(''.join,zip(s[::2],s[-2::-2])))
 
4:36 PM
I saw java and I started golfing
 
halp not compiling tio.run/nexus/…
As you can see, the class very clearly exists: docs.oracle.com/javase/8/docs/api/java/util/function/…
 
Anonymous
@Phoenix java.util.function.Function
 
/facepalm
@Mego Nvm halp same error
 
Anonymous
@Phoenix You need to fully qualify List too
 
^
 
Anonymous
4:39 PM
As java.util.List
 
Ok right forgot about that.
 
since it's just for running code you could import them
 
Anonymous
And ArrayList, which is part of the golfed code
 
yeah so that starts getting into "what is required for lambdas"
because if it is expecting a list as a parameter
then you might be safe under the assumption it's imported already
 
Anonymous
No, you shouldn't get the import for free
 
4:41 PM
anybody here know C/make well?
 
agreed
 
Actually there are like 10 compiler errors that I missed
Brb fixing
 
Anonymous
If you expect an object from a package, you should either have to count the import, or expect it as a FQN (a la java.util.ArrayList)
 
but the argument exists
 
No I agree also
 
Anonymous
4:42 PM
@Riker I know C pretty well and I've messed up make a bunch so I guess you could say I know it too
 
lol
clang: error: linker command failed with exit code 1 (use -v to see invocation)
 
By that argument you have to count the import for your argument.
 
what can cause this error?
google isn't helping
I have a feeling it's clang's fault, since make prolly tries to use gcc
 
Anonymous
@Phoenix No, because you can fully-qualify the argument so that it can be passed without the golfed code getting the benefit of the import for free
 
Anonymous
@Riker -v
 
4:44 PM
Also, I accidentally put in a ruby-style s.toCharArray.asList call.
 
@Mego how do I run it though? that's the end of the output of make all
make all -v and clang -v are both versions
 
Anonymous
Probably have to pass -v via whatever clang uses for linker-specific args (like gcc's -X)
 
:/
that's gonna be a pain to find
thanks though
 
Also, I accidentally put in a ruby-style s.toCharArray.asList call.
 
Anonymous
@Riker -Wl,-v should work I think
 
4:46 PM
Java is killing my soul
 
Anonymous
@Phoenix Also you accidentally pasted the same message twice
 
@Mego ok, found it, apparently the error was the makefile trying to use ltermlib not lncurses
thanks
 
Anonymous
Welcome :)
 
:D
 
@Mego not the first time today, due to internet.
 
4:47 PM
now I just have to deal with 3 year old code that doesn't have a mac specification, the closest thing setting wise is amigaDOS
 
@Mr.Xcoder which part of java
 
OMFG, the asList function is killing my soul.
 
@MistahFiggins do you need a part?
 
The rest of Java is just extra
 
@MistahFiggins The whole of it.
 
4:48 PM
yeah
 
I remember there was a CMC a while ago: "find the longest Mathematica builtin". What was the winner in the end? <I cannot find it>
 
@Riker thanks :))
 
np
 
I did get it to compile
 
Anonymous
4:51 PM
@Phoenix Done
 
what is it supposed to do?
 
The above CMC
 
@Mego ha. ha.
 
Scroll to the very top of chat
 
@Mego that was fast
 
4:52 PM
._.
Loading an entire page of messages is beyond my internet though
TL;DR: Given a string, uninterleave it, remove second list, interleave again.
abcdefghi -> ahcfedgbi
s/remove/reverse
I wish Java had array splats
 
Anyone know if it's possible to reference printf's initial argument? (related)
 
You know what really pisses me off? The generic List implementation in Java throws UnsupportedOperationException on a .remove() call. How does that make sense.
 
Anonymous
@Phoenix That's because you're calling a method on a bare-bones concrete implementation of an interface.
 
@Mego Where does the ! go?
 
Anonymous
@Phoenix Oh crap
 
4:57 PM
@Mego Remove is part of List though.
 
Anonymous
@Phoenix Sure, but List is an interface
 
Anonymous
This fixes your first problem
 
Anonymous
Now you just have to deal with the out of range exceptions
 
And that's why I avoid Java as much as possible. How did it get the second most used language in the world?
 
Right, but it's incredibly annoying that something that returns a List, built into Java, returns an incomplete implementation.
 
Anonymous
4:59 PM
@Mr.Xcoder Wouldn't we all like to know
 
Anonymous
@Phoenix To be fair, Java is an incomplete implementation :P
 
Swift, on the other hand has its strange stuff as well. When you call reverse() on a list, it returns a ReversedRandomAccessCollection<Array<Element>> :((
Java has a friend :))
 
LOL, how?? It's like that old-school underhanded challenges
 
Anonymous
@Mr.Xcoder It prints out char codes, I think
 
5:02 PM
tfw BASIC takes 12.5 hours to draw the Mandelbrot set
 
Anonymous
Or actually I have no idea what it's doing
 
Anonymous
And neither does Java
 
@Mego But the char codes are wrong
 
Anonymous
"Java what are you doing?"
(shrugs in an extremely verbose manner and somehow throws an exception in the process)
 
Oic
There's a String+=Charater+Character
Character+Character is not a String
I uh... forgot to reverse b.
 
5:04 PM
 
Try it online! it swallows the last char but I no longer care
Who am I kidding I'm going to fix it anyway.
 
What are you trying to accomplish?
 
There's a CMC
Scroll up like two pages
tl;dr uninterleave a string, reverse second list, reinterleave
abcdefghi -> ahcfedgbi
Oh... we're up to 213 bytes
 
CMC: Given an integer N, print any brain-flak snippet that will print N when ran. You must handle 0 and negative integers also.
Examples:
2  -> (()())
1  -> (())
0  -> (<()>), (<><>), (<[]>)
-1 -> ([()])
-2 -> ([()()])
 
CMC: given a list of characters, print a string with the vowels first, but in the reverse order they appear in the list, and then place all the consonants, in the order they appear in the list. ['a','b','c','d','e','f','o','p','u'] -> 'uoeabcdfp'
 
5:11 PM
@DJMcMayhem (<>) is golfier for 0
 
Yeah, but it isn't stack clean
 
@DJMcMayhem for 0, there's also ([])
 
You didn't specify stack clean
 
Fine. Those both work
 
Probably not but I'm not testing anything else out of fear
Why did those messages come out reversed
 
Anonymous
5:13 PM
@Phoenix UDP
 
Feel like it's a bit too long
 
I've got 46
 
@quartata did I vote to delete that
 
Presenting the worst ruby golf in the history of ruby golfs:
$><<?(
if gets.to_i<0
$><<?[
else if $_.to_i<1
$><<?<
end
$><<'()'*$_.to_i
if $_.to_i<0
$><<?]
else if $_.to_i<1
$><<?>
end
$><<?)
 
@ConorO'Brien Yes, probably years ago
 
5:16 PM
@DJMcMayhem 05AB1E, way too many bytes (33): Ä„()×¹_i„<>}¹0‹i„([??„])?ë'(??')?
 
Since it was closed in 2015
 
@DJMcMayhem in Python??
 
Yeah
lambda n:"(["[:1+(n<1)]+"()"*abs(n)+"])"[n>0:]
 
You're a genius
Of yes, ([()()]) also woks for 2 :((
 
5:18 PM
@Mr.Xcoder No, that would be invalid
 
That's -2
 
I didn't mean to say that, just talking to myself
 
user165474
why did you type it then ;_;
 
I'm not understandable @HyperNeutrino, just ignore me
 
user165474
5:19 PM
Ah okay. creates userscript to client-delete all messages by Mr. Xcoder
 
user165474
Userscript idea: Make CaretReply able to edit messages (or make a new userscript that edits your last message using sed regex)
 
@ATaco ^
 
s/foo/bar/ actually making edits... wew
Probably would want an escape.
 
user165474
Yes.
 
user165474
5:21 PM
Probably make it have to start with s/ so you could stick a space in front
 
user165474
kinda like caret reply
 
user165474
anyway I'm in tech class right now so I'll be gone every once in a while to go build something or destroy something because I'm bad, so if you have something to say to me (which you probably won't) then ping me and I'll reply when I get back
 
@DJMcMayhem why did you put 0 in the input field?
 
@Mr.Xcoder ¯\_(ツ)_/¯ By accident
 
5:22 PM
ah, ok
 
I wish the chat commands scrip allowed escapes.
 
I typoed, [n>1] should be [n<1]
 
user165474
But it is [n<1]
 
Yeah, I edited just in time
 
user165474
oh ok :P
 
5:25 PM
Hey, what about this CMC? (as usual, Brain-Flak gets all the attention)
 
user165474
18 mins ago, by Mr. Xcoder
CMC: given a list of characters, print a string with the vowels first, but in the reverse order they appear in the list, and then place all the consonants, in the order they appear in the list. ['a','b','c','d','e','f','o','p','u'] -> 'uoeabcdfp'
 
@BusinessCat 2 byte golf
 
Oh yeah, didn't occur to me that - can stay in there
 
Does brain-flak have a reputation for getting all the attention? o_O
 
user165474
Is 'y' a vowel?
 
5:29 PM
In that case, another 2 byte golf
 
Hello people, if you didn't know, I'm back!
 
user165474
Hello!
 
user165474
@Mendeleev If we did know, does that mean you're not back?
 
Yes
 
5:33 PM
nope, he didn't say iff
 
user165474
Ah. Okay.
 
¯\_(ツ)_/¯
 
@quartata lol I don't remember this. I'd probably keep it today
 
@Mendeleev you should use ATaco's userscript
 
@Mendeleev Hi Back, I'm Business Cat
 
5:34 PM
it lets you do / shrug (but without space)
@BusinessCat ಠ_ಠ
 
user165474
@MistahFiggins You can call them tacoscripts :P
 
@DJMcMayhem yes, it does
 
@MistahFiggins advances in Dad Joke Level
 
user165474
I feel like they're very well-known on TNB for causing disturbance to normal human function being awesome, but idk
 
user165474
5:38 PM
ffs I give up on trying that in jelly
 
user165474
something's breaking
 
user165474
...thatwouldexplain
 
user165474
@Mr.Xcoder can we assume all characters will be letters?
 
user165474
CMC: Output the permalink to the most recent CMC (assuming a message is a CMC if and only if it starts with "CMC: ")
 
5:42 PM
should the new challenge have the tag?"
 
user165474
 
prepare for a new sandboxed post :P
 
almost got it.
 
Anonymous
NSP is desperately trying to grab the post and link it here before someone snipes it
 
user165474
@Mr.Xcoder Jelly, 14 bytes:
 
user165474
5:43 PM
FØcḟ@
FØcf@U;Ç
 
It's not desperation, it's stubbornness
 
@Mego ready, aim, fire
 
Anonymous
Imagine a cartoon character digging through a closet, complete with that poor cat
 
user165474
 
user165474
(not oneboxing because NSP still deserves a change ;P)
 
5:44 PM
wilhelm scream?
@HyperNeutrino I already ninja'd you
 
user165474
:I
 
user165474
the sniper was sniped
 
@Mego should've included TVtropes warning >_>
 
Anonymous
@ConorO'Brien No, I wanted TNB to be quiet for a bit
5
 
lol
 
user165474
 
@Mego invalid
 
Anonymous
@EriktheOutgolfer I know
 
sorry I wasn't there at the time...studying :/
 
1
Q: Remind me again?

KuanHulioIntroduction Ever heard of Remind? No? Neither did I until about 2 years ago. Basic premise of it is for teachers to send out reminders and communicate with their students. Pretty neat, right? It even allows you send emotes and react to messages! Which I do on a daily basis. But, one thing abou...

 
user165474
CMC: Every word you say must be linked to something related. Use shortened links to avoid going over the character limit in like 3 words.
 
5:49 PM
5 hours ago, by Hyper Neutrino
ಠ_ಠ
 
user165474
 
Anonymous
@HyperNeutrino How about no.
 
user165474
aww why not :( actually that's probably discouraged by chattiquette if i actually bothered to read it fully
 
Anonymous
> if i actually bothered to read it fully
 
Anonymous
ಠ_ಠ
 
user165474
5:51 PM
lol
 
Anonymous
We worked hard on that :(
 
user165474
I usually just go by common sense
 
user165474
@Mego ok i'll read it
 
Is this type of explanation helpful? Is there something I can do to make it better.
 
user165474
@HyperNeutrino I guess RO overrules so I must comply anyway ;P
 
Anonymous
5:52 PM
@WheatWizard If I had any background in topology, it would probably be helpful
 
user165474
> Sometimes, there isn't anybody talking in chat. That's perfectly fine. Don't send messages just because the room is quiet.
 
user165474
 
Anonymous
But it's my fault that I'm ignorant about topology
 
0
A: Sandbox for Proposed Challenges

MD XFPlot the Gaussian Distribution in 2D code-golfmath In probability theory, the normal (or Gaussian) distribution is a very common continuous probability distribution. Normal distributions are important in statistics and are often used in the natural and social sciences to represent real-valued...

 
@WheatWizard I don't really understand what topologies are
 
5:53 PM
Shoulde I include a description of the topologies in my answer/the question?
 
user165474
@NewSandboxedPosts took you long enough :I ಠ_ಠ :P ;)
 
@HyperNeutrino wow 4 emoticons all strung together
 
user165474
yes
 
I suggest you add the definition in the challenge @WheatWizard
 
@HyperNeutrino ikr
 
user165474
5:55 PM
@MDXF 0/10 not using replies and only using a mention when the message to which you're replying is not the user's most recent message
 
Oh, that's right
@HyperNeutrino Ikr
 
@KritixiLithos Ok
 
better? :P
 
user165474
@MDXF 0/10 Double-pinging
 
-_-
 
5:56 PM
@Phoenix Your uninterleave, reverse, interleave challenge would be good on main IMO
 
it was actually mine
 
oh sorry
 
2 hours ago, by Erik the Outgolfer
CMC: reverse every second character of a string, starting from the second, e.g. Hello, World! -> HdlroW ,olle!
if that's what you mean
should I post that or something?
 
@HyperNeutrino yes, you may(sorry for the delay)
 
@KritixiLithos
 
5:58 PM
it seems to be a decent challenge
(and I want to answer at least one challenge today)
 
CMC: given a string s, character c, and number n, split s on occurrences of c, up to n times. e.g., "asdf;23423;4123;43412341", ';',3 => ["asdf","23423","4123;43412341"]
 
hmm...let's see how it goes in the sandbox (I'll link)
 
user165474
@ConorO'Brien That's lambda s,c,n:s.split(c,n)
 
user165474
Sorry Kritixi
 

« first day (2309 days earlier)      last day (2539 days later) »