Recent submissions

Comment · 12 years ago
This! A 1000 times this!
Comment · 12 years ago
You're probably right, but I think I've heard of Rust in public in 2010 and that it was started by Graydon in 2007.
Comment · 12 years ago
If you mean by "entire" the spelling of one keyword and the omitting of parentheses. Everything else seems to be more related to C and various Action/ECMAScript like scripting languages.
Comment · 12 years ago
He's talking about C, not Go. Because Ken Thompson created B, the precursor of C.
Comment · 12 years ago
Comment · 13 years ago
Canonical mismanagement, contributor license agreement, missing manpower.
Comment · 13 years ago
You're using Rust and call Mono incomplete? lololololol
Comment · 13 years ago
I can relate to you. I stopped watching YouTube years ago and I've never missed it since then.
Comment · 13 years ago
Just give it a more efficient name. In German it's referred to as [veː].
Comment · 13 years ago
I think the number of displayed characters is even font-dependent.
Comment · 13 years ago
> You can't usefully index a unicode stream in constant time and do correct and useful textual stuff anyway

To find an index of a substring you need to scan the string, right. But once you have the byte index you can quickly jump to its position in the string, e.g. when you do a slice operation based on that index: s[i:]. If strings.Index() returned a code point index and not a byte index you would have to scan the string again.

Comment · 13 years ago
Comment · 13 years ago
Comment · 13 years ago
For index based operations code units are more useful than code points.

a = s.indexOf("e̬̱ͤ̈́̿̂̅́͟")

b = s.indexOf("m̛̮̩͙ͦ͗͆̄̋́̄")

s[a:b]

This operation is fast with code unit indices and slow with code point indices.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton