HNHacker News
TopNewBestAskShowJobs

asalahli

299 karma · joined April 1, 2018

submissionscomments
asalahli··on A Poor Man's API
So can the services providing http APIs. What does that have anything to do with security?
asalahli··on A Poor Man's API
But that makes it hard to refer to, search for or have a discussion about real REST, the architectural style. Why use a term that means a different thing when you can just invent/use a new term describing what you want to describe. REST, as Roy Fielding defined it, is an extremely interesting concept to me and I'd love to explore it more, but good luck doing any research on it without getting flooded with countless junk about "REST" or "RESTful" APIs.

Sort of like how youtube is filled with videos about "damascus steel" which is nothing more than steel of random, irrelevant composition with certain visual pattern akin to actual damascus steel. But again, good luck finding a video about the real deal.

Same can be said about ASMR, and many other misappropriated terms people throw around for clickbait.

Rant over.

asalahli··on Git Notes
Yeah it was the other way around. As I remember it, libav devs were pretty hostile towards ffmpeg and refused to pull anything from it while the ffmpeg maintainer kept cherry-picking from libav for a long time after the fork.

IMO it's probably the primary reason why libav is practically dead now.

asalahli··on Ask HN: Why the Linux Kernel doesn't have unit tests?
I believe the parent was referring to Test mocks[0], not implying you mocking anything.

0. https://en.wikipedia.org/wiki/Mock_object#Use_in_test-driven...

asalahli··on Ask HN: What are 100K dollar ideas but not million dollar ideas?
> the company is confident that they can find somebody else to do the job for 100k in case the worker asks for a raise.

More like, the company is willing to pay more but won't do so until the worker asks for a raise, in my personal experience.

asalahli··on Ask HN: What API do you wish existed?
Admittedly, reality might be different (I won't know until I actually have this feature), but in my mind this is a good thing ¯\_(ツ)_/¯ I would still receive emails from my contacts and I can add new people to contact list if I meet them through other channels first. This would only apply to strangers.

I didn't quite get your last sentence though. Who would be on the hook and why? A 1 dollar donation to a reputable charity wouldn't be a shady transaction.

asalahli··on Ask HN: What API do you wish existed?
A charity API. When people outside my contacts list first email me, I would (auto) generate and send a charity donation link to them, and once the donation is verified, I'd let their mail through.

I've been thinking about a captcha-like "prove you're not a bot/spammer" system for emails and I think charity donations would be a good test of that.

asalahli··on Flyweight: An ORM for SQLite
> you're creating a hard coupling to a specific flavor of SQL.

I fail to see why this is a problem. Switching databases is a costly move, and is pretty rare as far as I know. When it does happen, it is usually from one type of db to another type, not between two RDBMSs.

IMO it doesn't, by itself, justify sticking to an ORM rather than raw SQL.

asalahli··on Show HN: Investorsexchange.jl – parse trade-level stock market data in Julia
"We Specialize In Wood"
asalahli··on If everyone bicycled like the Danes, we’d avoid a UK’s worth of emissions
I'd be curious to see how this compares to cutting or reducing emissions from other sources, like private jets or burning coal. At a glance, without knowing much about greenhouse emissions, this seems like an extremely high effort low impact measure. Surely there must be lower hanging fruits?
asalahli··on Ask HN: What are the best-designed things you've ever used?
I've been a happy user of Frixion pens for the past 10 years and Moleskine notebooks for about 4. It's a shame the two don't really go well together however, at least in my experience
asalahli··on LetsEncrypt Certificate Issuance Halted
That's because "birthdays" we celebrate are technically birthday anniversaries. Hence starting from 1 year after the actual birth day
asalahli··on Ask HN: What you up to? (Who doesn't want to be hired?)
Any pictures? :)
asalahli··on What I Wish I Knew About U2F and Other Hardware MFA Protocols
Well, that is hundreds of dollars, isn't it? :)
asalahli··on D 2.096 and other news
I undersand. I didn't mean it as a criticism of BetterC :)

I'm just getting into D and I love it so far. I do wish there was a way to turn off GC and still have all of the standard library available.

asalahli··on SQLite is not a toy database
I was actually talking about both. For example for python, which is what I usually use, both uwsgi and gunicorn support graceful restarts. Admittedly I don't have much experience with other languages, but it's technically possible. If your application doesn't support it out of the box, you can still achieve it with something like systemd's socket activation.
asalahli··on D 2.096 and other news
But BetterC doesnt have exceptions :(
asalahli··on SQLite is not a toy database
Most web servers support greaceful restarts, i.e. reloading code and configuration without downtime. Usually you just send a pre-specified and documented signal to the process to do it.
asalahli··on Do you really want Linux phones
The original iPhone SE also has 2GBs of RAM. Even after 5 years, it's still as responsive as when I first got it.
asalahli··on How Safe Is Zig?
Have you looked into the subset of D called "Better C"? I recently stumbled upon it and have been wanting to try it out. It seems to solve the exact same problem you're describing, though I don't know how good of a job it does at that.

https://dlang.org/spec/betterc.html

asalahli··on Write code. Not too much. Mostly functions.
Isn't it ironic to complain about the industry coming up with different solutions for the problem, then to suggest the actual solution is X (whatever x is)?
asalahli··on Is a billion dollars worth of server lying on the ground?
It was panic shopping when people were hoarding flour and yeast though, for instance
asalahli··on Faster Web Applications with SCGI (2007)
One thing I like about SCGI is how easy it is to determine the request size, compared to HTTP. You can parse first few bytes to get the size of the header section. Then the first header is required to be CONTENT_LENGTH, thought I'm not sure if all servers respect that requirement. Even if some don't, CONTENT_LENGTH is still guaranteed to be present. So you need at most two memory allocations to read the entire request into memory.
asalahli··on An Introduction to Reddit’s ‘Slave Labour’ Subreddit
Outline link https://outline.com/NPeWHR
asalahli··on Scorpion Transforming Computer Chair
Off topic: has anyone noticed the cookie consent dialog says

By confirming or cancel this notification, you agree to our usage of the cookies.

asalahli··on Stop Asking Me to “Sign Up” (2014)
iPhone SE came out in 2016 and has a resolution of 640x1136. I still use it.
asalahli··on Why Is 1 World Trade Center Missing from Spider-Man?
> We need to get away from the idea that taking a picture of something is reproducing it.

What about taking a picture of a copyrighted text?

asalahli··on Read Me
> Read Me

Well I can't, because apparently my browser (iOS 10) isn't supported.

I wonder what advanced JS features the page is using, that are only available on the latest browsers.</snark>

asalahli··on Interview with Bill Gates on Covid, social media
That's an interesting claim. Pretty much every piece of negative opinion of Gates I've seen have either been

1. About his work at Microsoft

2. Or some conspiracy theory about world domination, population control etc

I'd be interested to read more on how societies he's directly worked with think of him, if you have any links

asalahli··on Facebook announces policy changes ahead of 2020 elections
Posts by your friends in chronological order?
← PreviousPage 5 of 6Next →