HNHacker News
TopNewBestAskShowJobs

shangaslammi

354 karma · joined February 1, 2011

submissionscomments
shangaslammi··on How much will your first indie game make?
Selling the game to a single, publisher-like entity through negotiation seems like a pretty old-fashioned way to do it and an especially bad fit for a low-budget indie game.

It would have been interesting to compare numbers if some of the teams would have thrown their project to e.g. Kickstarter or sold it directly to consumers via Steam or similar service.

shangaslammi··on Why Google Chrome on iOS stands a chance
And most importantly: it syncs omnibar history which makes old fashioned bookmarks almost redundant.
shangaslammi··on Why Google Chrome on iOS stands a chance
Misses the most important point: syncing.

I don't know about the masses, but at least that was the biggest reason in my circles why people were excited to have Chrome on iOS.

shangaslammi··on #BoycottApple trending on Google plus due to Galaxy Nexus ban
The problem is that just as there's a lot of room for interpretation regarding whether something falls under a certain software patent or not, whether something get ruled as valid prior art by a specific judge is likewise a crapshoot.

Secondly, IANAL and I might be mistaken, but I'm under the impression that the current case is solely about whether Samsung violates the patents or not. The validity of the patents themselves would have to be argued in a separate court case.

shangaslammi··on Siri is old tech now - check out Google's solution
The video isn't comparing Siri to S Voice (which is Samsung's mediocre Siri-clone), but to Google Voice Search in Android 4.1.
shangaslammi··on #BoycottApple trending on Google plus due to Galaxy Nexus ban
Have you actually looked at the four patents used in this litigation? I think it's highly arguable whether Apple really invented any of those concepts.
shangaslammi··on Android 4.1 Jelly Bean is now available
It's still in beta, so not bundled with the OS yet. https://play.google.com/store/apps/details?id=com.google.and...
shangaslammi··on Nexus 7, Made for Google Play
I think he's talking about a stylus like in Galaxy Note, which is quite a different beast (proper pressure sensitivity and pen angle detection).
shangaslammi··on Try Haxe
This is really what has kept me from giving Haxe a try so far. It's just extremely painful to go back to curly braces and semicolons after years of writing noise-free code with e.g. Python, CoffeeScript and Haskell.

I know it sounds superficial, but I'd love a CoffeeScript-like alternative syntax for Haxe. That would probably elevate it to the number one language choice for game programming for me.

shangaslammi··on On{X}: The Coolest Thing to Happen to Android. Courtesy of… Microsoft Israel?
Since it's for Android, how about logging in using your Google account?
shangaslammi··on Galaxy Nexus now on sale in Google Play
Add the language you don't want to see to the preferred content languages in your browser settings and then make sure it's the last one in the list. Works with most Google services and many others to stop the automatic language selection based on IP.
shangaslammi··on MIT Completes "Holy Grail of Hacks," Turns Green Building into a Game of Tetris
Looks similar to the "Mikontalo Lights" project in Finland. http://www.youtube.com/watch?v=ril6OYSKD3A
shangaslammi··on Write logic, not mechanics
It's a bit misleading way to put it, but more or less correct when talking about client-side JavaScript. There are essentially no blocking calls, so a "synchronous" function in this context just means a normal function which directly returns a value and "asynchronous" means a function that takes a callback.

What the quoted bit boils down to is that any function that returns normally can be converted into a function that calls a callback, but not the other way around.

shangaslammi··on GUM: A better CLI for Git
I absolutely agree with you. I used to use bzr for personal projects and compared to git it has way more intuitive commands and flags as well as smarter defaults. I use git nowadays mainly because of github and because it's what we use at work, but even after using git for two years I still need to constantly refer to the documentation for the various command flags.
shangaslammi··on Node.js - A giant step backwards?
To make things easier, you can use node-fibers (https://github.com/laverdet/node-fibers) to structure your asynchronous code with coroutines or, if you are feeling less adventurous, async (https://github.com/caolan/async) is an excellent helper library for common asynchronous code patterns and it works on the client-side as well.
shangaslammi··on A Programming Idiom You've Never Heard Of
This is exactly what Python does, and while Python isn't the fastest language around, it's not that slow either, when compared to other dynamically typed, interpreted languages.
shangaslammi··on The Humble Indie Bundle #4 (pay what you want and help charity)
Why did they drop EFF from the charities? :(
shangaslammi··on Game Theory 101
Amazon is paying VAT in the EU, but the last time I checked, the tax wasn't quite in the hundreds of percents. This is just Amazon taking extra profit because they can, and the author is only getting paid based on the $0.99 and $2.99 price points.
shangaslammi··on Game Theory 101
The prices are $3.44 and $5.74 for me (when logged into Amazon US). That's a nice +250% price hike for us Europeans!
shangaslammi··on Ask HN: What programming blogs do you read daily?
The only semi-regularly updated ones I currently have in my RSS reader are:

- James Hague's "Programming in the 21st Century": http://prog21.dadgum.com/

- Edward Z. Yang's blog: http://blog.ezyang.com/

Rest of my daily blog hits I get via Hacker News and reddit/r/haskell

shangaslammi··on Why Finland’s schools are great (by doing what we don’t).
I don't know anyone who's said that Finnish is an easy language to learn. In fact, I think it's generally considered one of the hardest languages in the world (along with Hungarian, which has similar grammar). You are right, though, that the phonetics are easy and highly consistent.

Also, in practice, most technical terms are borrowed from English, instead of inventing native, Finnish words for them.

shangaslammi··on Google Maps gains weather layer with forecasts
That has been possible for a long time in Google Calendar: http://www.google.com/support/calendar/bin/answer.py?answer=...
shangaslammi··on Android outstripping iOS in ad impressions and device market share
I think the implication is, that increased market share means that third party developers will pay more attention to the platform and develop more and better apps.
shangaslammi··on Warren Buffett: Stop coddling the super rich
How on earth does consumption tax have anything to do with "shared sacrifice"? Consumption tax wrecks the purchasing power of the poor (who spend pretty much 100% of their income on taxed goods) and doesn't have any effect on the purchasing power of the super rich (who typically only spend a minor portion of their income on consumer goods).
shangaslammi··on The Amazon Kindle Cloud Reader is live
Sure, except that even Kindles that are wi-fi only had to pay the extra $2, not to mention those reading only on the PC or mobile app. It was a stupid system, but as I said, they are fortunately phasing the whole thing out now, and many books already have pricing parity (well, excluding VAT, but that's not Amazon's fault).
shangaslammi··on The Amazon Kindle Cloud Reader is live
This specific complaint is about Amazon though. Even if a publisher sets the exact same price for every region, Amazon sometimes adds their own "Whispernet tax" of about $2 + VAT. They seem to be gradually phasing it out now, but for the longest time, there were e.g. no free books outside the US, because even books listed as "free" actually cost a minimum of $2 + tax.
shangaslammi··on Functional Programming Languages
Haskell has definitely been the most rewarding programming language to learn for me personally. It's fairly unique in many ways, and really forces you to think in functional terms (unlike many other functional languages, which make it easy to drop back to OO or imperative style).

However, Scala was the "gateway" language that helped me grok the core functional concepts after a long history of doing just OOP.

shangaslammi··on 40% off Pragmatic Programmers books this week
+1 for Pragmatic Thinking and Learning. A great book from which everyone can benefit in some way, IMHO.
shangaslammi··on Retiring a Great Interview Problem
Here's my Haskell attempt (both naive recursive backtrack and dynamic programming version):

    type Dict = Set String

    hasWord :: Dict -> String -> Bool
    hasWord = flip Set.member

    fmtWords :: [[String]] -> Maybe String
    fmtWords = fmap (intercalate " ") . listToMaybe 

    splitWordsSimple :: Dict -> String -> Maybe String
    splitWordsSimple dct = fmtWords . go where
        go [] = return []
        go s = do
            (i,t) <- zip (inits s) (tails s)
            guard $ hasWord dct i
            (i:) <$> go t

    splitWordsDP :: Dict -> String -> Maybe String
    splitWordsDP dct s = fmtWords $ a ! 0 where
        a = listArray (0, len) $ map f [0..len-1] ++ [[[]]]
        len = length s
        f i = do
            l <- [1..len-i]
            let w = take l $ drop i s
            guard $ hasWord dct w
            (w:) <$> a ! (i+l)
shangaslammi··on A Regular Expression Matcher in 30 lines of C
Here's my attempt at implementing the same functionality in Haskell: https://gist.github.com/1062472

I tried to make it short, but still somewhat readable, so it's not completely "golfed".

← PreviousPage 2 of 3Next →