Your goal is to write a program that prints a number. The bigger the number, the more points you'll get. But be careful! Code length is both limited and heavily weighted in the scoring function. Your printed number will be divided by the cube of the number of bytes you used for your solution.
So...
The gravitational binding energy of a planet is the amount of energy required to separate every tiny piece of it so that no piece will orbit or collide with another piece. For a uniform sphere, Wikipedia gives this formula:
3GM2
-----
5R
Where G is the gravitational constant (6.672e-...
@StevenH. you're looking at things backwards: the Jelly codepage is (probably) copyrightable (it's a creative work), so you can't use it without a license
as such, if you want to use it, I'd recommend just mentioning it in your licenses file
(it's usual for software projects to have a large file listing all its components and where they came from / how they're licensed)
Anonymous
Since the Jelly codepage was created for Jelly (and as far as I know, no identical codepage has been created previously), and it is a critical component of Jelly, it is also covered by the MIT License.
@Mego the MIT license only explicitly says that the copyright conditions need to be copied into copies and substantial portions; however, I think the point here is that even an insubstantial portion would still be copyrighted under those terms, so you'd probably have to copy the license anyway to clarify what they are
Anonymous
@ais523 Yes, but given that the Jelly codepage was created for Jelly, it would most likely be considered a substantial portion.
I don't think it works that way; just because X is only explainable in terms of Y doesn't mean that X is substantial relative to the size as a whole of Y
but the point is that in this case, you don't really have to work it out anyway
it's only good practice to copy the license terms of something into your license documentation whether they explicitly tell you to or not
the explicit request is only there so that a) people who are unfamiliar with copyright will obey it and b) to make it easier to prove that someone broke the license, if they did indeed break the license
Anonymous
The Jelly codepage did not exist before Dennis created it for Jelly. Because of that fact, it could be argued that the codepage is a substantial portion by the terms of the license agreement. In contrast, I couldn't claim that CP437 is a substantial portion of Seriously/Actually, because it existed long before the languages did.
for what it's worth, I think CP437 is as much (or almost as much) a part of Seriously as Jelly's codepage is of Jelly; the difference is that you don't own the copyright on it and thus it's not required to credit you for that reason
Anonymous
@ais523 I agree, but that's from the POV of programmers. We know how simple it would be to swap out the codepages. In the eyes of copyright law, though, the fact that the Jelly codepage was created for Jelly ties it together as the same intellectual property.
the point under dispute is not "who owns the copyright for Jelly's codepage"
it's "what are the conditions, under the MIT license, for licensing a relatively small part of an existing piece of software"
Anonymous
Yes, and I gave an explanation for why the Jelly codepage would be legally considered a substantial portion of Jelly under the terms of the MIT License (and why, for the same reasons, CP437 would not be legally considered a substantial portion of Seriously/Actually under the terms of the MIT License).
yes, but the CP437 argument is missing the point; CP437 isn't a portion of the covered work at all, so whether it's substantial or not has nothing to do with the argument
Anonymous
Well no - I was merely presenting that as a counterexample
likewise, there are some things which are undoubtedly copyrightable (such as the order in which Jelly's quicks appear in the source code) but almost certainly don't rise to the requirement to become copyrightable, because they're a) entirely besides the point and b) trivial
s/copyrightable/substantial portions/
apparently I can't edit in corrections if I don't notice them immediately
@ais523 Just to clarify, does this mean that any work that uses Jelly's code page has the MIT license apply to just the Jelly code page portion? Or to the entire project? I want to make absolutely sure that I know what I'm getting into
Anonymous
7:28 AM
@StevenH. Use of the Jelly code page probably requires compliance with the MIT License as applied to the Jelly source code. It's not 100% clear, but better safe than sorry.
@StevenH. I really doubt that a "@ Dennis would you mind me using the Jelly code page for ..." wouldn't be a bother to him, given that he's a mod, runs TIO and basically gets pinged or notified at least every hour. Up to you though
Fair enough. @Dennis I'm starting development on a golfing language I can call my own and wanted to use the Jelly code page for it. Can I use that code page for this project, and if so how should I credit you?
@StevenH. If you don't end up using Dennis's, consider creating your own codepage or just abandoning a codepage entirely and using an abstracted "verbose" layer like Charcoal with a translator
Given a square matrix, output the matrix's eigenvalues. Each eigenvalue should be repeated a number of times equal to its algebraic multiplicity.
The eigenvalues of a matrix A are scalar values λ such that, for some column vector v, A*v = λ*v. They are also the solutions to the characteristic po...
There are several questions regarding this game, even a king-of-the-hill contest here. But I think all those challenges and contests need a way to automatically determine the winner of a game. So:
Challenge
Given two inputs in the range ["rock", "paper", "scissors", "lizard", "spock"] represent...
It's all in the title...
Take as input a positive integer n>=12 and... do what the title says
Yes, this is on OEIS A187924
Some test cases
12 -> 912
13 -> 11713
14 -> 6314
15 -> 915
16 -> 3616
17 -> 15317
18 -> 918
19 -> 17119
20 -> 9920
40 -> 1999840
100-> 9999999999910...
Oh my god... I always simply clicked on "Programming Puzzles & Code Golf" and was confused, never noticed "Questions" wasn't highlighted... Thank you, I feel stupid now...
Probably because it is designed that way... Consider Jelly: L=4 (literally length equal to 4) takes 3 bytes, & takes 1 byte, E (all equal) take 1 byte.
doing the multiplication and then dividing worked with my initial strategy of using vectorizing product and then appending them all to each other and doing ÷/ but then that stopped working when I realized I needed to square the mass and I didn't notice that that was causing me to have extra bytes :P
Forget BIDMAS! Write a program that takes an equation and an operator precedence order, and prints the result.
Example input format:
1.2+3.4*5.6/7.8-9.0 */+-
Rules & guidelines:
The only operators that are defined are addition (+), subtraction (-), multiplication (*), and division (/). No p...
File Selection code-golf
In this challenge, you will be given a number of files and a series of instructions corresponding to simulated key-mouse press combinations performed in a file explorer (rules below) and you are to return the files that are selected.
There are two "program states" you n...
@cairdcoinheringaahing Yes. Like I said, chat's been much quieter cause of Thanksgiving. I can't imagine what it'll be like in here around Christmas when 1) the break is longer and 2) it's not just a US holiday
Winter Bash: Add the Hat
code-golf graphical-output stack-exchange-api
Winter Bash is here, and with it HATS! Hats are added as an SVG layer over a user's avatar and can be rearranged how they see fit. This leads to an interesting challenge.
Input
A user ID. You can decide what site it's f...
So a year is 365.2422... days and there's an idea that instead of switching leap years in a 4, 100, 400 pattern, to use a 4, 128, 8 thousand something pattern
So say ISO decided that 2048, 2176, 2304, ... etc, i.e. all the years divisible by 128, wouldn't be leap years, but every other year divisible by 4 was (won't worry about the 8000 something)
8800 something
Let me find it
Could you make a Sakomoto-like algorithm for that thing
@Poke Summary: "An [esolang] is a programming language designed to test the boundaries of computer programming language design, as a proof of concept, as software art, as a hacking interface to another language (particularly functional programming or procedural programming languages), or as a joke."
@cairdcoinheringaahing I didn't, as I'm not a UK citizen. I would probably have voted to stay, but only because that's currently most beneficial to me personally. I do believe the EU was bound to fail from the outset.
Out of curiosity, could someone explain in a TL;DR way what the pros and cons of Brexit were? I don't really know what each side was hoping to accomplish
@ETHproductions Well, Trump isn't racist per se, rather he is willing to say or do anything to distract from what he's trying to do (such as removing ObamaCare)
TBQH I have no idea what happened with Brexit. It dropped out of the international news cycle before there was a chance for the government to actually do anything.
So to see if I understand this correctly, from a purely economic standpoint Pro Brexit because less taxes, but Con Brexit because more difficult trade?
From a social standpoint, Pro Brexit because better immigration laws, but Con Brexit because racist?
So choosing to leave was the worst possible decision. And, the thing that really annoys me is that the reason the vote to leave won was mainly due to people over the age of 65, yet if people between 16-18 were given the vote, it would have been overwhelmingly remain
@DJMcMayhem Depends on your definition of 'better'. Personally, I don't mind allowing people immigrating in, as they do the jobs British people don't want to do, and contribute to the economy, so (controlled) immigration is win-win
None of my sixth form teachers liked it, nor do any of my lecturers nor do any of an entire conference of people at work but a couple of my friends think it could be ok
128 years? Leap year reform
calendar math
The solar year is 365 days, 5 hours, 48 minutes, 45 seconds, and 138 milliseconds, according to this video. With the current Gregorian calendar the rules for leap years are as follows
if (year is not divisible by 4) then COMMON YEAR
else if (year is no...
@J.Sallé Hmm, my college has a "<CollegeName>Wifi" network that I use and a "<CollegeName>Guest" for guests (requires a special login though), but I just noticed we also have "eduroam" and "edustaff" networks
Is that standard setup, or do most colleges just use the eduroam network directly?