i'm also partial to for loops just effectively being some kind of generator map expression, in which case you could have the default return from each iteration be nothing and have a fold that doesn't evaluate past the first something
@AidenChow you think this is bad? This? This chicanery? People have done worse! Those tide pods! Are you telling me people just happen to eat washing detergent like that? No! It orchestrated it! Social media! It encouraged people to pour sleeping medication on chicken!
what's new and unique about tiktok is how monolithically widespread it's gotten and how far the recommendation algorithm goes but wackass viral trends have a long and storied history on youtube and twitter
guys i have this desmos answer to the sonar impostor q that i think is working but not entirely sure cuz its taking forever to run like most of the test cases, but for the test cases that it could run in reasonable time it seems to be working... u think its fine for me to post or no
alr just making sure, now time to actually golf my code cuz i was actually just making sure before i spend effort to golf lmfao
also i make my own smaller test case and check with pre-existing answers and it seem to match my program, gives me a little confidence that my program is doing the correct thing lol
time to change my somewhat sensically named variables to completely not understandable one letter variables lmao
Repeating my CMM, do you guys think the staging ground could replace the sandbox? It's nice that you get badges for reviewing but maybe not ideal that one approve is enough to publish
Earlier this year, we wrote several posts about various user workflows in the Staging Ground. This post will pull a number of those elements together to focus on the overall question lifecycle, plus we will identify any changes that have been made since the previous posts. The previous posts can ...
The goal for this KotH, as a reminder, is to be too complex. So bots will be forced to specialize, just since it would take so long to design them otherwise
I'm thinking I'll probably wait for a simpler more successful one and piggyback off that, since if someone's first KotH is one intentionally designed to be overwhelmingly complicated, that maybe won't make a great impression :p
Point of current annoyance: npm semver.intersect doesn't take two ranges and return the intersection. It takes two ranges and returns a boolean indicating whether the intersection is non-empty.
If it did the former, I could find the intersection of several ranges in O(n). With the current interface, to determine whether it exists is O(n^2) I think
Context: I am trying to scan a package-lock.json and find the valid node versions for the packages contained within. That means I have to grab the supported node versions and then intersect them
Okay, I'm trying to decide if rivers/the ocean should have beaches
Advantages: They can be seen from further away, and less land is hydrated for agriculture purposes, making ocean-adjacent bases less OP Disadvantages: Waste of a terrain type, little gameplay function
Play turn-less chess
king-of-the-hill chess
In this challenge, you'll write a chess bot...but with a twist. Your bot can move at any time, so the faster you can think, the faster you can move. You'll write code for a custom CPU (so that precise timing is possible), and try to checkmate your oppo...
In this challenge, you're given a list of overlapping waves. Each wave is a finite list with n truthy values, then n falsy values, then n truthy and so on, where n is the wavelength (or half the wavelength i guess, but it really doesn't matter in this challenge). The values of a wave may have an ...
Would it be acceptable voting etiquette to upvote somebody's answer because it inspired me to outgolf them, not because I like their actual answer per se? I feel bad about not upvoting it... feels unsportsmanlike, but not sure if it'd be proper to upvote it either.
I don't think there's really all that much voting etiquette, most upvotes come from random drive-by HNQ voting, so if you're thinking at all about why you're voting for things, you're doing it more right than most people :p
Wow, y'all with your usernames that actually have meaning.
I literally just spent 5 minutes typing random keys until I ended up with something I deemed "cool" and "ironic". Having said that, I did want to make sure the letters L and X were present (for maximum coolness) and that there was a name ...
Unrelatedly, I've been debating whether to add comments to Trilangle. If so, they'd be line-comments starting with ; (as in many assemblies or lisps). I don't have any other plans for the semicolon and I already use it for comments in the pseudo-assembly syntax, but at the same time it doesn't necessarily feel like a feature that fits in the language
Oh here's one: what do you think the condensed form of this program should be?
#
! @
It's not #!@, because the interpreter skips the first line of the program if it starts with #!. So the condensed form is actually four characters, # !@
I originally did this to support Unix-style shebangs, but you could abuse this feature to put some plaintext before a program.
Mm, I just thought of a good reason not to add comments: It would break code like this bbrk24.github.io/Trilangle/#%22%3B%40o that uses semicolon as the operand to a push instruction
Currently unused characters include backtick, =;[], and most letters and numbers. So I have plenty of room to expand the instruction set