« first day (2513 days earlier)      last day (2323 days later) » 
00:00 - 19:0019:00 - 00:00

12:16 AM
@cairdcoinheringaahing It should be easy to write a script that calls TIO with the same source code in all supported languages sequentially, isn't it?
@Dennis I just noticed this starred message. Congratulations!! I know how good it feels... :-D
 
12:52 AM
Thanks. :-)
 
1:24 AM
0
Q: String Permutations - case and order

tfbninjaChallenge For any string that is composed of lower cased alphabetical characters, make a function that returns a list of all of it's variations, empty strings returns empty list. Test Cases "" -> [] "a" -> ['a', 'A'] "ab" -> ['ab', 'Ab', 'aB', 'AB', 'ba', 'Ba', 'bA', 'BA'] "abc" -> ['abc', 'A...

 
1:55 AM
0
Q: Make a Plain PIE!

user71546Introduction There are lots of challenges asking for a shortest program to calculate mathematical constants. I saw some with restrictions like banning the literals 3.14 and PI etc. However, there seems no such challenges using the number of distinct characters as one of the criteria. The Challe...

 
I am not sure if I should open a meta post for this... What do you think of challenges based on Mathematica built-ins?
 
2:12 AM
@JungHwanMin as long as they are good everything is fine
 
2:57 AM
@Riker The dots are because they are floating point values, but removing them won't hurt either.
 
3:26 AM
It's probably possible to do Modulus Summination in TacO, but that's a lot of effort :<
 
@ATaco Huh? What? Why modulus summination? Is that even an English word?
 
TacO is my 2D Taccit Language.
Modulus Summation*
18
Q: Modulus Summation

Stephen LeppikI call this sequence "the Jesus sequence", because it is the sum of mod.</pun> For this sequence, you take all the positive integers m less than the input n, and take the sum of n modulo each m. In other words: For example, take the term 14: 14 % 1 = 0 14 % 2 = 0 14 % 3 = 2 14 % 4 = 2 14 % 5...

 
3:42 AM
Everyone got "And YOU Get A Hat!"?
 
3:54 AM
Well, you need to get a different hat first... and I am of yet hatless
 
@LuisMendo Hm... initially I think that it will time out on TIO is good enough, but on another thought the languages which time-out on TIO is likely candidates. It's even harder to write a program that execute for a long time for most languages on TIO...
Also, be nice to TIO. Testing all 400 languages there with a computer script will make TIO busy.
 
Ah, this is going to be fun...
 
4:14 AM
@ATaco: In the comment on your answer for that "modulus summation" challenge, do you know what OP is refering to as his "secret weapon"?
 
No idea, not my problem.
 
I was also curious about that too.. probably flags?
 
Hm ok, just found it to very weird
 
According to this, is it possible to submit C function int c=4; int f() {return ++c; } for a KC challenge "output 5"?
(it is not necessarily reusable, because on next invocations it may return 6, 7, 8, etc.)
 
4:36 AM
@cairdcoinheringaahing I'm not sure if a 5 minute time limit is enough to prevent brute-force attempts. Since it's open source and the setup process is mostly automated, anyone can set up their own copy of TIO without time limits. The vast majority of languages should throw an error way before that time limit, so even testing all 400 languages shouldn't take too long.
 
But the real problem is, "It's even harder to write a program that execute for a long time for most languages", because if it terminates & produce wrong result for 399 languages, the remaining one is (probably) the answer.
 
4:58 AM
@BruceForte Or probably this.
 
5:28 AM
@Dennis Well, preventing brute-force attempts is impossible; what we're trying to do is discourage them. If somebody's willing to spin up their own copy of TIO to help with a CnR question, then kudos to them, and I'll start polyglotting like mad and/or looking for languages that aren't on TIO.
 
5:58 AM
0
Q: How should a challenge allow floating point imprecision to be ignored?

isaacgI wrote a challenge about sampling a probability distribution: Sample the Pareto Distribution This probability distribution is defined over the real numbers. However, submissions do not have access to true real numbers, but merely imprecise approximations of real numbers. I wanted to allow submi...

 
6:19 AM
0
Q: Parse a list of signed unary numbers

DLoscUnary numbers typically only represent nonnegative integers, but we can extend them to represent all integers as follows: A positive integer N is represented as N 1's: 5 -> 11111 A negative integer -N is represented as a 0 followed by N 1's: -5 -> 011111 Zero is represented as 0 We can then r...

 
 
1 hour later…
7:36 AM
> -4 8 15 -16 23 -42
@DLosc ha! Glad to know I'm not the only one that always includes those for my test cases :)
 
I was looking for a short sequence of larger numbers, and the Lost numbers fit the bill.
 
Solution incoming
 
8:07 AM
CMC: Implement hyperoperators, which is a function h(a,x,b) where h(a,x+1,b) denotes b nested a=h(a,x,a)s, and h(a,0,b) is a+1. As examples: h(a,1,b) is a+b, h(a,2,b) is a*b [a added to itself b times], h(a,3,b) is a**b.
 
Must x=0 be supported?
 
8:19 AM
yes
but if you want to provide a solution that doesn't work with x=0 I'll admire it anyway
 
8:36 AM
@StevenH. Your definition isn't consistent. a+b is a incremented b times, while a*b is a times a a-1 times. If you applied the function a times, you'd get a * (a*a) = a*(a+1)
 
^
 
In mathematics, the hyperoperation sequence is an infinite sequence of arithmetic operations (called hyperoperations) that starts with the unary operation of successor (n = 0), then continues with the binary operations of addition (n = 1), multiplication (n = 2), and exponentiation (n = 3), after which the sequence proceeds with further binary operations extending beyond exponentiation, using right-associativity. For the operations beyond exponentiation, the nth member of this sequence is named by Reuben Goodstein after the Greek prefix of n suffixed with -ation (such as tetration (n = 4), pentation...
It's inherently inconsistent, actually
 
It's kind of shoehorned to fix the existing operations
Here's an implementation with no special casing, so it doesn't match * and ^ and such:
.N?Tu:GtTNYNhN
And with the special casing:
.N?>T1u:GtTNtYN?T+NYhN
 
8:52 AM
@LuisMendo Presumably yes, but short of banning TIO brute forcing, I don't see a better alternative than the time limit
Q: Suggestions for prevention TIO brute forcing in the Programming Language Quiz II?
 
@StevenH. Tried to implement in tinylisp. For some reason, x=2 gave exponentiation instead of multiplication. Tried different things without success. Finally came to the conclusion that I really should have been in bed 2 hours ago. Thank you and good night. :P
 
In the first challenge answer posters have to obfuscate the code itself, now they also need to make sure it runs for a long time for some/most other languages on TIO.
 
Anonymous
@StevenH. Haskell, 68 bytes: tio.run/…
 
Anonymous
(uses the definition from Wikipedia)
 
Anonymous
Pattern matching is very strong :)
 
9:30 AM
Similar CMC that isn't as inconsistent: Let f_0(x) be x+1, and let f_j+1(x) be f_j(x) nested x times. Implement f_x(x).
 
@Mego 62 bytes with infix declaration: Try it online!
 
0
Q: Is this a three-digit number ending in one?

HAEMGiven a nonnegative integer, return whether it is a three digit number ending in one, in any consistent integer base. In other words, the number needs to be represented in base-N, N being an integer greater than zero. Rules This is code-golf, so shortest answer wins. Since unary behaves weirdl...

 
@Qwerp-Derp Done.
 
11:12 AM
@DLosc I might try it in tinylisp
 
11:48 AM
Quick poll: Named tuple or dictionary?
 
Anonymous
@wizzwizz4 Context?
 
@Mego Constant data that will not be accessed with variable keys.
Adding a "block type" field to this.
 
Anonymous
@wizzwizz4 Named tuple
 
@Mego Thanks.
 
Maybe I'm dumb but I don't understand this challenge: codegolf.stackexchange.com/questions/150785/…
true examples dont have three digits
 
11:59 AM
@Fatalize Step 1: Check if it's a 3-digit number.
Step 2: Check if it ends in 1.
 
5 is not a 3 digits number
yet it's true
 
@Fatalize Give me a sec, revising the instructions.
 
I seriously don't see any pattern in the examples to explain this title
 
for base in range(num):
    num_str = base_convert(num, base)
    if len(num_str) == 3 and num_str[-1] == 1:
        return True
return False
@Fatalize Does this explain it?
 
yeah alright
 
12:30 PM
-1
Q: Getting Indentation Error

uk_18I am new to Python. I am getting indentation error whenever i run my script. The error looks like this $python main.py File "main.py", line 181 audior = pyaudio.PyAudio() ^ IndentationError: unexpected indent Here's that part of my script where the error is being encountered def onO...

 
 
1 hour later…
1:50 PM
@wizzwizz4 well, for that challenge that doesn't matter
 
@EriktheOutgolfer What are you referring to?
 
sorry, referring to this
@EriktheOutgolfer It does behave quite differently; you can't divide by 1 to n-itshift, for example. — wizzwizz4 1 hour ago
 
It can for some approaches.
For example, base-convert then bounds check and mod.
 
well, sure, since "base 1" is not actually a base, however most approaches would still use a loop, so they'd loop over [1..n-1]
sure, Python doesn't support base 1 or base >=37 by default
 
So it does matter.
So it's good that 3 is undefined.
 
1:55 PM
I guess it depends
 
Does Jelly have cube root? I think not... So *3ݤ?
 
using such base built-ins which support a limited range of positive bases would be invalid
since every answer must work for anything in theory by default
@user202729 it doesn't yet
so *3ݤ$
 
2:34 PM
how do you guys all get hats
 
Just do the tasks.
(or find out some secret hats)
 
my head is cold
I need a hat desperately
 
@LeakyNun first of all, make sure you don't hate hats
then, you earn the hats, they don't come automatically :p
 
where is a list?
 
it specifies what you should do to get each hat
 
2:39 PM
thanks
 
Note that the winter snow on the left has a button "I hate hats". That's what Erik is referring to.
 
secret hats are, of course, not listed there, since then they wouldn't be secret anymore
 
@user202729 where?
 
@LeakyNun I meant the "snowflake".
 
I now have 2/3 of the pets I had yesterday. (2/5 total.) :'-(
Such is life.
 
2:44 PM
@user202729 where is it?
 
If you really don't see it, check the browser console for potential internet error.
 
@user202729 Note that during high-latency times, that might not appear.
 
@user202729 or press ctrl+f5
 
User scripts can also hide it.
 
Has any site actually ever opted out of Winter Bash?
 
2:46 PM
@wizzwizz4 "site"?
 
he probably means SE community
 
@user202729 'site, an abbreviation of website.
I thought it was a common abbreviation around here for "Q&A website in The Stack Exchange Network and / or the community associated with the aforementioned website."
 
I do understand what it is, but I don't understand why does a site would opt out of Winter Bash. The "I hate hats" is supposed to be for individual users.
 
a community has the right to not participate in a promo
 
And who determines that? Moderators? Isn't that unfair?
 
2:51 PM
a question is posted on meta for the whole community to decide
and if it's not, you can post one if you support opting out
 
@user202729 Moderators do determine that.
However, they always ask first.
They have never opted out without receiving a response from the community suggesting that the community wishes to opt-out.
 
@wizzwizz4 what happened? (and please explain this math)
 
@flawr A chicken went to sleep. Said chicken did not wake up.
This chicken is now dead.
 
Sorry to hear that:( So now you have two chickens and you used to have 5?
 
@flawr One chicken + one dog.
Used to have 4 chickens.
Two of which were "indestructible" (only just dying now after almost a decade) and two of which only lasted ~2 to 3 years.
 
2:59 PM
I have no idea, how old do chickens usually get?
 
@flawr Depends on the breed.
On average, around 3 to 4 years.
 
I'm trying to work out what Scratch uses as a block terminator character internally.
I used to know two years ago.
That kind of obscure knowledge doesn't get used often, unlike the knowledge of what's most likely to not cause further damage to a Windows system.
 
@wizzwizz4 I once had to idea to make an own private wiki-style ressource for myself, for stuff like that. But didn't end up doing it because I couldn't find a good software that suits my needs
 
@flawr Pmwiki.
 
3:07 PM
it seems this needs a php server
do you have any experience with this?
(also LaTeX support would be really nice:)
 
@flawr Yes.
@flawr That's available.
(Made up URL, may not be valid.)
@flawr Just set up Apache or similar on localhost, connect it to php (available from apt) and put the files in the www folder.
 
1
Q: Unicode Fractions

J843136028Given a fraction in the format m/n (where m and n are coprime integers), output the corresponding unicode fraction. You will not be expected to allow any input that does not correspond to a unicode character. Arrays, e.g. [2, 3] as opposed to 2/3, are accepted. m / n as opposed to m/n is also fin...

 
3:59 PM
What the heck?! I lost over 120 rep from user removals in one day ffs
 
I lost 30. The one perk of not having huge amounts of rep :P
 
I guess a relatively high rep user was deleted
 
I just got +4 today. Weird...
 
I only lost 10.
 
@user202729 deleted downvotes?
 
4:01 PM
Probably, I'm not sure.
 
I lost 10 and 5
 
Surprisingly, even Dennis lost a lot less than me
 
You should check maybe theres a secret hat for that:)
 
I know why the accounts were deleted (and who controlled them), but can't (and won't) reveal
 
@cairdcoinheringaahing Good.
But you just revealed their socky nature.
 
4:02 PM
Methinks I do too
 
"control"?
BTW are the votes reversed?
 
@wizzwizz4 So? Their profile says they were suspended because of voting irregularities, and people lost rep, so we know that socks were created and deleted.
 
My overall rep is -118 today :(
 
@user202729 Do we get our rep back? No
 
Why would someone vote on others’ posts with their socks??!?!
 
4:03 PM
@cairdcoinheringaahing Well, we don't...
Not after the suspension ends.
But as long as names aren't named, it's probably fine.
@Mr.Xcoder To try (and fail) to smooth it out?
 
I'm not sure I understand you, but I'm going to stop, just so that I don't say anything I'd regret
 
So... someone (let's say A) create secondary account (B) to vote irregularly, and now B is deleted (all votes of B are reversed) and A is suspended. Right?
 
@cairdcoinheringaahing Once the suspension's over, there's no public record of anything occurring.
 
Wait, there were 3 socks?
 
4:05 PM
Maybe we need to ... sock it to them.
 
@cairdcoinheringaahing I wasn't asking about the rep, I ask about the vote count themselves. Because deleted answers may hold their rep...
 
@Mr.Xcoder Maybe more. I only created two when I did it, but the more socks, the more rep
 
@user202729 They won't.
Everything's removed.
 
@user202729 If my (non-existent) sock upvoted post A so it was on +10, then got deleted, the post would be +9
 
4:06 PM
@Mr.Xcoder Charge your phone.
There are two ways of deleting a user.
1. Deletion, which deletes it.
 
@Mr.Xcoder RIP and well done on the new hat :P
 
@wizzwizz4 why?!? (Note that I really want an answer)
 
2. Destruction, which destroys it permanently (for spammers and socks).
 
3? That's too critical...
 
@cairdcoinheringaahing thanks
 
4:07 PM
@Mr.Xcoder It's low.
 
@wizzwizz4 And 3) Jeff beats you with an S
@wizzwizz4 1% is low
 
@Mr.Xcoder Erm... because the energy stored in it was used.
 
Oh sorry, I misread it as "change your phone"...
 
Ohhh sorry, misunderstanding!
@user202729 me too
And unfortunately no, I donmt have any charger around
And 26% is fine for ~3-4 hours
 
@Mr.Xcoder That's a secret hat?
 
4:10 PM
Yeah
 
@Mr.Xcoder Brb, doing that.
 
@wizzwizz4 ?
 
@Mr.Xcoder that = get the hat.
 
@Mr.Xcoder I like yeahing.
 
@user202729 Apparently it is not.
 
4:13 PM
> moderatorering
 
@Mr.Xcoder Wait, I think I missed off an "ar" there.
 
> Like Arthur Dent's house, IE has finally been demolished.
Not according to my school :P
 
@cairdcoinheringaahing It's been demolished.
That doesn't mean people aren't still trying to live in it.
 
CMC: Numbers from 0 to 99 inclusive. You can only use printable ASCII
 
4:17 PM
Øsomething? Let me check atom list...
 
@cairdcoinheringaahing ³Ḷ
 
> You can only use printable ASCII
 
Oh no...
 
0r99
 
@cairdcoinheringaahing SOGL, 6 bytes: 0MH{QI
 
4:18 PM
Characters, or code points>
 
@cairdcoinheringaahing ab, using the Jelly-mapping-a-to-³-and-b-to-Ḷ language.
 
@Mr.Xcoder is there a negative rep cap?
 
@cairdcoinheringaahing You changed the task!
 
@Zacharý Code Points
 
@flawr I hope so :(
 
4:19 PM
@wizzwizz4 Huh...? Let me check the codepage.
 
I figured out why JHTBot wasn't running: I shut down the program :/
 
That won't matter for Jelly, it aligns with ASCII, IIRC.
 
It indeed is ...
 
@user202729 I didn't map it right...
 
2 mins ago, by wizzwizz4
@cairdcoinheringaahing ab, using the Jelly-mapping-a-to-³-and-b-to-Ḷ language.
just keep the spirit of the question will you
 
4:22 PM
7 hours ago, by caird coinheringaahing
Q: Suggestions for prevention TIO brute forcing in the Programming Language Quiz II?
 
Force/encourage cops (or is that robbers?) to write polyglot which run in >= 5 min for each language.
 
On a related note, After being suspended I realised that was the most stupid thing I ever did (in August IIRC) I literally lost precious time with which I could have earned more
 
@Mr.Xcoder I wonder if you can get the Rep Cap hat from getting -200 rep in a day D:D
 
@Mr.Xcoder You had been suspended? Earn what?
 
@user202729 In august, I have been suspended for voting irregularities (how stupid right???), resulting in -300 or something, but during the summer, I usually earned > 500 rep each week, so I lost more than I gained
I was very stupid back then
 
4:26 PM
I agree with Xcoder. Getting suspended is bad for two reasons: 1) It negatively affects the site as a whole (as shown by the rep losses we were complaining about) 2) You don't get the chance to contribute positively to site (correctly, or course), but you're just disadvantaging yourself.
 
@cairdcoinheringaahing r99
(nobody noticed this golf)
 
@Mr.Xcoder You can outgolf me, I can outstupid you: I got suspended 3 times (twice for voting irregularities), and lost over 2000 rep IIRC
 
Nice
 
9 mins ago, by Leaky Nun
0r99
 
@LeakyNun huh nice abuse of implicit args
 
4:28 PM
According to this a truthy/falsy value has to be evaluatable (is that a word?) as a boolean, is that right? If I had a function that returns two values either X or Y and none of them are evaluatable as a boolean variable, I can't just define truthy as X and falsy as Y for the purpose of that answer or can I?
 
MY: 99 of (0x21), 1 of ί (0x4A), then 1 of (0x26), the char codes converted to ascii look like ! J and &
 
@BruceForte I think you can. Better ask the OP. Decision probelms Are always quite confusing for that matter
 
@BruceForte Depends on the question. Some allow two distinct values, some force truthy/falsey values
 
@cairdcoinheringaahing Lol I lost ~300 whilst the user I think was suspended lost ~3000
 
12
Q: Is this a three-digit number ending in one?

HAEMGiven a nonnegative integer, return whether it is a three digit number ending in one, in any consistent integer base. In other words, the number needs to be represented in base-N, N being an integer greater than zero. Rules This is code-golf, so shortest answer wins. Since unary behaves weirdl...

It's that one ^
 
4:30 PM
@Mr.Xcoder Doublepost :P
 
@Mr.Xcoder Laagy doublepost.
Ninja'd.
 
Shitty mobile chat Edits
 
It happens when you edit a message that hasn't reached the server yet.
 
<insert look of disapproval>
 
I was going to say something about mobile, but...
I keep getting ninja'd.
 
@Mr.Xcoder Nope, just one. But they lost 4350 rep in total
 
@cairdcoinheringaahing how? I have 3 user removals on my profile
 
¯\_(ツ)_/¯
 
@Dennis: Not sure about the rules in the mentioned challenge, if you can return [] as falsy and [1] as truthy you can save a byte in your Haskell answer by doing [1|k<-[2..n],k^2<n,n<k^3,mod n k==1]
 
Let’s stop talking ‘bout this ok?
 
4:33 PM
@Mr.Xcoder Good idea
 
It did it in bursts as the database was updated.
Urgh! Why am I so slow?
 
Bad internet connection?
 
@Mr.Xcoder Don't abuse tag...
Anyway what's so funny with voting irregularities?
 
@user202729 It's common in chat.
 
@user202729 Funny?
 
4:35 PM
@user202729 nothing... I realized quite late didn’t I?
 
I mean, why is people keep getting suspended by ^?
 
@Zacharý Does MY have a non-ASCII compatible code page?
Also, it seems based of APL's code page
 
@user202729 because many people (including me in the past) think that boosting their reputation by creating secondary accounts will go unnoticed
 
To be fair, the mod voting UI is fun to play with.
 
4:38 PM
@BruceForte I don't know a lot about Haskell, but I assume that only True and False can be used as Booleans.
 
:41785070 the (mod) (voting UI)
Not the (mod voting) (UI)
 
Yup realised too
 
@cairdcoinheringaahing Yeah, very not ASCII compatible. I organized the code page based upon the function of the commands, along with assigning a character that represents the command ... thus, 0 through 9 are actually 0 through 9.
 
@wizzwizz4 reply fail
 
4:39 PM
@Mr.Xcoder Breaking software is one of my skills.
 
@Dennis: Yes, Haskell is pretty strict about that (which is good). I thought maybe it's possible to redefine true/false for the purpose of that challenge
I think I saw this done before, but I'm not too sure about it
 
That's only allowed if the OP specifically says so. The decision-problem tag wiki mentions truthy/falsy values, so this is the default.
 
Oh, I keep forgetting to look at tags -.-
Nice solution either way!
 
Thanks. :) My first non-trivial Haskell program.
 
List comprehension is pretty awesome :)
 
4:43 PM
^^ i had the exact same reaction when someone commented on my first non-trivial pyth answer :c
 
@cairdcoinheringaahing A lot of love for Actually and CJam :P
 
5:06 PM
My new favourite XSS string:
var _bftn_options={
  theme: 'slow',
  delay: 10000,
  disableGoogleAnalytics: true
};</script>
<script src="https://widget.battleforthenet.com/widget.js" async>
 
5:26 PM
@cairdcoinheringaahing husk is good for longer challenges, but often sucks for trivial ones (while it might be 5% shorter than Jelly for harder challenges, it is often at least 15% to 30% longer for trivial challenges - i.e. if the challenge involves vectorization and/or mapping dyadic commands)
 
A lot of people have voted for Husk. That's quite interesting
 
@cairdcoinheringaahing How dare you not include Charcoal?
 
@Mr.Xcoder Charcoal isn't very golfing unless it's ascii-art
 
What is the best language designed for golfing, or utilized for golfing?
 
Jelly, 05ab1e, Husk, SOGL, Charcoal depending on the task. If there is a very odd challenge, Pyth might have a built-in
 
5:39 PM
If you include languages that are good at golfing (but are not designed as such), then Jelly, 05AB1E, APL.
 
Some more people should really try Gaia
 
I think Seed needs some more love. It's not useful for much, but when it is it's exactly 4 bytes.
 
How does this sounds for a challenge idea (dibs BTW): Create a terminating program that outputs more than 128KiB of daa
 
@cairdcoinheringaahing Just print(9**9*'a')
 
Or, even better: Output 128KiB of unique data
 
5:43 PM
@cairdcoinheringaahing There are only 256 possible byte values...
 
@wizzwizz4 Unicode begs to disagree
 
@cairdcoinheringaahing No it doesn't. That's codepoints, not bytes.
 
Define unique data.
 
@Dennis Well put. Now I know why you got tenure.
 
All code points of the output are unique
 
5:47 PM
Well, that's just counting up with code points...
 
@cairdcoinheringaahing print("".join(map(chr,range(8**6))))
 
That will choke on surrogates.
 
@Dennis Whoever said valid output?
All of the codepoints are unique.
 
It will raise an error without printing anything.
range(55296) works though. Way over 128 KiB.
 
@Dennis Only in IDLE.
I encountered this before when doing something strange.
I think I was testing a program.
 
5:51 PM
Did you test it?
 
You can get Python to print it all out iff you redirect to a file.
Iirc.
Testing it now.
Traceback (most recent call last):
  File "<pyshell#13>", line 1, in <module>
    print("".join(map(chr,range(8**6))))
UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 65536-65536: Non-BMP character not supported in Tk
@Dennis It looks like it's an error upon printing.
And I've done this before.
Well, it doesn't work in 'UTF-8' either... but it will work in something.
I can't remember how I did it.
I think I used legacy cmd
 
@Mr.Xcoder what makes Gaia unique? I know that it drew inspiration from Jelly and Ohm (!), among other things, but I don't really know what else it added
 
If you manipulate Python into using a codec that will encode these characters, it'll work.
Oh, I remember.
There was some sort of special comment...
Which comment was that?
 
@wizzwizz4 # -*- coding: utf-8 -*-, maybe?
 
@NickClifford That's it.
Except, UTF-8 doesn't work either.
 
5:54 PM
That specifies the encoding of the source code file.
 
@Dennis Oh yeah... :-/
 
do strings have fixed encodings in Python? in Ruby, you can just do str.encode('utf-8') or whatever
 
@NickClifford That's more bytes.
 
Is there a way to input a null byte on TIO?
 
5:57 PM
The environment contains the information; if you can manipulate your environment enough you can make the code run.
 
@NickClifford it has interesting functions and control flow structures
 
The null byte is shown in the output, but I cannot copy-paste it: Try it online!
 
@Laikoni You can alter $("output").value in the console.
 
Here's the null byte: "
What...?
There were two speech marks when I copied that.
YABIWX.
 
@Dennis Is this javascript for the browser console? How do alter it and to what?
 
6:07 PM
Well, not output... $("#code").value += '\0' appends a null byte to the code, $("#input").value += '\0' to the input.
 
@Dennis Naively copying this into the console in a TIO tab gives TypeError: $(...) is null
 
I had an error in the first revision (missing #). Did you perhaps copy before that?
 
@Dennis Indeed, now it works. Thanks!
I was asking because of this challenge proposal which needs to keep track of all 256 bytes: codegolf.meta.stackexchange.com/a/14009/56433
 
6:34 PM
:o
pressing esc in TIO brings me to command mode
what is that
 
00:00 - 19:0019:00 - 00:00

« first day (2513 days earlier)      last day (2323 days later) »