Hacker News new | past | comments | ask | show | jobs | submit | meowtimemania's comments login

I'm guessing the type of immigration each country receives is very different.

e.g. some examples from this list (% immigrant population): - Qatar (76%) - Australia (30%) - Canada (23%) - Belgium (20%) - USA (15.2%) - Denmark (14.2%)

https://en.wikipedia.org/wiki/List_of_sovereign_states_by_im...


How do you handle when fields are added or removed? Do you have to rerecord all the affected tests?


Yes.

When you change behavior you should expect to re-record.


If you used curves it'd get complicated deciding where one area starts and the other ends. With hexagons it's easier to divide the world such that (mostly) no hexagon overlaps.

The purpose is to be able to predictably map any coordinate to its associated hexagon.

In database applications this makes it easier to query all data associated with a hexagonal area.


Why not just squares or rectangles? Is there a simple explanation?


Because it’s hard to cover a sphere in rectangles and have no rectangle overlap.

It’s the same reason soccer balls aren’t covered in squares/rectangles but rather hexagons.


You want a shape that can represent an approximately equal area, anywhere on a 3 dimensional surface.


Bar is 2.


Would this attract more migrants? (e.g. I could work for a year for 10k, or I could go to Sweden and get 34k)

They've probably thought through all the ways to exploit this, just curious.


Given the profound lack of higher order thinking that led to Europe's experiment along these lines over the last decade or so I wouldn't be so sure if they have.



The article addresses this. In Sweden in particular, a lot of the migrants are from countries in unrest. Last year's reward was $1k and exactly 1 person took it. The article said 'experts don't expect there to be a substantial increase in claiming the offer' with the increase to $35k which is surprising to me, but I suppose still makes sense as $35k won't make Damascus any safer.


The top 5 countries migrants to Sweden came from in 2023 ... India, Poland, Germany, Syria, China.

https://www.statista.com/statistics/522136/sweden-immigratio...


I’m certain the Indians, Poles, Germans or Chinese are not causing any problems.


As a Pole, I wouldn't be that optimistic, but for sure my compatriots are not the ones responsible for bombings, gun fights or juvenile gangs.


>As a Pole, I wouldn't be that optimistic

Probably similar to the native population though.


I agree, but they were good enough scapegoats to trigger Brexit so who can predict how things will go? (Though in classic Brexit irony two of those groups were encouraged to vote for Brexit to make immigration from their country easier).


But Indian, German, and Chinese are the legal ones right? Maybe even Polish, too.


> Maybe even Polish, too.

What do you mean by that? Both Poland and Sweden are members of the EU.


Well Indians and Chinese need all kinds of visas and permits.

Probably not a thing in Sweden but in Italy there were a few scandals recently about illegal/semi legal Indian and other migrants working in sweatshops and farms.

Poles on the other hand have the legal right to come and work in Sweden with no legal restrictions whatsoever.


Illegal immigration from India has ramped up in very recent years.

About Poles, that makes sense.


They came through those countries, not necessarily being citizens of those countries.


> But Indian, German, and Chinese are the legal ones right? Maybe even Polish, too.

What do you mean ? He said: "a lot of the migrants are from countries in unrest.". /s


That's because it's hard for them to claim citizenship. Those numbers don't include refugee numbers.


Wouldn't it be possible to leave Damascus with $35k though?


They'll have forfeited the right to refugee status anywhere else and would have to migrate as an economic migrant. Which generally takes either six figures or decades, AFAICT.


Who enforces that? Is there an international registry of refugees?


Your passport, which contains stamps that form a record. And there is a European database too.


Right. They throw away their documents, so EU countries have to document and fingerprint them again and also keep a database, preferably a shared one. Otherwise they just conveniently move from one country to another as there are close to no border checks in the Schengen area. Probably why Germany has reintroduced "temporary" border checks after the Solingen stabbing attack. Sweeden still has checks in place at the bridge to Denmark.


My acquaintance managed to sneak in multiple times, “losing” their passport if caught, then pretending not to understand fingerprinting instructions and smudging them on purpose until the police gave up. With face biometrics probably won’t work today. Just saying that a stamp in a passport is necessary a full proof solution.


On what ground? If they come back from a country at war they can’t legally send them back (by EU law)


If you are in Sweden you have already left Damascus


it probably works just once per individual at least


Per the article this is from the party that "began as a neo-Nazi movement in the 1980s but rebranded itself as a conservative party, with curbing migration at the center of it platform."

I would imagine it's ideological demagoguery and not concerned with serious critical analysis of long term effects.


These are two separate things: (1) the party being right-wing, (2) the immigration or more precisely the lack of integration causing problems for the Swedish society.

The previous left-wing government that basically said "we're taking everybody" had good intentions but extremely poor execution. Merkel's Germany didn't do much better tbh.

In any case, when migrants don't integrate, and you fail to make them do so, you can either ignore the problem hoping it goes away or try to solve it in a way that is human and causes as little suffering as possible.


Yes, but it is an explanation for how the debate landed.

Not everything in politics is pure logic, there are lots of emotions too. Not aligning with neo-nazis is one of those emotions.


> from the party that "began as a neo-Nazi movement in the 1980s

Good find. By the same token though, the Democratic Party in US was the white supremacist party in the 19th century. There is probably ideological demagoguery involved with them as well.


>By the same token though, the Democratic Party in US was the white supremacist party in the 19th century.

You likely meant the 20th century. White supremacists were voting solidly Democratic up til around the 1960s.


Ah, good point. And even below I pointed out we can see a connection down to the the current president. Though, with a public repentance, for whatever that's worth from a politician.


The difference is how long time has passed. The current party leader joined the youth movement in 1994, when the party was still full of Neo-Nazi ideology.


I mean Joe Biden would hang out and campaigned with Byrd, an ex-KKK member. Even came to his funeral in 2010.

https://thehill.com/homenews/administration/164821-biden-rem...

> “A mentor and a dear friend”

Make what you will of it. Just saying that not that long of a time has passed. We’re talking about the sitting US president.


an ex-KKK member

In the 1940s. Mentioning this, but the fact he would publicly denounce the Klan by the end of the decade, and spend the rest of his life profusely apologizing for having been so stupid as a younger person -- is just smear, basically.

  Byrd later called joining the KKK "the greatest mistake I ever made".  In his last autobiography, Byrd explained that he was a KKK member because he "was sorely afflicted with tunnel vision — a jejune and immature outlook—seeing only what I wanted to see because I thought the Klan could provide an outlet for my talents and ambitions".[37] Byrd also said in 2005, "I know now I was wrong. Intolerance had no place in America. I apologized a thousand times … and I don't mind apologizing over and over again. I can't erase what happened".


So people can change their viewpoints from their youth?


Now imagine a politician from a political party we don’t like, apologized publicly about it. Would you believe them?

As an example if Vance apologized for being in the KKK, how eager would we be to forgive him?


If they're a full-on toady windbag like Vance, it doesn't matter which party they're from.


Not very, because Vance isn't very old. When was he in the KKK? It would be very unusual to be in the KKK in, say, 1995. Someone would have to be extremely committed to white supremacist ideology to be in such a position, I would think.


Still pushing stories about Haitians and cats?

Probably not. Even if - as in this case - it was 30-50 years later. (That Biden said kind words about Byrd)


Byrd later apologized thoroughly as I understand it.

Jimmie Åkesson just says "I saw nothing of that".


Does this kind of criticism apply to US parties?

Like a pro-slavery party?


Unlike cars, trains and subways can't get you door to door (especially in suburban areas)


That's why you have to build and live more densely. The US absolutely refuses to do that, outside of Manhattan and a few select other places. It won't be a place where local trains make any economic sense until this changes.

However, for your "door to door" point, that's not desirable anyway. Even here in Tokyo, you have to walk a lot to get between your home and work or wherever you're going. That's a big, big part of why people here are so much thinner than Americans. Having transport that takes you door-to-door without any significant walking is terrible for your health.


Tokyo has taxis and Ubers. I take them quite frequently when there, even though the public transit is amazing. The fact it's blatantly obvious that robotaxis make a ton of sense in even one of the most transit-friendly cities in the world shows how wrong the OP is.


This is true, but taxis in Tokyo are expensive; they're not affordable on a regular basis to most people.


If your neighbourhood is pleasant and walkable, you don't need to be dropped off at the door. In most cases, the key barrier to walkability is removing the cars.


I love htmx for internal dashboards. I find htmx difficult to use for user facing applications because it's difficult to get everyone on board with the constraints of htmx (no optimistic uis, simple ui/ux). When building complicated frontends with lots of popovers, modals, optimistic state, I like react.


UX designers are immersed in this world of React and frontend frameworks, so their designs are built with that in mind.

Doing things the "htmx way" on a team requires buy-in from more than just devs and that can be hard.

We should be careful not to push htmx too past what it was meant for, as well. I remember how much I admired React when it was released for its simplicity.


I don't think htmx should be used on its own when implementing ui/ux - htmx has the job of getting the blocks of html, with data embedded, from the back-end to the front-end (and posting back up as necessary); once it's there, front-end client-only ui/ux can be handled by other tools in JavaScript


So why complicate things and just use something like React + Next.js, which is already designed for complex apps?


Alternatively, use web components which are baked into the browser, don't require a compile step, integrate well with HTMX and are much more stable than React.


Web components are the stuff that nightmares are made of.

The amount of boilerplate I had to write just to keep DOM attributes and JS properties in sync was not fun, the impedance mismatch between them (DOM attributes being strings) was painful to deal with, and templates/slots felt much worse than the React way.

The DOM didn't seem like a great model for moderately complex apps. Feels like web components didn't take off for a reason. IMO they feel like the solution you come up with when you create an abstraction in paper instead of writing a real-world thing that will solve your immediate problems. Not very pragmatic.

Plus they only work with JS enabled, unlike React+SSR where you can progressively enhance your app.

Overall not a great experience for user-facing apps.


> Plus they only work with JS enabled, unlike React+SSR where you can progressively enhance your app.

You can SSR web components using the Declarative Shadow DOM API, which is finally supported in all of the major browsers and works without JS.


| Web components are the stuff that nightmares are made of.

There's lit.dev for an easier approach.

https://lit.dev


But that's yet-another-layer-of-abstraction with its own set of tradeoffs (e.g. I think CSS-in-JS is a trap, which seems to be the way for Lit; slots are still a thing; no SSR nor progressive enhancement; decorators!?!?!; etc.) which builds on top of what already feels like the wrong abstraction in the first place, only to provide React-like capabilities.

At that point why not just use React? What do I get from using Lit instead?


I don't personally mind writing web components by hand, but for those who want something easier, lit.dev is popular. There's also slim.js and Stencil if you don't mind a compile step.

The design of web components could be better, but I much prefer them to the true nightmare that React development has become. And the api is stable, which means a longevity that frameworks don't have.

| no SSR nor progressive enhancement

I have not been impressed by React SSR in the wild in terms of progressive enhancement. This seems like more of marketing promise than a real world experience. Do you have any examples to link?


I have been musing in going in this direction - but your post has lowered this idea in my project plan for now ... thanks!


I've used both and I prefer the htmx approach. React/NextJS are what over-complicate things - particularly when it comes to server vs client side rendering and hydration, state management, passing props, caching, static site generation, slow and fragile development environment etc etc etc.

I recently rewrote a site that was built in NextJS into Go+Echo+Templ+HTMX+AlpineJS, keeping just the Google Maps and Facebook components (but only injected as necessary, rather than needing a whole App wrapped around them)

The result was about 50% of the size of code that is much easier to reason about and test, better performance, simpler and smaller (size and resource) deployment - essentially better in every way.


i used it for simple dashboard, worked well but for complex projects it leads to spaghetti code for me, I had to stick to react for that.


How often do you login? What makes it sticky for you?


I stay logged in almost all the time. I wanted some place where I felt like I could blog freely, and one that _felt_ like a blog instead of some ad-ridden mess. It was partially the customisation aspect that drew me in at the beginning, having that much control over my profile (even if it was just basic HTML and CSS with some JS) reminded me of what I loved about being online. I have a personal website and don't really pay much heed to the 'social' aspect of SpaceHey but having a little corner where I can just go and blog/post bulletins about things I'm thinking about, especially because it has a straightforward interface, feels really nice. The lack of ads and algorithms and general 'social media' paradigms of the modern age do a lot to make sure I keep going back.


What's your username (if you don't mind me asking)?


I wanted to get more involved in the community on that site but it seems there's a LOT of teenagers on it


Hey man, I'm getting started on the platform. Mind sharing your username?


It's also becoming increasingly difficult to get a remote job with a bay area salary.


it must install compiled and uncompiled versions? Otherwise node (without the above flag) would throw errors when it encounters types in node_modules


I just checked and you are correct, in node it only installs the compiled version.

Apparently you can only view the uncompiled source code in deno since it natively supports typescript.

My bad


No worries! I was curious how it worked on node. Thanks!


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: