Better HN
topnewbestaskshowjobs
Log inSign up

danogentili

460 karma · joined Aug 21, 2016 (10y ago) · 135 submissions

Senior software artisan with a vast experience working on complex high-performance systems using Rust, Golang, C++, C, PHP. Website: https://daniil.it
Submissions

1.

Psalm 7.15: full PHP 8.6 support and weak crypto/SQL-aware security analysis(psalm.dev ↗)

1 points · by danogentili · 4d ago · discuss

2.

Revolt-rs: the Revolt event loop as a native PHP extension, up to 16x faster(blog.daniil.it ↗)

1 points · by danogentili · 4d ago · discuss

3.

A 4x faster async drop-in replacement for the MongoDB PHP extension(blog.daniil.it ↗)

1 points · by danogentili · 4d ago · discuss

4.

Psalm 7 release: PHP security&static analysis software(psalm.dev ↗)

81 points · by danogentili · 2w ago · 49 comments

5.

Pure PHP WebRTC+RTMP powering a Telegram webradio(twitter.com ↗)

1 points · by danogentili · 1mo ago · discuss

6.

PHP-community: a faster-moving, community-driven PHP(blog.daniil.it ↗)

2 points · by danogentili · 8mo ago · discuss

comment 1y ago · link · parent

The current trend in govt regulation is actually going in the opposite direction, with telecom lobbies in Europe pushing for "fair share" (pretty much an implementation through law of what Deutsche Telekom and Vodafone Germany are doing right now) through the Digital Networks Act.

South Korea pioneered "fair share" govt regulations in 2016 (which caused Twitch to exit the market in 2024 due the exorbitant "fair share" fees).

comment 1y ago · link · parent

Seems pretty much a private equivalent of "fair share" govt regulation currently being pushed by ISPs in Europe through lobbying with the Digital Networks Act (https://www.namex.it/toward-the-digital-networks-act-the-fut..., https://stopdna.eu/).

South Korea pioneered fair share govt regulations in 2016 (which caused Twitch to exit the market in 2024 due the exorbitant "fair share" fees).

9.

Psalm v7: up to 10x performance(blog.daniil.it ↗)

2 points · by danogentili · 1y ago · discuss

10.

Official Psalm Docker Image(blog.daniil.it ↗)

1 points · by danogentili · 1y ago · discuss

comment 1y ago · link · parent

Async functions based on PHP fibers are explicitly uncolored, they do not require any special keywords to be invoked, and are explicitly swappable with any regular functions.

comment 1y ago · link · parent

Fibers are incredibly powerful, as they can be used to implement seamless go-like concurrency with async, colorless functions.

They were added to PHP by the maintainers of amphp (https://amphp.org), which is the best library for async PHP out there, providing a clean, object-oriented and async API for files, databases and everything that can make use of async I/O.

comment 1y ago · link · parent

Kia is also using a Linux Wayland system on an x86-64 Intel machine (with an iGPU) with an (excellent) QT5 UI for their infontainment system

comment 1y ago · link · parent

Not really, the auth_key_id really is simply equivalent to a TLS session ticket, used to avoid repeating the handshake every time a new connection is established: there's nothing "unencryted" about it, it's just an identifier of a previously established encrypted channel, like session tickets in TLS (and on top of that, the MTProto auth key ID is also rotated every 24 hours).

comment 1y ago · link · parent

Note that the article employs unwarranted FUD in regards to the auth_key_id, which is fully equivalent to a TLS session ticket, used, like in TLS, to avoid repeating the handshake each time a new connection is established (and on top of that, the MTProto auth key ID is also rotated every 24 hours).

comment 1y ago · link · parent

Apparently they're using a simple 4g/3g/2g modem with Russian SIM, which is the reason why all russian ISPs completely turn off mobile internet (& voice) when drone launches are detected (clearly hasn't helped here as the drones were launched from trucks super close to the targets).

These launches specifically seem to have also used on-board AI targeting models trained on photos of the plane models to hit, I assume as a fallback in case mobile connection isn't available inside the bases (and photos on some Telegram channels seem to show usage of the FOSS autopilot system ArduPilot (https://ardupilot.org))

17.

Psalm v6 Deep Dive: Copy-on-Write and dynamic task dispatching(blog.daniil.it ↗)

1 points · by danogentili · 1y ago · discuss

18.

Psalm v6 Announcement(blog.daniil.it ↗)

1 points · by danogentili · 1y ago · discuss

comment 1y ago · link · parent

You listed around 4 competing stores in your example, but Apple explicitly does not allow anyone to compete with their own store (except for in the EU, thanks to the DMA, and even then they take their cut, see below).

Another issue with the analogy is that when you buy a PC in a physical store, that store does not continue taking a cut of all software bought on that PC using i.e. unrelated digital stores (but that's precisely what Apple is asking from competing stores in the EU).

comment 2y ago · link · parent

It's even more of a waste.

comment 2y ago · link · parent

Grishka wrote very low quality code (an extremely buggy and segfaulty mess of C and C++), combined with little testing in not-so-edge case network conditions.

I managed to improve the situation after weeks of refactoring and testing for my library, and thankfully now it was completely replaced by webrtc.

comment 2y ago · link · parent

This dude has absolutely no right to say anything about the quality of the source code of the android app, because:

1) His libtgvoip code, previously used for audio calls, is the worst code I have ever had the displesaure of touching, it caused all kinds of issues ranging from instability to segfaults, and thankfully it was completely replaced by webrtc.

2) The android app is literally the smoothest and most responsive android app I've ever used.

Grishka, please stop being so salty. VoIP is hard to do right, but not impossibly so. VoIP being hard is still not an excuse for writing garbage C/C++ code (and I don't mean to offend personally here, but the code was really a mess, please stick to Java development on your own personal projects).

comment 2y ago · link · parent

And you call that a success story? :D

24.

A PHP library to work with Telegram UTF-16 styled text entities(github.com ↗)

1 points · by danogentili · 2y ago · discuss

25.

Better-Prometheus: A better Prometheus library for PHP applications(github.com ↗)

1 points · by danogentili · 2y ago · discuss

26.

An async PHP ORM based on AMPHP v3 and fibers(github.com ↗)

1 points · by danogentili · 2y ago · discuss

27.

Consider removing autogenerated files from tarballs(externals.io ↗)

24 points · by danogentili · 2y ago · 9 comments

comment 2y ago · link · parent

If a 2FA password is configured, it is still required in order to login with a future auth token; however, even if it isn't set up, the fact that you have a future auth token means you have already logged in and then logged out on this specific device, so it's not a real issue (i.e. it's as if when logging out, you didn't actually log out but rather just hid the account in the UI, the future auth token is stored safely, in the same place as normal auth keys are + re-entering the 2FA password is still required).
12345