News for hackers. Stuff that matters.
Re:Code that is valid in both PHP and Java, and produces the... by skrebbel on Thursday September 01, 2016 @04:55AM (#12403826)
Great share, but I'd like to kindly suggest that you think again about your conclusions there. You were dismissive of an entire programming language and its community (we've all been there), and then 1 member of that community did something impressive, and you changed your entire opinion of said language and community (I guess most of us have been there too).

Wouldn't it be a much more interesting conclusion that there's fantastic people and not-so-fantastic people everywhere and it mostly just depends on where you look?

I mean, HN likes to be very dismissive of PHP but at the same Composer (the de-facto PHP package manager) avoids dependency conflicts entirely and provably because it contains a home-cooked SAT solver[1]. In PHP. Tackling an NP-complete problem without breaking a sweat. To me that's both super-awesome and sensible at the same time.

Maybe stereotypes about programming communities have more to do with marketing and accidental who-happens-to-be-most-prolific and less with the language or community just being good or bad.

[1] http://www.naderman.de/slippy/src/?file=2012-06-07-Composers...

Re:Code that is valid in both PHP and Java, and produces the... by splintercell on Thursday September 01, 2016 @11:36AM (#12406110)
> I mean, HN likes to be very dismissive of PHP but at the same Composer (the de-facto PHP package manager) avoids dependency conflicts entirely and provably because it contains a home-cooked SAT solver[1]. In PHP. Tackling an NP-complete problem without breaking a sweat. <

Any idea where can I find more details on that. The slideshow you linked does not provide enough information.

Re:Code that is valid in both PHP and Java, and produces the... by skrebbel on Thursday September 01, 2016 @12:45PM (#12406809)
I wish I did! I can't remember how I learned that it's SAT based and google isn't very forthcoming :-(
Re:Code that is valid in both PHP and Java, and produces the... by terminado on Thursday September 01, 2016 @09:40PM (#12410213)
Probably because most Google searches for "SAT" involve prep courses that help you achieve a score of 1600... [._.]

On the other hand, jargon searching wikipedia helps narrow results:

https://en.wikipedia.org/wiki/Boolean_satisfiability_problem

Re:Code that is valid in both PHP and Java, and produces the... by johnny22 on Sunday September 04, 2016 @05:34PM (#12426834)
i thought the SAT solver was a PHP port of libsolv.
Re:Code that is valid in both PHP and Java, and produces the... by terminado on Thursday September 01, 2016 @08:34PM (#12409904)
Well, I'd like to kindly suggest that you think again about your assumptions, regarding why I was dismissive of Ruby. Ruby was still kinda/sorta new-school in 2013. Yet another technology stack as far as I could tell. Ruby was not quite a thing yet, back in 2008 or so. Probably because Rails was still pretty much somewhat "new."

Back in 2008, I still had yet to learn that Ruby was a compiled language, and that Rails was a runtime environment for web applications. In corporate enterprise 401k cubicle farms, there were only hushed mentions of Ruby among hobbyists as early as autumn, 2009 (the first time I remember hearing tell of such a thing). And mostly among those who developed on Macs, which was actually a little bit rare back then. Ubuntu was similarly revolutionary at that time, even if LAMP stacks were well established.

Re:Code that is valid in both PHP and Java, and produces the... by flukus on Thursday September 01, 2016 @08:45PM (#12409959)
Rails hype was kicking into full gear around 2006/2007.
Re:Code that is valid in both PHP and Java, and produces the... by terminado on Thursday September 01, 2016 @09:12PM (#12410084)
Well that's lovely.
Re:Code that is valid in both PHP and Java, and produces the... by jasoncchild on Thursday September 01, 2016 @10:37AM (#12405523)
"Wouldn't it be a much more interesting conclusion that there's fantastic people and not-so-fantastic people everywhere and it mostly just depends on where you look?"

Yes...except this wasn't thier conclusion...so...

Re:Code that is valid in both PHP and Java, and produces the... by JadeNB on Thursday September 01, 2016 @10:43AM (#12405562)
This seems like a strange comment. Your parent suggests that your grandparent should have made a specific different interpretation, and you respond that the suggested interpretation is different?