« first day (3836 days earlier)      last day (998 days later) » 
00:00 - 21:0021:00 - 00:00

9:00 PM
@AviFS I like this one too
Although I really like "Language of the weak" :P /s
 
learn you a new language for great good
 
Learn You a Lang for Great Good :P
 
ha, beat you to it
 
Fricking how? :P
 
Even better ^^^^
 
9:02 PM
0
Q: Chat Event: Learn-a-lang

AviFSAdvertisement Been pushing off learning that one lang for too long? Maybe it doesn't qualify for LotM status? Then [name pending] is for you! This is perfect for languages which are too popular for LotM, or which have already been done a while back. But we're not discriminating, bring your fave l...

 
@cairdcoinheringaahing Because you weren't using https when sending packets from your brain :P
 
^
 
Thanks a bunch everyone! Posted!
 
@cairdcoinheringaahing Haskell is one of those languages I've kinda wanted to learn and never gotten around to, so... it fits.
 
@user Weren't you the one helping me write it up earlier?
@cairdcoinheringaahing Oh no! That's awesome
Slightly too long for the title anyway, but should definitely add to the CW of name ideas
 
9:03 PM
@AviFS I will neither accept nor deny that :P
 
Well you're getting credit for it :P
See credits
 
So...may we write answers to the questions in the question?
 
That's sort of what questions are for - answering :P
 
@AviFS Thanks, I am particularly proud of the cocks I contributed to the question
@cairdcoinheringaahing lol
 
9:04 PM
I meant - should they all be CW things with a list of suggestions?
@cairdcoinheringaahing shuttlecock, cocktail, and a coconut
 
Hey @JoKing!!
Just sent in a chat event idea. Was caird's
 
IIRC mods get notifications for new meta posts, so I suspect they already know :P
 
Wait! We don't have a tag for events
Oh...
I'm just enjoying telling everyone tbh, haha
And I figured they might have some ideas/thoughts
 
@cairdcoinheringaahing We do (but the mod symbol doesn't light up on mobile for some reason)
 
GUYS! I'M FINALLY DONE
That was like an hour and a half of my life
Yup... 2 hours
Back to actually fun projects :P
I don't understand how you guys do this
 
9:11 PM
I've spent longer on stuff like this
I did enjoy writing it
 
Just on the explanation part?
 
Yeah
 
Ouch
 
But it's funny that it has the worst score, it's just really well-thought out
 
Yeah, I can def do that
 
9:12 PM
It it my most popular answer
 
Well, I upvoted
 
@NewPosts How does Learn You a Language for Great Good sound @AviFS?
 
I didn't even read it
But upvoted :P
@user Caird added that!
 
I've already repcapped today :p
 
@AviFS I had "Lang" instead of "Language"
 
9:13 PM
@AviFS rak did, actually
 
@Ausername Show-off
Yeah.. we have to figure out what to do about those minor variations
I think I'll group them into families, just a sec
 
I posted challenges today and yesterday, what do you expect?
 
i like this idea. a good thought might be that the challenges don't neccesarily have to be new ones, you can also highlight existing challenges that don't have an answer in that language, or ones that do but might be improvable
 
@user I didn't edit it in
 
Oh, if Avi was talking about the editing, then I did that
 
9:16 PM
@cairdcoinheringaahing that only matters if i actually have an SE page open and am looking at it :p
 
@JoKing Oooh, I really like that idea!
People could also collab on harder ones that don't have an answer in that lang towards the end
@JoKing Do you want to suggest that? I'm a bit written-out and I don't want to get a second wind!
TODO: Add JoKing's idea, someone & anyone!
Hmm, github doesn't recognize perl6 extension as .p6
 
Isn't Perl 6 now Raku?
 
Maybe, that does sound familiar
I don't really know what I'm talking about, tbh
I just noticed the 'other' by GH and the '.ph' by JoKing
 
9:43 PM
0
A: Sandbox for Proposed Challenges

A usernameMove the matrix Given a matrix and two parameters x and y, translate the matrix y units down and x units to the right. For example, with the matrix [[0,0,1,0], [0,1,1,1], [1,1,0,0], [0,1,0,0]] And given x and y as 1,2 respectively: [[0,1,0,0], [0,0,1,0], [0,1,1,1], [1,1,0,0]] Move the mat...

 
@cairdcoinheringaahing Piet, 24 codels:
 
I'm interested, how did you write that?
 
@user As in, what was my coding process, or what tools did I use?
 
What tools did you use?
 
That do be much cool
 
9:49 PM
1) Esolangs article, 2) online IDE, and 3) my ASCII Piet translator which has switches for outputting both raw PNGs for the pretty picture and hexdumps of PNGs for the TIO interpreter.
 
> my ASCII Piet translator
 
Is Fishing on TIO?
 
Why do I get the feeling that you've used Piet before? :P
@Ausername Doesn't look like it
 
@cairdcoinheringaahing The funny thing is, I've actually never written a program in Piet before today.
 
It's all good, someone else made it and then DLosc bought it from them :P
@DLosc Riiiiiiiiiiiiight :P
 
9:50 PM
How do ruby heredoc strings work again?
 
I've seen it, read the Esolangs article, had a vague idea of how it worked... and I thought it was a shame that the current consensus here is that it should be scored by the size of the image file, when it's obvious that each codel is less than 1 byte of information. So I made a codepage for it.
BTW, if you agree that one-byte-per-codel is a better scoring method for Piet than "number of bytes in the PNG file," here's a meta post you can upvote. </shameless-plug>
 
> We should stop making up new scoring schemes for programming languages, which only serves to make things more difficult. Code golf contests are scored in bytes, so that's what matters. Everything else is artifical and prone to not take all details into account.
 
@user It also helps that triangular numbers have a formula that's super easy to implement in Piet.
 
I stand by Dennis' answer tbh. I hate that so many languages have to have new ways of scoring, when there is a simple and easy way to score everything
 
What's your opinion on all the languages with custom codepages?
 
9:57 PM
I think they make the encoding seem more complicated than it actually is
But I still use them, mainly out of convenience
 
?
As in, the true form of the language is the (potentially unprintable) bytes, and the veneer of a mapping from those bytes to easily-displayable characters makes it more complicated?
 
"Custom code page" doesn't really mean anything. A Jelly program is just a collection of bytes (like all programs). You could use the standard Unicode characters to display it, but it wouldn't look as nice. Therefore, Dennis choose to "reassign" the characters that the bytes represent. But ultimately, “3ḅaÄ—;Å“» is just the byte stream fe 33 d4 61 ea 3b 1e fb
@DLosc Exactly
The number of times I've had "This is 7 characters, but not 7 bytes" commented below my Jelly answers is annoyingly high, because a lot of people don't get that custom codepages are just veneers
 
That's fair.
APL did kind of open a can of worms there.
 
I may be a bit of a purist, but I maintain that if you have an interpreter which accepts a stream of n bytes that does what the challenge asks for, then you can claim a score of n. I don't really care about the arguments "Oh, but I can just write an encoder to do that, so why complicate it?" because I think that yes, you should complicate it if you want to claim that score
 
So would you argue that ASCII Piet would be acceptable as a dialect of Piet iff there were a full interpreter that understood it, rather than a translator program whose output has to be fed into a different interpreter? (Not making any promises here, just hypothetically for the sake of argument)
 
10:06 PM
Yes
Things like shell piping and whatever (e.g. python unascii.py prog | python piet_interpreter.py) make it slightly more complicated, and I don't know enough about shells to pass informed judgement on those, but if people who do think that counts as a single language, I'll defer to them
 
In any case, it would be easy enough to make a bash or PowerShell script that pipes the two together, and then you could call that script the interpreter.
 
‽
 
While I welcome 945 and 948, please also say hello to 946 and 947 from me. They also deserve a great, welcomimg start of their career at SE. — rene Jul 28 at 20:47
rene welcomed them :P
But also, SE has close to 1000 total (former or current) staff, and 10 of them are on the CM team. I'm guesstimating that another 50 have, at one point, had a staff diamond. That's ~5% of their staff. I'd imagine that #946 is an accountant, or an intern or someone who is useful to the company, but will almost never interact with the communities in such a way that we'd need introductions :P
 
10:29 PM
oh
 
10:59 PM
@Ausername Bubblegum on TIO only accepts hexdumps. If the input isn't a valid hexdump, it can't count it properly
 
CMC: Given a string of alphanumeric characters, return all of its prefixes (including the empty string). Reference solution
I have a 38-byte function answer in JavaScript, but I'm wondering if it can be shorter.
 
Scala: ""+:_.inits.toSeq
 
Got it down to 37 in JS
 
11:10 PM
Stumbled upon this reddit post, and there's all kinds of weird subreddits: everything from r/potatosalad (which has nothing to do with potato salad for some reason) to wolves eating watermelons
 
Ever heard of r/fedlegs?
 
No, why?
 
It fits as an answer to that question :P
 
wtf
 
@rak1507 Maybe write some of the missing articles on APL Wiki?
 
11:13 PM
@user r/Amish is worth a browse :P
 
@DLosc All I can get is 47 :(
@cairdcoinheringaahing Okay, that was funny
155k members too lol
 
If you're a game of thrones fan, r/ThingsJonSnowKnows is also great :P
 
This is gold :P
 
r/trees and r/marijuanaenthusiasts are a couple of good ones too :P
 
lol, aren't those the ones that got switched?
 
11:17 PM
 
Yeah, stoners "stole" r/trees, so a bunch of arborists created r/marijuanaenthusiasts as "revenge" :P
 
@DLosc Smart, thanks!
 
Totally different approach from mine, BTW
 
Oof, I tried mapping, but f=x=>[...Array(x.length).keys()].map(i=>x.slice(0,i)) comes out to 53 bytes
@DLosc Hmm, I suppose yours yields the empty string naturally?
Anyone know how to get overlapping matches with regex in JS?
 
@user Actually, no. The 37-byte version computes all the non-empty prefixes and then tacks the empty string on separately.
 
11:22 PM
Huh
 
@user This all started because I found a really neat way to do it with regex, but unfortunately it's much longer in JS.
matchAll is a bit clunky.
 
It tells me matchAll isn't even a function :/
Whoops, nvm, I was using it on the regex, not the string
 
It's a pretty recent addition, I believe
 
Oh, that's why TIO throws up
 
(and don't get me wrong, it's much better than the previous options, from what I've seen)
@user Hint ;)
 
11:28 PM
Ohh
I assume it's something like x=>[...x].map((_,i)=>x.slice(0,i)) then?
Oddly enough, the output becomes ,a,ab, as if it's not a proper list anymore
 
@user Yep, that's most of the way to my 38-byte version.
Oh wait... actually, I just found another golf so now it's 36.
 
0
Q: Flatten a parabola keeping the distances between points along the curve constant

uhohBackground Math SE's HNQ How to straighten a parabola? has 4,000+ views, ~60 up votes, 16 bookmarks and six answers so far and has a related companion HNQ in Mathematica SE How to straighten a curve? which includes a second part asking to move a point cloud along with the curve that we can ignore...

 
I wish this worked
 
@user Use lookaheads
 
@user Hm, interesting. But if it did, wouldn't it just be x.slice(0) a bunch of times?
 
11:35 PM
I was hoping for (a,i)=>x.slice(a,i), where a is always 0
 
@user Why the bread
 
ikr
 
Are you guys trying to get prefixes of a string
 
Yeah
 
x=>x.match(/(?=^.*)./g)isn'tworking :p
 
11:38 PM
You can use * inside lookaheads/behinds?
 
Maybe
maybe not
no clue
 
In JavaScript you can
Not in Python
 
@cairdcoinheringaahing Another subreddit in that vein (it contains all the evidence that vaccines cause autism)
 
x=>[...x].map((_,i)=>x.slice(i)) is the best you can get yeah
reversed tho
 
I don't get why that prints the list weird tho
 
11:41 PM
@Ausername My regex solution is s=>[...s.matchAll(/(?<=(.*))/g)].map(g=>g[1]) (doesn't work on TIO)
 
Oh nice
 
@Ausername It doesn't put quotes around the string or brackets around the list for some reason
 
What is ?<= again?
 
Lookbehind
So basically it iterates over every zero-length match and puts the characters before the match in group 1.
But then I have to use an extra map to get the results of group 1 out of each match object, so it ends up too verbose.
@user r/chickenswearingpants has me wondering what "chicken swearing pants" are
 
@lyxal Hi
 
11:47 PM
Heya :p
 
Do you guys know any userscripts that just wrap your js to keep it from running forever?
I keep writing js interpreters and freezing up my browser, and then it takes forever to restart, lmao
 
No. Because I don't use JavaScript
 
@DLosc Visualization :P
 
I tried wrapping it all in a MAX_ITERS thing, but that's not working and I don't particularly want to try and figure that part out right now
 
@user I...i don't think I will
 
11:49 PM
...
 
@user See, I was thinking maybe the pants were cowardly.
 
HIhiHiHiHIHiHHhiHIHHhhIIHihiIii!1!
 
My fans are going at a gazillion speed... this'll be the end of me
 
I think that's a known difficulty with JavaScript. It's single-threaded and hard to interrupt.
 
When my fans turn on, it means either I'm running fifteen nested bash and zsh profiles, I've tried to calculate the first 1 million fibbonachi numbers, or I updated everything at once.
 
11:53 PM
 
I love how everything's labeled :P
 
Normally, I wouldn't worry about people getting it, but since we're in TNB... :P
 
burrrn
 
00:00 - 21:0021:00 - 00:00

« first day (3836 days earlier)      last day (998 days later) »