HNHacker News
TopNewBestAskShowJobs

pgorczak

293 karma · joined August 8, 2017

submissionscomments
pgorczak··on Netflix refuses to pay extra tax demanded by European internet service providers
Yes ISPs are lobbying hard for a tax like this in Europe (not for fees between businesses, they want the government to collect it for them): https://www.euractiv.com/section/digital/news/commission-to-...
pgorczak··on WiFi: “beamforming” only begins to describe it (2014)
One addition on receiver side amplification: it is done all the time. Each piece of equipment has a noise floor that can be higher than the one in the signal (think weak signals but with a good SNR). A low noise amplifier at the receiver can improve the signal in that case.
pgorczak··on Tail Call Optimization: The Musical (2019) [video]
I think GP means it’s “I recur, he/she recurs” rather than “I recurse, he/she recurses”
pgorczak··on Microfeatures I'd like to see in more languages
Oh I didn’t know it was kind of a workaround. I do like the fact that loop is not a function though but an expression like if or case.

FWIW I think in Clojure you can use “recur” inside functions too to specifically indicate tail call recursion without relying on automatic optimization

pgorczak··on Microfeatures I'd like to see in more languages
Clojure’s loop expression hits this spot for me. It sets a recursion point to which you can jump using any logic inside the body you want, as long as it is from tail position. It’s like a while loop turned into an expression. I haven’t encountered any other way to write iterative expressions whose number of iterations isn’t known at the top (like map and reduce).
pgorczak··on Torsors (2010)
An example that really stuck with me is that you can draw an arrow on a blank piece of paper and measure its length and direction without needing to define an x/y coordinate system on the paper. There is something there (the manifold and the action?) that is independent from the ways we can choose to describe the space.
pgorczak··on Why would anyone need JavaScript generator functions?
Async generators similarly open up different ways to program complex / multi step user interactions. Instead of creating “state machine” objects that mutate on every input, you can have async functions aka coroutines that iterate over user inputs, making the flow of an interaction much more explicit.
pgorczak··on Blip: A tool for seeing your internet latency
It doesn’t measure packet loss, but since there is one tiny request in flight at a time, it ends up in a single IP packet with packet loss being visible as retransmissions / outliers taking multiples of your average round trip time.
pgorczak··on We need a replacement for TCP in the datacenter [pdf]
Finding the right abstraction isn’t easy in a network stack. TCP’s is less useful for application logic but it reflects the way the protocol works internally. Bunch of Bytes goes in on one side, Bytes stream out on the other side in chunks whose size depends on congestion, physical layer and other facts. A message based API hides these facts or leaks them depending on how you look at it.
pgorczak··on Space-based solar power is getting serious
Not trying to argue for the feasibility of space based solar power, but the inverse square law applies in the far field i.e. when the emitter can be approximated as a point source. Depending on the wavelength and the antenna size this is not necessarily the case: https://en.m.wikipedia.org/wiki/Fraunhofer_distance

E.g. for 3 GHz and a 500 m antenna, the far field starts at about 5,000 km

pgorczak··on Sending UDP Messages in Node.js Without DNS Lookups
The main issue in the article are calls to getaddrinfo() on every send which create a delay, which is not only DNS related. The function does DNS lookups but also translates IP address strings to address data that can be used by the kernel (e.g. the different ways to write IPv6 addresses like “fe80::1%eth0”)
pgorczak··on Linux Kernel MultiPath TCP Project
TCP can survive those interruptions on its own, unless the application sets short timeouts or the IP address changes. MPTCP keeps working when either side of the connection changes addresses.
pgorczak··on Linux Kernel MultiPath TCP Project
While a TCP socket needs to be created with specific flags to enable multipath, there is a tool that wraps existing applications and “upgrades” the socket calls on the fly: https://manpages.ubuntu.com/manpages/jammy/man8/mptcpize.8.h...
pgorczak··on Why high speed rail hasn’t caught on
And it’s not only the city-city times being better. I’d happily spend 1-2 hours more on a train ride because I’ll have a more comfortable seat and I’ll be able to read/work/sleep/… more or less uninterrupted the whole time.

Edit: also, that added comfort is exponentially higher for families who can share a table or even a private compartment.

pgorczak··on Why are so many adults acting just like children?
It could also be a very real consequence of feeling that you can’t or shouldn’t change the state and are therefore not responsible for it. The article doesn’t mention consumerism as a cause but I feel like it plays a role when people are mostly expected to play a passive role and fuel the economy in their spare time.
pgorczak··on Train Travel in the UK: A Foreigner’s Perspective
I checked the German rates recently and I wish that were still true. The ticket for going between Dusseldorf and Cologne train stations with intercity or regional trains is 175 GBP (146 if you book for the whole year). The one for regional trains only but including transport within the two cities is 269 (216) GBP.
pgorczak··on Train Travel in the UK: A Foreigner’s Perspective
It’s bad right now. In August only 57% of German long distance trains arrived less than 6 minutes behind schedule. 23% had more than 16 minutes delay. IIRC that’s not even counting canceled stops.
pgorczak··on Germany's blanket data retention law is illegal, EU top court says
AFAICT it really is different in Germany. The constitutional court can also be called by other courts, by the government or by parliament to check already passed laws.
pgorczak··on Germany's blanket data retention law is illegal, EU top court says
The process makes sense from a separation of powers perspective. When there’s an especially fine line between what legislative wants and (constitutional) judicative allows, there has to be some rejections.

This is probably one of the cases where lawmakers feel some spite about constitutional courts exerting too much influence over their work. It would be easier if they’d just talk about it before going through the whole process but I guess creating frustration is part of the point here.

pgorczak··on Useful engineering metrics and why velocity is not one of them
Maybe you don’t need to completely mitigate those vibrations and they’re just a part of moving through life as a human. A very related image that stuck with me is “run on the engine, not the pistons”.
pgorczak··on Why A4? – The Mathematical Beauty of Paper Size
I guess the second claim is referring to the fact that the square root of 2 is an irrational number, so it can’t be expressed as a ratio of integers anyway.
pgorczak··on The Trouble with 5G
To add some confusion, the “nth generation” features have been described by the International Telecommunication Union (e.g. IMT-2020 for the 5th gen), while the standards are developed by the 3rd Generation Partnership Project. Previously the standards had their own names (UMTS in 3G, LTE in 4G) but now the 3GPP is labeling their current releases of standards “5G” too, and yeah they include some concepts that go back even to 3G.
pgorczak··on Brew Is a Bad Neighbor
Seconding this, I have lots of Python virtual environments with packages that link to brew libs. It’s a bummer coming back to an env after a while and then realizing auto update has removed linked files due to a minor version bump
pgorczak··on Lisp can be “hard” real time [pdf] (2000)
… if you’re running a single task at a time. Usually multiple tasks need exclusive access to shared resources. And they might be triggered by external inputs which are non-deterministic, making the number of possible system states you need to check intractable.
pgorczak··on Paradigms of Artificial Intelligence Programming (1992)
Neural nets do use extremely long compositions of nonlinear functions whose gradients need to be computed over and over. I guess because chain rule (automatic differentiation) works so well, most of the libraries in use are only “a little” symbolic in that they can automatically figure out first derivatives for symbolic input and output variables.
pgorczak··on What they don't teach you about sockets
Yes and even at 2) some subtleties start. You can set up a connection, send a chunk of bytes, and close it. If you reach a clean connection close, you can be sure that all your bytes have reached the other side. As soon as you start sending multiple logical messages over a persistent connection and an error occurs, you need to write application logic to figure out where to pick up again after you reconnect. Even if you want to know which parts of your stream have already reached the other side, you need to add logic for that. This “multiple transactions over a persistent connection” may sound really straightforward but it’s not built into TCP itself.
pgorczak··on What they don't teach you about sockets
I definitely used to think TCP was more “high-level” than it actually is. Yes it does much more than UDP but still, its job is to get a sequence of bytes from A to B. You can tune it for higher throughput or more sensitive flow control but anything concerning message passing, request/response, … is beyond the scope of TCP.
pgorczak··on What they don't teach you about sockets
They’re a bit of a feature of the connection-oriented nature of TCP as the other reply mentions. If the server process crashes and restarts for example, the client will be told that its previous connection is not valid anymore. Basically TCP lets client and server assume that all bytes put into the socket after connect()/accept() will end up at the other side in that same order. Each time there is an error that violates that assumption, the connection needs to be explicitly “reset”.
pgorczak··on Mercedes-Benz says Level 3 self-driving option ready to roll
It’s probably something more. A recent article said 40% of Mercedes-Benz’ revenue from autonomous driving options will be going to Nvidia, starting 2024. Source in German: https://archive.ph/Gs9UD
pgorczak··on On anti-crypto toxicity
I mean, it’s great if crypto makes more people think about these questions, even if it’s not the answer. OTOH we’re also seeing it mess up problems for which perfectly valid solutions already exist. In Germany a couple “digital government” projects had a pretty bad start because they used blockchains where they likely didn’t have to.
← PreviousPage 2 of 4Next →