HNHacker News
TopNewBestAskShowJobs

habibur

2,635 karma · joined August 26, 2008

habib@habibur.com
submissionscomments
habibur··on The James Webb Space Telescope is finding too many early galaxies
Any straight line you draw from earth to any direction in the sky will then reach a star.
habibur··on What Were We Thinking?
How do you plan to force someone to work who isn't willing to, just to make sure everyone in the society gets equal wealth?

The communists had a solution.

habibur··on What Were We Thinking?
Give equal reward to everyone regardless of their contribution or success, and people lose motivation for work. After a while the nation as a whole collapses. We have seen it in the communist era.
habibur··on Your tech stack is not the product
Leave it upto what engineers want, and they will try to build a google scale thing to put it into their resume.
habibur··on Ask HN: Strategies for working with engineers that are too smart?
Smartness is proven by one's ability in making a complex system simpler. If your engineers can't do it, they aren't really smart.
habibur··on Microsoft eyes $10B bet on ChatGPT
OpenAI started as a non-profit.
habibur··on Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.
I felt the same when was infected from Covid. That remained for 6 months, and then gradually went away.

At the downtime I felt like +20 or 30 years older and gone retarded. Can't do any more hard brain work, and felt like I can't do that ever.

But this will pass.

habibur··on Show HN: I wrote a WebAssembly Interpreter and Toolkit in C
I am afraid it doesn't work on linux.
habibur··on Ask HN: How to move from traditional tech into game dev?
Few weeks back, others were talking about embedded getting paid less than web app development. What would you say, true? I understand that they aren't getting laidoff, there's a big gap in high demand and low number of experts in this field.
habibur··on Production Twitter on one machine? 100Gbps NICs and NVMe are fast
Fascinating. Any special optimization you are using, or is it from off the shelf software and with standard configuration?
habibur··on Production Twitter on one machine? 100Gbps NICs and NVMe are fast
He will be up for surprise.

HTTP with connection: keep-open can serve 100k req/sec. But that's for one client being served repeatedly over 1 connection. And this is the inflated number that's published in webserver benchmark tests.

For more practical down to earth test, you need to measure performance w/o keep-alive. Request per second will drop to 12k / sec then.

And that's for HTTP without encryption or ssl handshake. Use HTTPS and watch it fall down to only 400 req / sec under load test [ without connection: keep-alive ].

That's what I observer.

habibur··on The beauty of CGI and simple design
I have followed this tutorial and wrote my own.

https://www.mit.edu/~yandros/doc/specs/fcgi-spec.html

Easier than integrating a 3rd party tool.

habibur··on The beauty of CGI and simple design
CGI is slow [ spawns an OS process for every request ]. But FCGI is as fast as any other solution, like compiling the whole app in a single binary and running it as a HTTP server.
habibur··on The beauty of CGI and simple design
transfer-encoding: chunked, and then send data in 64kb packets. You need to tell the size of each packet at its header. Even then, it is an optional good practice, but not required by RFC.
habibur··on Watch out for DoS when using Rust’s Hyper package
Another relatively safe strategy : Don't buffer http data on server. Read a limited sized header and then stream the body to its request handler.
habibur··on Epochalypse
Doesn't even compile with -m32. Asks for a missing header, which google indicates to install from a i386 library.

I regularly compile a lot of stuff on this machine, indicating I never needed that before.

So none of the software I compiled had 32 bit time_t. And we still have 15 more years to migrate anything remaining behind.

habibur··on Epochalypse
Tried the following code on Linux / 64 bits.

    #include <time.h>
    #include <stdio.h>

    int main(){
        printf("%d\n",sizeof(time_t));
    }


    $ gcc -o time time.c
    $ ./time
    $ 8
Therefore time_t is 8 bytes at least on 64 bit systems, even when you are using default time_t and not time64_t.

No idea when it was changed. 20 years back?

habibur··on Epochalypse
At least on 64 bit Linux, time_t is defined in 64 bits.

printf("%d\n",sizeof(time_t));

outputs : 8

habibur··on Artist banned, told to “find a different style”- AI-made art
Trained on 5 billion images to create a 6 GB model. Every image contributed no more than a few bits of information.
habibur··on A practical comparison of build and test speed between C++ and Rust
The site's going up and down. Here's Conclusion :

////

Are compilation times a problem with Rust? Yes.

Are build times as bad with Rust as with C++? Yes.

Looking at my hypotheses, I was wrong on all counts:

The Rust port had more lines than the C++ version, not fewer.

For full builds, compared to Rust, C++ builds took about the same amount of time (17k SLOC) or took less time (100k+ SLOC), not longer.

For incremental builds, compared to C++, Rust builds were sometimes shorter and sometimes longer (17k SLOC) or much longer (100k+ SLOC), not always longer.

habibur··on Bill Gates: I'm literally losing sleep over Java (1996)
Nathan Myhrvold's long answer was more interesting. He was talking about the future of the Internet and what would make money.

Now 25 years later, watch what's actually made the most money, and did his reply cover those. I can think of hosted services and search.

Even Microsoft had one of the very first maps online in the 90s [ terraserver ] but they failed to realize how large this business eventually will turn into.

habibur··on WordPress sites under attack from newly found Linux trojan
answers, "why you should write your own framework, if you have the knowledge and time."
habibur··on Microsoft workers to form company’s first union in the U.S.
"MS workers" here are 300 QA testers from MS's game division.

I was worried whether their core developers were unionizing or not.

Not yet. Not even the game developers.

habibur··on CLib: Header-only C library that implements the most important classes from GLib
This most likely is an unexpected failure. Indicating bug in algorithm or memory corruption. Like "Failed to find empty slot, while logic flow says I should have."
habibur··on Migrating from AWS to Fly.io
I would read it as a 60% saving. That's a very good one. Considering that this is a recurring cost and not a one time and it's proportional to their sales. Aka, they now will be able to provide their clients twice the amount of contents for the same price. At least in theory.
habibur··on Migrating from AWS to Fly.io
Would have loved to read how much money they saved from this migration. The number's not there, unfortunately.
habibur··on Ok, Cloudflare I am leaving
TIL : the free cloudflare proxies will serve your static HTML files only, and you need to host your images elsewhere.
habibur··on Writing a Python SQL engine from scratch
Good work.

Here are my use cases of a SQL parser at application level.

    - enumerate, add, delete conditions from WHERE clause.
    - change ORDER BY.
    - paging, LIMIT.
    - turn an aggregate query into crosstab query.
habibur··on Modules, not microservices
> Simply using separate services greatly reduces the chances of a full outage and justifies all other overhead.

or maybe run redundant monolith fail over servers. should work the same as micro services.

habibur··on Sergey Brin: Irate Call from Steve Jobs
> steve told me he was cool with us hiring anyone who came to us but was angry about systematic solicitation

At least not as unfair as I initially thought.

← PreviousPage 7 of 23Next →