Hacker News new | past | comments | ask | show | jobs | submit | 1vuio0pswjnm7's comments login

The flaggings will continue until morale improves.

Maybe in part due to regulatory pressures over privacy, IDN, Chrome includes "site settings" to disable Javascript, etc. on a site by suite basis. It also includes "request blocking" in DevTools. These settings can provide some of the blocking that uBlock provides. To some this can be quite useful. Why there is no way to export and import these settings. It is commmon with open source mobile apps in the www/networking category for example to have the ability to import and export settings.

Produces (a) original 084.l and (b) original shell script for testing yy084 ("0x").

    set -x

    # requirements: tnftp, ed, sed, tr
    _fmt()
    {
    x=$(echo x|tr x '\34'); y=$(echo x|tr x '\35');
    sed "s/<code>/$x/g; s/<\/code>/$y/g;
    s/&#x27;/'/g; s/&#x2F;/\//g;
    s/&amp;/\&/g; s/&quot;/\"/g;
    s/&lt;/</g; s/&gt;/>/g" \
    |tr '\34\35' '\n\n' \
    |sed 's/ */ /'
    } 
    x=https://news.ycombinator.com/item?id=40894851 
    tnftp -4o/dev/stdout $x|_fmt > 1.htm 
    # delete html
    sed -i '
    1,15d; 114,196d; 207,218d; 264,275d; 351,362d;
    454,465d; 520,531d; 638,649d; 751,762d; 865,876d;
    978,989d; 1111,1122d; 1225,1236d; 1382,1393d;
    1538,1549d; 1680,1691d; 1822,1833d; 1962,1973d;
    2100,2111d; 2217,2228d; 2330,2342d;
    ' 1.htm
    z=$(sed -n '$!d;=' 1.htm)
    test $z -eq 2015||sed -i '2016,$d' 1.htm
    # move 
    echo "
    320,373m66
    163,373m126
    784,2015m126
    1606,2015m1602
    w
    q
    "|ed 1.htm
   # indent
    sed -i '/^ \^HTTP/s/ *//;
    /^ TWVGH/s/ *//;
    /^ %/s/ *//;
    /^ <MODE/s/ *//' 1.htm
   # fix: html encoding in pattern - sed.gov
    sed -i '621s/\"/\&quot;/2' 1.htm

    sed -n 1,1595p 1.htm > 084.l 
    sed -n 1596,2016p 1.htm > 0x

  # flex -8Cem 084.l
  # cc -O3 -std=c89 -W -Wall -pipe lex.yy.c -static -s -o yy084

0x update Part 1 of 2

    Fixed:

          ;;18) #``````````` marginalia
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/++/+/g')
          echo "https://marginalia-search.com/search?query=$x"|yy025|nc -vv 6f6b 80|(yy084 18 "$x";yy045)
          exit

          ;;37) #``````````` gibiru
          useragent
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/++/+/g')
          export User_Agent=$HTTPUSERAGENT
          CX="cx=partner-pub-5956360965567042%3A9380749580"
          CB="callback=google.search.cse.api0"
          #LIB="cselibv=8435450f13508ca1"
          LIB="cselibv=5c8d58cbdc1332a7"
          RURL="https%3A%2F%2Fgibiru.com%2Fresults.html%3Fq%3D%26cx%3Dpartner-pub-5956360965567042%253A8627692578%26cof%3DFORID%253A11%26ie%3DUTF-8"
          TOKEN=$(echo https://cse.google.com/cse.js?${CX}|yy025|nc -vv 6f6b 80|sed -n 's/",//;s/:/%3A/g;/cse_token/s/.* "//p')
          ###> token is good for 24h
          echo "https://cse.google.com/cse/element/v1?rsz=20&num=20&hl=en&${LIB}&${CX}&q=$x&safe=off&start=${1-0}&cse_tok=$TOKEN&${CB}&rurl=${RURL}" \
          |yy025|(yy084 37 "$x start=${1-0}";nc -vv 6f6b 80|yy045)
          exit

          ;;40) #``````````` greppr
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/++/+/g')
          echo https://greppr.org|yy025|(yy084 40 "$x";nc -vv h1b 80)|yy084 0 \
          |(read a b;echo "$b&s=${1-0}"|Cookie=$a yy025) \
          |(yy084 40 "$x s=${1-0}";nc -vv h1b 80)
          exit

0x update Part 2 of 2

    New: 

          ;;12) #``````````` wikibooks
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/+/+/g');
          V="&ns0=1&ns1=1&ns102=1&ns110=1&ns112=1"
          echo "https://en.wikibooks.org/w/index.php?search=$x$V"|yy025|(yy084 12 "$x offset=${1-0}";nc -vv 6f6b 80)
          exit

          ;;56) #``````````` monocles
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/+/+/g');
          post_data="q=$x&pageno=${1-1}" 
          export httpMethod=POST          
          export Content_Length=${#post_data}
          export Content_Type=application/x-www-form-urlencoded 
          export Connection=close
          echo https://monocles.eu/search|yy025 5>.1 >.2
          read y < .1
          echo $post_data >> .2
          nc -vv 6f6b 80 < .2|(yy084 56 "$x pageno=${1-1}";echo "<base href=https://$y />";yy045)
          exit

          ;;57) #``````````` shodan
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/++/+/g')
          echo "https://www.shodan.io/search?query=$x&page=${1-1}" \
          |yy025|nc -vv 6f6b 80|(yy084 57 "$x page=${1-1}";yy045) 
          exit

          ;;58) #``````````` arxiv
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/++/+/g')
          echo "https://arxiv.org/search/?query=$x&searchtype=all&start=${1-0}" \
          |yy025|nc -vv 6f6b 80|(yy084 58 "$x start=${1-0}";yy045) 
          exit

          ;;59) #``````````` lua-l
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/++/+/g')
          echo "https://lua-users.org/cgi-bin/namazu.cgi?query=$x&sort=score&idxname=lua-l&max=20&whence=${1-0}" \
          |yy025|nc -vv 6f6b 80|(yy084 59 "$x whence=${1-0}";yy045) 
          exit

          ;;60) #``````````` openlibrary
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/++/+/g')
          echo "https://openlibrary.org/search/inside?q=$x&page=${1-1}" \
          |yy025|nc -vv 6f6b 80|(yy084 60 "$x page=${1-1}";yy045) 
          exit

          ;;61) #``````````` archive-it
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/++/+/g')
          echo "https://archive-it.org/explore?q=$x&show=Sites&page=${1-1}" \
          |yy025|nc -vv 6f6b 80|yy045|(yy084 61 "$x page=${1-1}";tr -d '\n')
          exit

          ;;62) #``````````` documentcloud
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/++/+/g')
          if test $# -eq 0;then
          echo "https://api.www.documentcloud.org/api/documents/search/?q=$x&expand=user%2Corganization&version=2.0&hl=true&per_page=100" \
          |yy025|(yy084 62 "$x cursor=${y-*}";nc -vv 6f6b 80) > 062.json
          exit
          fi
          if test $# -eq 1;then
          y=$(yy084 0 < 062.json|sed -n '1s/.*cursor=//p');
          yy084 0 < 062.json|sed 1q|yy025|(yy084 62 "$x cursor=$y";nc -vv h1b 80) \
          |sed -i -e 1r/dev/stdin -e1N 062.json 
          exit
          fi

          ;;63) #``````````` codesearch
          shift
          x=$(echo "$x"|sed 's/ /+/g;s/++/+/g')
          echo "https://searchcode.com/api/codesearch_I/?q=$x&p=${1-1}"|yy025|nc -vv 6f6b 80|(yy084 63 "$x p=${1-1}";yy045)
          exit

Like www.sec.gov, this website only sends compressed data, ignoring Accept-Encoding: identity as a means of disabling compression.

IME, most websites respond to the Accept-Encoding header, or at least send uncompressed data in the absence of it. I normally do not send this header and I almost always receive uncompressed data. Sometimes there are rare exceptions. (For these I excpetions usually test with Accept-Encoding: identity.) I am generally curious about these exceptions, hence the comment. At least once, the website operator responded indicating it was due to a configuration error.

I’m genuinely curious about your reasons to intentionally disable compression? Is there any scenario where gzip is too costly for your device?

The author still managed to give at least one interview before the arbitrator's decision.

For example,

https://www.thefp.com/p/meet-sarah-wynn-williams-facebooks

Meta published a response to the book that only alleges the author's claims are "old" and does not suggest they are false.

https://about.fb.com/wp-content/uploads/2025/03/Sarah-Wynn-W...

If the claims are false and defamatory, then why not sue the author for defamation.

In the book, the author suggests she was harassed by two famous Facebook managers and then terminated when she complained.

Apparently the book is a top seller on Amazon. Perhaps it does not need promotion by the author.

The author has also filed a whistleblower complaint at the SEC re: the China issue.

As a longtime HN reader I recall that Zuckerberg was a favorite of PG. The "ideal founder" or something like that.


[flagged]


It’s fair to question someone’s judgment based on their expressed opinions, and take that into account when evaluating what they say later on. Also, he may just have a different definition of “ideal” than some of us.

All pg said, jokingly, was:

>"I can be tricked by anyone who looks like Mark Zuckerberg. There was a guy once who we funded who was terrible. I said: 'How could he be bad? He looks like Zuckerberg!'"


Thank you. This is what I was hoping for. Indeed it might have been a joke.

Which library compiles faster.

Which library has fewer dependencies.

Is each library the same size. Which one is smaller.


I would argue compile time changes don't matter much, as the amount of data going through zlib all across the world is so large, that any performance gain should more than compensate any additional compilation time (and zlib-rs compiles in a couple of seconds anyway on my laptop).

As for dependencies: zlib, zlib-ng and zlib-rs all obviously need some access to OS APIs for filesystem access if compiled with that functionality. At least for zlib-rs: if you provide an allocator and don't need any of the file IO you can compile it without any dependencies (not even standard library or libc, just a couple of core types are needed). zlib-rs does have some testing dependencies though, but I think that is fair. All in: all of them use almost exactly the same external dependencies (i.e.: nothing aside from libc-like functionality).

zlib-rs is a bit bigger by default (around 400KB), with some of the Rust machinery. But if you change some of that (i.e. panic=abort), use a nightly compiler (unfortunately still needed for the right flags) and add the right flags both libraries are virtually the same size, with zlib at about 119KB and zlib-rs at about 118KB.


> Which library has fewer dependencies.

This is not insignificant.

Remember xz? That could have been a disaster.

That the language includes a package manager that fetches an assortment of libraries from who knows whom on demand doesn't exactly inspire confidence in the process to me. Alice's secure AES implementation might bring Eve's string padding function along for the ride.

Rust(TM) the language might be (memory) safe in theory but I have serious issues (t)rusting (t)rust and anything built with it.


One of the things I like about C is I can download a statically-compiled native GCC for use on a computer with modest amounts of memory, storage and a relatively old, slow CPU. Total size uncompressed is 242.3MB.

Using this I can statically compile a cross-compiler. Total size uncompressed 169.4MB.

I use GCC to compille zlib and a wide variety of other software. I can build an operating system from the ground up.

Perhaps someday during my lifetime it will be possible to compile programs written in Rust using inexpensive computers with modest amounts of memory, storage and relatively slow CPUs. Meanwhille, there is C.


084.l update Part 1 of 5

   Fixed: 
   
      Yahoo
      Github
      Google
      Ecosia
      Marginalia
      AOL 
      Greppr
      SEC
   
    /*```````````yahoo/bingj```````````*/
   <MODE19>mt-8\"[ ]href=\"[^\"]+ {
    z++;
    CDp8iULPuCinsert(19);
    for(x=12;x<yyleng;x++)putc(yytext[x],yyout);
    fwrite("','",1,3,yyout);
    }
   <MODE19>[ ]class=\"s-card-wrapAnchor\"[ ]href=\"[^\"]+ {
    z++;
    CDp8iULPuCinsert(19);
    for(x=33;x<yyleng;x++)putc(yytext[x],yyout);
    fwrite("','",1,3,yyout);
    }
   <MODE19>aria-label=\"[^\"]+ if(z){
    z=0;for(x=12;x<yyleng;x++)
    {
    if(yytext[x]==39)putc(39,yyout);
    if(yytext[x]==60)tag++;
    if(yytext[x]==62)tag=0;
    if(!tag)if(yytext[x]!=62)putc(yytext[x],yyout);
    }
    fwrite("');\n",1,4,yyout);
    }
   <MODE19>\"[ ]title=\"[^\"]+ if(z){
    z=0;for(x=9;x<yyleng;x++)
    {
    if(yytext[x]==39)putc(39,yyout);
    if(yytext[x]==60)tag++;
    if(yytext[x]==62)tag=0;
    if(!tag)if(yytext[x]!=62)putc(yytext[x],yyout);
    }
    fwrite("');\n",1,4,yyout);
    }
    /*```````````github`````````*/
   <MODE5>\"hl_name\":\"[^\"]+ {
    CDp8iULPuCinsert(5);
    fwrite("https://github.com/",1,19,yyout);
    for(x=11;x<yyleng;x++)
    {
    if(yytext[x]==60)tag++;
    if(tag)if(yytext[x]==62){tag=0;continue;}
    if(yytext[x]==39)putc(39,yyout);
    if(!tag)putc(yytext[x],yyout);
    }
    fwrite("','",1,3,yyout);
    }
   <MODE5>\"hl_trunc_description\":\"\" fwrite("[no description]');\n",1,20,yyout);
   <MODE5>\"hl_trunc_description\":\"[^\"]{1,255} {
    for(x=24;x<yyleng;x++)
    {
    if(yytext[x]==60)tag++;
    if(tag)if(yytext[x]==62){tag=0;continue;}
    if(yytext[x]==39)putc(39,yyout);
    if(!tag)putc(yytext[x],yyout);
    }
    fwrite("');\n",1,4,yyout);
    }

084.1 update Part 2 of 5

    /*```````````google``````````*/
   <MODE2>\"fuLhoc[ ]ZWRArf\"[ ]href=\"https:\/\/www.google.com\/url\?esrc=s&q=&rct=j&sa=U&url=.{1,512}&ved= {
    CDp8iULPuCinsert(2);
    for(x=74;x<yyleng-5;x++)
    {
    if(yytext[x]==39)putc(39,yyout);
    putc(yytext[x],yyout);
    }
    fwrite("','",1,3,yyout);
    }
   <MODE2>\"fuLhoc[ ]ZWRArf\"[ ]href=\"http:\/\/www.google.com\/url\?esrc=s&q=&rct=j&sa=U&url=.{1,512}&ved= {
    CDp8iULPuCinsert(2);
    for(x=73;x<yyleng-5;x++)
    {
    if(yytext[x]==39)putc(39,yyout);
    putc(yytext[x],yyout);
    }
    fwrite("','",1,3,yyout);
    }
   <MODE2>\"fuLhoc[ ]ZWRArf\"[ ]href=\"\/url\?esrc=s&q=&rct=j&sa=U&url=.{1,512}&ved= {
    CDp8iULPuCinsert(2);
    for(x=52;x<yyleng-5;x++)
    {
    if(yytext[x]==39)putc(39,yyout);
    putc(yytext[x],yyout);
    }
    fwrite("','",1,3,yyout);
    }
   <MODE2>\"CVA68e[ ]qXLe6d[ ]fuLhoc[ ]ZWRArf\">.{1,255}<\/span>[ ]{2}<span[ ]class=\"qXLe6d[ ]dXDvrc {
    for(x=30;x<yyleng-35;x++)
    {
    if(yytext[x]==39)putc(39,yyout);
    putc(yytext[x],yyout);
    }
    fwrite("');\n",1,4,yyout);
    }
    /*```````````ecosia```````````*/
   <MODE16>mainline-result-web z=1;
   <MODE16>mainline-result-ad z=0;
   <MODE16>"<article aria-label=\""[^\"]+ if(z){
    CDp8iULPuCinsert(16);
    y=0;for(x=21;x<yyleng;x++)if(y<255){desc[y]=yytext[x];y++;};desclen=y;
    }
   <MODE16>"<a data-test-id=\"result-link\" tabindex=\"-1\" href=\""[^\"]+ if(z){
    z=0;
    for(x=50;x<yyleng;x++){putc(yytext[x],yyout);};
    fwrite("','",1,3,yyout);
    for(x=0;x<desclen;x++){putc(desc[x],yyout);if(desc[x]==39)putc(39,yyout);};
    if(y==255)fwrite(" [TRUNCATED]",1,12,yyout);
    fwrite("');\n",1,4,yyout);
    }
    /*```````````marginalia```````````*/
   <MODE18><a[ ]href=\"http[^ ]+[ ]rel=\"noopener {
    z++;
    CDp8iULPuCinsert(18);
    for(x=9;x<yyleng-14;x++)putc(yytext[x],yyout);
    fwrite("','",1,3,yyout);
    }
   <MODE18>noreferrer\">[^\"]+<\/a> if(z){
    for(x=12;x<yyleng-4;x++)
    {
    if(yytext[x]==38)tag++;
    if(yytext[x]==59)tag=0;
    if(!tag)if(yytext[x]!=59)
    {
    if(yytext[x]==39)putc(39,yyout);
    if(yytext[x]==34)putc(34,yyout);
    if(yytext[x]==32)if(yytext[x-1]!=32)putc(yytext[x],yyout);
    if(yytext[x]!=32&&yytext[x]!=34&&yytext[x]!=62&&yytext[x]!=10)putc(yytext[x],yyout);
    }
    }
    fwrite("');\n",1,4,yyout);
    }
    /*```````````aol`````````*/
   <MODE26>"lh-24\" href=\""[^\"]+ {
    CDp8iULPuCinsert(26);
    for(x=13;x<yyleng;x++)putc(yytext[x],yyout);putc(44,yyout);
    fwrite("','",1,3,yyout);
    }
   <MODE26>\"[a-f0-9]{13}\"[ ]aria-label=\"[^\"]+ {
    for(x=28;x<yyleng;x++)
    {
    if(yytext[x]==39)putc(39,yyout);
    putc(yytext[x],yyout);
    }
    fwrite("');\n",1,4,yyout);
    }

Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: