« first day (2428 days earlier)      last day (2417 days later) » 

2:00 AM
wait maybe not
how to optimise recursion?
I guess I'll need some version of if?
maybe I'll use a max function
that works with functions or something
executing a number as a function will be a nop or something
 
@Christopher2EZ4RTZ When Kalashnikov made his rifle, the Soviet government took ownership of the design. Kalashnikov himself didn't (directly) earn any money at all for the AK-47.
 
0
A: Golf you a quine for great good!

DennisSimpleStack, 26 bytes Ā«:171,::187,"Ā»:171,::187," Try it online!

 
Well, I suppose it earned him a promotion at work.
 
ok so for my if I will use a max function that works with functions and numbers together
 
@DestructibleLemon wat.
 
2:05 AM
actually maybe that's a cop out
ah, I have an idea for how to compare them
just use the function but with the number as all its arguments
aha this is not a very good idea
uh
also I will have a sign function
because sign
 
@MDXF You can't, the minimum bounty on the quine post is 100
 
also I will prioritise numbers over functions with max
 
@Pavel Actually, @MDXF already placed a +200 bounty, so the new minimum is +400.
 
hmm yeah maybe this is a bad idea
 
Ah
 
2:09 AM
@Dennis ;_;
dang things
 
@Dennis Does it eventually go to 800, 1600, etc. or does it cap at 500?
 
It caps.
 
cap at 500 ą² _ą²  no bounty can exceed 500
(I wonder why though...)
(Also, can you award a bounty to the same answer twice?)
 
You can.
 
maybe I will have a repeat x times function to help work as an if function
 
2:11 AM
Presumably so it's harder to give a single user all of your rep in one go.
 
should my lang have variables?
 
@Pavel yeah makes sense
@DestructibleLemon depends. is it golfing or practical?
 
impractical
 
If that's even a question recreational must be assumed
 
@Pavel functional languages resigned šŸ˜‚šŸ˜‚šŸ˜‚šŸ˜‚šŸ˜‚
 
2:13 AM
Functional languages generally have variables.
They don't vary very much though.
 
a fair amount don't
I think
constants maybe
 
Haskell, F#, the MLs all allow you to assign a value to the concept of foo.
I can't think of any other functional languages off the top of my head.
 
uh idk because I don't program them but I remember one that didn't
 
If I'm programming in C# and declare const int a = 42;, most people would still call it a variable even though it will only ever contain 42.
 
having no variables but constants = very different to having variables
 
2:16 AM
We call them variables even though they're constants.
 
this language idea is starting to seem dumb
 
Brainfuck probably seemed dumb, and look how popular it is now.
 
@Pavel People also say I literally died.
Spoiler: they didn't.
 
@Dennis some of them did
for a certain definition of dead
 
2:18 AM
From Wikipedia:
> In computer programming, a variable or scalar is a storage location paired with an associated symbolic name (an identifier), which contains some known or unknown quantity of information referred to as a value.
Notice the lack of mutability in that definition.
 
a language with no variables is still very different even with constants
 
Variable and constant are literally antonyms.
 
> Variable (computer science), a symbolic name associated with a value and whose associated value may be changed
beat that
 
;-; fine
 
And while that may seem as a technicality if you have both, having constants but not variables definitely changes things.
 
2:20 AM
Variable -> Able to vary -> Mutable
Constant -> like literally just "constant" means "the same"
 
@Pavel also from the article you had
> ... the value of the variable may thus change during the course of program execution.
quote miner!
 
@Dennis Ahh darn I forgot, I'll find something else awesome of yours to bounty
 
I think this is not allowed?
 
@ATaco oh I meant to remove that a long time ago, it'll be fixed in the next push
 
I like the F# approach to functional programming. You can be as functional as you want, but then occasionally if you want to cheat in a spot where functional programming doesn't make sense you can declare a variable mut or write a for loop.
 
2:23 AM
And I don't have foreach functionality yet because of the entire interpreter design which I'm planning on rewriting eventually
 
Don't worry, I just about have the quine.
 
@DestructibleLemon It's not like Dennis doesn't have many submissions that are bounty-worthy by themselves.
 
@ATaco oh sweet
 
ok what if I make a koth with a literal hill
 
If you didn't notice Dennis already posted a SimpleStack quine so the bounty is taken
 
2:26 AM
@DestructibleLemon
 
no
not that
idk it might be a bit like king of tokyo or something
 
@MDXF Oh, I just solved it.
 
@ATaco haha
 
We have the EXACT SAME solution.
@Dennis Shakes fist
 
Tacos have fists?
 
2:30 AM
ok what if you make two bot submissions together, and you have to defend a hill against all the other bots, and the other bot attacks hills defended by another bot, being attacked by everyone
 
I never said it was my own fist.
10
 
:O
:Unnecessary face
 
gtg o/
 
o/
 
@DestructibleLemon Idea: 2v2v2... co-op Koth, where player one and player two have different roles.
 
2:34 AM
hmmm
ok but why is it not one person making two bots
also that's a good way to have code review join maybe
 
Koths should, IMHO, be very simple in design, with complexity arising from the bots themselves.
 
@DestructibleLemon Because co-op is the entire point.
 
@Pavel ok but I'm just saying the coop just turns into two people working on an idea as one person
which would be better as just one person
why don't we do a cops-robbers type koth like that cat waterbucket thing
with codereview
 
@ATaco rip
 
Cat waterbucket?
 
2:37 AM
Nah, Codereview aren't really into our competitions.
 
@Pavel one of the asymmetric koths
 
Link please.
 
13
Q: Asymmetrical KOTH: Catch the Cat (Cat Thread)

flawrAsymmetrical KOTH: Catch the Cat UPDATE: The gist-files are updated (including new submisisons) as the Controller.java did not catch Exceptions (only errors). It does now catch errors and exceptions and also prints them. This challenge consists of two threads, this is the cat thread, the catche...

@ATaco they didn't like people were being over the top and stuff, and like, jingoistic or something
with an asymmetric koth, all competition is intra-sited but still with inter-site interaction
because code-review will be like the cats, and we the catchers (or vice-versa I guess)
 
@Dennis can I add a description to your SS quine?
 
Eeeeh
Also, what defines a code-reviewer or a code-golfer, why can't someone compete in both?
 
2:41 AM
@ATaco self-identification I guess
it'll be a simple rule
 
...with bonus points given for style?
 
is there really anyone on the site who is straddling between code review and code golf?
 
Wait a sec who downvoted my C quine ą² _ą² 
 
@MDXF Want to try your luck at a MaybeLater quine..?
 
I'm not great at quining in esolangs but sure I'll take a look
Er documentation would be helpful
 
2:47 AM
That good enough?
 
@MDXF My theory is that someone was cheesed by "untyped variable s"
 
Mm I meant to fix that
@ATaco Yes thanks
Ok if downvoter downvoted this because of the "untyped variable" bs, I fixed it, pls reverse :P
 
@MDXF So what you're saying is that h in TIO link might as well be untyped.
 
Yep
 
ą² _ą² 
 
2:51 AM
Because everything in C is an integer under the hood
 
ą² _ą² _ą² 
 
what it's true
attempts to shake nagging doubt that you downvoted
:P
 
I did
 
@MDXF Done.
 
so I think it's true that people think a koth based around a 2d language somehow would be good
 
2:53 AM
@Pavel "My theory" liar :P
@Dennis Nice thanks :)
 
There will be a shorter quine after fixing @ though.
 
Ah yeah and there's a 4-byte golf once I fix a couple things and actually write documentation
«:`«,::`»,"»:`«,::`»,"
 
@MDXF Also, what downvote
 
@ConorO'Brien Nice score!
 
2:56 AM
@Pavel thank you :P
 
It's a good quine I'm just bothered by "untyped variable"
 
Yes, implicit type != no type.
 
Yeah, I updated again with a link to your example
 
@MDXF Call me when you have a 3 byte quine ;P
 
@ATaco Yeah that's unlikely :P
 
2:58 AM
Fear the power of RProgN2's quines.
 
@MDXF «@171%@187»@171%@187 is only 20 bytes.
 
@Dennis Whoa
 
Once @ behaves, that is.
 
Ok why am I putting this off? Pushed, can you pull TIO's SimpleStack?
 
Still waiting for some genius to come up with a nontrivial Preproc quine.
Or prove it impossible.
 
3:00 AM
Newlines are impossible, still.
 
But do you need newlines.
 
Yep.
You need atleast one # for it to not be trivial, and everything up untill the newline after the #define will be considered part of the #define, so to actually execute anything you need a newline.
 
Is Preproc basically C?
 
C without C.
 
> With some preprocessors, it's possible that the sequence of characters
\u000A will expand into a newline during preprocessing (this is almost
legal C99 syntax, but the standard specifically says that this sort of
thing isn't allowed (6.4.3:2 in N1124.pdf)). (I haven't tested, but it
seems reasonable that at least one preprocessor will get confused into
emitting a newline in this situation; the #defines would be
substituted in stage 4, before the universal character names are even
considered by the compiler.) One point of interest is that universal
 
3:02 AM
Whoa
 
@MDXF It's the C preprocessor.
 
@Pavel Is there a spec?
Also @Dennis do you object to me finding a good answer of yours and giving it a +50 bounty, since I cannot do so on the quine challenge?
 
We have newlines, we might be able to do this yet.
 
@MDXF As long as you find one you deem worthy (rather then selecting one at random), that should be fine.
 
Also if a quine has to encode part of the program to be valid, why is this valid if 0 in SimpleStack is not?
 
3:04 AM
@MDXF Nope, it's just the C preprocessor run on the code and then the result is output.
 
@Pavel That's odd
So it's like each line is started with #?
 
Only if that line has a preproccessor directive on it.
It boils down to cpp .code.tio -o temp && cat temp
There's some boilerplate though.
 
Except it's cpp -x c++ .code.tio
 
Actually cpp -P .code.tio
 
Oh that's golfy
-P for preprocessing only?
 
3:07 AM
It isn't processed as C++, and you can't include <iostream>
 
-P for don't generate line number comments.
cpp is C PreProcessor, not C PlusPlus, so there's no need to specify that only preprocessing is needed.
 
Oh yeah it's g++ that's for c++
That's rather confusing
 
Yep
 
Ok so @ATaco were you the one who wanted to write a quine in my new esolang?
 
3:09 AM
Yep.
 
What do you think I should call it? I'm making the repo now
 
No idea, best of luck with that.
 
darn
 
23
Q: Absolute Sums of Sidi Polynomial Coefficients

DennisBackground The Sidi polynomial of degree n ā€“ or the (n + 1)th Sidi polynomial ā€“ is defined as follows. The Sidi polynomials have several interesting properties, but so do their coefficients. The latter form OEIS sequence A075513. Task Write a full program or a function that, given a non-ne...

 
@MDXF I might help
 
3:11 AM
@DestructibleLemon literally just about to ping you
Any good names up your sleeve? It's like a painful assembly
 
uh
ASSembly ba dum ch
dismemberment?
 
I'm going to post my RProgN2 quine list to claim the throne over V.
 
uh how about a turing test koth
except it's a two sided koth with bots as the judge
 
@MDXF Did you not know #1
 
3:14 AM
what is thought of this idea?
except that people are not deterministic
 
@MDXF Which means that also works in C!
 
maybe instead of a human, it's just a distinct chatbot or something
 
@Pavel Of course >_>
 
except that a chatbot would be really easy to replicate I guess
 
@ASCII-only Well, both of those things are new to me.
Just because I made preproc doesn't mean I know how the C preproccessor works.
 
3:17 AM
either that or I could try using a cleverbot thing
definitely need to use a premade too complicated chatbot
to speed things up
 
Looks like a feature to me.
 
@Pavel You know that one of the spaces isn't a space, yes?
 
No
I just hit spacebar a few times
I have no idea how that happened ._.
 
3:25 AM
The space between comma and 4 is NBSP.
 
y tho
.__.
 
@Pavel you must have broken your keyboard lol
@HyperNeutrino What are you talking about, Vegemite is clearly much more superior
 
@ASCII-only why is there a :P
this is serious
 
@Riker Eh, they're not actually like Ikea meatballs, which resemble "normal" meatballs. That word more closely refers a kind of patty.
 
@Pavel Now I'm imagining DIY meatballs
 
3:29 AM
We've an extra screw.
 
@Stephen uh like meatballs that need to be cooked?
 
Anonymous
@Pavel I imagine they're also not made out of horse
 
Who knows? :P
 
@DestructibleLemon It's IKEA, it can't be that simple
 
so there's also the sauce?
 
3:30 AM
@Riker Note that a very simillar word in Russian actually does mean meatballs.
Š¤Ń€ŠøŠŗŠ°Š“ŠµŠ»ŃŒŠŗŠø
 
Introductory programming classes are really boring
 
Yes
Frikadellen resembles a Russian ŠšŠ¾Ń‚Š»ŠµŃ‚Š°, which is pronounced like and comes from "Cutlet" but doesn't look like what you would think of a cutlet being.
 
so, am I the only one who wants a new koth one can actually play (without learning annoying javascript or something)?
 
Linguistics is weird.
 
"Learning annoying javascript"
 
3:36 AM
Isn't it?
 
yes
or java
 
Just because you don't speak Javascript :P
 
if it pays the bills it's worth it
 
@mbomb007 thanks!
 
3:38 AM
@Pavel >_>
 
My school bought me Mathematica, does that mean I have Pro?
 
@Stephen Kinda? You can access W|A pro through a mathematica notebook.
Just type == <query>
It can also access variable defined elsewhere in the notebook, which is nice.
 
@Pavel oh really? that's really nice to know
the things they don't teach you
 
KOTHs that require Python make me sad.
 
^
 
3:41 AM
@ATaco simple or complex? when they are simple ones it doesn't really matter
 
Either way, It makes me sad.
 
Python makes me sad
 
^
 
@ATaco Koths that require javascript are far more saddening
 
3:44 AM
That is not incorrect
 
@ConorO'Brien you have bad taste šŸ˜Ž
 
obviously we need a KOTHScript
 
uh
no
ok so I maybe have an idea for koth challenge again
however maybe it would be good for me to make a room where I post my koth ideas
do we have tank battle koths?
 
4:15 AM
how about a challenge to gather as much resources as possible, plus you can steal other peoples resources by destroying them
 
by destroying people?
 
yes
maybe there will be respawning?
nah maybe that's a bad idea
 
5:10 AM
@ASCII-only In case you were intrested, I'm working on an implementation of TIS-100 Assembly that supports proper i/o and no limits on how much code can be in a single node. It isn't usable yet, but the source code is at gitlab.com/pavelb/TIS-100
 
@Pavel is that legal?
 
That is an excellent question.
I'm going to take the risk that I won't get sued for a small open-source project that doesn't make money.
 
change the name at least
@Pavel ok but that's not how you do things
 
Changing the name does seem prudent.
 
5:26 AM
@Pavel TIS-1K
@Pavel pushes massive commit
Lol jk my conventions are really bad you probably don't want any of my code ever
 
@ASCII-only I am planning to have extensions (such as MUL and DIV).
 
I would say change it to something more different
 
With a special flag, of course
 
CMC: Given a list, add each element with the element of the same index once sorted. EG: [1, 8, 2, 5] -> [1, 8, 2, 5] + [1, 2, 5, 8] = [2,10,7,13].
 
Anonymous
@ATaco Actually, 3 bytes: ;S¥
 
Anonymous
5:39 AM
Jelly, 2 bytes: +į¹¢
 
@ATaco RProgN 2, 7 bytes ]§)T#+r
 
5:53 AM
p((a=eval$_).zip(a.sort).map{|i,j|i+j})
 
@Pavel I meant 1k more as in improved code limit
 
Also, char literals and ASCII output
I believe you could emulata mini-flak int TIS-1k, so it should be turing complete. Let's say a stack node is to the right of the operating node. {...} is start:; ...; JNZ start. {} is ADD RIGHT. (...) is ...; MOV ACC, RIGHT. () is ADD 1. [] is MOV ACC, RIGHT; SUB ACC; SUB RIGHT.
Well not quite
I think I made a mistake or two
But still
 
6:53 AM
@HyperNeutrino it is "p or not p"
@HyperNeutrino Peano arithmetic is defined on <N,0,S,+,*>. S is a unary function [successor] which is injective, and 0 has no successor. + and * are binary functions that satisfy A4 through A7.
@HyperNeutrino that is a predicate
 
Anonymous
7:18 AM
@LeakyNun Slight correction: the Peano axioms state that 0 is not the successor of any number. In other words, there does not exist an n such that S(n) = 0. You said that 0 has no successor - that there does not exist an n such that S(0) = n.
 
7:30 AM
"0 has no predecessor"
 
 
2 hours later…
9:43 AM
@mbomb007 bah, I thought I was good at regex, but I played at easy level and only got 42744 (75%)
 
I got to level 7 max difficulty, then my browser committed suicide instead of awarding me the seventh 100%
Twice.
 
@JohnDvorak I first read "my brother commited suicide"ā€¦
 
 
2 hours later…
12:14 PM
@muddyfish is there any way to reverse the arguments of a function other than R in pyke?
 
12:26 PM
like, for example convert \x5V"{^_}"RJ to \x5V(reverse arguments thingy)J"{^_}
 
12:45 PM
0
Q: Questions with an objective win criterion, but no strategy to achieve it

LynnThe Answer-Chaining Fibonacci and One OEIS after another challenges have quite a curious win condition. Quoting the former: Winning The winner of the challenge will be the person who posted the second most-recent submission (i.e., not the person who posted last, since they broke the chai...

 
1:06 PM
@Mego thanks for the correction
@Fatalize right, you can phrase it like this
 
CMC: given a permutation and a string, apply the permutation to the string. Example: "hello world ", [9,7,6,11,4,8,10,5,0,1,2,3] should produce "low ord hell". Reference implementation: ->str, per{(0 ... str.size).map{|i| str[per[i]]}.join}
 
@JohnDvorak Jelly, 2 bytes: ā€˜į»‹
 
The out-of-bounds-turns-to-space is throwing off my nice elegant PowerShell answer.
 
@AdmBorkBork it isn't out of bound
there's a space after world
 
@JohnDvorak SOGL, 4 bytes: {ā“Wp - 1-indexed
 
1:13 PM
@LeakyNun >.> maybe I need glasses, lol
 
@dzaima if 1-indexed then my answer would be 1 byte lol
 
@JohnDvorak PowerShell, 23 bytes -- param($a,$b)-join$a[$b] ... with half of that just taking in the input
 
CMC: given a permutation and a string, apply the inverse of the permutation to the string. Example: "hello world ", [9,7,6,11,4,8,10,5,0,1,2,3] should produce "rld oole hwl". 4 bytes in Jelly.
 
Actually... Ruby: ->str, per{per.map{|i| str[i]}.join}
 
1:57 PM
Java now has an official REPL called JShell :)
 

« first day (2428 days earlier)      last day (2417 days later) »