Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alsadi
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
Have you considered defusing SSH from the likes of xz backdoors?
(bcksp.blogspot.com)
1 points
by
alsadi
2y ago
|
0 comments
2.
▲
by
alsadi
2y ago
Untill the entire scope of this is identified I suggest activating the kill switch https://bcksp.blogspot.com/2024/03/how-to-disable-xz-backdoo...
3.
▲
I identified another bottleneck in WASM Python binding
(old.reddit.com)
2 points
by
alsadi
4y ago
|
0 comments
4.
▲
Show HN: I made calling WebAssembly from Python 25x times Faster
(medium.com)
5 points
by
alsadi
4y ago
|
0 comments
5.
▲
Why there are randomness in ranking algorithm?
(medium.com)
2 points
by
alsadi
4y ago
|
0 comments
6.
▲
by
alsadi
4y ago
here I've eliminated uvicorn, nothing changed https://gist.github.com/muayyad-alsadi/3a1e1cdbafca34df8b178...
7.
▲
by
alsadi
4y ago
Many things have changed since the old days. In PEP 3333 sendfile is exposed as opposed to PEP 333 (so in the WSGI days they had no way of doing it, but in ASGI they can do it). The assumption that nginx is always there no longer hold, spec
8.
▲
by
alsadi
4y ago
As I pointed out in my other comment, serving a static file should be a single call to a kernel routine called sendfile (sendfile in c or in python io.sendfile or loop.sendfile). No loop, no memory copy, no further context switch. Again if
9.
▲
by
alsadi
4y ago
BTW being ASGI is not excuse because ASGI spec (PEP 3333) have a section on how to expose and make use of sendfile kernel routine. https://peps.python.org/pep-3333/#optional-platform-specific...
10.
▲
by
alsadi
4y ago
I made it like that to be as fair as possible and as simple as possible. I've done other experiments with same results. If you think I was not fair to the fastapi part feel free to edit the fastapi part in the form of github gist. And
11.
▲
by
alsadi
4y ago
It's reported here and they suggest adding nginx with x-accel which is basically surrending. https://github.com/tiangolo/fastapi/issues/5803
12.
▲
Serving Files in Python: How FastAPI Failed Us
(medium.com)
5 points
by
alsadi
4y ago
|
10 comments
13.
▲
by
alsadi
5y ago
Computers are just infinite tape marked out into squares... (Turing machine). A pyramid is just a stack of cubic rocks.
14.
▲
by
alsadi
5y ago
I do agree. When I first see it I knew that. Comparing two sequences (actual dom and dom) to find diff is like O(n^2) and the assumption that dom ops is expensive is a lie (premature optimization). Dom ops on ids and classes and fragments i
15.
▲
by
alsadi
7y ago
How about making it redis+msgpack vs. postgresql json-like?
16.
▲
by
alsadi
7y ago
2015
17.
▲
by
alsadi
8y ago
We are big pharam, give us tons of money and hope that we cure you! We don't! we just treat you.
18.
▲
by
alsadi
8y ago
Some optimizations can be enabled "python -OO -m compileall mydir" But it's merely skipping comments and names
19.
▲
by
alsadi
8y ago
I guess Prius is not affected. But Prius is borning.
20.
▲
by
alsadi
8y ago
> Kazakhstan forces their citizens to install government-issued certificate to use SSL. So why debian/ubuntu vulnteer to remove this layer? Why doing the equivalent of installing random certs for every gov/isp on every user? Ye
21.
▲
by
alsadi
8y ago
This would have been prevented https://www.debian.org/security/2019/dsa-4371
22.
▲
by
alsadi
8y ago
Those arguments are invalid. Because debian/ubuntu fail to use https regimes like egypt/syria can track people who try install tor and they can cherry-pick block repos based on package name. I'm sorry for not liking your favo
23.
▲
by
alsadi
8y ago
I miss redhat's bluecurve icons. https://www.deviantart.com/redrope/art/Bluecurve-Complete-Ic...
24.
▲
by
alsadi
8y ago
No, kufi is named after a city in what is now Iraq not Iran. https://en.m.wikipedia.org/wiki/Kufa
25.
▲
by
alsadi
8y ago
it's a known calligraphy style called kufi, just google it. https://www.google.com/search?q=arabic+calligraphy+kufi&clie...
26.
▲
by
alsadi
8y ago
no, it's very readable because it's a well known calligraphy called kufi as others have pointed out.
27.
▲
by
alsadi
8y ago
The logo on the right is the arabic letters of the word Algorithmi (al-Khwarizmi) the persian muslim scholar after him algorithms and logarithms were named
28.
▲
by
alsadi
8y ago
Start feeling sad for the birds that eat them.
29.
▲
by
alsadi
8y ago
I guess SELinux/SVirt would mitigate this
30.
▲
by
alsadi
8y ago
Many comments mistaken redhat as an OS company? They are not. IBM did not buy redhat to get RHEL. They bought it for the hybrid cloud as clearly stated. Redhat has openstack platform, cloud formation/manage iq, openshift, ansible, ceph
More ›