News for hackers. Stuff that matters.
Re:Isso – Open Source Alternative to Disqus by infogulch on Tuesday January 27, 2015 @02:06PM (#8954989)
I noticed they use a Bloom Filter based on ip address to prevent people from voting multiple times. According to the implementation[1] it uses a 256-byte structure and limits the total number of votes on a post to 142 [2] (more than that and the false-positive rate > 0.001). This is stored as a sqlite BLOB on the same row as the comment.

But if you're limiting votes to ~142 anyways, you can just store the exact ip address of every voter (packed in the BLOB at 4 bytes each) and it would only reach up to double the space (~560). But since the overwhelmingly vast majority of comments won't get nearly that many votes, you'd actually be saving space compared to keeping a bloom filter for each comment.

It seems like an overengineered and unnecessary technical complexity.

[1]: https://github.com/posativ/isso/blob/master/isso/utils/__ini...

[2]: https://github.com/posativ/isso/blob/master/isso/db/comments...

Re:Isso – Open Source Alternative to Disqus by trurl42 on Tuesday January 27, 2015 @03:59PM (#8955830)
I guess the point is to not store ip addresses.

Given the focus on allowing anonymous commenting [1] this seems to make sense.

[1]: http://posativ.org/isso/docs/#what-s-wrong-with-disqus

Re:Isso – Open Source Alternative to Disqus by kevan on Tuesday January 27, 2015 @06:23PM (#8956883)
In that case you could store a hash of the IP instead.
Re:Isso – Open Source Alternative to Disqus by infogulch on Tuesday January 27, 2015 @07:26PM (#8957181)
We're limited to ipv4 so even if you hash it you could still test every possible address within a few minutes. You can even do the same with the bloom filter, since there's at worst only a 1/1000 false positive rate (and likely much smaller). The bloom filter isn't designed to provide security, and trying to make (ipv4) IPs private if you're using them as identities is a lost cause.
Re:Isso – Open Source Alternative to Disqus by girvo on Tuesday January 27, 2015 @07:13PM (#8957124)
With a known structure, a hashed IP could be reversed quite easily couldn't it?
Re:Isso – Open Source Alternative to Disqus by neurotech1 on Tuesday January 27, 2015 @06:31PM (#8956921)
Is there an XKCD[1] comic about over-engineered solutions?

I'd be tempted to go with exponential back off for voting. eg. the more votes, the less effect they have on the total score.

[1] http://en.wikipedia.org/wiki/Randall_Munroe

Re:Isso – Open Source Alternative to Disqus by pdx on Tuesday January 27, 2015 @01:56PM (#8954928)
I love the idea, but I don't love forcing non-technical users to learn Markdown.

Hmmm, actually, it occurs to me that formatted comments are in general, annoying and ugly, so perhaps hiding the fact that formatting is even possible by not providing formatting buttons, is just fine.

Re:Isso – Open Source Alternative to Disqus by alexcasalboni on Tuesday January 27, 2015 @03:56PM (#8955812)
Nobody likes Markdown. And even who does, can't really use it.

Here is an analysis worth reading: http://ux.stackexchange.com/a/15929/57347

Re:Isso – Open Source Alternative to Disqus by liotier on Tuesday January 27, 2015 @04:16PM (#8955974)
No mention of the word 'spam' anywhere on the site, apart from rate limiting. To me, spam handling is pretty much the primary feature of a comments system.
Re:Isso – Open Source Alternative to Disqus by cies on Tuesday January 27, 2015 @05:24PM (#8956510)
Thoughtbot is also working on something Discuss-like:

https://github.com/thoughtbot/carnival

Made in Haskell, so it compiles to a binary for you deploying pleasure and performance needs :)

Re:Isso – Open Source Alternative to Disqus by avinassh on Tuesday January 27, 2015 @12:37PM (#8954427)
Re:Isso – Open Source Alternative to Disqus by talles on Tuesday January 27, 2015 @01:33PM (#8954770)
Nice! I have a stupid blog generator (https://github.com/tallesl/deadsimplelog), might add support for it :)

P.S.: I may be completely wrong but... isn't that a Pokémon (on the logo)? Being so, is possible that you guys would have copyright issues (right?).

Re:Isso – Open Source Alternative to Disqus by bobfunk on Tuesday January 27, 2015 @06:47PM (#8956998)
Added your blog generator to StaticGen now :)

http://www.staticgen.com/deadsimplelog

Re:Isso – Open Source Alternative to Disqus by talles on Tuesday January 27, 2015 @07:50PM (#8957319)
I didn't know StaticGen...

Ty :)

Re:Isso – Open Source Alternative to Disqus by cleverjake on Tuesday January 27, 2015 @01:54PM (#8954911)
yes, its a pokemon - a Wynaut
Re:Isso – Open Source Alternative to Disqus by yellowapple on Tuesday January 27, 2015 @07:09PM (#8957097)
Which (apparently) is named "Isso" in the German version of Pokemon.
Re:Isso – Open Source Alternative to Disqus by foolinaround on Tuesday January 27, 2015 @02:45PM (#8955238)
I can get that comments are not "big data" but SQlite seems underwhelming.

Any reason why this choice was made?

Re:Isso – Open Source Alternative to Disqus by infogulch on Tuesday January 27, 2015 @02:51PM (#8955277)
Underwhelming? Do you have a case for this where SQLite wouldn't be good enough?
Re:Isso – Open Source Alternative to Disqus by jimstr on Tuesday January 27, 2015 @03:55PM (#8955808)
When having more than one web server (and no shared file system) ?
Re:Isso – Open Source Alternative to Disqus by alexcasalboni on Tuesday January 27, 2015 @04:11PM (#8955934)
"SQLite is not designed to compete with Oracle. SQLite is designed to compete with fopen()."

http://www.sqlite.org/whentouse.html

How about something towards the Cloud direction, like AWS RDS? MySQL, Oracle, SQL Server, PostgreSQL or Aurora might work better.

Re:Isso – Open Source Alternative to Disqus by yellowapple on Tuesday January 27, 2015 @07:06PM (#8957082)
For me, it's not really so much "not good enough" as much as it is "I'm already using PostgreSQL as a database and I'd rather not have to maintain two separate SQL database implementations on my servers if I can avoid it".
Re:Isso – Open Source Alternative to Disqus by skuhn on Wednesday January 28, 2015 @03:41AM (#8958750)
Well on the plus side, sqlite has no daemon and pretty much requires no care and feeding.

However, I also think it is totally wrong for this use case.

Re:Isso – Open Source Alternative to Disqus by yellowapple on Wednesday January 28, 2015 @05:29AM (#8959050)
True, though it still means having to check yet another place to make sure everything's backed up properly, etc.
Re:Isso – Open Source Alternative to Disqus by jtwebman on Tuesday January 27, 2015 @06:08PM (#8956787)
If you are going to run your own comment system why not embed them in the HTML? At least then the search engines could index them. Does it have this option?
Re:Isso – Open Source Alternative to Disqus by Yadi on Tuesday January 27, 2015 @04:14PM (#8955958)
This is pretty awesome!

Is there a way to change the SQLite backend?

Re:Isso – Open Source Alternative to Disqus by dfischer on Tuesday January 27, 2015 @04:23PM (#8956033)
New comments should go on top not bottom
Re:Isso – Open Source Alternative to Disqus by aw3c2 on Tuesday January 27, 2015 @04:51PM (#8956244)
I'd like that to be a configurable option.