Hacker Newsnew | past | comments | ask | show | jobs | submit | steeve's commentslogin

Like what?

You can also directly call LLVM intrinsics in case this doesn’t work


Just a couple of days ago, I wanted to implement specialized StreamVByte decoding in Zig, but @shuffle() needs to mask to be compile time known, while _mm_shuffle_epi8() works just fine with a dynamic mask. I remember that some time ago, I couldn't find an alternative to _mm_alignr_epi8().

`_mm_alignr_epi8` is a compile-time known shuffle that gets optimized well by LLVM [1].

If you need the exact behavior of `pshufb` you can use asm or the llvm intrinsic [2]. iirc, I once got the compiler to emit a `pshufb` for a runtime shuffle... that always guaranteed indices in the 0..15 range?

Ironically, I also wanted to try zig by doing a StreamVByte implementation, but got derailed by the lack of SSE/AVX intrinsics support.

[1] https://github.com/aqrit/sse2zig/blob/444ed8d129625ab5deec34... [2] https://github.com/aqrit/sse2zig/blob/444ed8d129625ab5deec34...


Oh, that's actually quite neat, it did not occur to me that you can use @shuffle with a compile time mask and it will optimize it to a specialized instruction.

According to https://huggingface.co/openai/gpt-oss-120b/blob/main/config....

That’s 2880 values (so multiply by dtype)


This is USSR / North Korea stuff


It's USA stuff now. The voters spoke. Remember, they won't need to vote again. That's the promise.


I didn't understand anyone voting for that in particular.

Policy questions of all sorts, we can all discuss: that's called democracy.

But when someone promises to end your participation, you have surrendered all agency to them which has never worked out well in history.


Not to defend him but he wasn't saying there wouldn't be another election or and end to participatory democracy, only that on the certain issues he was speaking about he would make such heavy changes that it would be completely done within this term and no future president would have to worry about it.


So completely done that it can't be undone.


Also, their tactic has been to accuse the other side of the thing they're going to do. So, what's up with counting the vote now? You don't need to vote if it's rigged for you.


The voters clearly voted for Trump to do whatever he wants. They voted for him to thoroughly realign the government to follow his policy and his narrative, to root out the "deep state". Obviously anyone who publishes numbers that look bad is trying to undermine him. How many of his voters disagree with this agenda?


>hub-center steering,

well I mean, the choices war to have a Stalinist style strongman to pull things like this, vs a Marxist style / "Committee of Public Safety" type power cabal scapegoating all things white, hetero, male, and nativist. Say what you will about Trump but he heard the people crying out while the other side was deaf.


> That's the promise

[Citation needed]


July 28, 2024:

> Trump said: "Christians, get out and vote, just this time. "You won't have to do it anymore. Four more years, you know what, it will be fixed, it will be fine, you won't have to vote anymore, my beautiful Christians."

Reuters: https://www.reuters.com/world/us/trump-tells-christians-they...

And the video: https://www.youtube.com/shorts/Y7b4r1FIG-A


He's talking to people who don't normally pay attention to politics, but are now because of the economic problems they're facing. He's saying once he fixes those problems, they can go back to not paying attention to politics.


> He's talking to people who don't normally pay attention to politics ... He's saying once he fixes those problems, they can go back to not paying attention to politics.

From 2015:

> Based on my research, Christians are much more likely to vote than non-Christians.

https://scholarworks.sfasu.edu/cgi/viewcontent.cgi?referer=&...


Are U.S. voters really that stupid?


They worry about, and elect political representatives that try to act on, schoolchildren that identify as cats and have litter boxes in classrooms for them. Rather lacking in any sense whatsoever, just repeating random lies like truth. On the other side of the political spectrum, they might also get up in arms because federal officials in remote areas use horses to travel in rough terrain, off road. It's not limited to one side,though I'd say quite tilted.


Since they've been told climate change is a hoax, republican voters in the US have needed an explanation for the dramatic increase in the frequency/severity of severe weather events. They have flocked to the conspiracy theory that Democrats are using geo engineering to manipulate the weather for political ends and to make climate change "real".

Lest you dismiss this as the folly of the very online, states are passing laws against weather manipulation in response.

https://www.nbcnews.com/politics/politics-news/republicans-p...

So uh yeah, really that stupid. At least enough of them to be statistically relevant in a two-party system.


Yes. Education, critical thinking are not a priority.

You will note that business leaders, especially the tech ones like marca, Thiel, Zuckerberg, cheer this on too.


Has been for a very long time. Consider the Rule of Seven[1] against the historical data.

[1] https://www.brainbok.com/guide/pm-study-notes/rule-of-seven-...


[flagged]


> Unless you believe operating like this what makes Russia or North Korea poorer than the USA, which I think is very dubious.

Rejecting people who look at reality with people who tell the leader what they want to hear is a big part of why Russia and North Korea are so less successful than the US, yeah. I don’t think that’s dubious, or even uncertain.


I think one of the reasons the USSR centrally planned economy failed was because they couldn’t get accurate data from satellite sources, meaning there was no chance to make good decisions.


It generally hasn't worked out great for anyone else, though. The obvious modern parallel is Turkey, where Erdogan, rather than dealing with bad numbers, just faked the numbers. And forced down interest rates. Today, Turkey's inflation rate is 35%, though in fairness that's a decent reduction from the nearly 100% it was seeing a couple years ago.


[flagged]


I'm not sure what kind of distinction you think you're making... but it doesn't really make sense.


It's like pedantically getting the rules of the board game technically correct, but all your friends already went home because they're tired of your bullshit.


If you're not worried the leading democracy in the world is looking for yes men, you should.


You mean Iceland? I hadn't heard that


I meant the country that leads the world and is also a democracy, but you knew that before you commented.


I don't think anyone is leading the world anymore -- you might need to clear your cache and install the multipolar DLC


Trump specifically claimed that the numbers were rigged to make Republicans and him look bad. He of course offers no evidence for this.

That's very much like a USSR or North Korean way of doing things.


I struggle to believe they're as bad as our propaganda wants us to believe.


This is a statement of fact that you're referring to as propaganda.


It's funny and telling you believe we don't get propaganda. They are doing a really good job!

But think about it… according to our media russia was out of weapons and food 3 years ago. How did ukraine not invade moscow if the russians are all dead?

Could it be… because it was propaganda?


It's funny and telling you believe we don't get propaganda.

No one said that.

They are doing a really good job!

Who is they in your scenario here?

Are you disputing that this person was fired? The difference is always facts and evidence. What facts and evidence do you have to present?


Ukraine didn't invade moscow → the constant stream of news telling us how russia was defeated 3 years ago was propaganda.

Is it clear enough?


This story is about trump firing the statistics chief because he didn't like the data.

I have no idea what you are talking about.


No you argued against me on "we don't have propaganda"


This never happened.


It's complicated. I've lived in an eastern European communist country, escaped as a political refugee, and then lived in several western countries.

Communist countries at least could house everyone. They more or less had to, because most of them are too cold in winter for the homeless to survive. Education was generally free and quite good. Etc...

But... my dad was dragged off one day and beaten black and blue by the secret police for engaging in "anti-communist capitalist activities". He was tutoring students after school for a bit of cash.

Meanwhile, in the world's richest third-world country, the United States, people with the wrong skin colour are being dragged out of their homes and thrown into concentration camps in another country. Breaking a leg can bankrupt you.

You hear stories of NK refugees hating their new life in SK because it's too competitive and they can't keep up with the constant go-go-go business culture.

I also saw smuggled(!) videos of children in NK picking up individual grains of rice that fell in between the railway tracks at the local shunting yard. So you know... hustle culture, or that.

I personally remember driving to a shopping centre and standing in line outside right before it opened so my Mom could buy me rain boots. Her friend that worked there had called her at 6am telling her to hurry because they had them in stock for the first (and only) time that year.

But... on my recent holiday to the US I was shocked to see how tense police officers looked compared to anywhere else in the world. I witnessed a traffic accident, and the cops that turned up looked like they were ready to draw their weapons and start blasting at any second. They were all kitted out in body armour and had their hands on their weapons at all times. Scanning the crowd non-stop. Where I live, cops are friendly and will high-five my kid and pose for selfies. The US feels more like an outdoor prison to me.


Cops in the US are given military hardware in many cases and are trained to see anyone as a threat, an opponent. And there are enough criminal f-heads in any state and region to kinda justify that in the aggregate. We're well-armed, and there are a lot of nut jobs. But not the majority by any means.


Doesn't the USA have more guns per capita than nations at war?


Try showing a palestinian flag or an anti monarchy piece of paper in the very civilised and liberal UK and see what happens to you in the totally free western world.


Nothing?




There's no evidence in that article that anyone was arrested for flying the flag of Palestine. It's about protests in favour of a specific proscribed group. I'm as pro-Palestine as they come but linking to that article to support the claims made above is just dishonest.



You made a claim of X and then backed up up with evidence of Y happening. Are you calling me dishonest for pointing that out?


Perhaps reading the claim i made would have helped.

https://news.ycombinator.com/item?id=44765372


I read it and responded accordingly. Your point was about the flying of a flag in the UK. You followed this up with an article about people being arrested for supporting a proscribed organisation, not for the flying that flag which we both know many people are doing every day

If you would like to make a further point then please do so.


> anti monarchy piece of paper

No, you clearly did not read and insist in refusing to read.

Chatgpt would have done a better job at this.


> I witnessed a traffic accident, and they cops that turned up looked like they were ready to draw their weapons

Traffic stops are one of the most high risk situations police officers are involved in. I imagine traffic accidents are up there with it. The US also has a road rage problem topped off by never knowing who is armed or who keeps a revolver in the glove box


You're repeating the propaganda that is used to put cops on edge and make them trigger happy. There is a long list of jobs that are more dangerous than cop in the US. They hype themselves up that they're in danger all the time and citizens pay the price.


1659447091 did not compare Police Officer’s jobs with other jobs but merely pointed out that traffic stops are dangerous for them. Imagine if part of the job involved a 0.3% possibility of getting killed, how would you approach that part of the job?


> traffic stops are dangerous for them

Traffic stops in the United States are dangerous for them.

In Australia, they're more likely to be killed during a traffic stop because they're hit by cars than getting shot at.


yes, the thread is about US along with any other which discusses police brutality or police killing own citizens :)


But they're not actually that dangerous, I don't think LEO even break like top 10 most dangerous jobs.

The problem is that LEOs have a separate, extremely lenient, set of standards they're judged on. We don't tolerate mistakes at other jobs, much less deadly mistakes or mistakes that cost millions in lawsuits. Hell, the McDonald's cashier is getting insta-fired if their drawer is 1 dollar short.


I don't think they were misunderstanding that, just trying to give perspective.


I have a lead foot sometimes, and I've had a gun waved (but not pointed, thankfully) at me at least twice that I'm aware of in recent years (Houston area)


Lol, they risk having to abuse their power and face no consequence?


[flagged]


> From how it’s stated, I would expect on the order of at least 5% of non-whites to be imprisoned.

Based on current demographic numbers, you would require almost 7 million people to be imprisoned before you'll accept that authorities are targeting minorities? That's more than 3x the current numbers and 60% of the global incarcerated population.

You're not being intellectually honest with that argument.


> I don’t know

The root of the problem. With a functioning due process regime, we would.


"Today, a federal court found that the federal government’s ongoing immigration raids in Southern California and its denial of access to counsel for arrested immigrants likely violated the Constitution, and issued two temporary restraining orders (TRO) prohibiting the federal government, including the Department of Homeland Security (DHS), from continuing its unlawful actions in Los Angeles and surrounding counties.

The first TRO bars immigration agents from stopping individuals without reasonable suspicion and from relying on four factors – alone or in combination – including apparent race or ethnicity; speaking Spanish or English with an accent; presence in a particular location like a bus stop, car wash, or agricultural site; or the work the person does. The second TRO orders DHS to provide access to counsel on weekdays, weekends, and holidays for people who are detained in B-18, the federal building in downtown Los Angeles."[0]

"A federal judge in California has temporarily blocked Donald Trump’s administration from revoking deportation protections for tens of thousands of immigrants from Honduras, Nepal and Nicaragua.

A searing 37-page ruling argued that a decision by Homeland Security Secretary Kristi Noem to cancel those temporary humanitarian protections appeared partially rooted in “racial and discriminatory animus.”

“Color is neither a poison nor a crime,” stated the ruling from District Judge Trina Thompson, who was appointed by former President Joe Biden."[1]

[0]https://www.aclusocal.org/en/press-releases/court-prohibits-...

[1]https://www.independent.co.uk/news/world/americas/us-politic...


Because of who ?


It absolutely is and we (ZML) are using it with great success. That said, Andrew said he would absolutely would break compat if it meant things go in the right direction. Yes, it can be painful sometimes, yes I do not always agree with his choices, but it has never been a blocker nor a significant time sink.

And in the end, things do improve significantly.

In this case, I think the new IO stuff is incredible.


It also helps job prospects of Zig programmers within organizations that have already adopted Zig -- more breakage, more job security.


advances the purposes of cynics as well, so big bonus.


Do you honestly believe what you're saying


Musk doing Musk things


Very cool that this runs as a MCP server, very cool demo


Seems odd that the LLM is so clever it can write programs to drive any API. But so dumb that it needs a new special purpose protocol proxy to access anything behind such an API...


It’s about resilience. LLMs are prone to hallucinations. Although they can be very intelligent, they don’t have 100% correct output unaided. The protocol helps increase the resilience of the output so that there’s more of a guarantee that the LLM will stay within the lines you’ve drawn around it.


That's really not true. Context is one strategy to keep a models output constrained, and tool calling allows dynamic updates to context. Mcp is a convenience layer around tool calls and the systems they integrate with


> LLM is so clever it can write programs to drive any API

It is not, name one software that has a LLM generating code on the fly to call APIs. Why do people have this delusion?


Every runtime executing LLMs with support for tools does it, starting with the first update to ChatGPT app/webapp that made use of the earliest version of "function calling"? Even earlier, there were third-party runtimes/apps (including scripts people made for themselves), that used OpenAI models via API with a prompt teaching LLM a syntax it can use to "shell out", which the runtime would scan for.

If you tell a model it can use some syntax, e.g. `:: foo(arg1, arg2) ::`, to cause the runtime to call an API, and then, based on the context of the conversation, the model outputs `:: get_current_weather("Poland/Warsaw")`, that is "generating code on the fly to all APIs". How `:: get_current_weather("Poland/Warsaw")` gets turned into a bunch of cURL invocations against e.g. OpenWeather API, is an implementation detail of the runtime.


This is basically just function calling?


No the person I replied to made the argument that tool calling or MCP is uneccessary because why not just make the LLM generate any code on the fly to do anything instead. They think there should be just one tool: eval.

Surprisingly many people say this. I essentially ask them if they have seen a non-toy product that works like that, because everything is tool calling afak.


No, just because you’re hashing every ms doesn’t mean we all do.


Actually, _two_ fighter jets accidentally dropped bombs. One is bad enough, but two is worrying.


Sir this is not X


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

Search: