I built a compiler for a grammar that had maybe five rules for a class project four years ago. I remember decades of English class better than I remember that. So that's all I can help you with.
@IsmaelMiguel I enjoy golfing in Python and Java, just to beat other Python and Java submissions. Golfing in a "look it up" language doesn't sound appealing.
@Zgarb Not really. I had 3, but deleted one. One simply outputs the code and does nothing, the other fills the stack with the source code. Those are 2 very distinct actions
@Rainbolt Thanks dude. How could I made this language in a way that would at least wake some curiosity to try it?
I don't see how the quine bits are/would be good for golfing (at least here). Any decent challenge related to quines would have a "no builtin quine functions" line, right?
@IsmaelMiguel I don't know. The last language that really sparked some interest here was Marbelous. Maybe you can take some pointers from its creators.
@Rainbolt true, but if you win because you have a generalised-quine built-in, that's probably less helpful than not winning and just showing off a nice unconventional paradigm
Finding all-but-one matches
This challenge is about writing code to solve the following problem.
Given two strings A and B, your code should output the start and end indices of a substring of A with the following properties.
The substring of A should also match some substring of B with up to ...
I just got invited to walk from one end of my building to the other end, three times, as a walk of shame for not turning in my steps every day. Along with two others.
but a) you need numbers with a finite maximum accuracy or you'll get -∞ score and b) there's a chance that outputting 1 for any input will be the best tactic
The first step is defining a "digit" of accuracy. If I take a random integer and round it to the ten's place, then I would round it by an average of 2.5.
I am about to write a puzzle, but I don't know what type it should be. I think of Code Golf, but perhaps it needs to allow libraries. Then, I don't know whether and how much I should penalize the use of a library (e.g. triple your score if you used a library)
Can I initially omit the puzzle type...
we're slowly reaching the point where I wish stars weren't anonymous so Doorknob could just ban the people from chat who keep starring those "Hi" messages
So I was making a chatbot in Ruby for SE chat, and I discovered that I could find out the starrer of a message.
I'm pretty sure stars, like votes, are supposed to be anonymous. Although this knowledge would help for cases of star trolls like this.
Here's the specific slice of code that do...
Story
This is based on a real world puzzle.
A colleague had a very old program. It was announced to be discontinued by the company and then it was really discontinued in 2009. Now I should use that program as well, but it is full of bugs and I refused to use it. Instead I wanted to help my coll...
I need to find a function f(x) such that... f(-x) = f(x) f(0) = 0 The average value from 0 to 5 is 1. The average value from 0 to 50 is 2. The average value from 0 to 500 is 3. etc.
@TheBestOne I haven't really taken a look at that challenge yet.
Monster Hunter looks pretty complex.
Also, I found this image, which would have been relevant to yesterday's discussion:
I am trying to find a way to measure how much "rounding" has been done to a number, in terms of "digits". If you have a random number and round it to the tens place (1 digit lost), you lose from 0 to 5 from the value.
I am trying to create a challenge in which the program tries to output a certain set of numbers, but is allowed to round the numbers some.
If you round a number by 2 digits, then your program length incurs a penalty of 2.
I want a way to assign a certain amount of error to a certain amount of rounding. I anticipate, also, that programs could output non-integers.
If I round a large set of random integers by two places (to the nearest hundred), the errors would be random numbers from 0 to 50, so I want the function to return an average value of 2 given random inputs from 0 to 50.
The first wrong digit wouldn't be useful in a case like 2000 -> 1999 or 120 -> 119. The percentage error is small.