Is phobos too fluffy?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon Sep 21 00:19:28 UTC 2020
On 9/20/20 4:46 PM, mate wrote:
> On Sunday, 20 September 2020 at 16:11:44 UTC, Adam D. Ruppe wrote:
>
>> Like I said, it is probably meaningless, but a bit amusing since I'm
>> so staunchly anti line length limits... but it seems to converge
>> around the same length anyway.
>
> Interesting. How long are your longest lines?
>
> awk '{print length}' | sort -rn | head
Ah, interesting test. I just ran this modified script against phobos:
awk '{print length " " FILENAME}' $(git ls-files '*.d') | sort -rn
These are all lines longer than 120 characters. Not too bad.
215 std/functional.d
199 std/signals.d
180 std/experimental/allocator/package.d
169 std/experimental/allocator/building_blocks/region.d
163 std/experimental/allocator/building_blocks/region.d
163 std/experimental/allocator/building_blocks/region.d
162 std/signals.d
162 std/experimental/allocator/building_blocks/region.d
162 std/experimental/allocator/building_blocks/region.d
160 std/experimental/allocator/building_blocks/bitmapped_block.d
154 std/experimental/allocator/building_blocks/package.d
154 std/experimental/allocator/building_blocks/ascending_page_allocator.d
153 std/experimental/allocator/building_blocks/region.d
152 std/experimental/allocator/building_blocks/region.d
150 std/windows/registry.d
149 std/socket.d
147 std/range/package.d
147 std/format.d
145 std/digest/sha.d
144 std/internal/digest/sha_SSSE3.d
142 std/experimental/allocator/building_blocks/bitmapped_block.d
142 std/experimental/allocator/building_blocks/bitmapped_block.d
138 std/variant.d
138 std/range/package.d
137 std/internal/math/gammafunction.d
137 std/digest/murmurhash.d
136 std/experimental/allocator/building_blocks/free_list.d
136 std/algorithm/comparison.d
135 std/signals.d
134 std/numeric.d
134 std/experimental/allocator/building_blocks/free_tree.d
133 std/experimental/allocator/mallocator.d
131 std/signals.d
130 std/process.d
129 std/experimental/allocator/building_blocks/region.d
129 std/experimental/allocator/building_blocks/region.d
129 std/experimental/allocator/building_blocks/affix_allocator.d
127 std/socket.d
127 std/range/package.d
127 std/exception.d
126 std/windows/registry.d
126 std/range/package.d
126 std/experimental/allocator/typed.d
126 std/experimental/allocator/mallocator.d
125 std/regex/package.d
125 std/process.d
125 std/internal/math/biguintcore.d
124 std/uni/package.d
124 std/signals.d
124 std/regex/internal/ir.d
124 std/random.d
124 std/internal/math/gammafunction.d
123 std/signals.d
122 std/net/isemail.d
122 std/experimental/allocator/building_blocks/scoped_allocator.d
122 std/array.d
122 std/algorithm/iteration.d
121 std/typecons.d
121 std/socket.d
121 std/signals.d
121 std/exception.d
121 std/exception.d
121 std/bitmanip.d
More information about the Digitalmars-d
mailing list