« first day (2650 days earlier)      last day (2196 days later) » 
00:00 - 21:0021:00 - 00:00

12:42 AM
0
A: Sandbox for Proposed Challenges

snail_Efficient Tab Completion code-golf string Many tools that programmers use on a daily basis, like bash and Emacs, have tab completion. Pressing the Tab key in certain situations will attempt to complete the text at the cursor, from a set of possibilities. The term is "completed" by filling in ...

 
Question: which do you think looks better: i.stack.imgur.com/Yxm91.jpg i.stack.imgur.com/gQ6hd.jpg
 
1:02 AM
@Downgoat the purple one
 
1:23 AM
@Downgoat I don't have a strong preference, but I'd probably go for the purple one too
 
2:16 AM
@dzaima There are no rules say that you can't post suboptimal answer, only rules about serious contender.
 
Anonymous
Terrible programming language I came up with today at work: every variable assignment sets the variable's value to the arithmetic mean of all assignments so far
 
2:41 AM
@Mego :| what about strings
 
Anonymous
@ASCII-only base-U encode and average them
 
Anonymous
3:02 AM
CMC: given a string, base-U encode it. Base-U encoding is done by encoding the string in UTF-32 (four bytes per character), and interpreting that as an integer. I've got 46 bytes in Python 2: tio.run/##K6gsycjPM/…
 
Anonymous
Also, final call for feedback before I post this tomorrow: codegolf.meta.stackexchange.com/a/16288/45941
 
@Mego I don't think that's correct. Python 2 does weird things with Unicode strings.
 
python 3. the result is definitely different
 
Anonymous
The main reason I used Py2 was so that I didn't have to have an import for reduce :(
 
Anonymous
GvR is a jerk
 
3:09 AM
@Mego well recursion isn't that much longer
@Mego python is just bad in general
like seriously? globals? those should only ever be in golflangs
 
Anonymous
51 in Py3: tio.run/…
 
@ASCII-only Output matches my Oḅ4*⁴¤ in Jelly.
 
@Mego but i already had 48?
 
Anonymous
@ASCII-only Nah, Python is great. The only issue I have with it is that GvR doesn't see the value of functional programming
 
Anonymous
@ASCII-only I didn't open yours - I wanted to write a correct solution first
 
Anonymous
3:11 AM
But good call on how you did your recursion
 
@Mego yeah, exactly. since python is kinda a functional language, it's not good that it lacks things like reduce
 
Or TCO.
 
@Mego :P that's just ternary recursion in languages other than python (i.e. a commonly used golfing method)
 
Anonymous
@ASCII-only It has reduce; it just got shoved in the functools module because GvR has an unreasonable hatred for FP
 
@Mego yeah exactly
imports are slow
 
Anonymous
3:13 AM
@ASCII-only I meant using one param instead of two like I did
 
nobody has time for that :P
@Mego :| well it is a direct port of the reduce
just a different way i guess
idk, that's just how i've always done it
 
@Dennis oh. i forgot bitwise ops had insanely low precedences
 
Anonymous
@Dennis Clever!
 
@Dennis wait :| don't you need to include the function name in the bytecount since it's recursive
 
3:17 AM
Yes. ._.
 
@Dennis :| it's 43 bytes now
 
You didn't see that. >_>
 
@Dennis Is TCO impossible in Python?
 
CPython doesn't have it. Other implementations may.
Stackless Python does. Sort of.
 
Anonymous
The argument against TCO in CPython has always been more useful stacktraces. I can understand that argument, but I don't understand why there's not a flag that says "I care more about optimization and performance than debugging tools' effectiveness"
 
Anonymous
3:22 AM
Though I guess that flag should just be called "gcc" :P
 
@Mego Charcoal, 19 bytes: ≔⁰κFθ≔⁺×κX²¦³²℅ικIκ
:| it's way too long
 
lambda s:int.from_bytes(s.encode('utf-32be'),'big') is disappointingly long.
 
@Dennis So Try it online! isn't TCO?
 
@DJMcMayhem look
 
3:27 AM
@Dennis Well, not really, you'll still run out of memory even if what happened isn't technically a stack overflow.
Coconut does TCO though.
 
@Pavel Right. TIO's RAM compression seems to mitigate that. Locally, it segfaults pretty quickly.
@Mego I was wondering for a second why slp was faster than Haskell. Then I remembered compiler flags.
 
Anonymous
@Dennis Also because ghc isn't terribly fast
 
@ASCII-only ok now i'm going to question my life decisions for a while
 
3:43 AM
There's nothing quite like Haskell. There's other languages where everything is immutable and all, but it still feels like you're giving the computer a list of instructions.
Prolog and Haskell both just completely break with imperative programming.
Especially Prolog.
 
@Pavel because they're declarative not imperative
@Pavel other languages where everything is immutable?
 
Like F#. You can do some neat functional things, but working with it isn't all that different from C#.
Although I'm F# everything doesn't have to be immutable.
 
@Pavel ah. so stateless-but-not-declarative
 
@Dennis clearly in production code it would be a lookup
 
3:49 AM
Caching the first 100,000 factorials would speed things up, yes. :P
 
I'm pretty sure Mathematica does in fact cache results for every function for inputs up to 10K
 
@Pavel every function?
 
Well, that's an exaggeration
But it certainly does a lot of caching, and there are a lot of functions to cache.
 
That's just memoization, no? Or does it actually precompute stuff?
 
@Dennis I think it actually has tables it does a lookup in for a lot of functions. Factorial of 100k is faster than Hello World.
Which is pretty weird.
 
3:56 AM
Factorial@100000 takes 1.065 seconds at 4% CPU usage. o_O That's startup time plus blink of an eye.
I don't think Mathematica computes the factorial in the straightforward manner. It's too fast for that.
 
I wonder how though.
 
And it's still very fast for 1,000,000 (2.6 seconds) and 10,000,000 (28.3 seconds), so it can't be a lookup.
 
If I actually think about it, a factorial table with a hundred thousand entries is a bit unreasonable.
 
@Mego my god..
 
@Pavel Maybe they factor the numbers before multiplying them. Computing powers of primes is much faster than multiplying large numbers.
 
4:07 AM
Computing the Gamma function is slower, right
 
Since the numbers are all consecutive, factorizing the factorial shouldn't be that hard.
 
Right
I wonder how fast numpy's factorial is now, I'll go check
No I won't, my phone will die by the time I look up how to use numpy
 
0
A: Sandbox for Proposed Challenges

JMigstcode-golf math Bringing a pair of integers to equality This was inspired by a math problem I saw somewhere on the internet but do not remember where, asking for a proof if the following process is possible for any arbitrary pair of integers (from what I remember, it was possible for any given p...

 
Do we have factorial fastest code challenge
 
4:28 AM
@Dennis Faster than the straightforward C implementation when using gmpy2 for multiplication. Not bad for Python. Try it online!
Understandably, much slower than gmpy2's built-in.
 
5:05 AM
@Pavel exactly
 
 
3 hours later…
7:36 AM
0
A: Sandbox for Proposed Challenges

HarryRelational Division Given a database of colored marbles in bins, find which bin has the most marbles of a certain color. In database administration, this task is known as relational division. Example Input marbles (flexible format, this is just one possibility): red,A blue,B green,C red,B red...

 
8:10 AM
@ASCII-only has already forgotten which Charcoal thing, sorry
@ASCII-only Print(Cast(Sum(Map(Reverse(q), Times(Ordinal(i), Power(2, Times(32, k)))))));
(14 bytes)
 
@Neil oh the one where you couldn't modify the predefined variable
 
oh right thanks!
 
@Neil +1 that works
 
(except it wasn't the loop variable, it was the predefined variable)
 
yeah loop variables still disappear once they exit scope idk what i was saying
@Neil actually >_> i think i forgot to test so it might not even work
 
8:45 AM
0
A: Sandbox for Proposed Challenges

AkangkaCreate a type-safe formatf function code-golf You should create a function in any static typed language (Although I doubt if a nondependently typed language can solve this challenge) so that: The function will receive a string that denotes format. The format string will have %s %i or %f, %s ...

 
9:19 AM
0
A: Sandbox for Proposed Challenges

AdámAssign Airliner Seats Inspired by last week's APL lesson. Given an uppercase 2D seat map and a 1D list of customers, return the seat map and the customer list but modified as follows (to indicate occupied seats and seated customers): For each unique letter in the input passenger list, lowercas...

 
9:38 AM
17 hours ago, by Dennis
First rule for using TIO to time things: don't use TIO to time things.
The message ID of that is 44333300.
 
@user202729 and?
 
@ASCII-only Nothing. I just find it interesting.
There are too many sandboxed posts and few main posts. ==> Reviewing sandbox posts are time-consuming. Posting on main is hard. (?)
 
@user202729 I think one has to ask for "last feedback before posting" in TNB (during a busy period) to actually benefit from the sandbox. Speaking of which ^^^^^^.
 
9:54 AM
0
A: Sandbox for Proposed Challenges

Kevin CruijssenIt's Time! code-golftime Originally posted (and deleted) by @Tlink, which was most likely inspired from this StackoverFlow question. Since it was a shame it got deleted, because it seemed like a good challenge in general, I figured I'd repost it with proper formatting and rules. Input: Six dig...

 
10:41 AM
What :/ Lembik deleted their account on other SE sites too :(
I was going to ask if I can assume the alphabet is constant in this question.
(in practice it is, unicode only have ~10⁶ characters or so)
Wow. DC3 is so simple. And if implemented correctly it should outperform prefix doubling.
 
11:34 AM
0
Q: Code 39 barcode encoder

AngsWrite a function or program that encodes a string into a Code 39 format barcode, where each character is encoded as five bars separated by four gaps. Either two of the bars and one of the gaps are wide and others are narrow (10*4 codes), or three of the gaps are wide and none of the bars are (4 c...

 
 
1 hour later…
1:04 PM
0
A: Sandbox for Proposed Challenges

l4m2Shorter coding in non-golfing language Copper write a requirement, a sample program in a golfing language, and a required non-golfing language. Rob hack it with the required language, with fewer bytes of code. I guess it'd be popularity-contest cuz it's sometimes hard to define which is "golfin...

 
Anonymous
1:32 PM
@Giuseppe There was nothing wrong with your solution - by the definition I provided, a single line is rectangular
 
Anonymous
Oh it had spaces, nevermind
 
3
Q: Detect Rectangular Text

MegoGiven a string of printable ASCII text (including newlines and spaces), output a truthy value if the string is rectangular, and a falsey value otherwise. Additionally, the source code for your solution must be rectangular. A string is rectangular if it meets all of the following conditions: Th...

 
is there anything like SELECT posts.* as posts_* FROM posts in MySQL?
 
@Soaku no. why would you even need it... is posts.foo not good enough >_>
 
@ASCII-only For joins
 
1:44 PM
@Soaku just rename the entire table?
 
If I'm joining like 3 tables, with 10+ columns each, renaming every single would be a bit long
 
@Soaku yeah... renaming 3 tables doesn't take long at all...
 
it does.
 
also why do you even need to rename if they're all different tables?
@Soaku no...
 
there might be columns with duplicate names
 
1:46 PM
@Soaku yes? but they would be <tablename>.<columnname> in a join?
 
that's 30 columns.
 
@Soaku you don't have to rename columns individually...
 
I know, but what if I'm selecting data?
 
@Soaku you can use <tablename>.<columnname> can't you
 
no, results will be without tablename
 
1:48 PM
@ASCII-only ok i'm done with modgrammar rolling my own parser now
 
@HyperNeutrino :P
 
@ASCII-only it is way too slow :P
 
@HyperNeutrino I wonder why they don't let you have regex tokens
 
@ASCII-only yeah ikr. string parsing isn't the only thing that's too slow though; there's too much stepping back
 
@HyperNeutrino CnR can be popcon.
 
1:52 PM
@HyperNeutrino also seems like it's a decently sized project so it's probably mostly due to your grammar just being bad for performance >_>
 
@HyperNeutrino Isn't that your fault of providing an exponential time grammar?
 
@user202729 But popcons are frowned upon
 
@user202729 oh ok thanks
@user202729 I mean, I don't know why it feels the need to step back every character or something; there literally is no better way to define a string grammar
 
@user202729 no parser should have exponential worst case though...
 
1:54 PM
@ASCII-only s/worse/worst/
@HyperNeutrino MCVE? (I don't know any modgrammar, I can't work out one myself, sorry)
 
@HyperNeutrino those are all builtin functions right
 
class SingleString(Grammar):
	grammar = ("\'", ZERO_OR_MORE(OR(ANY_EXCEPT("\\\'"), ("\\", ANY))), "\'")

class DoubleString(Grammar):
	grammar = ("\"", ZERO_OR_MORE(OR(ANY_EXCEPT("\\\""), ("\\", ANY))), "\"")

class String(Grammar):
	grammar = SingleString | DoubleString
@ASCII-only yes
 
I don't even know how to apply modgrammar to a string and/or use such classes :/
 
GrammarClass.parser().parse_string("hi")
if that doesn't work, do parse_text
 
@user202729 ... they have MCVEs on their docs...
 
2:02 PM
might work. other things are too slow though so I'm just going to make my own
 
idk, it's probably the way it fits into the rest of the thing
 
@user202729 TLE?
@HyperNeutrino 0/10. in this case just learn how to write sane grammars first
 
22 hours ago, by HyperNeutrino
"hello world my name is jeff" -> TIO TLE
 
2:06 PM
ah
 
@ASCII-only i mean i don't know what's wrong with this that makes it that slow and I can't find anything online that would help me write a sane grammar lol
brb tornado drill
 
@HyperNeutrino :| there are like 1000000000000000 resources for writing grammars online
 
"tornado drill"... what happened?
 
google is a thing
@user202729 it's like a fire drill. so nothing.
 
I think I will (try to) debug it.
Too much code @_@ How should I use it?
 
2:10 PM
@user202729 practice for if there's a real tornado
(it's actually just tornado watch drill rn so I am still here but will leave later)
 
Perhaps I can blame my English skill.
 
@HyperNeutrino ZERO_OR_MORE(OR("**", "*", "-", "~", "!")) this looks really nasty
 
I don't know if I find it more weird that people in school have fire drills, or that they don't. I've never done any kind of drill like that. I assume I'd just gtfo afap in case of a fire. I also assume that's not what you should do >.>
 
mostly the "**", "*" part because depending on the parser engine you could mess it up really bad
 
@ASCII-only i suppose
 
2:12 PM
oh btw does proton have interop with python
 
?
@J.Sallé well you're supposed to stay together in a designated area outside instead of just like GTFO'ing lol
ok gtg tornado warning drill
 
Agree. Something is very slow.
MCVE reduction in progress.
 
I found a weird space on one SE page, and it was an empty item with classes everyonelovesstackoverflow.everyoneloves__mid-leaderboard
ಠ_ಠ
SO Jobs ad. Whatever, who named those classes like that ಠ_ಠ
 
Already asked on meta SO.
Everything that is about SO is already asked on meta SO.
Smaller CVE for Proton problem.
https://tio.run/##vVdtc@I2EP4cfoVON53aKUmTy70kabk5AqbJNA0MMH25S4YxtgD1/MLYYi606f31dLXCtkxsA5lOvyzGlvZ5dvfRSpovxSwMTh4fuT8PI0HiZVwnvi1mdSIi22Fj2/lcJ3Ys6iScs8gWYVSrTaLQJxP4LHgYxGQ1dV@990N3Gtm@b0fZh5rj2XFMbj62jZ/UN/O8tpcMa5Brgx5TkzwQ@opKe4L2Ndo3aN@ifYf2FO0ZTdxesvs2n3JR6vtI@T6muyJIa6Ntoh2jvUDroG2hddG20TK0FtoJ2g4wddmEBAt/zKLRJIwgwYYrKcfIFVmq/5@O7szaHgwhnPCArF4en9/BOBj40CBcTehbPas5NKYwOmJiEQWk2zeMaZ3QQ1onU7NOjG5veNW9aUICDqkp35lJxtrM4b7t3SCh4rRJb5C4lb/fuv02/D04o6b0DIWsk9R9Pi56dPzq5PWbt@9O5WAYLdOfAHcdUQ2rMEs80iyCCx7Y0bLSU1r4Nbp6LJLeuAhQg7LuxWba24KFW0UHiv5P0O7L0U7P7LE
https://tio.run/##vVdtb9s2EP4c/wqWxTA5c9Kk6UsSzEUdW16CZpFhG3tJGxi0RNtcZcmQaDRes/717HiyJMqVZCsY9uUkUeQ9z72Qd1ys5Mz3Th4fxXzhB5KEq7BB5kzOGkQGzOZjZn9uEBbKBvEXPGDSD2q1SeDPyQR@S@F7IVkv3Y/G574zDdh8zoL0R812WRiSm9uO8Uv0r35e24unNcm1QY9pnTwQ@pIqeYLyFcrXKN@gfIvyFOUZjdVe8vuOmApZqPso0n1MqyIoyVC2UI5RXqC0UbZROig7KDlKE@UEZReYOnxCvOV8zIPRxA/AwYajKIfIFVlG3x@P7uq1PZhCBBEeWQ8en9/BPJj40CQiWtA3e2ZraExhdsDlMvCI1TeMaYPQQ9og03qDGFZveGXdtMABh7SuxuqxxzrcFnPm3iChfLcpbeC4tb7frX4HPg/OaF1phkA2SKI@axc9On558ur1m7enajLMVu6PgS1blsNGmAUaaWrBhfBYsCrVlAR@g65ui6I3zgPUoMx7uZ32rmD@TtZBRv8naPfFaKdnbGxDVrYu2h2zq2EPhDd1@UAG8CyK0acfQfG
The actual culprit: (Assignment)
https://tio.run/##vVdtc5tGEP5s/YrLZToFFzt2nBfbU2WCJVR74hqNpOmLE48GwUmiQcDAaWI1bv66u7cIOBRAwtPpl@Xtbp9nX253CVd8Hvgnj4/uIgwiTuJVrJGFxeca4ZFls4llf9aIFXONBCGLLB5ErdY0ChZkCp@5G/gxWW/dT94vAmcWWYuFFeUfWrZnxTG5ue0qvyTf1PPWXrqsTa4VekxV8kDoSyrkCcpXKF@jfIPyLcpTlGc0VXvJ7rvuzOWVuo8S3ce0KYKQFkod5QTlBUobZQelg7KLkqE0UE5R9oCpw6bEXy4mLBpPgwgcrDiCcoxckWXy/PHoTm3twRLiEtcn65fH53ewDhY@tImbbBgYfUMfKTNYHTG@jHxiDhRlphF6SDUyUzWimP3RlXmjgwMOqSreqanHusx2F5Z3g4TK3Sa0gePW@n43B114PDijqtAMgdRIpr5oFz06fnny6vWbt6diMawW7k@BTZvXwyaYFRppbsGF61vRqlZTFvgNurItgt6kDFCCMu75dtq7ggU7WQcZ/Z@g3VejnZ5ZEx
Conclusion: HyperNeutrino failed to provide a MCVE.
What does REF("Expression") do?
I guess that's for recursive grammar.
 
2:33 PM
@Adám That surrounds text in fancy brackets right? Is this some sort of documentation generator?
 
@user202729 I think it references to Expression class. It's in quotes, because Expression is not defined yet. But I never used modgrammar
 
@Pavel Yes, exactly:
    Header←'──┤ '∘,,∘' ├──'

    ∇ r←UCMDGeneralHELP
      r←⊂Header'General Help for User Commands'
…
 
@Adám wt is that emoji
 
@LeakyNun It isn't an emoji, it is production quality code ;-)
 
> No space on either side of `←`
> "production quality code"
ewww
 
2:40 PM
CMP: should I try making an actual grammar in modgrammar or should I just make my own
 
@LeakyNun Look at the first star in the room
 
@HyperNeutrino Go fix the Assignment part first...
The classes are so nested, I can't reduce anything...
https://tio.run/##rVdrb9pIFP1cfsV0Vqu1s4ZNmj6SaKnqgNkgZQMCtI@0kTXYA8zWL9mDSqqofz29c40fsBjwar@cjO0795z7mMskepSLMDh/fhZ@FMaSJI@JQXwmFwaRMXP4lDmfDcISaZAw4jGTYdxozOLQJzP4LEUYJGS99SR974fuPGa@z@LiQ8PxWJKQu/uu9lv6Tb9qvMjM2uRWo2dUJ0@EvqIKzxFfI75BfIv4DvEC8ZJmbm/4qivmQlb6Pk19n9G6DAoZook4RbxGdBA7iC5iF5EjWogzxB4odfmMBEt/ymN7FsaQYM1VkhPUiirT54@nD3rjBZgQQURA1i/Prh7ADgyf2kSkG0bW0DIn2hysYy6XcUAGI02bG4S2qEHmukG0wXDSH9yZkIAW1dU7PctYlzvCZ94dCtqdNuUNErf29@dg1IXH5iXVlWcopEFy95tx0dOzV@ev37x9d6GMwVqlPyMeOHI/bcpZ4ZEWEVyLgMWPez3lhd@SW45FyZvuIixRWSt5WPaxZOFR0UFH/y9sq2q2i0s2daArzetO1@qVuMcimHt8LGP4W1WjTz@B43trNLAHI/v
 
oh is Assignment the thing that's causing problems?
 
It's nice how easy AND, XOR, OR, NOT, binary subtraction (val & (~val2)), left/right shift, and random numbers are in TPT (filt calculations). They're all builtins \o/
Issue of course being that they can all only be applied in a batch, not on individual bits without performing extra steps
 
@LeakyNun It is an "atop" (2-train). The right function is the concatenation function , composed with a right argument (a character vector in this case), and the left function is the same, except a left argument is composed to the concatenation ,.
 
2:48 PM
@HyperNeutrino Yes...
 
oh... ok
 
@HyperNeutrino ** is a prefix operator in Proton?
 
@user202729 yes. dictionary splat
 
Also, TPT, in a challange measured in frames per second (rendering, probably based on games), would probably win due to 'subframe' tech.
which is fun
 
MCVE, finally (hopefully) for Proton parser issue.
 
2:59 PM
Actually, a challenge aimed at video games wouldn't be a half bad idea. It'd just have to be designed so that each language gets it's own 'ranking'
 
@HyperNeutrino Why do you use "\"" while Python allow '"'...
 
so that people can compete over speed and size per language, while also the fasted solution of them all being the winner
i really like just talking. even if no-one's listening. I'm a odd person
 
@user202729 problem is the extra question mark at the end of input?
 
@HyperNeutrino Of course if it matches it will be fast. The problem is why is it slow when it fails, which is the main culprit.
 
3:10 PM
oh
because it tries to back up to each step to see if that matches
 
https://tio.run/##zRtrc9s28rP4KxB2OiUVSY6cPlJd5akby1fP5eKM43tV1mhAEZIZU6SOpPy41P3rud0FQIIUKUtp5@aaKUWCi33vYrGEVw/ZdRy9/PTpi2cH6zQ58ILoQES3bCXHLStYruIkY@lD2mFLnl13WJbwmfD47KbDeJp1WLwSCc/ixLLmSbxkc3idBXGUMjW1LceXsb9I@HLJk@KFxZNFyoZsPLHmQSjgzratWeyrO2secnr/0e5204fl6sEesBcdBk8rnqRCPc3y0XTt0YsERvqPwDzM7VvW3TUiD9gPLBSRA6L0gO6tO7Ba8AsgemQcTKxWMGc4yiMff8cvJmwIzHTtfKQ/mBT3E/aM3gKu1jxOGGdBpKFwjNDhGIlCI61ovQSiNDDmExpCPfT4aiUi33F4x@CIPWeAajyASRPXJWAYGzJ4tloiVNyaBErokwUSKKNPFlsJmOhTQYJJ2wC8Jd@CTskcMHjKAcgirZefErThuyRGo6MpQTnIk9IPcgq840iuYm1ioKixXyZrocQsgyr7A6gm3QhqOIUGT5SCwH4AVzNrRrDoiR2mpMefDnklwBJ/A5Y
 
hm
what did you modify
 
Change the order.
At least it works for this program. For others, I'm not sure.
class Expression(Grammar):
	grammar = Expr | _expr | Assignment
@HyperNeutrino Why do you use something that unpopular...
 
@user202729 ?
still few questions, but not just 1
 
@MagicOctopusUrn it's actually very difficult to support multi-line input like that in 05AB1E, mind you
 
3:18 PM
( ==> hard to get support on Stack Overflow)
 
@user202729 Not everyone on SO writes grammars...
 
@ASCII-only That number of search result is very rare.
 
@user202729 ???
@user202729 wow amazing
@user202729 so? doesn't mean it's unpopular?
 
Uh huh... then... it just mean that it's not easy to get support on Stack Overflow.
 
@ASCII-only If nobody has questions about it, nobody's using it.
 
3:25 PM
@Dennis Or it's so easy to use that there is no need to ask :P
 
Possible, but very unlikely.
 
Did you check Quora? /s
 
@DJMcMayhem I think it's time. Would you like to do it yourself? You suggested that MATL should be nominated, and since we have to essentially bypass @DLSoc perhaps it's better if a mod does it. What do you think?
 
@Dennis And if nobody's using it then there's a decent chance it's the type of library that people are unlikely to use in normal situations (or is just a terrible library)
oh yeah. @Pavel :| VS is still warning me about missing language features even though I'm on latest minor every time I startup
 
3:41 PM
2
Q: What's in my pasta sauce?

BlackholeBackground In France, and probably in the rest of the European Union, any food available for sale must list the ingredients that compose it on its packaging, in weight percentage descending order. However, the exact percentage doesn't have to be indicated, unless the ingredient is highlighted by...

 
CMP: Assume my language has a builtin for getting the source code except the last character. Would a quine using it cheating?
 
@user202729 I'd say yes, if that character is one of the ones it returns (i.e. isn't the last)
 
Then, consider a language Python-sublanguage where all programs must have the structure
 
@user202729 definitely
 
f=r'''<something>''';eval(f)
and the builtin f which gets the source code, except 6 first characters and 11 last characters. Would a quine using f cheating?
 
3:52 PM
yes.
because you're still getting the source code...
 
Isn't that exactly how normal Python quines are written?
 
@user202729 no...
 
@LuisMendo I'm happy to do it, but I might not be able to get to it for a while. Personally, I don't think it matters too much who does it since the whole event is unofficial, but if you'd feel more comfortable waiting for me to do it, that's fine
 
@user202729 here
 
@ASCII-only what if f was implemented as forcing 6 to -11 to be a string, returning that string, and evaling it where necessary?
 
3:55 PM
@dzaima if you're doing that through source-reading, still now
accessing the f variable (which would contain the code) would be valid though
 
@ASCII-only the thing is that's not reading source code, it's reading a string
 
@dzaima but you get the string by reading source code right
 
0
A: Sandbox for Proposed Challenges

Engineer ToastFind the Fibonacci Patterns code-golf fibonacci You are probably familiar with the Fibonacci sequence where the first two terms are 0, 1 (or sometimes 1, 1) and every term after that is the sum of the previous two. It starts like this: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... Sometimes, ...

 
@ASCII-only if that were not allowed, then regular strings wouldn't be allowed in quines
 
@dzaima well having a string literal is fine. source-reading (i.e. accessing the entire contents of the currently open file in some way) is not
 
3:58 PM
@ASCII-only 6 to -11 is not the entire source.
 
@dzaima yes. but to do source[6:-11] you first have to have the entire source
 
@ASCII-only the same can be said about regular strings - you can't get a string from the source code without having the whole source
 
@dzaima yeah but you're normally just given a string?
@dzaima you could say the same about the entire source >_>
"to run any part of the program it must first be read"
 
getting <something> from f=r'''<something>''';eval(f) requires as much source reading as Hello, World! from print("Hello, World!")
@ASCII-only why couldn't you just normally be given a string that happens to always be a certain part of the source code (whatever that means)?
 
My Windows 10 has problem with updates, they always failed so I disabled Windows Update. Everything worked nice until now. It started to try updating again, even though Win Update is still off... I've tried a lot of fixes on the web to make WinUpd work again but everything fails. Even completely reinstalling Win10.
Anyone has the same problem?
 
4:04 PM
@dzaima that's perfectly fine, as long as it doesn't read the source
 
@Soaku I gave up on windows because windows update was too annoying to use
 
@Soaku it isn't that easy to disable windows update. are you sure you disabled it
 
@ASCII-only how is reading a string from the source less reading the source as reading some other part of the source?
 
@ASCII-only I do. And it worked for months, even through MS updates it quite frequently.
 
@Soaku My only experience with Windows 10 is a pos Lenovo laptop my mother bought. It doesn't have a big enough hard drive to run updates.
 
4:06 PM
@dzaima The string just happens to be similar to its own source representation.
 
@dzaima Right now, it tries to reinstall updates every shutdown. And when it startups, it configures them, restarts and then fails, restoring the previous state. And restarts again. And this every time... It's really annoying
 
@ASCII-only and why is that not the case for <something>?
 
@dzaima well really it depends on how it's accessed
 
14 mins ago, by dzaima
@ASCII-only what if f was implemented as forcing 6 to -11 to be a string, returning that string, and evaling it where necessary?
 
@dzaima yeah. that makes it sound like f is a function that goes get_full_source_of_file()[6:-11]
 
4:09 PM
How it's implemented is irrelevant. (is it?)
 
@user202729 If it was, the source reading restriction wouldn't be a thing would it
 
I think our restriction is "something encodes itself and something else"?
 
@ASCII-only SOGL has a built-in that takes as many following ASCII characters as it can and pushes those as a string. If I added to it that it also evaled that gotten string, is it now breaking quine rules? What if I made that range it takes constant? And then, make it start the string at a specific place?
 
hmm. actually
what does meta say
 
0
Q: Weighted average - the pressup trend problem

AJFaradayLet's say that this array is how many press-ups I've achieved each day in the last 28 days: [ 20,20,20,30,30,30,30, 35,35,40,40,40,45,45, 50,50,50,50,50,50,50, 60,70,80,90,100,110,120 ] As you can see, it's taken a steep upward trend in the last week, and that's the part of this data I...

 
4:14 PM
personally I don't quite like the current quine definition but it's too late to change it
 
It's never too late.
 
@user202729 there'd be many invalid answers (i.e. JS & befunge off the top of my head) that wouldn't be allowed by my definition
 
@dzaima Hmm. What's your definition?
 
CMC: Given an integer n≥2, output every ordered pair ([1,n-1], [n,1]), skipping any pair where the numbers are the same.
 
Can SSD cause problems to Windows Update? I've got the system on it, programs and data on HDD
 
4:21 PM
@ASCII-only something along the lines of that no part of the program may result in more than itself (and possibly some constant)
 
@dzaima more than itself?
 
@J.Sallé TC for n=5: (1,5)(1,4)(1,3)(1,2)(2,5)(2,4)(2,3)(2,1)(3,5)(3,4)(3,2)(3,1)(4,5)(4,3)(4,2)(4,1‌​)
 
solution: just make the only valid quines data-decoder quines :P
 
@ASCII-only in hello f world if hello is executed separately from f then f can't result in hello f relying on the hello before it
 
@dzaima fair enough. how does this affect JS and Befunge though
 
4:31 PM
@ASCII-only the regular JS quine $=_=>$=${$};$();$() has $ in the function reading the whole function, which is more than only itself.
 
@flawr @betseg I foudn this one gold en.reddit.com/r/AskReddit/comments/8gg3ty/…
 
@dzaima but $ is a variable containing the function?
 
@ASCII-only which, stringified, results in the whole function, and the whole function contains more than stringifying itself
 
@dzaima yes. is there anything wrong with that
@dzaima ok. then a quine is impossible by your definition? since it can only encode less than itself>
 
@ASCII-only a quine has to encode exactly itself, not more
 
4:34 PM
@dzaima yes. but you're saying the data part of a quine can only encode the data part?
 
@ASCII-only it can encode more, just not relying on the actual source code
e.g. "q+d"q+d in a hypothetical stack-based language where q pushes ", + adds ToS before the item below and d doubles a string is valid, as the value of the string is independent of the code after it
 
@dzaima but JS doesn't rely on source code? and neither does Befunge?
 
@ASCII-only how is the 2nd f in f=function() {/*hi*/return f+""};f() not relying on the source code of the function?
 
@dzaima it's not the source code of the entire file - plus it's literally just f.toString(). it's an intended language feature
 
@ASCII-only that's what my definition is addressing - it doesn't have to read the whole source code to be invalid, it just has to read more than itself.
 
4:49 PM
@dzaima ???
what.
please elaborate on "has to read more than itself"
 
24 mins ago, by dzaima
@ASCII-only in hello f world if hello is executed separately from f then f can't result in hello f relying on the hello before it
 
@dzaima yes? but I still don't understand how JS or befunge are similar to this
 
@ASCII-only the f in the function relies on the /*hi*/ to be in that function so it can output it
 
@dzaima yes. but how is that encoding more than itself
also in what way exactly is this different from assigning a string to a variable
 
4:53 PM
I just found someone had reimplemented like half the System.Linq extension methods to operate on IEnumerable<int>s in production code.
/facepalm
 
@Pavel :| That must make it super slow
 
@ASCII-only I don't think it does, it's just pointless.
 
@Pavel Hmm. I guess that's true since most of the STDLIB is in C#
 
C# is still a compiled language. Even if it was implemented natively, the performance difference wouldn't be that big.
 
@ASCII-only encode ≠ read/result in. The f, alone, is dependent on the /*hi*/ to be in that function so it can output it. If you had read a variable hardcoded by a string instead of fs contents, then the result of that would be independent of the actual contents of the function as you could remove the comment without changing the result of it.
 
4:59 PM
@dzaima and? that's basically the same as adding a payload into a string in other quines...
 
@ASCII-only so the other quines are fine because their payload is the string, while this JS quines payload is itself read by itself.
 
@dzaima huh?
@dzaima that's like saying anything other than the built in String type of a language can't be read from
 
Announcement: APL Cultivation in 20 minutes.
 
5:15 PM
@ASCII-only oh I got it reversed what you meant by that. In the f=v=>"f="+v+";f(f)";f(f) style of quine, the function isn't reading itself, it's the f outside passing it in. So I guess my definition doesn't change much though IMO f=v=>"f="+v+";f(f)";f(f) is less cheaty than f=v=>"f="+f+";f()";f()
 
6:11 PM
0
A: Sandbox for Proposed Challenges

pfgNice Tile Connector Your task is to connect the tiles given to you in the input by removing the lines on sides they connect Input A set of tiles that are not yet connected Output The tiles with the walls removed in the right places to connect them Method Each tile in the input looks like t...

 
@DJMcMayhem Thanks! If you can do it today fine, otherwise I’ll post it tomorrow
 
6:38 PM
Does anyone here have or plan to buy an Oculus Go?
 
not me, I don't like the concept of VR...
 
 
2 hours later…
8:17 PM
I'm not sure how this happened but I just realized I have a browser tab open with the Dyalog APL documentation entry for Soup.
@Adám Please explain
 
@Pavel I have no idea (same goes for today's tweet). I suggest you email john@ and ask.
 
XD
So to be clear, there's is not a soup builtin.
 
@Pavel What would that even do?
@Pavel I think the point is that you have to pay extra for meat, and even more for absolutely no meat. Nothing to do with APL.
 
¯\_(ツ)_/¯
 
Print the soup of the day at the APL headquarter's staff cafeteria.
 
8:22 PM
@Adám give it either Vegetable soup, Chicken soup or Vegan soup and it returns 1, 2 or 3 correspondingly :p
 
(I didn't say it was a good built-in...)
 
@AdmBorkBork That's me. And it's almost always (vegetable) mushroom soup. This week, I went all exotic and added baked tofu.
3
 
You rebel.
 
CMC: given one of the strings Vegetable soup, Chicken soup or Vegan soup, return 1, 2 or 3 correspondingly.
 
@Adám I was thinking whether or not to CMC that :p
 
8:27 PM
@Adám Ruby -p: $_={"le"=>1,"en"=>2,"an"=>3}[$_[/..(?= )/]]
 
@Adám PowerShell, 44 bytes -- param($a)(2,(3,1)[$a-match'b'])[$a-match'V'] Try it online!
 
0
A: Sandbox for Proposed Challenges

AdmBorkBorkThe Add-Multiply-Add Sequence Given an integer n > 1, 1) Construct the range of numbers n, n-1, n-2, ... 3, 2, 1 and add them together 2) Take the individual digits of that number and multiply them together 3) Take the individual digits of that number and add them together 4) Repeat steps 2 and ...

 
@Adám SOGL, 6 bytes: 4WζH3‰. Provided is a link to a test suite, feel free to paste the raw input with the original code
 
@Pavel Dang, beating me by one ... hmm
 
@dzaima Nice. How does it work?
I can do it for 10 in APL.
 
8:30 PM
@Adám 4th chars unicode codepoint minus 1, pozitive moduled by 3
 
@dzaima pozitive ?
 
@Adám (x-1)%3+1, so in total, (codepoint-2)%3+1
 
As opposed to nagative
 
@AdmBorkBork facepalm it's annoying when your native language bleeds into the knowledge of another
 
I can understand that. I have enough problems with English and I’m a native speaker
 
ngn
8:38 PM
@dzaima transfer
 
00:00 - 21:0021:00 - 00:00

« first day (2650 days earlier)      last day (2196 days later) »