« first day (3505 days earlier)      last day (1354 days later) » 

12:23 AM
@cairdcoinheringaahing The latest update to Whispers v3 is broken because there's no Quaternion in __types.
 
12:43 AM
@Razetime 'Cause you're not actually calling the function. ;) Remember function calls require parentheses: (fa). In this case, (f@<a) won't work either because @< is both a unary and a binary operator; you'll need a semicolon to make sure f and @<a parse as two separate expressions. TIO
(Maybe you wanted @> instead?)
@Razetime Okay, that threw me for a loop at first. The problem is that f is not the 6th command-line argument--it's the main function. So your expression involving f builds up a bigger function, which then gets returned from the main program and therefore printed.
You could use g@5 to access the last command-line arg: TIO. (Note also that ** is right-associative, so it'll evaluate the same way without the parentheses in this case.)
 
1:28 AM
@Bubbler Ugh, forgot about multiple files. I’ll upload the updated types files when I can get to my computer (should be ~8 hours, I have to sleep)
 
@DLosc ok no wonder, I was pulling my hair out for a while
@DLosc Yes, I wanted @> instead. but my approach still gives the wrong answer, so ¯\_(∘_∘)_/¯
 
1:46 AM
I'm currently working on Spiralize a Word Triangularly. Just got my Pip solution under 100 bytes. o_o But I think I found an optimization that will help...
 
wow
I wasn't able to figure out a proper pattern
My original idea was to create a right triangle and pad it with spaces
good luck
 
2:00 AM
I had two approaches in mind: The one I'm doing now involves making a grid of a bunch of spaces and placing the characters at the proper indices. The other sounds more like what you were thinking of--layering characters onto the outsides of a figure and padding it at the end. Not sure which one's going to turn out shorter (or if I'll even try both tonight).
 
2:20 AM
what do you think about brainfuck [fastest code] challenge?
 
@Xwtek Depends on the task, but there's no technical issues because an online interpreter that counts cycles is available.
 
The task is about arbitrary sized integer multiplication
 
Sounds good.
 
Thanks. I'll write it on the sandbox.
It's been a long time since I participated here.
 
 
1 hour later…
3:43 AM
0
Q: Write a "Hello" interpreter

the-cobaltWrite a "Hello" interpreter Background Hello is a language "written" by Anne Veling, which errors if the program does not contain only h, and will print Hello World for every h Task You are to write an interpreter/compiler for Hello. Example in Python i = input("Program: ") for a in i: if a !...

 
 
1 hour later…
4:46 AM
0
A: Sandbox for Proposed Challenges

XwtekBrainfuck arbitrary precision multiplication fastest-code code-challenge brainfuck Goal The goal is to multiply two numbers in the shortest amount of cycle. The Input The input is two numbers written decimally separated by a separator of your choice. The number is NOT restricted by the size of th...

 
 
1 hour later…
6:13 AM
1
Q: How Do I Include Newlines in Input 05AB1E?

LyxalSay I have this input: hhhhh How do I capture the newline in that input in 05ab1e. I've tried using | but that doesn't capture the empty newline. Including a \n escape sequence doesn't do anything (it doesn't convert it to a newline). Alternatively, do I have to specify a different input method...

 
6:56 AM
@NewMainPosts i'd love to see how that question would be received on Stack Overflow
 
7:17 AM
1
Q: Check if input is integer in 05AB1E

SomeoneI want to check if the input is a positive integer in the language 05AB1E. This should output something that acts as a boolean. For example, "oof" ==> false 7.5 ==> false 19 ==> true ... Is there a way to do this? Numeric strings can output true or false. It depends on the nature of th...

 
 
2 hours later…
9:16 AM
Apparently they're not that bad there.
 
Oh wow, lots of questions on esoteric languages: stackoverflow.com/questions/tagged/esoteric-languages
 
 
5 hours later…
1:52 PM
0
Q: `\[` in code triggers LateX in preview

DionWhen the code contains the characters \[, the preview shows everything else as LateX even though it is inside the `` section. This is how the preview looks like: This is how the submission actually looks like:

 
2:04 PM
For my whole life (since I learned to program) I've iterated a random number of times with something like for (i = 0; i < random(2, 10); i++) and I just realized all of that code will be broken because the random is called each time it loops and it will be biased toward lower numbers /:
 
@RedwolfPrograms laughs in for i in range(random.randrange(2, 10))
 
 
2 hours later…
3:39 PM
@RedwolfPrograms it would actually be interesting to see what distribution you get
 
Slightly unorthodox way to ask for feedback, but does anyone over 10k rep have suggestions for this deleted challenge of mine? I can't remember why I deleted it, and I can't see any glaring issues, but ¯\_(ツ)_/¯
 
(0..rand(2..10)).each do |i| ... end
 
 
2 hours later…
5:20 PM
@flawr I tried it 100k times with values between 0 and 99, and here's what the results looked like:
0  =============
1  ===========================
2  =======================================
3  =================================================
4  ===========================================================
5  =====================================================================
6  ===========================================================================
7  ==============================================================================
8  ==================================================================================
Might actually be a pretty simple way to get whatever that distribution is
 
 
1 hour later…
6:31 PM
I'll guess Poisson distribution
 
7:24 PM
Turns out taking X xor Y as a darkness value on a square image produces a really cool output
(function() {
var canvas = document.createElement("canvas");

canvas.width = 1024;
canvas.height = 1024;

while (document.body.firstChild)
document.body.removeChild(document.body.firstChild);
document.body.appendChild(canvas);

var ctx = canvas.getContext("2d");

var data = ctx.createImageData(1024, 1024);

function red(i, j) {
return (i ^ j) / 4 | 0;
}

function green(i, j) {
return (i ^ j) / 4 | 0;
}

function blue(i, j) {
return (i ^ j) / 4 | 0;
}

for (let i = 0; i < 1024; i++) {
for (let j = 0; j < 1024; j++) {
(run in console on empty page to see output)
It looks like a recursive variant of the transparency pattern
 
7:45 PM
Now turn each pixel into a sphere using XOR as the height map, and render in 3D. Even cooler.
 
 
2 hours later…
9:46 PM
@cairdcoinheringaahing I'm ultra-orthodox, but I like it. We can assume years divisible by 4 are leap years, or we have to assume that?
 
@Adám :D
 
10:48 PM
@Adám I think “can” should work best, and aligns with my reference solution as well, so I’ll stick with that
Also, took me a second to get it, but like the joke :P
 
11:24 PM
comments better than answer: scifi.stackexchange.com/a/236639
 
11:52 PM
@cairdcoinheringaahing My main critique: The spec just talks about an input number and a month+day date, so I was confused for a while about where (or whether) the year came into it. Suggest changing the first sentence to something like: "Given an integer consisting of exactly four digits representing a year, output all unique valid dates (day and month) within that year that can be made from those digits."
@chat-mods Could you unfreeze golfR, please?
 

« first day (3505 days earlier)      last day (1354 days later) »