News for hackers. Stuff that matters.
Re:We found over 10000 bugs in various open source projects by informatimago on Thursday August 18, 2016 @09:15AM (#12312218)
Switch to Common Lisp.

And with lisp, you don't have to repeat yourself: any pattern, or any boilerplate can be abstracted away with a macro.

Re:We found over 10000 bugs in various open source projects by bluGill on Thursday August 18, 2016 @09:19AM (#12312248)
> can be abstracted away

Except for too many levels of abstraction.

Re:We found over 10000 bugs in various open source projects by raverbashing on Thursday August 18, 2016 @11:08AM (#12313047)
Yes, I believe one of the problems is the way things are abstracted, and I don't see a language solving this

Adding more levels can only go so far

But I don't know how to do it better. Module/Class/Method won't cut it anymore

Re:We found over 10000 bugs in various open source projects by spacemanmatt on Thursday August 18, 2016 @10:16AM (#12312620)
Is that the fault of the programmer or the language, though?
Re:We found over 10000 bugs in various open source projects by steveklabnik on Friday August 19, 2016 @01:15PM (#12321612)
It's a reference to https://en.wikipedia.org/wiki/Fundamental_theorem_of_softwar... (and the "humorous clause" mentioned there as well)
Re:We found over 10000 bugs in various open source projects by maxerickson on Thursday August 18, 2016 @01:00PM (#12314225)
That's kind of what some compiler optimizations do isn't it? Look through the abstraction and discard it?
Re:We found over 10000 bugs in various open source projects by vbezhenar on Thursday August 18, 2016 @10:27AM (#12312707)
How can CL prevent something like "i1 == i1" instead of "i1 == i2" error?
Re:We found over 10000 bugs in various open source projects by jjnoakes on Thursday August 18, 2016 @11:26AM (#12313211)
First, since the AST is so simple to walk programmatically, one could write a simple check for that kind of bug in, I'm guessing, a few lines of Lisp.

Second, just because you can come up with a bug that can be written in a language doesn't mean the language doesn't prevent all sorts of other bugs.

All languages can have bugs written in them. That's not the point.

Re:We found over 10000 bugs in various open source projects by golergka on Thursday August 18, 2016 @09:58AM (#12312486)
The fact that something can be done doesn't mean that it should be done.