« first day (106 days earlier)      last day (935 days later) » 

11:41 AM
antifreeze
 
 
6 hours later…
Haha, I'm sure we can do better than that? :)
 
I golfed ord by a couple hundred since I last shared it.
Generators:
ord: https://repl.it/CHpp/2
chr: https://repl.it/DrAW/1
chr hadn't been created yet, so that's new.
@MartinEnder You think you could use Sort by ASCII char code, somehow?
Without adding extra lines of data, this is the best way. Otherwise, you'll probably want to generate all the chars, then replace every char in the target string with the number of its position in the line you generated.
 
 
1 hour later…
6:33 PM
How do I replace something with a literal ?
 
6:58 PM
@mbomb007 not possible currently, except by using a range in T that includes it
 
7:37 PM
I only wanted it to do replacements in my Retina code using Retina.
By removing support for newlines, I shaved off lots and lots.
 
8:31 PM
So it only needs to work for ASCII?
@mbomb007 Here is a 42-byte ord that works for all ASCII except null bytes: retina.tryitonline.net/…
I don't think chr is gonna be much longer than this
 
9:12 PM
@mbomb007 here is chr in 49: retina.tryitonline.net/…
 
9:25 PM
screw that, here's 30: retina.tryitonline.net/…
(you may have trouble pasting this into your code though because it contains null-bytes)
 
@MartinEnder Did you generate the URL's code parameter to type the NUL bytes?
 
yes
I wrote it with 1-bytes instead, saved it, copied the encode and decode functions from TIO's JavaScript, and then ran encode(decode("originalcodeparameterhere").replace(/\01/g,'\00'))
 
I wish keyboards could type them with alt-codes.
 
yes, although the browser still wouldn't take them I think
 
Wikipedia says that some keyboards can type them with Ctrl+@
Didn't work for me.
Maybe Dennis should add a hex editor
Or display them like Notepad++ does.
 
9:54 PM
@MartinEnder I take it the character ranges are from NUL to DEL?
 
in chr yes
I've only written ord down to 1-bytes
 
And the one in the first stage is a NUL?
 
I'll have to look for my Python utility later. I've got one written to do this for me, I think.
 
should be this:
 ?\d+
\x00$&$*±
T+`_o`\x00-\x7f±_`[^±]±
 
10:11 PM
hm, I tried removing the whole by-line business for ord as well, but it ends up being longer retina.tryitonline.net/…
ord will get shorter once I implement custom separators for % though.
 

« first day (106 days earlier)      last day (935 days later) »