HNHacker News
TopNewBestAskShowJobs

habibur

2,635 karma · joined August 26, 2008

habib@habibur.com
submissionscomments
habibur··on Nuclear-fusion lab achieves ‘ignition’: what does it mean?
In more human terms :

    They fused in 0.6 kwh energy.
    Which produced 0.9 kwh energy.
These megajouls are confusing for me. kwh is what we use for resident home power billing unit.
habibur··on Ask HN: Someone is proxy-mirroring my website, can I do anything?
point no.1 will do. that's the solution.
habibur··on C23 Implications for C Libraries
Good point.
habibur··on C23 Implications for C Libraries
C needs default parameters.

Where the compiler puts on stack the default value, whenever the function call doesn't include it.

Guess that won't compromise with anything.

habibur··on I found a bug in SQLite
Even though SQLite bugs are rare, those can be found occasionally.

I remember a bug finder took the sqlite documentation off their website. Collected all their keywords, made up millions of jumbled up queries of random combination between keywords and then ran those overnight to find 10 bugs where the engine crashed. And yes those were also reported and fixed quickly.

habibur··on Is dark matter’s “nightmare scenario” true?
Dark matter and dark energy are like what if there was no Einstein to discover relativity in early 1900s. We later continue to discover that gravity can't explain planetary motions correctly and therefore search for any explanation.

There are more laws of Physics waiting to be discovered. At least two big ones from what we currently observe.

habibur··on Premium .dev domain with Google costs $850
I find only ".com" names cool.

All other are cheap, junk or designed to extort.

habibur··on Abstraction is expensive
Bad title.

The article clearly says : Abstraction *misalignment* is expensive.

habibur··on Bright flash is a black hole jet pointing at Earth, astronomers say
> 8.5 billion lights years away—more than halfway across the universe

That was the first number I was looking for.

Not a threat to earth. It's not even in our galaxy.

habibur··on Hetzner continues its growth in the US with a new location
Hetzner was launched [or may be got popular] after DigitalOcean took off.

Since then they priced their boxes competitively relative to DO. A little bit less. That's still holding.

Also note that at that time hosting in Europe wasn't a popular option, unlike what we see now.

habibur··on Garage: An open-source distributed object storage service
Seaweed. Apache license.

https://github.com/seaweedfs/seaweedfs

habibur··on Building an interpreter for my programming language with ChatGPT
Google, Wikipedia, and historically the internet had been unreliable for many of the queries. More so in the beginning. But over time most of the errors are ironed out. ChatGPT is a very promising start I would say.

In the end convenience wins out at cost of correctness. The proportion matters, convenience::correctness.

habibur··on Building an interpreter for my programming language with ChatGPT
ChatGPT will be the google killer, if they can scale it up for unregistered general use.

No idea how much openai's computational cost is per query. Unless it's an order of magnitude higher than google's, we can assume the next thing after yahoo -> altavista -> google is here.

habibur··on Ask HN: How do you fix the “no longer feel” anything in tech?
Geo political events. Overall downturn in Tech and layoffs. Higher possibility that AI will invade lower end programmers job.

We are standing at the edge of some uncharted territory. No one is sure whether the future of software development as a profession will be better or worse than the past.

It's ok to feel numb standing here.

habibur··on Show HN: A nice C string API
It does.
habibur··on Show HN: A nice C string API
I use a lib like this, but a few changes.

    printf("The string is %"PRIstr"\n", PRIstrarg(mystring));
Simpler: printf("the string is : %.*s",mystr.size, mystr.data)

But that's tedious to write. So create a small macro

    #define ls(x) (x).size,(x).data
And then printf becomes as simple as :

    printf("the string is : %.*s", ls(mystr));
Though OP's macro is possibly doing more.
habibur··on Ask HN: Getting into AI?
The other job is data processing for AI.

Collect data from field, cleanse, and then feed to ML. Lots of work. Especially the organizing, cleansing side, which can be pseudo automated upto a point and then manual process the rest.

This data collection for ai already has a large market. And if you want to get involved in ML/AI, either you need to buy data from the market, or do the heavy lifting of collecting processing by yourself.

habibur··on Twitter is limiting Mastodon Twitter Crossposter
Reads like a general rate limit of 100 tweets / hour from apis.

Would have been "limiting Mastodon", as the title claims, had this limit been applied specifically for their API calls, while others enjoy limitless.

habibur··on Back of the Envelope Calculations at Twitter 2.0
> 150 million DAU. Say 10% of these tweets contain pictures of average size 300kB each & 1% of tweets contain videos of about 100MB each.

My assumption would be that a new image is uploaded per 1000 tweets a day. As retweeting an image is more popular, that doesn't occupy space.

And 100 MB videos are pretty rare. Most are short, few seconds.

habibur··on Estimated cumulative excess deaths during Covid, World
this chart
habibur··on Show HN: We have built a benchmark platform for graph databases
Drop in a sqlite database in there for comparison and we get a better grasp of the magnitude of the numbers.

Of course sqlite isn't a graph database. But you can make it work like one by writing some query joins.

habibur··on Estimated cumulative excess deaths during Covid, World
Rough estimation from this chart.

10 people die every year per 1000.

During this covid it had been 11 people per thousand per year.

habibur··on The sad history of Unicode printf-style format specifiers in Visual C++ (2019)
I remember this hoopla.

And windows wasn't the only victim of using "two bytes for a char" for unicode support.

Java fell in this trap too. The team was split in deciding "whether to waste a single byte per character for string" -- that's in their words, and then decided to rather be ready for the future. That's in 1995.

And then everyone later watched UTF-8 take over the world.

The PHP team also wasted their version 6 and a few years of development effort trying to support multi byte chars by ditching all previous code. And then failed. There was never a version 6. They continued with the old code base with version 7.

Why didn't they go the UTF-8 round? May be Unicode consortium was late to introduce it. Maybe something else.

habibur··on Using a date-modified header to detect unique visitors without using cookies
This can be used like a cookie without using cookies as long as definition of cookie stays "...a cookie is a small file stored on your computer".

You have 30 million seconds per year as unique identifier to be used against each individual for tracking. Even though the OP didn't do it.

Put an expire time in between 10 years back to today and 300m users tracked.

habibur··on The Rune Programming Language
PHP is Flex/Bison.

The main point of the discussed project is to alter data structure to be more CPU cache friendly and thus try to be faster than C++. The paradigm.

habibur··on The Rune Programming Language
Written in C.

Uses LLVM for execution.

Parsers are Lex and Yacc.

habibur··on I/O is no longer the bottleneck
It was sold as C killer in the beginning.

And then a few years later there was an article that said, the Go engineers were surprised when they saw C/C++ coders weren't switching to Go rather Python/Ruby coders were "upgrading" to Go.

habibur··on ‘Gold hydrogen’ is an untapped resource in depleted oil wells
The numbers :

    Their cost : $1 / kg of H.
    Other's cost : $1.5 / kg on average.
    1 kg H is equivalent to 1 gallon of petroleum fuel in energy.
habibur··on Ask HN: Azure has run out of compute – anyone else affected?
Looks like github is down right now. Or is it only me?
habibur··on Show HN: Have fun betting virtual (not real) money on predictions from HN users
Order by most active bets at the top.

Right now the page starts with dead claims and you find pretty active and good ones while scrolling down.

← PreviousPage 9 of 23Next →