Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Compression in Golf: Part I

by primo (Beadle)
on Jul 20, 2013 at 10:12 UTC ( #1045439=note: print w/ replies, xml ) Need Help??


in reply to Compression in Golf: Part I

Just for fun, I decided to map out a bit of the region beyond pack's normal range. The results were... interesting.

ord pack len chr
064
11265p
976689a
11067n
10568i
996993c
5870:
3271
1097297m
10173e
10974m
11175101o
11476r
12177y
3278105
11979w
11480r
9781109a
1182p
083
084113
085
086
087117
088
089
090121
091
092
093125
094
095
6796129C
9797a
11098n
3999133'
116100t
32101
108102137l
111103o
99104c
97105141a
108106l
105107i
122108145z
101109e
32110
116111149t
104112h
114113r
111114153o
117115u
103116g
104117157h
32118
97119a
32120161
114121r
101122e
102123165f
101124e
114125r
101126169e
110127n
99128c
101129173e
0130
0131
0132177

Besides the panic: memory wrap and Can't localize through a reference, one other thing stands out: pack u78 uses a space as the delimeter. In cases where you can't quite get your code to fit into a u45 format (starting with an m), it's a viable alternative, and has actually been the shortest construction I've been able to find for more than one challenge.

The run of chr(0) from u83 - u95 is unfortunate, though. An eval'd string beginning with the null character seems to terminate immediately, without error, for whatever reason.


Comment on Re: Compression in Golf: Part I
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045439]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-09-20 01:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (151 votes), past polls