HNHacker News
TopNewBestAskShowJobs

edsrzf

436 karma · joined October 13, 2010

My GitHub: https://github.com/edsrzf
submissionscomments
edsrzf··on Perl is no more accurate than randomly-generated language
You may be in luck. The paper says:

"Given this interesting first result, we plan to test a number of additional languages using the same procedures."

Hopefully they'll use larger sample sizes too. This one involved 18 people across 3 groups.

edsrzf··on GitHub Secrets
The new Google Groups also has it. The shortcuts are similar to Gmail's.
edsrzf··on Why Not Haskell?
Go version 1, the first stable version of the language and implementation, is due out early next year. That sounds like a good time to start learning.
edsrzf··on Dart language
Small correction: Go was announced in November 2009.
edsrzf··on Running a startup on Haskell
Go has a QuickCheck-like package distributed with it. It's under testing/quick.

http://golang.org/pkg/testing/quick/

edsrzf··on Game theory article from a professional Starcraft player/caster.
If I remember correctly from my college AI days, thinking about upcoming turns and minimizing your opponent's gains is called minimax: http://en.wikipedia.org/wiki/Minimax

I'm surprised that there was only one AI in the competition that did this. We were all expected to use this strategy in my class. Once everybody's figured this out, it becomes a game of:

- Who can think ahead the most turns? - Who has the best "am I winning?" heuristic function? (For Mancala this function is fairly obvious, but for many games it's not.)

edsrzf··on JS is Assembly Language for the Web: Brendan Eich, Crockford, & others comment
Another project in the same vein: https://github.com/kripken/emscripten/
edsrzf··on Telescopictext
It might be nice to read news articles this way. Start with the headline and expand the parts that interest you the most. I can imagine it being difficult to write that way, though.
edsrzf··on Google App Engine for Go
Maybe some day: http://code.google.com/p/go/issues/detail?id=498

(Native Client is also a possibility.)

edsrzf··on Exception Safety, Garbage Collection etc. (a.k.a. Why Does Java Suck So Bad?)
Yes, but it's much easier to recognize ignored error codes than ignored exceptions:

http://blogs.msdn.com/b/oldnewthing/archive/2005/01/14/35294...

In Go, it's even easier to recognize ignored error codes because you tend to have fewer levels of indentation and sometimes an explicit "_" when you're discarding a return value.

edsrzf··on New stable release of Go
Back in February on the dev list Rob said something about "...until the App Engine stuff is out." For some reason this email doesn't appear in the archive, but I'm definitely looking at it in my inbox right now.

It did and still does make me wonder, though.

edsrzf··on C is a Wasteland
It wouldn't be difficult to add new built-in functions for allocating and freeing memory manually. If you wanted to remove garbage collection, it would require a more significant language change. There are several constructs in the language that implicitly allocate memory.

If Go adds support for generics, manual memory management could be provided by a third party package.

edsrzf··on C is a Wasteland
It's close. The only thing the author lists that it doesn't provide is manual memory management. It's technically possible, but the language/libraries don't provide it. Type safety and lack of generics make it difficult to provide a reasonable interface for it.
edsrzf··on Which programming languages are the fastest?
The benchmark game now only shows one implementation per language. The reasons aren't very satisfying IMO, but see this thread:

http://thread.gmane.org/gmane.comp.python.pypy/7303/focus=73...

edsrzf··on I Hope You Don’t Have a Borders Rewards Card
So are little companies, in many cases. Maybe it's just that we expect more from the big ones.
edsrzf··on GNU Compiler Collection 4.6.0 released with Go programming language support
That's true for the gc compilers, but not for gccgo (yet, anyway). Each go statement in gccgo creates a pthread.
edsrzf··on GNU Compiler Collection 4.6.0 released with Go programming language support
Yes, they are.
edsrzf··on Google's Cat & Mouse SEO Game: Google's Collateral Damage
It's not that Wikipedia is necessarily high quality, it's that users want to see relevant Wikipedia articles near the tops of their searches. It's a really useful starting point for a wide variety of searches.
edsrzf··on Introducing the File Finder
That's a great feature for bigger projects.

I would love to see a similar grep-type feature, where I can quickly search through the files in a repository for text. (Yes, I know there's advanced search, but that's so disruptive to my code reading.)

edsrzf··on UTF-8 good, UTF-16 bad
Okay, you're right. I shortened what I was trying to say too much. UTF-16 evolved from UCS-2, so its roots are in a 16-bit, fixed-width encoding.
edsrzf··on UTF-8 good, UTF-16 bad
This is a common misconception about UTF-8 vs. UTF-16. You're missing two important facts.

1. Most UTF-8 string operations can operate on a byte at a time. You just have realize that functions like strlen will be telling you byte length instead of character length, and this usually doesn't even matter. (It's still important to know.)

2. UTF-16 is still a variable-width encoding. It was originally intended to be fixed-width, but then the Unicode character set grew too large to be represented in 16 bits.

edsrzf··on Chromium Notes: Ninja, a new build system
Direct link to the GitHub project: https://github.com/martine/ninja

I'm always interested in alternatives to Make because I just find it so painful. However, I'd say that only about half of Make-related pain comes from its dependency management. The other half, to me, is in using its language, and Ninja doesn't seem to do anything to ease that pain. Its manual says: "You should generate your ninja files using another program." That seems like a bad sign to me.

Tools like CMake can be helpful when there are lots of configurations available and dependencies to check, but on a small project I want to write a quick script that will just work. CMake and its ilk add another layer of complication that I don't want to have to deal with most of the time.

edsrzf··on Rob Pike: Notes on Programming in C
I totally agree.

Not only will headers including headers cause files to rebuild unnecessarily, but it can cause build times to increase simply because the compiler has to compile all those extra headers each time they're included in a source file. (Precompiled headers can help, but they aren't always an option.)

edsrzf··on Programming languages have to break free from the tyranny of ASCII
I couldn't agree more, and I really don't understand the author's argument. He refers to APL, a language that's legendary for its use of wild symbols, as "write only," but then seems to be complaining that newer languages aren't doing the same thing.

I think Go actually gets this right: its syntax doesn't require any wacky characters, but it allows identifiers to consist of any Unicode characters classified as letters or numbers. The syntax caters to the lowest common denominator, but if I really want to name my variables in Greek, I can.

edsrzf··on Offer HN: SEO Help
I don't currently have a website that I'd like to SEO, but I will in the future. Maybe those who get help would be willing to post the advice they receive, so that all of us benefit?
edsrzf··on Real Go Projects: SmartTwitter and web.go
I think it's worth pointing out that underneath, most of the libraries those dynamic languages are using are written in C or even assembly in some cases.

I'm not saying that those benchmarks don't have value, but saying that Go's barely faster than the best dynamic languages doesn't ring true to me.

edsrzf··on The next big language
I find it interesting that he says Go's syntax is ugly, but that Clay programs look so good and readable. The two languages have a very similar basic syntax, and some of the Go's differences are an improvement in my book: no semi-colons, fewer parentheses.
← PreviousPage 2 of 2