News for hackers. Stuff that matters.
Re:Extreme syntax by lucian1900 on Thursday May 16, 2013 @11:02AM (#5718948)
It's impossible to parse in the theoretical sense, since it requires information only obtainable through evaluation.
Re:Extreme syntax by snaky on Thursday May 16, 2013 @02:32PM (#5720220)
And that's a necessarily a bad thing?
Re:Extreme syntax by ionforce on Thursday May 16, 2013 @02:43PM (#5720313)
For varying contexts of bad. It impedes on things like static analysis.

You don't want the surface area of your programming language confined to 1) runtime 2) being run by a specific binary. Where is the offline tooling? Where is the variety?

This handicap makes me despise Perl. And I say that as a long time professional Perl engineer.

Re:Extreme syntax by snaky on Thursday May 16, 2013 @02:59PM (#5720409)
What the point of static analysis for dynamic language?

>being run by a specific binary

That's a not so appealing argument in particular case of Perl which level of reverse compatibility is hard to beat.

Re:Extreme syntax by ionforce on Thursday May 16, 2013 @03:41PM (#5720671)
Static analysis aids in finding common errors earlier in the development process.

Also, what does reverse compatibility have to do with ease of parsing?

Re:Extreme syntax by snaky on Thursday May 16, 2013 @04:02PM (#5720812)
Generally speaking, static analysis is sometimes helpful for finding simple errors, yes. But how it's applicable to dynamic language like Perl?

So, whether ease of parsing is a goal per se, or serve some purpose - what such a purpose can be in particular case of Perl?

Re:Extreme syntax by happy_dino on Thursday May 16, 2013 @08:23PM (#5722061)
Yes, absolutely.
Re:Extreme syntax by snaky on Friday May 17, 2013 @06:37AM (#5723538)
Because ... ?
Re:Extreme syntax by happy_dino on Friday May 17, 2013 @08:32AM (#5723861)
The idea of saying “Here is some file and I can't tell you whether it is valid Perl without executing it.” is magnitudes worse than all the C++ macro preprocessor and template hell combined.

Something like that is pretty much the worst imaginable thing to happen in language design, especially because we know at least since Chomsky, Rice and Turing how to do better.

Re:Extreme syntax by snaky on Friday May 17, 2013 @04:23PM (#5726521)
>whether it is valid Perl

And why that information may be valuable? You cannot say anything about whether it works or it doesn't. "This is valid C++ code, but it dumps a core on null pointer dereference here and there." -- is that information very useful? How exactly?

I see an only one ephemerical goal that was a Holy Grail for academia and static analysis was primarily developed to approach it -- formal verification. But it's dead and buried outside an academia and noone cried at the funeral.

Re:Extreme syntax by happy_dino on Wednesday May 22, 2013 @11:13AM (#5751389)
This is so stupid that I won't bother answering it.

You just can't imagine how incredibly ridiculous it appears to the non-US world to use “academic” as a slur.