« first day (1356 days earlier)      last day (422 days later) » 

6:51 AM
@LegionMammal978 so basically it might be useful in a non code golf challenge
2
A: Get the Systematic Chemical Symbol

RazetimeHusk, 20 bytes §:oa←tmo!¨nḂ+q²"ṗe¨→ Try it online! input as a list of digits. There's probably a better way to do the titlecasing part. Explanation §:oa←tmo!¨nḂ+q²"ṗe¨→ → increment input to accomodate 0-indexing mo map each digit to !¨nḂ+q²"ṗe¨ it's ...

Thinking of how to use Γ here
 
 
6 hours later…
1:07 PM
@Razetime I used it extensively in the left-hand answer to this challenge. (I haven't submitted it yet since the right-hand answer is still not done.)
Specifically, v and D (and technically things like E`R1) are the only possible numeric operations, so I use things like v5122132623DDD‼‼‼D‼‼‼D3556462 to construct a huge number several bits at a time
Interestingly enough, the inference for that kind of expression isn't even horribly slow
 
1:36 PM
woah
that's an interesting challenge
 
For reference, here is the entire left-hand answer
Although now I'm pretty stuck with the right-hand answer
The characters allowed are ¦‼≡ "&'()*+,-./0789:;<=>?IJKLMNOPU[\]_ijklmnopu{|} and newline
With verbose mode, you can also use the commands ↑‰±₀₉Πμπ⁰⁹«
However, only \​ (swcase) and _ (tolowr) seem to be able to create characters from scratch, and I already have both cases
I was also thinking of using Haskell's character escapes, but r is unavailable here
@Razetime Do you have any ideas?
 
2:18 PM
hmm
@LegionMammal978 so wait
this is for the right hand answer right
if there was a way for escaping unicode in a string it would be really convenient
 
2:46 PM
@Razetime That's why I mentioned Haskell strings: Try it online! However, r is not allowed.
 
3:01 PM
so there's no other way to use
like
"\u0495" for ҕ
 
3:16 PM
@Zgarb I just remembered: you'd probably also want to modify the plainText++c:plainText2 in the maybeEscape expression to use the codepage
@Razetime No, you can look at the code, it currently only translates ¶¨¦ and interprets backslash escapes as literal characters.
 
3:59 PM
@Zgarb Sorry for bothering you with so many notifications, but I think I found a somewhat simpler patch with the same effect (I end up turning findByte from getBytes into its own function):
--- Codepage.hs
+++ Codepage.hs
@@ -48,0 +49,5 @@
+-- Get the position of a character in the code page
+findByte :: Char -> Int
+findByte byte | Just ix <- elemIndex byte codepage = ix
+              | otherwise = error "Bad byte"
+
@@ -52,2 +56,0 @@
-  where findByte byte | Just ix <- elemIndex byte codepage = ix
-                      | otherwise = error "Bad byte"
--- Parser.hs
+++ Parser.hs
@@ -8,0 +9 @@
+import Codepage
@@ -226 +227,3 @@
-  c <- anyChar
+  coded <- anyChar
+  let c :: Char
 
 
2 hours later…
5:46 PM
Oh, also you can get the capital mu Μ in verbose mode with \\'\mu\​
 
 
1 hour later…
6:57 PM
I guess I'll just have to conclude that writing a right-hand program is impossible, due to the complete lack of relevant range or character manipulation commands
 

« first day (1356 days earlier)      last day (422 days later) »