Using built-in functions to do the work
Mathematica is a big one for this, with Fibonacci[n] to calculate the n'th Fibonacci number.... I have no objection to these being posted as a side note within the main answer though - that is interesting and helps me learn different languages capabilitie...
Let n be some positive integer greater than 1. Let f(x) be a quadratic polynomial having integer coefficients with absolute value less than or equal to sqrt(n). The domains of all f(x) are the integers with absolute value strictly less than n.
Define the function F(n,k) to be the function that t...
@PhiNotPi I'm not sure. Here's an example, though. True is defined as the function which takes 2 arguments and returns the first one. False takes two arguments and returns the second one. If .. then .. else is then the function which takes three arguments and returns the first applied to the second applied to the third.
Lambda calculus (also written as λ-calculus) is a formal system in mathematical logic for expressing computation based on function abstraction and application using variable binding and substitution. First formulated by Alonzo Church to formalize the concept of effective computability, lambda calculus found early successes in the area of computability theory, such as a negative answer to Hilbert's Entscheidungsproblem. Lambda calculus is a conceptually simple universal model of computation (Turing showed in 1937 that Turing machines equaled the lambda calculus in expressiveness). The name derives...
BLC is just a binary encoding with i/o of Lambda Calculus
@Zgarb Do you think a golfing language based on Haskell concepts could be more compact than the ones we have? Or just cool? I don't really know Haskell. Seen examples, and it looks utterly weird to me.
@RetoKoradi The current golfing languages are similar lengths with dramatically different concepts, inticating that this is the base length for any system using one character for each simple operation / loop
@isaacg Spending about 2 minute reading up on Haskell, it somewhat goes along with a thought I had (but not really explored so far). I was thinking about using a stack based paradigm, but delaying the evaluation of values until they are used. No idea if this would hold water. Just one of the things that came up while brainstorming with myself. ;)
@isaacg Since PPCG probably contains the majority of Pyth code available anywhere, you can probably do some data gathering to find common sequences of characters, which are things that you could provide more built-ins for.
@PhiNotPi I don't think you can reliably identify "missing" operators by simple analysis of existing answers. Serious golfers may often choose a completely different solution just because it turns out 1 or 2 bytes shorter. So instead of using a sequence of operators to replace the "missing" operator, they may end up writing completely different code.
f(x) is a quadratic polynomial that is subject to the following conditions, where n is a positive integer.
f(x) has integer coefficients, each having absolute value less than or equal to n.
The domain of f(x) is the set of integers less than or equal to sqrt(n).
Define the "polynomiality" of ...
there's a note that "However, its support for lazyness is limited and does not extend to every command. " but it has infinite lists for example (and i haven't used it much)
@Calvin'sHobbies Good point. Now that you remind me, I did have (unexpressed) concerns about that one at the time, but it was well received. I still have this nagging worry that someone else will ask a question and say "but Calvin's Hobbies asks questions like that", but I guess a question type being difficult to design well shouldn't make it off topic.
@Doorknob Why not just delete it? It's old enough that no-one would lose rep.
@Calvin'sHobbies Yes: one. Going by the offline copy I have, which is from July last year, there are eleven sequences which only have one entry. The first is A058445, so it wouldn't yet affect any users. There are 103 sequences which only have two entries, of which the first is A001220. There were 17361 entries with fewer than 10 entries (about 7%).
@Calvin'sHobbies Off the top of my head, there are some sequences which are actually sets of numbers meeting a criterion where certain numbers are known to be in the set, but it's not known whether there are other numbers smaller than the largest known one which also meet the criterion.
@Sp3000 In CJam: DLosc qi3*2# ; edc would I think be X344./'.-qi=` ; yours would be almost identical; mine ties with DLosc: qimqmo
And I think the clear winner would be user 401, who doesn't post much but was last seen only a month ago, and who could submit the empty program in GolfScript.
I have class named account
i am entring information
account[0].id=5;
account[0].name=roben;
Another information
account[1].id=4;
account[1].name=roz;
The problem i wanna sort information, It depends on the id number of the smallest to largest with change name also
After sort
Index account.id
...
@PeterTaylor Can't just completely get rid of the second-highest-voted question on the entire site—at the very least, it has historical value, not to mention the >100 answers on it.
@Doorknob I say lock it. The question should have been closed in 2014 as well, but 42. It's the very definition of too broad and having it open, unlocked and at the top of the highest voted questions gives the impression that it's acceptable to post questions like this.
(Ironic that we both voted to reopen that question, huh?)
I was pretty close to saying I have no idea why this works, but it does!.
Sure learnt a lot of language for your quiz. Both esoteric and the one's of the interpreters. Why can't everybody just use Python or C for their reference implementations?
Is there any language that has a "map-eval" functionality? Let's say that the stack is (1 2 3) and I have an array of code blocks like [{+-} {*+}]. A map-eval function would result in an array like [2+3-1 2*3+1] which is [4 7]
this is mine, in case you find anything you can borrow to shorten yours: YXb{{_2$+\}*]}q~(*{_2*T+:T\,_ff{='\' ?}f{_W%'\'/er+\' e[}}%:..e>_z,f{Se]}N*_W%N@
@Dennis I think you did a great job on your spaces/tabs challenge. The spec is clear and it seems like an interesting, nontrivial problem. That said, I refuse to participate on principle. :P
@PeterTaylor Yes, I know. (I've actually used that in a CnR a few weeks ago.) I meant that my challenge, where you have to replace spaces with tabs, has no answers in golfing languages yet.
I am using Random forests in scikit-learn. I used feature_importances_ to see how much each feature is important in prediction goal. But I don't understand what is this score. Googling feature_importances_ says it is the mean decrease impurity. But I'm still confused whether this is the same as m...
I already had a gown for my B.A. graduation, and I bought a hood. (It was ex-rental: the rental company was getting rid of its real fur stock. It only cost twice as much as renting, and since I knew I'd be able to lend it to at least one cousin it made economic sense).
For my M.A. graduation I borrowed my father's gown, which was from a different university but in the same pattern. And I already had the hood.
It was at my university. If you don't have someone tell the Vice-Chancellor in Latin that you're an upstanding example of integrity, how could you ever be considered worthy of a degree?
He's the head honcho. (Actually for the B.A. graduation, at least, it was probably a Pro-Vice-Chancellor, one of his deputies). And the Latin is required by Tradition. Something like praesento vobis hos juvenes quos scio tam moribus quam doctrina idoneos esse ad assequendos titulum baccalaurei in artibus; idque tibi fide mea praesto totique Academiae. Serious stuff.
The guy who had to do it said that keeping a straight face was very hard.