I once created a TI-BASIC program for calculating the unknown in suvat equations, although it took a long time to create the program, after it was finished, I was able to finish homework very fast
What general tips do you have for golfing in Nim? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Nim (e.g. "remove comments" is not an answer).
Please post one tip per answer.
The computer I'm using right now is a 5 year old laptop that is no longer portable, which is now hooked up to monitors and keyboard and mouse, pretending to be a desktop.
I published TorGateway, a sort of free alternative to TunnelBear. Which is what I use for my experiments when I don't want to deal with the full Tor browser.
After all the fun we've had with polyglot challenges in the (recent) past, how about a challenge where the output can be in two languages?
Your answer needs to accept boolean input b and output the text "true" or "false". The same code needs to output, when run in another language, "waar" or "on...
@Sp3000 I've been very impressed with what I've read about Nim since you mentioned it - I've downloaded it and am working through the tutorial. It seems like it could do with some more visibility...
Proof Golf
Please note that this is a completely different concept to code golf; I'm just posting it here because: a) I want to see what people think of it and b) it's 'golf' like code golf.
You are given a set of axioms / theorems you are allowed to assume true. You cannot assume anything else...
Introduction
A xenodrome in base 𝑛 is an integer where all of its digits in base 𝑛 are different. Here are some OEIS sequences of xenodromes.
For example, in base 16, FACE, 42 and FEDCBA9876543210 are some xenodromes (Which are 64206, 66 and 18364758544493064720 in base 10), but 11 and DEFACED...
@PhiNotPi I read meta code bots, and a couple of thoughts: 1. Make the bots editable at the end of their turn. This dramatically increases the breadth of viable zapping. The other option is to have all bots edited at the same time (but run sequentially). 2. You should make it so bots have to drop off 10 or so gems in their base (one side of the board). This leads to strategies of theft, trying to modify opponents so they deliver to you, and the like
Showcase what makes your programming language different from all others is currently closed as a duplicate of Showcase your language one vote at a time, which is currently locked.
The reasoning is that once the proposal here is applied to Showcase your language one vote at a time, answers to Sho...
@El'endiaStarman Not really that interesting, but answer coming soon in a sandbox challenge
(No, it is not the track of a snail.)
(It is the minimum ploted against the maximum of some sequence of images. but what I wanted was to plot the minimum and maximum seperately in the same graph:)
@Geobits I can't believe I missed this! If you use the class as an actual class, then the member variables will work. But lets say I want to implement a class totally differently (and there isn't an interface), you could say "B implements A", which basically uses A as an interface (and not a class)
TIL a bigger monitor, zooming in, and sitting farther away is a great substitute for working out why my computer no longer does antialiasing on any browser except that one
Sometimes people seem to downvote the question rather than wait for an answer to vote on, but you put an answer there right from the start this time so maybe it's disapproval of the question itself
Figure and Ground
code-golfwhitespacesource-layout
For this challenge you should create two programs which print figure and ground, respectively. However, the two programs will be closely related. Here is how to construct them:
Write a base code consisting of N non-whitespace characters. This...
I know, it's pretty bad, but that's beside the point. I want TIO to have ready-to-use links, and I currently support HTML and Markdown. Wondering if BBCode would be worth adding.