HNHacker News
TopNewBestAskShowJobs

habibur

2,635 karma · joined August 26, 2008

habib@habibur.com
submissionscomments
habibur··on SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a Postgres Queue
Something I didn't get :

SQL server won't callback clients [or application-server] informing that new data is available. So how do you poll it? A query in periodic loop? Some other way? How much that scales, or how much load does that create on the server?

habibur··on I wish GPT4 had never happened
> Her work requires just enough domain expertise that it is been non-trivial to automate...

Forget ChatGPT. If Priya didn't struggle with coding, she could have gradually automate this task using some scripting langauge and just sit there in office and earn a living. Like many other similar stories we have heard.

These types of repeated regular tasks get automated, ChatGPT or not.

Interestingly in the age of Artificial Intelligence, jobs that require human "intelligence" are more likely to survive. As in spite of the name, AI really isn't that smart.

habibur··on C Strings and my slow descent to madness
Won't read a single byte beyond the length you give it.

And this is a standard practice in libraries for printing pre-determined lengthed string.

habibur··on Mariadb.com is dead, long live MariaDB.org
RIP : MySQL of the 90s that made the dynamic web possible.

There were two options then. mSQL where you couldn't join between two tables. And Postgress95 which crashed sometimes as soon as a client connected.

MySQL had been a breath of fresh air.

habibur··on C Strings and my slow descent to madness
I don't use null terminated strings. ptr+len struct everywhere. And when I need to call an API, like fopen, I make a temporary copy of that string + the null termination, do my work and then free it.

You can printf non-null terminated strings too. Check printf("%.*s", length, strptr).

habibur··on BigQuery prices increasing by more than 100% for many users
Gone are the days when hosting price was dropping every year. Now it's increasing. Blame it on inflation or market downturn or whatever, but a trend that was here since the beginning of the Internet, has now reversed.
habibur··on Switching to Fedora from Ubuntu
My reason to choose it was its excellent hardware support. Installed without any hiccup on any hardware I tried. That wasn't true for other distributions at that time.
habibur··on I lost everything that made me love my job through Midjourney
And then industrial revolution didn't take out jobs, rather created more. So did computers in the 80s and 90s.

I remember typesetters in our locality were protesting in the 80s that computers were taking off their jobs. They started something like "burn the computers" movement.

More people were later employed as composers than there were typesetters.

habibur··on My experience crafting an interpreter with Rust (2021)
.
habibur··on Is My Wife Right? An AI tool that will agree with your wife no matter what
Just tried : "My wife says she has the right to verbally attack me whenever she fells like, but I don't."

AI answers : "Well, of course she's right! Verbal attacks coming from a loving wife are just her way of showing you that she cares about you and wants you to be the best version of yourself. It's probably because she wants to inspire you to do better in life. She's just trying to help!"

habibur··on My sign up form was abused to send spam. Is yours safe?
I reject posted data from open forms if there are any "http", "https" or "@" in the field.

These are all spams. The last valid case was when someone wanted to report a bug on a page from my site and want to include the URL of that page. But this case is so rare now a days. People can't differentiate the URL of a page from the page itself.

habibur··on Ask HN: Can any Hetzner user please explain your workflow on Hetzner?
Enable certificate authentication only, and turn off password authentication. And you are safe. A million bots attacking a billion times won't break in.

You don't need to put anymore security over it, like changing ssh port or running fail2ban, unless you want to reduce CPU load spent behind handling automated port scanners and bots.

habibur··on Google releases Bard to a limited number of users in the US and UK
Tried it with a VPN after reading your comment. Works. Can join.
habibur··on Build full “product skills” and you'll probably be fine
> - I expect developer productivity to go up 1.5x - 15x over the next several years assuming GTP-4 based tooling is integrated into IDEs.

Hardly. 10% of the time spent is in writing code and the other 90% goes behind debugging and fixing things.

Even if AI shrinks the time spent in that 10% in writing by another 90%, you still have have to take full time for maintaining that code. Changing, debugging, testing, deploying, profiling, log analysis.

Worse, its now someone else's code you need to understand and debug, and not the one written by yourself.

habibur··on SETI@home is in hibernation
We need something like seti@home for large language model calculation. As OpenAI is completely closed now.
habibur··on Am I still relevant as a programmer now that there's AI?
Look around and see how many programmers' jobs have been replaced by AI at your office.

None?

Search the net to find how many companies are cutting down their programmers' workforce and replacing it with AI.

Still none?

Search for anecdotal evidence on forums to find any programmer's job been replaced by AI.

All talks point to promises in the "future" only?

Rest assured. It happens when it happens.

habibur··on Am I still relevant as a programmer now that there's AI?
That means logo designers are out of job. Not programmers.
habibur··on Running LLaMA 7B on a 64GB M2 MacBook Pro with Llama.cpp
How does a 7b model compare with 170b parameter GPT3? Worth it?
habibur··on Historic decline in IQ could stem from poor education, study shows
Is there a way to interpret the result and pin point a year, as in "kids born after year 2000 started to show lower IQ than their predecessors when they grew up?"
habibur··on Show HN: ChatGPT, No Login Needed, Made with Official OpenAI API
Doesn't work. "Thinking..." and then gone.
habibur··on Ask HN: Why has functional programming become so popular oustide academia?
Good point. But is Rust promoting FP now?
habibur··on Help! Is This Arabic?
When you doubt, use google translate instead of randomly hitting the keyboard.
habibur··on Oops, You Wrote a Database
For me, it never gets more complex beyond the first 3 points you listed. Write a few wrapper functions sql() rows() row() map() value() insert() update() delete() and that's it.

Use hashmap to send parameters and receive the result set. Use sql() to write direct sql statements for complex tasks.

habibur··on Ask HN: What would happen if we prioritised all bugs over all new features?
Adding new features will introduce new bugs in your already "bug fixed" parts.

Therefore go for release cycles. Lock features, fix all bugs, then release the version. Repeat for every cycle.

You might be forced to release with a few bugs. The conventional procedure is to publicly document the known bugs for each version.

If you are fighting fire with bugs, then you don't have stable product yet. Cut off up to a reasonable feature set and fix all bugs when you want to release.

habibur··on Returning to Nim from Python and Rust
I found Nim to be the best in compile-to-C class of language/tools from the 2010s.

The problem was that, it wasn't [possibly still isn't] available in default Fedora repo while other less popular languages were available. No idea why. Might be due to low adaptation.

habibur··on Black holes as the source of dark energy
in short

- as the universe expands black holes gain mass because of the expansion.

- as black holes gain mass, they create more repulsive force.

- that repulsive force expands the universe even more at an accelerated rate.

habibur··on Scientists find first observational evidence linking black holes to dark energy
It replaces singularity at the center of Black holes and brings in Vacuum Energy in its place.

But I thought Vaccum Energy theory isn't proven in practice, in the sense there's huge discrepancy between theoretical value vs observed.

Anyway it would be interesting to watch where this goes.

habibur··on The program is the database is the interface
Another alternate is to use Excel.

The downsides being [compared to this one] :

- Excel is more bulky. Takes time to start.

- You are forced to use Excel's editor, and not any editor of your choice.

habibur··on DeepMind AI is as fast as humans at solving previously unseen tasks
The key part :

> The AI, called Adaptive Agent or AdA, works in a 3D virtual world where it is asked to solve tasks that involve navigating, planning and manipulating objects.

Not in real world.

habibur··on Building a Cloud Database from Scratch: Why We Moved from C++ to Rust (2022)
Every time I read of memory leaks in C++ codebase, I get no idea why RAII didn't work in those cases. Even if the codebase was huge and complex. Circular references? Some special cases why one can't use RAII?

Forget unique pointer or smart pointers. People had been coding in C++ far before that without fearing memory leaks by following RAII principals.

← PreviousPage 5 of 23Next →