These are chat archives for coala/coala-bears

1st
Nov 2016
AbdealiJK
@AbdealiJK
Nov 01 2016 02:28
@Adrianzatreanu continue your Mac debugging here. Not appropriate in the issue
Can you upgrade to Sierra 10.12.1 ?
Zatreanu Adrian-Gabriel
@Adrianzatreanu
Nov 01 2016 10:42
Will tell you tonight, im at college now
Niklas
@NiklasMM
Nov 01 2016 10:49
hey guys, I think the guide to writing a bear(https://coala.readthedocs.io/en/latest/Developers/Writing_Bears.html) is missing some guidelines on how to document a bear.
also: What are some guidelines on how to document a bear?
Zatreanu Adrian-Gabriel
@Adrianzatreanu
Nov 01 2016 10:53
ill quote lasse
@NiklasMM File an issue!
Lasse Schuirmann
@sils
Nov 01 2016 10:53
I was actually about to let cobot file one but feel free to do it @Adrianzatreanu ;)
Niklas
@NiklasMM
Nov 01 2016 10:53
:D just wanna make sure that I'm not missing it
Niklas
@NiklasMM
Nov 01 2016 10:59
nvm, will do it manually and add some more blabla
coala/documentation#271
so meta
Niklas
@NiklasMM
Nov 01 2016 11:12
seriously though: Are there any requirements on bear documentation? Or is it left to the reviewers discretion?
Lasse Schuirmann
@sils
Nov 01 2016 11:24
ATM there's no real guides except "look around other bears"
we will get better consistency with cEP 0005
Adhityaa
@adtac
Nov 01 2016 12:42
are there any assembly linters? (does that concept even make sense? I've never used assembly before)
if yes, we should have a bear for it
mainly because I want to suggest the authors of https://github.com/minoca/os to use coala :P
Lasse Schuirmann
@sils
Nov 01 2016 12:43
yeah, google for it
we can write stuff if it doesnt exist
Adhityaa
@adtac
Nov 01 2016 12:44
I tried searching, there weren't any results
that's why I'm asking here :)
Niklas
@NiklasMM
Nov 01 2016 12:44
since there are comments and spaces in asm there should be possible issues :)
AbdealiJK
@AbdealiJK
Nov 01 2016 12:44
Each machine has a very diverse set of asm instructions, so it's really really broad with no overall rules
^ If I remember my microcontrollers
Adhityaa
@adtac
Nov 01 2016 12:45
@AbdealiJK formatting?
that's gotta be at least kinda similar right?
Lasse Schuirmann
@sils
Nov 01 2016 12:45
At least there's analysis available
Description - "Assembly Language Syntax Checker - Like Lint for C."
Niklas
@NiklasMM
Nov 01 2016 12:46
what an unfortunate domain name^^
AbdealiJK
@AbdealiJK
Nov 01 2016 12:47
lol
Adhityaa
@adtac
Nov 01 2016 12:47

cobot new issue coala-bears Bear for assembly

http://www.pcorner.com/list/ASSEMBLY/ALINT.ZIP/INFO/

coala-bot
@coala-bot
Nov 01 2016 12:47
Here you go: coala/coala-bears#968
Adhityaa
@adtac
Nov 01 2016 12:48
heh that's been pretty handy lately :)
AbdealiJK
@AbdealiJK
Nov 01 2016 12:48
Uhm, looks like the linter is written in assembly. o.O
@Adrianzatreanu Hey ! Can you make cib install that for users ? :P
Adhityaa
@adtac
Nov 01 2016 12:49
yeah, there is a requirement thing that can do stuff like dnf install
but downloading code and silently compiling it... I'm not sure if that's a good idea
there was an issue recently with downloading a java binary over http :P
AbdealiJK
@AbdealiJK
Nov 01 2016 12:50
:D Why not ? Don't pacman and brew do it ?
Binary vs text code ...
Adhityaa
@adtac
Nov 01 2016 12:50
you can mitm the source code too :P
AbdealiJK
@AbdealiJK
Nov 01 2016 12:51
True enough
Adhityaa
@adtac
Nov 01 2016 12:51
but of course, we can have a checksum ingrained in the bear source code and match that
AbdealiJK @AbdealiJK wishes to see @Adrianzatreanu compiling assembly in a platform independent way
AbdealiJK @AbdealiJK feels sadistic.
AbdealiJK
@AbdealiJK
Nov 01 2016 12:52
We don't have a SVG Linter too. Would be useful.
^ Commons would like it to avoid hidden data - @jayvdb ?
John Vandenberg
@jayvdb
Nov 01 2016 12:57
Ya. And checking that the svg doesnt used external urls not iin whitelistef domain list
As that bleeds visitor info in logs
Against the wikimedia privacy policy
They already have some checks in the php code i believe
What would be nice is if we could use the pygments lexers to at least sanity check the code for languages we dont have a dedicated bear for
John Vandenberg
@jayvdb
Nov 01 2016 13:03
That would give us good asm support
Adhityaa
@adtac
Nov 01 2016 13:03
I've never used it, but we should be careful to not report erraneous results
*it = pygments lexers
John Vandenberg
@jayvdb
Nov 01 2016 13:03
Ya. Never use it instead of a real bear
But it is good for basic support, and it means bug fixes go to pygments
It would only catch very bad code, but it is better than nothing
Adhityaa
@adtac
Nov 01 2016 13:05
yeah, agreed
John Vandenberg
@jayvdb
Nov 01 2016 13:05
And probably doubles our supported languages in one hit
Esp data formats and strange config files
Adhityaa
@adtac
Nov 01 2016 13:06
how many langs does it support?
John Vandenberg
@jayvdb
Nov 01 2016 13:07
Hehe
Adhityaa
@adtac
Nov 01 2016 13:07
that's at least 350+ lexers!
and 481 file formats!
Zatreanu Adrian-Gabriel
@Adrianzatreanu
Nov 01 2016 17:53
@AbdealiJK thats a funny coincidence because right now i was making my assembly homework xD
Maximilian Scholz
@sims1253
Nov 01 2016 18:32
@Adrianzatreanu show your assembly homework to me. I like writing assembly :D
Mischa Krüger
@Makman2
Nov 01 2016 18:33
@Adrianzatreanu btw what assembly homework? :O
Maximilian Scholz
@sims1253
Nov 01 2016 18:33
noooo
I asked first. It is miiiiiiiine
Mischa Krüger
@Makman2
Nov 01 2016 18:33
:O
Maximilian Scholz
@sims1253
Nov 01 2016 18:34
give it to us, my precious
Zatreanu Adrian-Gabriel
@Adrianzatreanu
Nov 01 2016 18:40
its the first one and quite simple, asks us to read a number and a base between 2 and 16 and convert from decimal to that base
i guess the main purpose of it is learning how to divide with 32bits numbers
Maximilian Scholz
@sims1253
Nov 01 2016 18:41
what assembly do you use?
Zatreanu Adrian-Gabriel
@Adrianzatreanu
Nov 01 2016 18:41
x86
Mischa Krüger
@Makman2
Nov 01 2016 18:41
aaahh then division is easy... :P
Maximilian Scholz
@sims1253
Nov 01 2016 18:42
that escalated quickly :D
Zatreanu Adrian-Gabriel
@Adrianzatreanu
Nov 01 2016 18:42
cant say assmelby in x86 is my favourite ..
Mischa Krüger
@Makman2
Nov 01 2016 18:42
you don't wanna divide in AVR
especially if you have no floating point support ...
Zatreanu Adrian-Gabriel
@Adrianzatreanu
Nov 01 2016 18:42
i guess i dont :p
Mischa Krüger
@Makman2
Nov 01 2016 18:43
fun with assembly: https://github.com/Makman2/LCM
Maximilian Scholz
@sims1253
Nov 01 2016 18:43
well assembly might be overwhelming but everything I got my hands on was limited to like 2-3 pages of commands so you are really restricted in what you can do
Mischa Krüger
@Makman2
Nov 01 2016 18:43
(with a bit python support :P)