🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #255951

Re: Can i update you on the online reader i'm creating?

#255951
From: test
Date: Fri, 01 Nov 2013 19:12
186 lines
10506 bytes
I'm not sure on how the line spacing will be handled since that some
of this quote goes over the max characters per line limit... Well,
we will see. :)

>In article <eaSp0sb3-***@narkive.com>, test <pnppdviu-***@user.narkive.com> wrote:
>
>> >It actually looks to be quite slick, not very "pretty" yet, perhaps, but 
>> >functional.
>>
>>  Slick? Are you talking about the colours? I think that it's not "pretty",
>>  but it really is functional.
>
>No, I meant "slick" as in "cool" or "smooth"
>
>slick
>	adjective
>	1 done or operating in an impressively smooth and efficient way
Ops. I stopped at the first translation, "slippery". Happy to hear that,
thanks.

>> >It seems it lists all posts, greying out those you have read, are you 
>> >range.-bundling them like in a normal newsrc or are you keeping track of 
>> >the read status of each and every post by the user?
>>
>>  I keep track of the read status of every post, both on the local
>>  and server side (i push the read status to the server once in a while, so
>>  that it's updated across multiple computers if that's your case).
>
>Seems inefficient as time progresses, and you'll have tens of thousands of 
>data points to compare against when looking at any given batch of articles.
>
>Hopefully, you're indexing it and joining in the dataset when collecting 
>the threads
>
>But it can be quite the staggering amount of posts. Start indexing some top 
>100 usenet groups today, and you'll probably end up at 100,000 posts in a 
>couple of weeks (just this group has 282,389 posts in the spool). Now, if 
>you have 1,000 users who incidentally read all these groups (just to keep 
>the math clean) you'll have 1,000 * 100,000 posts in the stats DB, that 
>100,000,000 - or one hundred million - posts in the DB, for only 1,000 
>users.
>
>The old-fashioned way of doing it, and the way it's been done in the 
>.newsrc file for decades, is that you have ranges set up. So the file may 
>look like this:
>
>news.software.readers 0-282389,282388,282387
>
>What that means is that the user has read (or marked read) ever single post 
>from the group from the start of the spool (or DB in your case) to the end 
>- *except* two articles which are still marked as unread.
>
>This hinges on the ability for a user to mark a group read, or mark all 
>read, or "catchup" as it's usually called.
>
>Basically, you open the news group, and get post 282380 to 282389 for 
>instance, 10 posts.
>
>You read 8 of them, then there is still two left unread, when your software 
>updates the newsrc, those are added to the back of the list.
>
>(disclaimer: It could be the other way around - that the two extra ID's are 
>also read, I actually don't remember, it doesn't matter).
>
>Yes, this can become unwieldy after a while, but if you know this, you also 
>know what posts to fetch from the DB since you don't have to fetch read 
>articles.
>
>Long reply, sorry :)
I'm only sorry that it's useless, because i don't want to do it
that way :)
narkive (that website) already has almost one billion of usenet messages, that are archived and searchable. That forced me to make a little bit of experience on how to optimise these things, and i'm optimist that i will be
able to handle the load without any problem ;)

I only keep track of the number of unread messages per thread
per user, the per post calculations are handled client side. It's a
really little overhead actually, the platform (narkive) i built a few
years ago helped me a lot on handling this. It would be crazy to start
from scratch.

The only thing that worries me is the number of concurrent users using
"narkive rt" at the same moment. If i reach the order of thousands, it
would push the limits of the servers i have right now and i would have
to add some.
1000 concurrent users would mean (1000 * 86400/3) requests per day, i
would exchange almost 100GB of JSON data per day (300 requests per second).
That's a lot. And off course, it's currently under optimised and i would
be really happy to work on it if i reach these numbers. 

>> >It also seems to list threads in one view, opening them in an hierarchical 
>> >view to the right, but how does it show me the last unread post if it's 
>> >buried in 23 layers of hierarchy?
>>
>>  It simply does so. Every parent is closed if read, and every unread post
>>  is "open" by default if unread. This is what happens in an example i 
>>  created for you:
>>  http://i.imgur.com/KB5A4rd.png
>
>Right, which means that the first unread message can be "open" off-screen, 
>and all I see is 40 levels of closed posts, because the only unread one is 
>open, but doesn't fit in the view... It could be a problem.
Yes, it is. Fortunately even 200-posts thread rarely have more than
10 levels of indentation. Anyway it has to be fixed somehow.

>> >>  Demo #3 (first draft (bottom-left) of my message-navigation system, i hope
>> >>  to move forward from the usual threading or "metro" (macsoup) view)
>> >>  http://i.imgur.com/O3waqVs.png
>>
>> >Not sure what the radial thing to the left is supposed to be?
>>  You start from the center, and you can see the replies to the first post.
>>  If you read them, they become opaque. You can then follow how the thread
>>  evolved using that thing
>
>Hmmm, ok. That's a bit nifty I suppose. It's a graphical view of the entire 
>thread. After some 500 replies to the thread, it would probably become 
>quite useless (and resource-demanding to create). How do you make it as it 
>is now?
I use JS and (HTML 5) Canvas, and it's quite fast. It's another under-
optimised thing, i recreate it everytime i need to update the opacity
levels (on page scroll), and yet it's smooth. Even 200-posts thread are
displayed correctly on it. I've yet to work with 200+ messages per
thread, i will start to handle them at a later time (threads with more
than 200 replies are not displayed at this time).

>>  The lines are there to make it more evident to who what reply is for,
>>  it's something reddit-style. I guess that i will have to revisit them.
>
>Yes, I understand that. But I don't like it :)
I will try to make it better :)

>> >And, if a thread contains more than one post:
>> >
>> >+-------------+-----------+---------------------+
>> >|My groups    |Posts      |Post                 |
>> >|-------------|           |                     |
>> >|Threads      |           |                     |
>> >|             |           |                     |
>> >|             |           |                     |
>> >|             |           |                     |
>> >|             |           |                     |
>> >|             |           |                     |
>> >|             |           |                     |
>> >|             |           |                     |
>> >|             |           |                     |
>> >+-------------+-----------+---------------------+
>>
>>  I'm sorry, but i don't think to be a good idea. We are all used
>>  to scroll up-down to see more content, not from left to right.
>
>This is how pretty much all news clients displays it though. I don't know 
>of any news client that mixes the list with the content (other than maybe 
>Google Groups - but everyone hates Google groups). You have one group view, 
>one list view (which can be threaded) and one article view. 
>
>The ability to have one post in one view makes it easy to create a link 
>directly to that post. If your software gives threads unique ID's (which it 
>should) then the URL could be:
>
>/reader/news.software.readers/<thread-uid>/<post-uid> (not mID)
>
>Great for linking to that one post. Google Groups moved away from this, 
>unfortunately, and now it's one big mess.
Creating permalinks to specific groups, threads or messages isn't
a problem, and i don't really think the old-styled interface to be
the best. However, since that many wants it, i plan on offering both.
Old usenet style and Google Groups style.
:)

>>  Also, almost every thread has more than one post. If one thread has 
>>  less than one post, it's usually not worth caring (and probably spam).
>
>Huh? All new threads have one post, this one that you created now had 
>exactly one post until I replied to it, you know. :)
I misunderstand your post before, i didn't get that the first
"posts" column was a list of posts. My fault.

>>  Thanks for the feedback, I'm sorry for the "radial thing" being a mess
>>  as of now, but i think you will like it once that you see it working ;)
>
>It's a nifty idea, could be useful. I like it better than the "tree" idea. 
>Hopefully it has some useful "popup" information when mousing over it

I didn't think about it, and you are right. I only wanted to make it
clickable, but having informations about the poster/date on mouse hover
is a great idea :)
Technical Details
Message-ID: <eaSp0sb3-6idZgDkMZOTvtx4p@narkive.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.narkive!news.posted.narkive.POSTED!not-for-mail
References: <eaSp0sb3-ik4O4rDHIGinpvmT@narkive.com> <slrnl77cdm.ovp.mr@irc.sandman.net> <eaSp0sb3-3sNYimCBK2V3N8L1@narkive.com> <slrnl77rtk.po3.mr@irc.sandman.net>

Show Full Headers
Complete Article Headers
Message-ID: <eaSp0sb3-6idZgDkMZOTvtx4p@narkive.com>
Subject: Re: Can i update you on the online reader i'm creating?
Date: Fri, 01 Nov 2013 19:12:38 +0000
From: test <qjld9fbl-test@user.narkive.com>
References: <eaSp0sb3-ik4O4rDHIGinpvmT@narkive.com> <slrnl77cdm.ovp.mr@irc.sandman.net> <eaSp0sb3-3sNYimCBK2V3N8L1@narkive.com> <slrnl77rtk.po3.mr@irc.sandman.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.narkive!news.posted.narkive.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 01 Nov 2013 14:12:38 -0500
Newsgroups: news.software.readers
Content-Type: text/plain; charset=UTF-8;
Lines: 186
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 85.17.190.156
X-Trace: sv3-abKXwHTQmMEfDEKiAf45+HKEymsDhcCuw2/k4cikFvS6iun1Ry4xRrWnT3kpEjo5Y0kTzzei7mY1RlN!s9JK+8hDmAZCBp5Ekm/Nk4SrLVXrNtA1pNTSFvVhoRHI6b6MLDvMgPSsTnRrJiFDZJmEeZvMJA==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.40
X-Original-Bytes: 10157