« first day (119 days earlier)      last day (1145 days later) » 

12:06 PM
7
Q: Code a code page

DenkerAffeIntroduction A code page maps integer values to a specific character. We can visualize a code page like this: +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | +---+---+---+---+---+---+---+---+---+---+---...

Should be right up Jelly's alley, but I had something pretty messy about halfway so I stopped
 
 
3 hours later…
2:47 PM
@Sp3000 That actually sounds like a job for J (which would do the boxing automatically), but I don't think I know enough J to get that done...
 
 
1 hour later…
4:01 PM
@Dennis "Any builtins that are related to ASCII-art tables or trivialize the problem in any way are forbidden.":/
 
Ugh.
Good thing I didn't even try then.
 
ven
4:24 PM
I don't think I understand the diff. between œṣ and , because to split by a space, works...
 
ven
wut
 
[3, [1, 2], 4, 1, 2, [5]]ṣ1,2 gives [[3], [4, 1, 2, [5]]], while [3, [1, 2], 4, 1, 2, [5]]œṣ1,2 gives [[3, [1, 2], 4], [[5]]].
splits at elements that are equal to the separator, œṣ at slices that are equal to it.
 
ven
ah
elements vs slices
okay, I get it.
now to understand string separators
in this challenge, both quotation marks are the same ._.
 
4:39 PM
Using the opening quote again just a makes an array of strings: jelly.tryitonline.net/…
(Leftover from previous program, sorry)
 
ven
@Sp3000 okay, that makes sense, but that doesn't seem to be what I have here Oo
 
What's your problem then? (fyi my response was to 2spooky)
 
Yes, and... ?
 
ven
why is that a character array..?
problem is, strings doesn't seem to be documented, so..
 
4:44 PM
That's just how strings are represented internally in Jelly, probably to make life easier for Dennis (on the interpreter side)
 
You keep posting that, but I don't actually know which part the problem is. Maybe post a smaller example pinpointing your exact problem?
Oh actually, I think I know what you're trying to do
There's your problem
(15's a single number here, rather than ['1', '5'])
 
ven
ohoh.
...nicely spotted...
wouldn't that be a bug in Jelly's ;, though?
 
No, it just means you have an array of mixed elements
 
ven
right, but I join this.
I certainly would expect "join" to join to a string
 
4:52 PM
I think it's more like "join" as in "append to array"
 
ven
mmmh. "Join list x with separator y."
well, I guess if @Dennis did it like that, it's how he wants it to be anyways :c.
 
Oh that join. But yeah, still arrays
 
ven
But now, I have no idea how to... stringify? the number
 
Having said that, @Dennis any easy way to turn ['a', 'b', 123, 'c', 'd'] -> ['a', 'b', '1', '2', '3', 'c', 'd']?
 
None that I can think of.
['a', 'b', 1, 2, 3, 'c', 'd'] would be easier.
I should really implement some stringification though.
Or at least implement my planned changes for the code page.
 
ven
5:02 PM
so I'm pretty much stuck here?
 
What exactly are you trying to do?
 
ven
numeronym
 
I don't know what that is.
 
ven
so, first + length + last, then replace ambiguities
so l1 => L1, because you cant' confuse 'em
 
10
Q: Numeronyms or N8s?

mbomb007A numeronym (also known as a "numerical contraction") is when a word is shortened using numbers. A common contraction method is to use the length of the replaced substring to replace all but the first and last characters. For example, use i18n instead of internationalization, or L10n instead of l...

 
5:10 PM
@Sp3000 @ven Ṿ€Fḟ”” would work.
 
:/
Oh well, for now I guess
 
ven
5:22 PM
well, the second split/join still seems to break stuff :\
this works, but if I add another split/join, it goes awry
 
ven
5:45 PM
I'll build something to search by symbol
mmmh, not sure there's a way to inject javascript into the "Atoms" page?
 
ven
5:56 PM
 
ven
6:59 PM
did I really manage to mess up..
 
ven
7:14 PM
^ not sure you'll want to pin that message, but just in case.. :)
 
 
3 hours later…
10:26 PM
@ven That looks useful. Does it always get the latest version from the GitHub page?
 

« first day (119 days earlier)      last day (1145 days later) »