News for hackers. Stuff that matters.
Re:Elsa: Emacs Lisp Static Analyzer by thenonameguy on Tuesday July 16, 2019 @06:13AM (#20448779)
Re:Elsa: Emacs Lisp Static Analyzer by nonbirithm on Tuesday July 16, 2019 @12:50PM (#20451707)
Really interesting. Some of the project inspirations listed are tools to rewrite Clojure source code. Recently I wanted something equivalent for Lua so I started writing one[0]. Refactoring in dynamic languages is harder that in needs to be a lot of times, but static analysis combined with whitespace-preserving ASTs would really help.

[0] https://github.com/Ruin0x11/yalf

Re:Elsa: Emacs Lisp Static Analyzer by alexeiz on Tuesday July 16, 2019 @10:08AM (#20450130)
And spark joy it does!
Re:Elsa: Emacs Lisp Static Analyzer by hestefisk on Tuesday July 16, 2019 @10:21AM (#20450272)
Only Sun can sparc Joy.
Re:Elsa: Emacs Lisp Static Analyzer by moomin on Tuesday July 16, 2019 @07:24AM (#20449067)
Perfect product name.
Re:Elsa: Emacs Lisp Static Analyzer by k_sze on Tuesday July 16, 2019 @12:21PM (#20451452)
Now we just need to wait for it to make your computer freeze over. Ba dum tss!
Re:Elsa: Emacs Lisp Static Analyzer by edeion on Tuesday July 16, 2019 @10:13AM (#20450171)
I can't find a reference to ELIZA even though I'm sure they (and maybe you) had this in mind.

https://en.m.wikipedia.org/wiki/ELIZA

Re:Elsa: Emacs Lisp Static Analyzer by tobr on Tuesday July 16, 2019 @11:22AM (#20450917)
> (Your favourite princess now in Emacs!)

Pretty sure they just had Elsa in mind.

Re:Elsa: Emacs Lisp Static Analyzer by dreamcompiler on Tuesday July 16, 2019 @04:37AM (#20448441)
I need this for Common Lisp.
Re:Elsa: Emacs Lisp Static Analyzer by phoe-krk on Tuesday July 16, 2019 @09:33AM (#20449840)
The SBCL compiler already emits a lot of style-warnings and notes when it compiles code - these warnings serve as a good enough linter for me.
Re:Elsa: Emacs Lisp Static Analyzer by zulu-inuoe on Tuesday July 16, 2019 @12:10PM (#20451354)
something something "Can we get a static analysis tool?" "No we already have a static analysis tool at home"

Static Analysis Tool At Home: sbcl --load

Re:Elsa: Emacs Lisp Static Analyzer by TeMPOraL on Tuesday July 16, 2019 @06:12PM (#20454353)
Not nearly enough, thought with safety declarations cranked up to 11 (to 3, really) and enough type declarations sprinkled around the code, it becomes serviceable as a tool.
Re:Elsa: Emacs Lisp Static Analyzer by pcr910303 on Tuesday July 16, 2019 @05:47AM (#20448692)
> I need this for Common Lisp.

Maybe sblint[0] might help?

It's a pity that the CL userbase is so small and that most of the userbase doesn't think that the small userbase is a problem. :-(

[0] https://github.com/fukamachi/sblint

Re:Elsa: Emacs Lisp Static Analyzer by yorozu on Tuesday July 16, 2019 @01:14PM (#20451948)
Why can't it be run directly in Emacs (instead of via cask)?
Re:Elsa: Emacs Lisp Static Analyzer by rcdwealth on Tuesday July 16, 2019 @06:57AM (#20448966)
This is too complex. There is nice function elint-current-buffer that helps me with basic corrections.
Re:Elsa: Emacs Lisp Static Analyzer by jhayward on Tuesday July 16, 2019 @09:55AM (#20450023)
What about it do you find complex?
Re:Elsa: Emacs Lisp Static Analyzer by showdeadplease on Tuesday July 16, 2019 @07:16AM (#20449024)
Emacs is too complex. There is nice editor `ed` that helps me with basic corrections.
Re:Elsa: Emacs Lisp Static Analyzer by hestefisk on Tuesday July 16, 2019 @10:22AM (#20450276)
Line by line.
Re:Elsa: Emacs Lisp Static Analyzer by dtaverascmu on Tuesday July 16, 2019 @10:37AM (#20450439)
wow!!