HNHacker News
TopNewBestAskShowJobs

habibur

2,635 karma · joined August 26, 2008

habib@habibur.com
submissionscomments
habibur··on The year of C++ successor languages
This one is the best introduction. Never heard of Val before until these last few days.
habibur··on Mummy – web server written in Nim that returns to the ancient ways of threads
Searched nginx source. Seems like it's using aio_read() aio_write()

./src/os/unix/ngx_file_aio_read.c

API's doc https://man7.org/linux/man-pages/man3/aio_read.3.html

Even though the source is there don't mean it's compiled or used though. Might or might not be. No idea about the details.

habibur··on Materialized View: SQL Queries on Steroids
If materialized view doesn't refresh data on insert/update, this basically works similar to a cache.

Caching the front page, server side, instead of rendering it on every request would have given similar result -- my guess. Specially when the query was taking 900ms.

habibur··on Coworkers are less ambitious; bosses adjust to the new order
Also note that more than 40 hours a week workers don't do it year round. Only during the peak of a project and then they fall back to almost no work for rest of the year. The average still remains sub 40 or sub 30.
habibur··on Mummy – web server written in Nim that returns to the ancient ways of threads
Thought nginx epolls file i/o too along side socket i/o. Or did you find that the first call to open() or stat() stalls, while read/write after that continues normally?
habibur··on Show HN: Pole Clock, a single 24h clock with multiple timezones
Excellent. You can see at a glance which of the cities are in right now in day light and where's night.
habibur··on Poll: What's the best laptop for Linux these days?
Fedora. Last 6 laptops. Since 2016.

Started with Lenovo. Second one was MSI. And now have moved to cheaper ones as Linux, at least Fedora, runs on anything I buy.

habibur··on Poll: What's the best laptop for Linux these days?
The one with the best hardware.

As Linux runs any laptop I happen to be buying without any glitch.

habibur··on Ask HN: What's a build vs. buy decision that you got wrong?
A better strategy is to first move a small part of it out of the system. And not go for a complete rewrite. And then make sure the old system can work as a proxy for the new system, or vice versa.

When both can be used simultaneously you can now gradually move from one to the other, or revert back as needed.

This is what I followed.

habibur··on SQL + M4 = Composable SQL
Abstract INSERT, UPDATE, DELETE and select by id, as these are common idiomatic tasks.

And then write sql statements for everything else.

habibur··on Tesla stopped reporting its Autopilot safety numbers online. Why?
> Tesla crashes on U.S. roads has grown far faster than Tesla’s sales growth

A fairer comparison would have been [ total number of reported crashes ] / [ total number of cars on road ].

Comparing it with sales growth will show poor performance for older brands which have a lot of cars on the road vs newer brands that are just release cars now.

habibur··on I wrote a Ruby extension in Zig
> Fortunately, a few weeks ago an issue I’ve been tracking for about 3 years was resolved. Zig now can export functions with variable arguments.

The key part. It wasn't possible to write Ruby extensions in Zig until a few weeks back. Now you can.

> I have a story of rewriting part of our production code as Rust extension, which turned out to be 3-4 times faster, but we ditched it anyway, because maintenance cost would be too high.

My solution to this problem is to stick with C. Your code won't get obsolete. Most people are still using C99, and not much has changed in 20 years, even in recent versions.

habibur··on Ask HN: What's your secret diet tip you can share?
You won't die if you starve for 3 to 7 days, and drink only water.
habibur··on What does Overture Map mean for the future of OpenStreetMap?
> Overture data will be available for use by the OpenStreetMap community under compatible open data licenses.

I had been seeking this confirmation. Both can, and will be using one another's data.

And Parent indicates Overture like an administrative fork of OSM.

habibur··on Ask HN: Do You Host Your Own Email?
Hosting my own for more than 10 years. Using a hosting provider's box. Postfix, dovecot, roundcube stack, and letsencrypt certs. Postfix is pretty solid. Install and forget.

First thing I do when moving to a new server is check whether the new box's IP is black listed in any mail-blacklist-dns service. If not, it's good.

What I have also found is that Gmail and other services are relatively forgiving on your server's IP, but marks mail as spam based on context and content.

habibur··on “News is what somebody does not want you to print – all the rest is advertising”
Some of the originals used the word "journalism".
habibur··on How Asus and a Microsoft Bug Almost Broke Remote Work
Did this a decade ago. First feeling was "Ah! no more spyware, adware, nagware". I might have little, but whatever I have works to the end.
habibur··on ChatGPT is a ‘code red’ for Google’s search business
> "Google may be reluctant to deploy this new tech as a replacement for online search, however, because it is not suited to delivering digital ads, which accounted for more than 80 percent of the company’s revenue last year."

So Google had the tech for some time now. But like Sony in the 90s they were reluctant to release it fearing it will hurt their current business.

Therefore someone else had to disrupt the market. Google won't do it to themselves.

habibur··on Linux Kernel Ksmbd Use-After-Free Remote Code Execution Vulnerability
Thought : Oh! Linux Kernel is buggy and then read to see it's Samba related and was pretty new module introduced around 2020.

For context Samba and NFS had historically been buggy or exploitable since the 90s.

habibur··on Why we picked Java
Youtube was first written in PHP.

> Before Google acquired Youtube, the majority of the code was initially written in PHP, but there were many restrictions and clutters in PHP at the time, so after acquiring Youtube by Google, they moved to Python as one of the core parts of its backend programming.

Python started after google's acquisition. It's not that youtube was "never written in PHP".

https://ourtechroom.com/tech/technologies-programming-langua...

habibur··on Why we picked Java
Found the memo, reads Java.

Link :

The source :

https://twitter.com/TechEmails/status/1433837480449613839/ph...

Discussed on HN, 2021

https://news.ycombinator.com/item?id=28424339

habibur··on Why we picked Java
Search for the memo where google employees were saying, "we the developers of google are losing to Youtube, as Youtube engineers use Python and we use Java. And iteration in Java is slower than Python." That's before google purchased youtube.

Edit : Python. The point remains the same.

Link : https://news.ycombinator.com/item?id=16674628

habibur··on Facial recognition tech gets woman booted from Rockettes show due to employer
Employee - Employer is here a lawyer based on the law firm. Before you click the title and waste your time.
habibur··on Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
Register a $6/month virtual box on Digital Ocean or any such service and run it there. crontab -e.

It might be more than what you need, but your needs will increase. The above cost will not.

habibur··on Ten influential programming languages (2020)
Windows Win32 API still uses Pascal calling convention instead of standard C. Shadow from the dead.

And also there was the 4th generation language movement at that time, 4GL. Defined by coding like writing English sentences, and not much algo. More akin to our no-code, low-code trend. SQL was also a child from 4GL. C/C++ was then seen as 3GL. And then we can now watch 3GL ultimately took over 4GL, at least until now, for half a century.

Tidbits.

Corrected: COBOL was 3GL.

habibur··on Ask HN: Resources for Building a Webserver in C?
Parse server logs, if that helps.
habibur··on John Carmack Leaves Meta
He was talking about working on AI the other day. Artificial general intelligence "or die" type of challenge taking.

Guess he's getting full time busy with that.

habibur··on Deepmind’s AlphaCode conquers coding, performing as well as humans
Next, the AI should be able to maintain and improve itself without human intervention.

Until then, human are needed to build those AIs.

habibur··on Noulith: A new programming language by the current Advent of Code leader
Excellent language design.

I might implement it in C, as soon as I get some time.

habibur··on Nuclear-fusion lab achieves ‘ignition’: what does it mean?
Peace.
← PreviousPage 8 of 23Next →