Readit News logoReadit News
palotasb commented on Almost anything you give sustained attention to will begin to loop on itself   henrikkarlsson.xyz/p/atte... · Posted by u/jger15
palotasb · 6 months ago
What does "loop on itself" mean in this context? The article repeats it 5 times but I can't find a thesaurus definition, and it's unclear to me if the author means it as a synonym repeat or *self-amplify or something different.
palotasb commented on We shouldn't have needed lockfiles   tonsky.me/blog/lockfiles/... · Posted by u/tobr
palotasb · 7 months ago
The author is perhaps presenting a good argument for languages/runtimes like JavaScript/Node where dependencies may be isolated and conflicting dependencies may coexist in the dependency tree (e.g., "app -> { libpupa 1.2.3 -> liblupa 0.7.8 }, { libxyz 2.0 -> liblupa 2.4.5 }" would be fine), but the proposed dependency resolution algorithm...

> Our dependency resolution algorithm thus is like this:

> 1. Get the top-level dependency versions

> 2. Look up versions of libraries they depend on

> 3. Look up versions of libraries they depend on

...would fail in languages like Python where dependencies are shared, and the steps 2, 3, etc. would result in conflicting versions.

In these languages, there is good reason to define dependencies in a relaxed way (with constraints that exclude known-bad versions; but without pins to any specific known-to-work version and without constraining only to existing known-good versions) at first. This way dependency resolution always involves some sort of constraint solving (with indeterminate results due to the constraints being open-ended), but then for the sake of reproducibility the result of the constraint solving process may be used as a lockfile. In the Python world this is only done in the final application (the final environment running the code, this may be the test suite in for a pure library) and the pins in the lock aren't published for anyone to reuse.

To reiterate, the originally proposed algorithm doesn't work for languages with shared dependencies. Using version constraints and then lockfiles as a two-layer solution is a common and reasonable way of resolving the dependency topic in these languages.

palotasb commented on Fstrings.wtf   fstrings.wtf/... · Posted by u/darkamaul
jvdvegt · 8 months ago
Why would "0^5" evaluate to 5? (question 21)

And is there a way to link to a specific question?

palotasb · 8 months ago
^ is the XOR operator, 0 XOR 5 is 5. (Exponentiation is *)

https://docs.python.org/3/library/operator.html#mapping-oper...

palotasb commented on An open source, self-hosted implementation of the Tailscale control server   github.com/juanfont/heads... · Posted by u/quyleanh
gpi · a year ago
My thinking is their time is divided now and could lead to less efforts spent on headscale.
palotasb · a year ago
Not compared to the previous state where he worked for an unrelated company and only had his free time to contribute to Headscale.
palotasb commented on Moving away from US cloud services   martijnhols.nl/blog/movin... · Posted by u/MartijnHols
Skinney · a year ago
> Git repos (it's too difficult)

Sourcehut

> Startpage uses Google's index.

If they have enough users/make enough money, they'll make their own. Ecosia and Qwant (both european search engines) are working together to make their own index.

In any case, even if a european is a proxy for an american service, you need to prove that there is a market for an european equivalent for change to happen.

palotasb · a year ago
> Sourcehut

Is it there yet?

> Notice: sr.ht is currently in alpha, and the quality of the service may reflect that. As such, payment is currently optional for most features, and only encouraged for users who want to support the ongoing development of the site. For a summary of the guarantees and limitations that the alpha entails, see this reference.

https://sourcehut.org/pricing

palotasb commented on C "clockwise/spiral" rule to understand declarations   c-faq.com/decl/spiral.and... · Posted by u/galkk
palotasb · a year ago
The spiral rule works only if there is no pointer to pointer or array of array in the type. In other words it is an incorrect rule. But take this for example:

        +----------------------------+
        | +-----------------------+  |
        | | +------------------+  |  |
        | | | +-------------+  |  |  |
        | | | | +--------+  |  |  |  |
        | | | | |  +--+  |  |  |  |  |
        | | | | |  ^  |  |  |  |  |  |
    int * * ¦ ¦ ¦ VAR[1][2][3] |  |  |
     ^  | | | | |     |  |  |  |  |  |
     |  | | | | +-----+  |  |  |  |  |
     |  | | | +----------+  |  |  |  |
     |  | | +---------------+  |  |  |
     |  | ---------------------+  |  |
     |  +-------------------------+  |
     +-------------------------------+
The type of VAR is a [1-element] array of [2-element] array of [3-element] array of pointer to pointer to ints. I drew a spiral that passes through each specifier in the correct order. To make the spiral correct it has to skip the pointer specifiers in the first three loops. This is marked by ¦.

The Right-Left Rule is quoted less frequently on HN but it's a correct algorithm for deciphering C types: http://cseweb.ucsd.edu/~ricko/rt_lt.rule.html

The spiral rule can be modified to process all array specifiers before all pointer specifiers, but then you'd have to specify that the order to do so is right and then left. At that point it's just the Right-Left Rule.

palotasb commented on Starlink Direct to Cell   starlink.com/business/dir... · Posted by u/tosh
rdm_blackhole · a year ago
That's not going to happen.

Remember when the EU wanted to build it's own internet browser? Or it's own search engine? Or it's own sovereign cloud?

None of these initiatives panned out. This is just political posturing when they have literally zero plans on how to achieve that.

palotasb · a year ago
But https://en.wikipedia.org/wiki/Galileo_(satellite_navigation) panned out and that's a closer analogue.
palotasb commented on A common urban intersection in the Netherlands (2018)   bicycledutch.wordpress.co... · Posted by u/itronitron
itronitron · a year ago
Can someone explain this, the italicized part below, in more detail?

>> When you approach from the side street, as a driver, the order of dealing with other traffic is different, but the priority is similar. First you will notice a speed bump. The complete intersection is on a raised table. Pedestrians would not have priority if the street was level, but now that it isn’t the “exit construction” rule could apply and in that case a crossing pedestrian would have priority. But for that rule to apply the footway should be continuous, and that is not the case here.

palotasb · a year ago
https://www.theorieexamen.nl/theory-exam/what-is-a-entrance-...

An entrance or exit construction is a place on a road where you aren't just turning onto the road but exiting the road entirely. The most common example from any country would be a private driveway. Pedestrians, cyclists and cars going along the sidewalk, bike path or road have priority against anyone turning into the driveway or turning onto the road from the driveway.

The Netherlands generalizes this concept to some low-priority side streets. If there is a continuous sidewalk (i.e., the cars go up a bump to the level of the sidewalk as opposed to the pedestrians stepping down from the sidewalk to the level of the street). This is not the case in this specific intersection.

palotasb commented on A common urban intersection in the Netherlands (2018)   bicycledutch.wordpress.co... · Posted by u/itronitron
benterix · a year ago
> Here you can see that a car drivers waiting for people cycling are never in the way of other people in cars.

Am I blind or does it only work for just one or maybe two cars?

palotasb · a year ago
Correct, only one.

This specific turn is onto a street that the article describes as "traffic volume here is low, since only residents will use this street." They probably expect the 1-car buffer to be enough for this intersection. You can see in the video that the 1-car buffer is empty most of the time.

For intersections where they expect more turning traffic (where the one car buffer wouldn't be enough), they add turning lanes that can accomodate more than one car. You can see an example of this a few hundred meters northeast when Graafseweg intersects the Van Grobbendocklaan: https://maps.app.goo.gl/ZmURqawr3oeBX5Sq9

palotasb commented on Is Telegram really an encrypted messaging app?   blog.cryptographyengineer... · Posted by u/md224
nox101 · 2 years ago
I'm probably dumb, but why would that be proof?

I upload encrypted backups to a cloud service provider (AWS, Google Cloud). I go to another computer, download them, use a key/password to decrypt them.

Sure, I get it, you're typing in something that decrypts the data into their app. That's true of all apps including WhatsApp, etc... The only way this could really be secure is if you used a different app to the encryption that you wrote/audited such that the messaging app never has access to your password/private key. Otherwise, at some point, you're trusting their app to do what they claim.

palotasb · 2 years ago
> > using the password recovery flow

> use a key/password

The previous poster intentionally mentioned password recovery flow. If you can gain access without your password, than law enforcement can too. If you could only gain access with your password, you could consider your data safe.

u/palotasb

KarmaCake day458July 31, 2009
About
boldizsar.palotas at gmail.com

https://github.com/palotasb

View Original