palotasb

Joined 17 years ago

Karma
458
Submissions
92
Member since
Jul 31
boldizsar.palotas at gmail.com

https://github.com/palotasb

View on Hacker News

Recent submissions

Comment · 1 year 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.
Comment · 1 year 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.

Comment · 1 year ago
Comment · 1 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.
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 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.

Comment · 1 year ago
Comment · 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.

Comment · 2 years ago
Raw integers are also valid JSON according to the spec: https://www.json.org/json-en.html

json is defined as one element

element is defines as ws (whitespace), value, ws

value is defined as one of: object, array, string, number, "true", "false", "null"

Wrapping in {} to make an object or in [] to make a list (which is also not an object) is not necessary to make a valid JSON document. This is also discussed in the Stack Overflow question linked.

Comment · 2 years ago
As someone living in Amsterdam, Netherlands, I don't understand the resistance. I agree with the article and I think it is advocating for the right thing, so it's the right kind of propaganda.

Maybe there is more common ground between you and Strong Towns than you'd think? They don't just advocate for "bike bros." Here everyone bikes from kids in elementary school to their grandparents. The key is having separate car infrastructure (roads, highways) and biking/pedestrian infrastructure (streets, bike lanes, pedestrian-only areas).

The net effect is that many people here choose non-car transport (public transport, biking, walking), which reduces traffic. This also makes getting around by car more efficient, for destinations where you need to use a car, because there is less traffic.

If you want to live in a single-family home in the suburbs and own a car, you can do that here too. It's fine because there are roads to get around the country. Not stroads though, so no need to worry about pedestrians or cyclists when you're on a road, so they allow moving faster.

If you want to live in an apartment in the city without owning a car, you can do that here too. It's fine because there is public transport, proper bike lanes and streets to get around the city. Not straods though, so no need to worry about cars.

I'd say it's both nicely looking and quite efficient. Not sure by what metric would an American city be more efficient, but generally I wouldn't want to trade places.

Comment · 2 years ago
> abs(x) = x*sign(x)

True in 1 dimension, but not in higher dimensions, because, as you say:

> how would you define sign(x) in a higher dimension?

abs(x) is generally defined as distance of x from zero.

The fact that sqrt(x^2) or x*sign(x) happen to give the same result in 1 dimension doesn't necessarily imply that they can be applied in higher dimensions as-is to result in abs(x) with the same meaning. Although sqrt(x^2) is close, but the way to generalize it is sqrt(sum(x[i]^2)).

Comment · 3 years ago
Comment · 3 years ago
(2007)

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton