News for hackers. Stuff that matters.
Re:N-queen puzzle in 4 lines of Scala by username223 on Sunday April 10, 2016 @08:52AM (#11465919)
Indeed, it has been golfed: http://www.perlmonks.org/?node_id=196582

    -l /.{@ARGV}/?print:map/((.).*)(.)(??{$2!=$3&&length$1!=abs$2-$3&&0})/||do$0,$_.1.."$_@ARGV"
Re:N-queen puzzle in 4 lines of Scala by _asummers on Sunday April 10, 2016 @10:40AM (#11466277)
That's frightening. I hate to ask, but is that representative of Perl code?
Re:N-queen puzzle in 4 lines of Scala by dalke on Sunday April 10, 2016 @11:09AM (#11466435)
No. Golf is a game where the winner has the lowest score. It's reused as the term for a programming challenge to implement an algorithm with the fewest number of characters. See https://en.wikipedia.org/wiki/Perl#Perl_pastimes .

This is no more indicative of Perl than the Obfuscated C contest is indicative of C.

Re:N-queen puzzle in 4 lines of Scala by username223 on Sunday April 10, 2016 @11:15PM (#11469411)
Not at all, but it is representative of the best of Perl culture: smart people who enjoy playing with unexpected corners of a complex system, while remembering the difference between "work" and "play." See Ton Hospel's insane Roman numeral calculator: http://perlmonks.org/?node_id=594299
Re:N-queen puzzle in 4 lines of Scala by GregBuchholz on Sunday April 10, 2016 @12:28PM (#11466851)
Javascript anyone?

    !function r(y,a,z,b,x){for(x=y--?-1:print(a);++x<n;z&c|b&d||r(y,a+1?a+' '+x:x,z|c,b|d))c=(1|1<<y+9)<<x,d=1<<9+x-y}(n=readline())
http://golf.shinh.org/reveal.rb?N+Queens/murky-satyr_1217229...