Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.advocacy > #386067

Someday, if you're lucky, you'll know the freedoms I enjoy.

From Jeff-Relf.Me <@.>
Newsgroups comp.os.linux.advocacy, sci.physics
Subject Someday, if you're lucky, you'll know the freedoms I enjoy.
Date 2016-12-23 08:05 -0800
Organization Glorb Internet Services, http://www.glorb.com
Message-ID <Jeff-Relf.Me@Dec.23--8.05A.Seattle.2016> (permalink)
References (1 earlier) <Jeff-Relf.Me@Dec.21--2.55A.Seattle.2016> <o3fgrl$6eb$1@pcls7.std.com> <Jeff-Relf.Me@Dec.22--2.36A.Seattle.2016> <o3hg73$k8h$1@pcls7.std.com> <jtaq5cd44la7u24lare2kj3an5dvm2k77l@4ax.com>

Cross-posted to 2 groups.

Show all headers | View raw


I have a 4K IPS arm-mounted monitor, swung over my bed;
so, unlike cell phone users, I enjoy 236 columns of text.
How I use the white space is up to _me_, and it varies.

"Michael Moroney and gang" aren't paying me -- couldn't pay me;
so they have no say in the matter.
Someday, if they're lucky, they'll know the freedoms I enjoy.

When/while debugging a problem area,
I might use a lot of white space... including comments;
othewise, not so much.

From X.CPP in "Jeff-Relf.Me/X.ZIP", here's some 
"random" (to you) code I wrote/modified today,
with the actual, unmodified WhiteSpace/LineLengths
( with some added comments ):

  float  DaysAgo, Oldest = 0 ; int  cnt_MIDs = Ls.PP - Ls.BB + 1 ;  LsA B_MIDs, E_MIDs ;
  E_MIDs = B_MIDs = ( LsA ) MallocTmp( rv = cnt_MIDs * szPtr );
  memmove( B_MIDs, Ls.BB, rv ); E_MIDs += cnt_MIDs ;
  Sort_MIDs_by_ASCII( B_MIDs, E_MIDs - 1 ), Sort_Posts_by_Recent( Ls.BB, Ls.PP );
  const int TooManyPerDay = 5, minPostingSpan = 7, mxAge = 32 ; 

  //  Expire old Posts.  Count how many times a nym used a "BadRig".
  { LoopXx( Ls, Ls ) { List_T &Msg = *P ;  NymT &Nym = *Msg.Nym, &Rig = *Msg.Rig, &Ser = *Msg.Ser, &Sbj = *Msg.Sbj ;
      if ( DaysAgo = Msg.DaysAgo, DaysAgo >= mxAge ) { Msg.Expired = Msg.Reddit = 1 ;  continue ;  }
      if ( Msg.ID = ++Nym.Cnt, Rig.Cnt++, Ser.Cnt++, Sbj.Cnt++, !Nym.hardRank && !Nym.Dropped ) Nym.CntBadRigs += Rig.Dropped || Ser.Dropped ;
      if ( DaysAgo > Oldest ) Oldest = DaysAgo ;   if ( DaysAgo < Nym.Newest ) Nym.Newest = DaysAgo ;  if ( DaysAgo > Nym.Oldest ) Nym.Oldest = DaysAgo ;
      if ( DaysAgo < Rig.Newest ) Rig.Newest = DaysAgo ;   if ( DaysAgo > Rig.Oldest ) Rig.Oldest = DaysAgo ;   if ( DaysAgo < Ser.Newest ) Ser.Newest = DaysAgo ;
      if ( DaysAgo > Ser.Oldest ) Ser.Oldest = DaysAgo ;   if ( DaysAgo < Sbj.Newest ) Sbj.Newest = DaysAgo ;   if ( DaysAgo > Sbj.Oldest ) Sbj.Oldest = DaysAgo ;  } }

  //  Expire old Nyms.  "Reddit Drop" (untrusted) nyms that _always_ use a "BadRig".
  { LoopXx( Nm, Nm ) { NymT &Nym = *P ;   if ( !Nym.Cnt ) { Nym.Expired = 1 ;  continue ;  }   Nym.Dropped |= Nym.CntBadRigs == Nym.Cnt ;  } }

  //  (Re)Build all "References:" lines ( using a binary search ).  Flag direct/indirect relpies to "(R)" nyms ( e.g. "JeffRelf(R)" ).
  { LoopXx( Ls, Ls ) { List_T &Msg = *P ;   if ( Msg.Expired ) continue ;   NymT &Nym = *Msg.Nym ;   Nym⁺mID_T  *pLX = &Msg.H.L0 ; int ReplyDepth = 0 ;
    { Loop( mxDepth ) { Nym⁺mID_T  &Parent_Nym⁺mID = *--pLX ;  if ( !Parent_Nym⁺mID.MID ) break ;
        LsA BB = B_MIDs, PP = BB, EE = E_MIDs ;  LsP  P, Parent = 0 ; int X ;
        Find:    if ( BB >= E_MIDs ) goto New ;
        PP = BB + ( EE - BB ) / 2, P = *PP, X = strCmp( P->H.L0.MID, Parent_Nym⁺mID.MID );
        if ( X > 0 ) { if ( BB = ++PP, BB > EE ) goto New ;  goto Find ;  }
        if ( X < 0 ) { if ( EE = --PP, EE < BB ) goto New ;  goto Find ;  }
        if ( Parent = P, !Parent_Nym⁺mID.Nym ) Parent_Nym⁺mID.Nym = Parent->Nym->Name ;
        New:    if ( Msg.Cat == Cat_Mid && ReplyDepth != cMe && gMeOrMine( Parent_Nym⁺mID  ) ) ReplyDepth = vMeOrMine ;  Msg.Elders[ Msg.cnt_Ances++ ] = Parent ;
        if ( !Msg.FromDisk && J < mxDepth - 1 && Parent && Parent->H.L1.MID ) pLX[-1] = Parent->H.L1 ;  } }

    if ( !Msg.Reddit && ReplyDepth ) Msg.ToMeOrDeepMine = 1, Msg.Cat = Cat_Top, Nym.Special = !Nym.Dropped ;  } }

  //  Flag/Count "Kids" and "Visitors/NymShifters".
  int cntDropped, cntKids, cntAdults, cntVisitors ;  cntDropped = cntKids = cntAdults = cntVisitors = 0 ;
  { LoopXx( Nm, Nm ) { NymT &Nym = *P ;   if ( Nym.Expired ) continue ;   Nym.Regular = Nym.Oldest - Nym.Newest >= minPostingSpan ;
      if ( Nym.PostsPerDay = Nym.Cnt / ( 1 + Nym.Oldest ), !Nym.hardRank && !Nym.Dropped ) !Nym.Regular ? ( Nym.Visitor = 1 ) : Nym.PostsPerDay <= TooManyPerDay ? ( Nym.Adult = 1 ) : ( Nym.Kid = 1 );
      cntDropped += Nym.Dropped, cntKids += Nym.Kid, Nym.Adult ? cntAdults++ : !Nym.Regular ? cntVisitors++ : 0 ;  } }

  //  Limit "Kids" and "Visitors/NymShifters" to their 5 most recent posts, last 24 hours.  "Reddit Drop".
  { LoopXx( Ls, Ls ) { List_T &Msg = *P ;   if ( Msg.Expired ) continue ;   NymT &Nym = *Msg.Nym ;
      if ( !Msg.Reddit && !Msg.ToMeOrDeepMine && !Nym.Special && ( Nym.Dropped || !Nym.Adult && ( Msg.DaysAgo >= 1 || Nym.cnt_unReads >= 5  ) ) ) Msg.Reddit = 1 ;
      Nym.Expired ? ( Msg.Expired = 1 ) : !Msg.Reddit ? Nym.cnt_unReads++ : ( Msg.Minimal = !Nym.Me || Msg.ID > 9 );  } }

Back to comp.os.linux.advocacy | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Technical challenge for DFS Incubus <incubus9536612@gmail.com> - 2016-12-16 07:18 -0800
  Re: Technical challenge for DFS DFS <nospam@dfs.com> - 2016-12-16 11:32 -0500
    Re: Technical challenge for DFS DFS <nospam@dfs.com> - 2016-12-16 11:37 -0500
    Re: Technical challenge for DFS Incubus <incubus9536612@gmail.com> - 2016-12-16 08:50 -0800
    Re: Technical challenge for DFS Steve Carroll <fretwizzer@gmail.com> - 2016-12-16 09:32 -0800
  Loop(100) Jeff-Relf.Me <@.> - 2016-12-17 12:34 -0800
    Re: Loop(100) DFS <nospam@dfs.com> - 2016-12-18 00:44 -0500
      Command Line jockies use plenty of aliases, no ? ! Jeff-Relf.Me <@.> - 2016-12-17 21:59 -0800
    Re: Loop(100) moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-19 17:20 +0000
      I don't worry about "optimizations", don't need to. Jeff-Relf.Me <@.> - 2016-12-19 10:56 -0800
        Re: I don't worry about "optimizations", don't need to. Steve Carroll <fretwizzer@gmail.com> - 2016-12-19 11:23 -0800
        Re: I don't worry about "optimizations", don't need to. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-20 12:30 +0000
          Other people's code is hard to learn/modify. Jeff-Relf.Me <@.> - 2016-12-20 06:06 -0800
            Re: Other people's code is hard to learn/modify. Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-12-20 15:31 +0100
              Re: Other people's code is hard to learn/modify. chrisv <chrisv@nospam.invalid> - 2016-12-20 09:04 -0600
            Re: Other people's code is hard to learn/modify. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-20 15:06 +0000
              What The Fuck is wrong with your peers ? ! Jeff-Relf.Me <@.> - 2016-12-20 09:59 -0800
                Re: What The Fuck is wrong with your peers ? ! moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-20 23:22 +0000
                I won, bigly. Jeff-Relf.Me <@.> - 2016-12-20 16:15 -0800
                Re: I won, bigly. DFS <nospam@dfs.com> - 2016-12-21 00:01 -0500
                AutoFormatting hides the fingerprints. Jeff-Relf.Me <@.> - 2016-12-21 02:55 -0800
                Re: AutoFormatting hides the fingerprints. Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-12-21 14:33 +0100
                Re: AutoFormatting hides the fingerprints. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-22 03:21 +0000
                My code is dense, and hard to read, like the Washington Post. Jeff-Relf.Me <@.> - 2016-12-22 02:36 -0800
                Re: My code is dense, and hard to read, like the Washington Post. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-22 21:22 +0000
                Re: My code is dense, and hard to read, like the Washington Post. chrisv <chrisv@nospam.invalid> - 2016-12-23 07:54 -0600
                Re: My code is dense, and hard to read, like the Washington Post. flatfish+++ <flatfish@linuxmail.org> - 2016-12-23 09:35 -0500
                Re: My code is dense, and hard to read, like the Washington Post. Marek Novotny <marek.novotny@marspolar.com> - 2016-12-23 08:46 -0600
                Re: My code is dense, and hard to read, like the Washington Post. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-23 16:21 +0000
                My code is dense, and hard to read, like the Washington Post. Jeff-Relf.Me <@.> - 2016-12-23 08:52 -0800
                Re: My code is dense, and hard to read, like the Washington Post. moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-12-23 19:12 +0000
                Re: My code is dense, and hard to read, like the Washington Post. chrisv <chrisv@nospam.invalid> - 2016-12-23 13:27 -0600
                Re: My code is dense, and hard to read, like the Washington Post. Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-12-23 20:56 +0100
                Re: My code is dense, and hard to read, like the Washington Post. Snit <usenet@gallopinginsanity.com> - 2016-12-23 13:32 -0700
                Re: My code is dense, and hard to read, like the Washington Post. Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-12-23 22:40 +0100
                Re: My code is dense, and hard to read, like the Washington Post. Snit <usenet@gallopinginsanity.com> - 2016-12-23 15:19 -0700
                Re: My code is dense, and hard to read, like the Washington Post. Steve Carroll <fretwizzer@gmail.com> - 2016-12-23 14:30 -0800
                My C++ Coding Standards ( apologies to Bjarne Stroustrup ). Jeff-Relf.Me <@.> - 2016-12-23 17:06 -0800
                Re: My C++ Coding Standards ( apologies to Bjarne Stroustrup ). Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-12-24 10:40 +0100
                Re: My code is dense, and hard to read, like the Washington Post. jmfbahciv <See.above@aol.com> - 2016-12-24 14:04 +0000
                Someday, if you're lucky, you'll know the freedoms I enjoy. Jeff-Relf.Me <@.> - 2016-12-23 08:05 -0800
                Re: My code is dense, and hard to read, like the Washington Post. GreyCloud <mist@cumulus.com> - 2016-12-23 13:49 -0700
                Re: I won, bigly. Silver Slimer <.m@nsn.s> - 2016-12-21 09:09 -0500
                Re: I won, bigly. benj <benj@nobody.net> - 2016-12-21 17:37 -0500
                Re: What The Fuck is wrong with your peers ? ! chrisv <chrisv@nospam.invalid> - 2016-12-21 07:14 -0600

csiph-web