Hacker Newsnew | past | comments | ask | show | jobs | submit | barristan's commentslogin

In case anyone is looking for other novel ways to solve Sudoku. I wrote a CP language a while back that does pretty fast solving for the right kind of problem [1]. Folks might also find this Sudoku benchmarking blog post interesting [2], it includes links to solutions in a bunch of languages.

1) http://sabrlang.org/sudoku

2) http://attractivechaos.wordpress.com/2011/06/19/an-incomplet...


They do say an elephant never forgets. It's possible that after stomping through the fence and releasing all the bees the elephant simply continues to charge into the field. But once the elephant is shooed out of the field, the next time it considers entering, it will remember the bees and might reconsider.

It's also possible the elephant doesn't stomp through the fence, but simply meanders toward it until it feels the wire. After which some of the bees come out and the elephant simply decides to not break through the wire and to instead return from where it came.


Yes, this seems to be the nature of communities both online and offline. A community becomes known for something like hipsters in Brooklyn, cat memes in Reddit, or motherhood paraphernalia in Pinterest. More people of the demographic with the same mindset join and stay, whereas everyone else feel unwelcome and gradually leave.


I left Reddit a while back because I felt this way. I'm a conservative and on that site it's like being a social pariah. I'd rather just keep my thoughts to myself from now on.


Serious question: how has this differed from HN, if at all?

The few times I've been in a political discussion on HN (which is admittedly rare), it's been a crap shoot between a reasonable but clearly left-of-center discussion and "conservatives are the most evil thing imaginable and they clearly lack any intellect."


Well here at HN they quickly steer the car back on to the track and disuade anything that isn't technical or related to "hacking". The ones that slip through I just ignore. The signal to noise ratio is much better and I feel like I can focus on tech here. Reddit is too wide open for that.


Pretty good, I prefer Binky myself (http://www.youtube.com/watch?v=f-pJlnpkLp0), but to each their own.


It does seem to make more sense to just roll your own static site generator rather than try to learn a whole new framework and language like Jekyll, which then might not even give you everything you want. This is particularly true if you where to use a robust templating engine like Jinja2.


This is an ideal problem for constraint solving. If there is one thing constraint solving does well it is make NP-Hard problems more manageable. I wrote up a quick solution to the first puzzle in sabr (1), you can see what the puzzle result looks like here (2). The key insight is: "each color must be surrounded by exactly two of its color, unless it is on an end, in which case it is surrounded by exactly one" after that it's just a matter of coding it up. It's not much extra work to go from here to a generator, which I may make later if I have time. Cool puzzle game, I like it ;D.

1) https://github.com/dbunker/SABR/blob/master/module/other-tes...

2) https://github.com/dbunker/SABR/blob/master/module/other-tes...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: