I'd imagine it'd either turn it into a raw link, or have some weird messed up formatting
Welcome to the 9th Biweekly Mini Golf. During this event, we'll post some CMCs (Chat Mini Challenges) for you all to solve. A new one will be added every 5 to 10 minutes. Feel free to keep suggesting drafts during the event. If you have any questions, don't be afraid to ask. Good luck!
@cairdcoinheringaahing This one could work on main. If two vectors are parallel then the answer is 90 deg rotation of one of the inputs, otherwise the cross product of first 3 dimensions with zero padding works
@lyxal Does Vyxal have a way to apply a function to the stack without popping anything off of it? (like some kind of smart duplicate that duplicates as many items as needed)
i feel like i was taught the distinction between wholes and naturals in elementary school, so we might hope that it catches on from there, but i also don't recall it being brought up again for years afterwards if ever so most people probably just forget
That's the last of the BMG drafts that were starred, so we'll say that's the end of the event. Feel free to keep solving the posted challenges, and to solve the ones that weren't starred
@UnrelatedString I saw it for the very first time in a uni-level number theory textbook. "Whole numbers" doesn't simply have a translation in my language, we just literally call them "nonnegative integers"
The formal terms only include "positive integers" = "natural numbers", "negative integers", "nonnegative integers". No specific word for "whole numbers"
@emanresuA Have you heard the story of Darth Dennis the Jelly? I thought not. It's not a story the Vyxal golfers would tell you. Darth Dennis had the ability to manipulate the bytes themselves to create... golf. The Jelly side of code golf is a pathway to abilities some consider... unnatural.
Until, an apprentice, Darth Bubbler, outgolfed him while he rested. Ironic. He could outgolf others, but couldn't save himself from being outgolfed
@emanresuA Well, a bunch of us had learned about negative numbers already thanks to another teacher, so it was weird when the teacher marked stuff like 3-4=-1 wrong because 3-4=impossible ⍨
I don't think you were paying attention when you watched Star Wars. It's the story of a teenager becoming radicalised by an ancient religious cult into committing an act of mass terrorism
The Jedi aren't the good guys, the Sith are, as they tried to liberate the galaxy from an oppressive religious influence on a democratically elected government :P
@cairdcoinheringaahing Really? I thought it was the story of a wise, powerful old man fighting off puny rebels but finally being betrayed by one of the pupils that was closest to him
@cairdcoinheringaahing Yes, this is the way to interpret it
@DLosc The prequels are about a child, raised as a slave, being freed, only to be indoctrinated by a religious cult. He then begins to notice and understand the problems with that cult and attempts to leave it, only to be viciously attacked and mutilated by high-ranking members of that cult, all while protecting the democratically elected leader of the state he lives in
As for the sequels, I have no idea what's going on there :P
Related to this meta post, would I be able to use ? in a Vyxal program with no input to be able to push a 0 without it interfering with other numeric literals? For example, doing ?9 to push 0, then 9, instead of 0 9.
@BrowncatPrograms The way that numbers are parsed, it simply takes all consecutive number chars (0123456789.) and puts them together, then resolves anything where there’re multiple . (it drops everything from the second . on) and pushes that number
@AaronMiller Ok, normally, I'm fine with Vyxal being weird. This time, I'm going to open a PR to fix that behaviour tomorrow, because that's just wrong
@lyxal aspects from traditional languages should mean syntactical structures familiar to people not used to golf lang structures, not that obvious byte save mechanisms should be removed in favor of being how it works in traditional languages
@BrowncatPrograms (Ash has 10-16 as single byte constants, and a two byte representation for every number up to around 400, then three bytes can be used for everything up to around 67000)
Regular expressions are powerful tool in programmer's arsenal, but - there are some cases when they are not a best choice, or even outright harmful.
Simple example #1 is parsing HTML with regexp - a known road to numerous bugs. Probably, this also attributes to parsing in general.
But, are th...
Theoretical point: Perl regex can absolutely parse entire grammar for most esolangs, though I'm not an actual Perl user so I'm not sure how you can actually interpret the code using it
My practical point is the same as ^^
Usually I parse a lang with a parser library from start to the end (down to number and string literals etc) so I don't use regex per se
@cairdcoinheringaahing Charcoal is just a general purpose imperative language with some screen drawing built-ins, so I won't be surprised if you could write an actually good interpreter in it
Challenge
Implement the "greedy queens" sequence (OEIS: A065188).
Details
Taken from the OEIS page.
This permutation [of natural numbers] is produced by a simple greedy algorithm: starting from the top left corner, walk along each successive antidiagonal of an infinite chessboard and place a quee...