HNHacker News
TopNewBestAskShowJobs

iv_08

13 karma · joined August 27, 2013

submissionscomments
iv_08··on Why Every Language Needs Its Underscore
This! A 1000 times this!
iv_08··on Introducing Swift
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.
iv_08··on Introducing Swift
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.
iv_08··on Java is the COBOL of my generation and Go is its successor
He's talking about C, not Go. Because Ken Thompson created B, the precursor of C.
iv_08··on A RESTful Micro-Framework in Go
There's even a nice tutorial: http://go-database-sql.org/overview.html
iv_08··on Bzr is dying; Emacs needs to move
Canonical mismanagement, contributor license agreement, missing manpower.
iv_08··on Rust is surprisingly expressive
You're using Rust and call Mono incomplete? lololololol
iv_08··on Humanity wasted 14,526 years watching Gangnam Style
I can relate to you. I stopped watching YouTube years ago and I've never missed it since then.
iv_08··on 'W' Considered Harmful
Just give it a more efficient name. In German it's referred to as [veː].
iv_08··on Strings, bytes, runes and characters in Go
I think the number of displayed characters is even font-dependent.
iv_08··on Strings, bytes, runes and characters in Go
> 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.

iv_08··on What are the Windows A: and B: drives used for?
For the rugrats among us: http://imgur.com/bOdxEUW
iv_08··on UTF-8 – "The most elegant hack"
GTK+ uses Pango [1], which uses the FreeType [2] backend on Linux. There's also a pure Go implementation of FreeType. Here's the entry point for those who are interested in reading the code: http://code.google.com/p/freetype-go/source/browse/freetype/...

[1] http://www.pango.org

[2] http://www.freetype.org

iv_08··on UTF-8 – "The most elegant hack"
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.

iv_08··on SICP translated to JavaScript
VB 6 doesn't have lambdas, VB.NET does have lambdas.
iv_08··on What People Like About the Plan 9 OS
Plan 9 was basically the successor of Unix by the same research group, more modern, taking the ideas of Unix further, a distributed operating system with full network transparency, better shell (actually, rc already replaced the Bourne shell in version 10 Unix) and lots of other goodies such as the plumber. And it served as the "reference implementation" for UTF-8.
iv_08··on GNOME Developers Hate the Mouse, Remove Middle-Click Paste
If they "hate the mouse" why do they actually add more functionality to the middle mouse button? The article headline makes no sense.