also I was using the a and b or c trick rather than b if a else c thing in my hackathon because it was shorter lol and that turned out to be a minor little bug rip
@Mr.Xcoder nah I'm trying the next sequence in Positron :P Not because I can post another solution, but just for fun (seeing how much I can do within the restrictions of the world's most buggy "practical" language lol)
I love that feeling, when the chemistry teacher asks you to solve a problem, you do so (well), and everyone else stares at you because they don't have a clue about what you've written :P
@Mr.Xcoder TFW you have a programming problem you need to solve, you do so (well), and you then stare at your solution because you don't have a clue about what you've written :P
@HyperNeutrino Nah, me neither, its just when they ask you a question and you use A-level language, and the rest of class looks at you like you're crazy, even better :P
@Mr.Xcoder We have "Science" on our timetables, but its split into biology chemistry and physics lessons
@FunkyComputerMan I thought it could go either way (leaning toward looking for help), but 4 others marked it as off topic because it's a stack overflow question. Either way it's now deleted by the author.
i'm starting to think of ideas for one; i'm wondering: should (ŒṖL) I (ah ok I might make one too) make it relatively smaller or make it a big one like the ant one?
@cairdcoinheringaahing yeah true; I also had my gr10 science teacher say to me "alex too much math, my head's going to explode" because I was talking to one of my classmates about plotting three datapoints into a quadratic relation to see if it would make sense that way :P (I mean that's like grade 10 math isn't it?)
@Mr.Xcoder I mean if I make it bigger it's probably going to end up being completed after your/caird's koth's period of major attention so I wouldn't drain your competitor base :P unless you want to make a big one, in which case I'll do the opposite to avoid us competing for competition :P
EDIT: This has already been reported site-wide here.
When I clicked the bar to show an answer which had been submitted after I had loaded the page, the new answer was loaded, but above the pagination controls. See the screenshot below (complete with freehand circle) for clarification.
@Mr.Xcoder Dyalog APL, 5 bytes, takes list length as argument: 2*-∘1 two to the power of one less than the argument. There are length-1 potential splitting points. Each can either have a split or not.
Little Boxes
code-golf ascii-art
There's a song called Little Boxes about suburban sprawl that has lyrics as follows:
Little boxes on the hillside,
Little boxes made of ticky tacky,
Little boxes on the hillside,
Little boxes all the same.
There's a green one and a pink one
And a b...
You are given a wall of dimensions W x H, and a number of bullets, B (all integers > 0). You will fire all B bullets into the wall, which is a grid, uniformly at random. That is, each bullet fired must have an equal chance of landing in every cell on the grid. Cells on the grid look like this:...
Challenge
Your challenge is simply to write a program in the language of your choosing that when run, determines the highest possible score for a board of Scrabble - For the sake of this challenge, a few rules have been modified.
Notably, bonus squares are counted for every single word on the b...
oooh...better idea. For the people that want to have a "flag" for different versions of their code: Simply create multiple interpreters for each set of common flags, and name them all the same thing
DASL (Datapoint's Advanced Systems Language) was a programming language and compiler proprietary to Datapoint. Primarily influenced by Pascal with some C touches, it was created in the early 1980s by Gene Hughes.
The compiler output was assembly language, which was typically processed through a peep-hole optimizer before the assembler and linker.
Reflecting its name, DASL was used for systems programming, mainly by the vendor itself....
The DASL Programming Language (Distributed Application Specification Language) is a high-level, strongly typed programming language originally developed at Sun Microsystems Laboratories between 1999 and 2003 as part of the Ace Project. The goals of the project were to enable rapid development of web-based applications based on Sun's J2EE architecture, and to eliminate the steep learning curve of platform-specific details.
DASL defines an application as a domain model with one or more logical presentation models, where a logical presentation model consists of a choreography of the domain model objects...
Janus is a computer programming language partially described by K. Kahn and Vijay A. Saraswat in "Actors as a special case of concurrent constraint (logic) programming", in SIGPLAN Notices, October 1990. Janus is a concurrent constraint language without backtracking.
Janus models concurrency through the use of bag channels. Code that needs to send a message to a process does so by constraining a bag to be the union of another bag and the singleton bag of the message. The other bag is then available to be constrained for sending subsequent messages.
The process receives the message by matching the...
Janus is a time-reversible programming language written at Caltech in 1982. The operational semantics of the language were formally specified, together with a program inverter and an invertible self-interpreter, in 2007 by Tetsuo Yokoyama and Robert Glück. A Janus inverter and interpreter is made freely available by the TOPPS research group at DIKU. Another Janus interpreter was implemented in Prolog in 2009. The below summarises the language presented in the 2007 paper.
Janus is an imperative programming language with a global store (there is no stack or heap allocation). Janus is a reversible...
@NathanMerrill That was a preview release. I remember this coming up before (I think it was here in TNB), and someone found the actual full release, dated in 2009.
Background
In Boggle, a round is scored by adding up the points for each unique word a player has found (i.e. any word that more than one player has found is worth 0 points). The points are calculated based on the number of letters in each word, as follows:
3 letters: 1 point
4 letters: 1 poin...
Nichomachus's Theorem relates the square of a sum to the sum of cubes:
and has a beautiful geometric visualization:
Challenge: Create the 2d part of this visualization in ascii.
You will need a minimum of four "colors." Two to distinguish between regions within a "strip" (ie, the differen...
like, are trailing whitespaces allowed? answered in comments...leading whitespaces? (...)...leading or trailing lines with whitespaces? can we use another characters in place of space and # as long as they're distinct?
How can we output this? ASCII only, graph-like like Stewie commented, etc? — Riker12 secs ago
@cairdcoinheringaahing you mean in the challenge body? yeah that's technically an issue too, although one of the less important ones, as there is a code-golf tag already
If a challenge is tagged with code-golf or fastest-code, do you really have to say that that is the winning criteria in the question? It seems pretty obvious, just by looking at the tags, right? After all, we don't say "this is a discussion" on questions tagged with discussion, do we?
However (j...
@cairdcoinheringaahing oh huh that exists. Though I agree it should be mentioned, it shouldn't be a close reason if a tag is there, someone should edit it in and explain why.
the how to ask tab should mention that the winning criteria should be in the post explicitly, as many probably posting actual challenges wouldn't have seen that meta post
Ulam spiral 2
Like Ulam, I had a boring moment and began drawing a spiral like him's. But his version is utterly incorrect, as the \ diagonal distorts the equation n^2.
The following picture illustrates an wrong Ulam spiral at left and a correct at right:
I challenge you to output a numbered...
> Ratios are sometimes used with three or more terms. The ratio of the dimensions of a "two by four" that is ten inches long is 2:4:10. A good concrete mix is sometimes quoted as 1:2:4 for the ratio of cement to sand to gravel.