This is tangentially related to my quest to invent an esoteric programming language.
A table of the binary numbers 0 .. 15 can be used to implement a Universal Binary Function using indexing operations. Given two 1-bit inputs X and Y, all 16 possible functions can be encoded in a 4-bit opcode.
...
@ConorO'Brien Thanks! Now that you say that, I'm rather regretting not having a tutorial per se... I'd recommend looking through the Documentation starting with the one on Syntax, with TIO handy for experimentation.
@ConorO'Brien It's designed so you can code in it like a very abbreviated imperative language, sort of a golfier mashup of Perl/PHP/Python. OTOH, many of my submissions these days are single expressions that use a lot of map and fold.
ASCII characters are all Unicode characters with code points from 0x00 to 0x7F (both inclusive).
Printable ASCII characters all are Unicode characters with code points from 0x20 to 0x7E (both inclusive). This does not include linefeeds.
This is consistent with the definition of printable charac...
I wonder, are there any languages based on statistics/decision theory? I'm not talking about R or languages that have great statistical libraries... (I honestly don't know what I'm talking about, I just thinking through possible combinations of programming languages + fields of math) I mean where its flow control and stuff is based off statistical inference in some way.
Here is a relatively simple challenge for you.
Given a string of length N, output the string forwards, then backwards, then forwards, then backwards... etc. N times. For example, if your input was
Hello!
You should output:
Hello!!elloHHello!!elloHHello!!elloH
You may also optionally outpu...
The motivation of DST is to reason for/against the probability of different options by combining various sources of evidence (which could be for or against a given option). The important part is that it explicitly leaves room for uncertainty (when both the for and against evidence is weak).
In English, there is the fun and simple difference between an and a: you use an when preceding a word starting with a vowel sound, and a when the word starts with a consonant sound.
For the sake of simplicity in this challenge, an precedes a word that starts with a vowel (aeiou), and a precedes...
My biggest mistake miscalculation when making my language Element was using the backtick as the output character, which meant it was often the last character in the program, breaking formatting.
Ruby, 39 bytes
->(s){s.reverse!.gsub(/./){s.reverse!}}
I suck at Ruby. Golfing help is appreciated.
Ruby is a really nice language for this because of .reverse!
@DJMcMayhem Its still a long way from a solution to your StringgnirtS challenge and I have homework I need to do. I will do what I can tonight and hopefully finish tomorrow.
What do you guys think is more useful when watching a YouTube video series? A) a link to the next video in the series. B) a link to the playlist of the entire series.
@El'endiaStarman I do put links to both in the description but now I'm figuring out cards and it's awkward to have more than one at the end of a video.
@DLosc Agreed. And in fact if you're watching when the vid comes out like DJ said then the next link would not even exist, while a playlist link can be used to find older/missed videos.
One more poll: Does it matter to you if a YouTube series/show is uploaded on a predictable weekly schedule (e.g. new episode every Tues+Thurs)?
Usually the first thing I do when I get online on MWF is go read the new installment of Gunnerkrigg Court. Predictability helps keep people coming back.
I think I need some context. What do you need a browser icon for?
Anonymous
04:45
@HelkaHomba It really depends. For channels with lots of videos per week, having a set schedule benefits both the channel and the viewer. If you're only uploading 2-3 per week, the schedule matters less, as viewers will likely see the new video immediately in their subscription feed.
@HelkaHomba No, but unfortunately some people get impatient and expect it. But if you feel like you don't want to stick to a schedule, then don't start sticking to one, otherwise people will start expecting you to keep to it.
The mid-autumn festival has begun!
Unfortunately, all my mooncakes were stolen -- they're getting too expensive for small folk such as myself, and I fear I won't be able to eat any this year!
So I turn to you for help. Would you be able to make me some?
For those unaware, let me educate you ...
Eleanor Rigby Sits at the keyboard And waits for a line on the screen Lives in a dream Waits for a signal Finding some code That will make the machine do some more. What is it for?
All the lonely users, where do they all come from? All the lonely users, why does it take so long?