Live data from Hacker News

Open-sourcing Facebook Infer: Identify bugs before you ship

code.facebook.com

1–10 of 121 posts

Re: Open-sourcing Facebook Infer: Identify bugs before you ship

#3
More OCaml code coming out of FB. Can add this to the list, which includes, Hack, Flow and Pfff [1].

The kinds of bugs it finds are listed at: http://fbinfer.com/docs/infer-bug-types.html

It's interesting to see how building tools with languages like OCaml can reduce bugs for teams, without them having to change the language itself. I do wonder what things would be like if such languages we're used directly more widely.

[1] http://ocaml.org/learn/companies.html

Re: Open-sourcing Facebook Infer: Identify bugs before you ship

#7

Seems like mentioning the sorts of bugs this can detect should be the most important thing on the landing page.

> At present, the analyzer reports problems caused by null pointer access and resource and memory leaks, which cause a large percentage of app crashes.

Did you mean you were looking for something more specific?

Re: Open-sourcing Facebook Infer: Identify bugs before you ship

#9

Seems like mentioning the sorts of bugs this can detect should be the most important thing on the landing page.

The list is at http://fbinfer.com/docs/infer-bug-types.html

For Java, it's Resource leaks and Null dereferences

For C and Objective C, the list is Resource leak Memory leak Null dereference Parameter not null checked Ivar not null checked Premature nil termination argument

Re: Open-sourcing Facebook Infer: Identify bugs before you ship

#10

I assume it can also be used for java server side code?

Yes, it can be used with most Java code you can build on the command line. Just run "infer -- ". Currently, this works with javac, Ant, Maven, and Gradle. See http://fbinfer.com/docs/hello-world.html#hello-world-android for a Gradle example.
Post reply on HN