Better HN
topnewbestaskshowjobs
Log inSign up

cyberroadie

30 karma · joined Dec 23, 2011 (14y ago) · 8 submissions

Submissions

1.

Minimal PCG number generator in Go(github.com ↗)

2 points · by cyberroadie · 11y ago · discuss

comment 13y ago · link · parent

The staircase in the picture down the page is mirrored compared to the Scala logo. I've added some css to 'correct' this ;-) Pull request here: https://github.com/scala/scala-lang/pull/75

comment 13y ago · link · parent

Gumtree is owned by eBay

comment 14y ago · link · parent

The author of the blog post is overlooking a major feature here. Go does multiple return types, so you can do things like this: i, err := getValue() however if you want to ignore a return variable or in this case the returned error you use an underscore like this (same as in haskell): i, _ := getValue()

This is Go's mechanism for handling (or ignoring errors) which imho is really nice because you don't have to learn anything extra, like throwing/catching error mechanisms

comment 14y ago · link · parent

Here is one of the first empirical Scala vs Java studies: http://www.neverworkintheory.org/?p=375

Here is the actual paper: http://www.rz.uni-karlsruhe.de/~kb95/papers/pankratius-Scala...

Quote from the conclusion: With respect to effort, this study refutes the claim that Scala programs are faster to develop: in comparison to Java, Scala requires more effort, and especially more testing and debugging effort.

comment 14y ago · link · parent

I made a varnish urlsort module a while ago: https://github.com/cyberroadie/varnish-urlsort

Here my blog post about it: http://cyberroadie.wordpress.com/2012/01/05/varnish-reorderi...

It parses the url and every token gets added to a binary tree which than gets traversed in order to get the parameters alphabetically

It's been used in production in several companies I worked for, so tried and tested :-)

Olivier

comment 14y ago · link · parent

I think the whole of the UK is opposite of the south of the US

comment 14y ago · link · parent

They should make it go dark in Washington only, these companies are good in targeted 'advertisement' anyway. I wonder how the government would react on a blackout targeted only at them