HNHacker News
TopNewBestAskShowJobs

z92

1,606 karma · joined April 8, 2010

Contact: habib@habibur.com
submissionscomments
z92··on Named arguments are coming in PHP 8
Not in get-it-done, hackish scripts.
z92··on US restricts Windows exports to Chinese/Russian/Venezuelan military and police
That was the point.
z92··on “C is how the computer works” is a dangerous mindset for C programmers
> most other answers will raise an eyebrow from me

Portability. A C library can be trivially linked with any other language. But one will be hard pressed using a python library form Ruby, for example.

z92··on Decoding evolution and transmissions of novel pneumonia coronavirus
zerohedge's twitter account was blocked permanently for sharing a post on the origin of the virus. For one.
z92··on How to decrypt WhatsApp end-to-end media files
Really? I was like "wao, he has found a way to break encryption" only to figure out he is decryption using the key. End to end encryption is all about preventing man in the middle attack. Not about preventing a second way for decrypting at end points.
z92··on PHP in 2020
Statelessness allows you to press the back key and expect to go back to the previous page without any surprise. Shift-click, ctrl-click on any link and open the page in different tab. Work on the main tab for some time and then jump back to the old tab and still find everything works as expected.

Plus you can have 10 servers for load sharing and users can hit any server at random and still expect the site to work perfectly.

z92··on Cello – High Level C
I use argv[0] as stack head.
z92··on How to Exit Vim
This one is the shortest way in the list :

The test driven development way

:echom test_null_list()

And it works. Just checked.

z92··on The Submersible Nuclear Ramjet: Part Nuclear Bomber, Part Submarine (2018)
Till now I was wondering how the infinity range nuclear powered Russian missiles that Putin is developing is supposed to work. I know now. Can see the similarities. This also answers why USA hasn't come up with similar tech. It did. In the 60s. And didn't feel it needed it anymore.
z92··on Ruby 2.7
The compaction GC was the most important change. I haven't measured Ruby's performance specifically but in general the difference and improvements over a non-compacting GC is so huge. Specially for long running processes.
z92··on Lilith: x86-64 OS written in Crystal
When does GC kick in during the boot sequence? And how are you managing memory? Is the whole OS mark and sweeped?
z92··on The Afsluitdijk
This post is in the front page of HN because of this initial confusion. Otherwise that was no larger deal compared to other projects that are going on around the world.
z92··on Amazon is now delivering half its own packages, rivaling FedEx and UPS
//little tiny online bookstore//

Well, it at least called itself "Earth's Biggest Bookstore" at that time.

z92··on O(n^2), again, now in Windows Management Instrumentation
He probably meant, the lookup in the list is a conditional lookup based on a logic, instead of a simple key string.
z92··on Epsilon: The JDK’s Do-Nothing Garbage Collector
Read it. It's still garbage collecting, but doing it through reference counting. There was an extra GC for circular reference collecting. That one was disabled as well as object freeing up before termination.
z92··on Cancer cells die in microgravity conditions – study
I thought any of these experiments are carried out on two sets of cells. One normal and the other cancerous. Both exposed to the same test environment and treatment -- shear in this case. And when they claim "70% of cancerous cells died" they mean 70% more of the cancerous cells died than that of the normal cells, where "more" is defined in some acceptable standard.
z92··on Farmers Are Using Food Waste to Make Electricity
Unanswered question, where does the remaining waste from the plant go? Surely not all of the mass is converted into gas. And with 1000 tons per day, there should be a lot of waste to dispose off somewhere.
z92··on Garbage Collection
Garbage collection isn't that slow. I find allocating off the fragmented memory after collection slower.
z92··on Jor1k: Run Linux in the browser with multicore and network support
Next we need someone to come up with Docker in browser and then you can run almost anything in the browser.
z92··on The Most Mindnumbing of Office Tasks Made One Man $360M
Matches my experience very much.
z92··on Dark Mode by Default – 95% of People Prefer Dark over Light Mode
Second this. Aged. Dark mode and command prompt is less tiresome on eye than white.
z92··on Google Fires Four Workers, Including Staffer Tied to Protest
Anyone else thinks Google is getting too much protests, walkouts, processions compared to other big companies like MS in its peak days? It even missed a defense contract of $10B because its employees didn't like it, which MS picked up happily.

I wonder how it's like working there now a days.

z92··on If you care about user privacy, don’t use Facebook JavaScript SDK
That brings up the question : does Facebook get any less information because you used a 3rd party OAuth library to authenticate from FB, instead of using FB's own SDK which injects an iframe?
z92··on How to make your C codebase Rusty: rewriting keyboard firmware keymap
I thought Erlang VM was written in Erlang, maybe the first few versions where written in C.
z92··on Let's Encrypt certificate issuance was down
It was down for 5 hours since when they posted the first update. And now it's fixed.

> November 17, 2019 19:33 UTC > [Resolved] We have resolved the issue that was affecting production certificate issuance. Service is restored.

z92··on Show HN: Simple PDF to PNG Server
ImageMagick with "multicore" support won't speed things up the moment number of concurrent requests touches the number of cores you have. And in digital ocean's case you have only one core.
z92··on Turning PostgreSQL into a queue serving 10k jobs per second (2013)
// One problem with using PostgreSQL in this way (using either advisory locks or LOCK FOR UPDATE) is that it requires you to keep an open connection to the database whilst the job is being worked on. //

Not necessarily. You lock the row for an instant update to a field, for example called "status" into "running" and then disconnect from the database within milliseconds. Finish your job taking as much time as you want. And then connect again to change the row's status to "finished".

This is how it's always designed, as I have seen. The locking problem is for querying rows where status="waiting" and then instantly change it.

It's not to "keep the record locked, and DB connection up, until I finish my batch job". That would be a bad design.

z92··on Mirantis acquires Docker Enterprise and Docker raises $35M
This news comes at a time when I discovered that Fedora 31, the latest release, doesn't support Docker anymore.
z92··on System design hack: Postgres is a great pub/sub and job server
The key features used here for PG seems SKIP LOCKED, and the PG notification system, which informs all clients that are directly connected to the database that "this table has changed" so that they can restart their work.

The notification system comes with a cost. You can't scale up the number of connection to a PG database instance.

Therefore you need to go pooling.

And for SKIP LOCKED, I just checked and mysql/maria do have it.

z92··on Steve Jobs Is Dead
Using a display name like "Steve Jobs" makes it look like a troll account, misleading at the least, getting blocked isn't that much surprising.

You have to restart without trying to get a boost using popular figure's name or photo.

← PreviousPage 2 of 17Next →