The WebGL API is based on the OpenGL ES standard, which jettisoned a lot of the procedural pipeline calls that made it easy to write CPU-bound 3D logic.
The tradeoff is initial complexity (your "hello world" for WebGL showing one object will include a shader and priming data arrays for that shader), but as consequence of design the API sort of forces more computation into the GPU layer, so the fact JavaScript is driving it matters very little.
THREE.js adds a nice layer of abstraction atop that metal.
Spark allows you to construct compute graphs at runtime in Javascript and have them compiled and run on the GPU and not be bound by the CPU: https://sparkjs.dev/docs/dyno-overview/
WebGL2 isn't the best graphics API, but it allows anyone to write Javascript code to harness the GPU for compute and rendering, and run on pretty much any device via the web browser. That's pretty amazing IMO!
They have Silicon Valley and the largest population of any US state.
Gavin Newsom gets zero credit for either of these things.
You only have to look at how incredibly badly prepared for and managed the palisade fires were to see the level of incompetence under Gavin Newsom.
The topic is "Marines being mobilized in response to LA protests." The protests are about ICE rounding up people on suspicion of being undocumented immigrants. Whether a place being full of undocumented immigrants is actually a bad thing is extremely salient to the topic, especially when the President has decided it's worth pointing the military's guns at our own citzenry over.
California is scaring the shit out of people, but not for the reasons you seem to suggest.
Rolling in the National Guard and Marines on a peaceful protest is, quite frankly, un-American. It's massive federal overreach that has led to violence in the past. Would be nice if the current administration knew its own history.
They were throwing molotov cocktails, rocks, scooters, mortar-like fireworks, bottles with urine and chemicals and who knows what else. They were destroying and looting stores and vandalizing everything in sight. I don't know how many Waymo cars they destroyed (it looked like five). Far from peaceful.
The moderate or peaceful majority is never the reason for enforcement actions. These are triggered by a militant and violent minority, some of whom are actually paid to cause disruption. So, you have a couple of choices. The first is to do nothing and just let it burn. We have seen that happen before. The second is to bring forward an overwhelming show of force to dissipate that violent element (and bring them to justice). That's what happened.
This is no different from control system theory. The ideal critically-damped feedback loop does not exist when dealing with mobs. Either you crank up the dampening early or you pay the consequences of doing it too late. We can't have entire business districts destroyed by thugs. You have to stop them as soon as possible. As it stands, these animals caused a massive amount of damage in just a couple of days.
Yesterday showed the contrast very well, there was a peaceful (truly, not the fake "peaceful" pushed by the media while shit is burning) protest that seemed to number in the thousands of people. Perfect. No problems. That only happened because thugs (the minority) learned within a day or two that they would suffer severe consequences for their actions.
The third option is proportionate response, which the administration danced right over. Why? Why roll in the federal forces when the governor says it's not needed? They didn't show up to protect those shops or Waymo cars anyway, so that's irrelevant; as per the Secretary of Defense's own testimony today (https://youtu.be/10itk-W8DV4?feature=shared&t=128), they were dispatched to protect law enforcement attempting to enforce immigration law against a city that does not want their citizens kidnapped off the street by an unaccountable government.
Violence happened, but not to any scale that makes a military deployment on American soil in peacetime make sense.
> This is no different from control system theory.
Rolling out the Marines is turning the `I` knob, not the `D` knob. It's teaching protestors "if you're gonna show up, come armed to deal with soldiers." Incredibly dangerous in a country where that firepower is in so many private hands.
I don't know when we became a nation so cowardly that we have to point military firepower at our own citizens. When strangers are turning out into the streets to thwart federal enforcement, maybe the problem is the law not the criminals?
> Not a logical fallacy, but the most incomprehensible development over the years is that somehow large numbers of people think it is OK for people to just pour into the US as they wish, no controls, no admission criteria, nothing
Actually, it's the other way around.
The US southern border was very porous for most of its history. Around 1986, a combination of moral panic about Latino influence on the culture and concerns about drug trade enabled the Reagan administration and Congress to tighten immigration law into something approximating the structure we have today in terms of enforcement (https://pmc.ncbi.nlm.nih.gov/articles/PMC5049707/).
This backfired spectacularly. Let people bop back and forth to Tijuana, and they bop back and forth to Tijuana. Force them to struggle to cross the border, to declare nationality, start evicting them if they over-stay... And now they have reason to choose and to fight for the choice. The result of closing the border is undocumented immigration went up (secondary statistics strongly suggesting that this was actual immigration, not enforcement resulting from more tracking of undocumented immigrants).
Regardless of the law on paper, under-enforcement was the behavior of the land for nearly a century, and this new regime is an experiment that has strongly suggested the law was sourly anti-human to begin with.
(As a meta-comment on law: you're talking to a generation that watched the War on Drugs happen. Don't be surprised Americans have soured on the notion, in general, that law and morality are closely interlocked).
What percentage of the 10 million recovered jobs were taken by incoming immigrants?
People died and permanently retired during the pandemic. It's possible the 10 million number represents a restored workforce; it's also possible it represents a changed workforce.
If the latter, that illegal immigration allowed the US to recover faster than it would have otherwise and the lesson from history is we're a stronger nation for easing immigration restrictions.
> illegal immigration allowed the US to recover faster than it would have otherwise and the lesson from history is we're a stronger nation for easing immigration restrictions.
There is no question whatsoever that immigration, legal and done correctly, is a force for good. As a legal immigrant, it understand this very well.
In fact, I understand the entire process very well, including the illegal immigration part. You see, when I was six years old, my parents overstayed their tourist visa in the US. They were then told to leave and my entire family left. Two years later, after going through proper channels, we obtained permission to come to the US legally.
I truly do not understand how people twist themselves into a pretzel to justify illegal entry into a country. Actually, it is worse than that, the only country where they seem to think this is OK is the US. Every single person who is for illegal immigration in the US understands why you cannot just move to New Zealand, for example, to stay and work there without permission. They also understand New Zealand's points system for the selection of who is granted permanent residency. Not in the US. Of course not.
Proponents also say that not enough people are let in legally or that it is too slow. Two points to be made here. The entire planet wants to come to the US, so, yeah, it will take a couple of years (as it did for my family). Second, when millions of people enter illegally, the annual quota for legal immigration cannot be increased. Doing so would exacerbate the problem. So, illegal immigration actually hinders changes and growth of the legal immigration system.
Finally, proponents of illegal immigrants are of the same ilk as those who propose raising tax rates for everyone except themselves. And, when they do include themselves, they don't lead by example and simply send more money than they owe to the government. Same with immigration. How?
I break into your home with my entire family while you are on vacation. I start paying the bills; power, water, insurance, heck, I even pay the mortgage.
Can we all stay in your home forever? You are welcome to come back from your vacation and share the home with us?
Of course not. Nobody of sound mind would accept such a situation.
How is breaking and entering into a country --any country-- justified and elevated to almost be a virtue?
While not a perfect analogy, of course, this does illustrate a fundamental idea: You don't get to grab things (your iPhone, car, home, residency, benefits, etc.) by force and keep them just because you did. If the world worked that way we would all be walking around with a firearm strapped to our leg and blood would run down every street in the nation. Violating these fundamental rights is nothing less than destructive to society.
> Every single person who is for illegal immigration in the US understands why you cannot just move to New Zealand, for example, to stay and work there without permission
Yes, of course, and this is not contradictory. "American Exceptionalism" means different things to different people, but broadly speaking: as a nation built of immigrants, there's no particular "right" time to pull up the ladder and say "That's enough immigrants now." Most people who support this position (not all, but enough to be concerning), when you peel back the veneer, support it because they want America to be "A nation of X" and America facing the reality of more people with different world experiences threatens that goal. There's a reason the protests in Charlottesville turned from being about the history of the South to chants of "Blood and Soil."
Regardless of what the law says: the reality on the ground is the American economy is relying on the labor provided by the undocumented, and they are our friends and neighbors for years running. Sometimes, when a law bends too hard against what the people actually want, you ditch the law. A government fails to grasp that to its peril; hopefully, it only results in tea wasted in the harbor.
> when millions of people enter illegally, the annual quota for legal immigration cannot be increased
Untrue; these are rules we make up for ourselves. Congress could set the number to zero tomorrow. Or infinity. It's entirely up to us.
> Finally, proponents of illegal immigrants are of the same ilk as those who propose raising tax rates for everyone except themselves
I think we'd have to agree to disagree. I, for instance, am in favor of raising taxes on myself and people in my tax bracket, as well as basically everyone above my tax bracket. No strong opinion on lower brackets. And I do send more than I owe to the government. And buy bonds.
Your meta-argument is "These people don't see the problems;" I think you are mistaken. People see the problems, they just think they're better handled with community service than with truncheons and planes to some other country.
> I break into your home with my entire family while you are on vacation. I start paying the bills; power, water, insurance, heck, I even pay the mortgage.
> Can we all stay in your home forever?
I mean, that's an argument about "squatter's rights," not immigration, but for what it's worth... yes? The law in many states does recognize your right to keep using the land if you develop it and it's de-facto abandoned. If I own so much land I can't use all of it and you find a better use for it, that's on me.
The nature of immigration is so divorced from this analogy as to make it worthless. Try this one instead: You come here, build a house, raise a family. Five years later, I come along and try to kick you out because you didn't cross an 'i' on some paperwork in 2019. Is this just, or should I leave you the heck alone because you're not hurting anyone?
> You don't get to grab things (your iPhone, car, home, residency, benefits, etc.) by force and keep them just because you did
I'm sure you're not arguing "America should be returned to the Native Americans..." But that is the argument you are making here. Are you sure you mean it?
... FWIW, I'm sorry your parents were forced out. In an ideal world, that shouldn't have happened. That would have been, what, roundabouts the Reagan presidency? Reagan's administration set us on the path to where we are today by deciding a lot of laws on the books suddenly needed enforcement where little had happened. To all our detriment.
Well, time to exit this thread. The problem with HN having become a monoculture forum is that it is impossible to have conversations. I never downvote or flag anyone, particularly those who disagree with me. The same is not true on the other side, if you don't tow the line you get attacked, downvoted and flagged mercilessly until you shut your mouth. So, yeah, you win. Have a good day.
Oh, my mistake. They got got by Nixon. Nixon set up the playbook that Reagan ran with on immigration. He needed to make your parents the enemy to sew up Southern votes. To be honest, it probably would have worked for another four years had he not been so paranoid that he spied on his political opposition and got caught out for it (back when that sort of thing mattered in American Presidential politics).
I appreciate seeing your vantage point on this topic. While we do not agree, It is helpful to see other people's takes.
Just in case you misinterpreted my story, I think it was 100% correct and proper for the US to ask my family to leave, apply for permission to come back legally and finally do so. My parents did not do the right thing by overstaying their visa and working. In other words, I do not agree that they should have been allowed to stay.
When they did obtain authorization they had to agree to not be a burden to US taxpayers for five years. I also agree with this.
Legal and orderly immigration is essential for societies to function. This is true everywhere on this planet.
Numbers are exactly as obfuscatory as letters. "Android 14" doesn't tell me anything other than it comes after 13 and before 15, and "V" tells me the same relative to U and W.
So the meta question is: Why does the device API require the system to play these name games instead of giving enough information to discover whether the thing is an honest-to-God Ethernet device?
Actually, from the quoted study, you do mean race. "In a recent study, published in Lancet Digital Health, NIH-funded researchers found that AI models could accurately predict self-reported race in several different types of radiographic images—a task not possible for human experts. These findings suggest that race information could be unknowingly incorporated into image analysis models, which could potentially exacerbate racial disparities in the medical setting."
That's why they're trying to understand how the model is flawed: race isn't biologically real, so there isn't a correlator that the system can pick up on. They are therefore looking for explanations like Google's AI that hid hints to itself using steganography in its training data (https://hackaday.com/2019/01/03/cheating-ai-caught-hiding-da...).
The tradeoff is initial complexity (your "hello world" for WebGL showing one object will include a shader and priming data arrays for that shader), but as consequence of design the API sort of forces more computation into the GPU layer, so the fact JavaScript is driving it matters very little.
THREE.js adds a nice layer of abstraction atop that metal.
reply