News for hackers. Stuff that matters.

iv_08

Re:Why Every Language Needs Its Underscore on Sunday June 22, 2014 @11:33AM (#7928093)
This! A 1000 times this!
Re:Introducing Swift on Tuesday June 03, 2014 @01:34AM (#7838308)
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.
Re:Introducing Swift on Tuesday June 03, 2014 @01:30AM (#7838295)
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.
He's talking about C, not Go. Because Ken Thompson created B, the precursor of C.
Re:A RESTful Micro-Framework in Go on Sunday January 26, 2014 @01:03PM (#7126012)
There's even a nice tutorial: http://go-database-sql.org/overview.html
Re:Bzr is dying; Emacs needs to move on Thursday January 02, 2014 @06:59AM (#6999212)
Canonical mismanagement, contributor license agreement, missing manpower.
Re:Rust is surprisingly expressive on Sunday December 29, 2013 @04:13AM (#6978963)
You're using Rust and call Mono incomplete? lololololol
Re:Humanity wasted 14,526 years watching Gangnam Style on Sunday November 03, 2013 @01:33PM (#6664372)
I can relate to you. I stopped watching YouTube years ago and I've never missed it since then.
Re:'W' Considered Harmful on Friday November 01, 2013 @12:40AM (#6651799)
Just give it a more efficient name. In German it's referred to as [veː].
Re:Strings, bytes, runes and characters in Go on Thursday October 24, 2013 @05:03AM (#6604098)
I think the number of displayed characters is even font-dependent.
Re:Strings, bytes, runes and characters in Go on Thursday October 24, 2013 @05:01AM (#6604085)
> 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.

Re:What are the Windows A: and B: drives used for? on Saturday October 19, 2013 @09:25AM (#6576312)
For the rugrats among us: http://imgur.com/bOdxEUW
Re:UTF-8 – "The most elegant hack" on Sunday September 29, 2013 @07:56AM (#6464914)
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

Re:UTF-8 – "The most elegant hack" on Sunday September 29, 2013 @06:04AM (#6464705)
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.

Re:SICP translated to JavaScript on Saturday September 14, 2013 @12:35PM (#6386131)
VB 6 doesn't have lambdas, VB.NET does have lambdas.
Re:What People Like About the Plan 9 OS on Saturday September 07, 2013 @06:59PM (#6346963)
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.
Re:GNOME Developers Hate the Mouse, Remove Middle-Click Paste on Tuesday August 27, 2013 @07:45AM (#6282850)
If they "hate the mouse" why do they actually add more functionality to the middle mouse button? The article headline makes no sense.