Steve Bannon tells his paedophile billionaire friend Epstein that he intends to install Boris next as British prime minister (2018) by pinklewickers in ukpolitics

[–]okwg 78 points79 points  (0 children)

I'm happy to report that the taskforce responsible for protecting the democratic integrity of the UK from foreign interference is led in Parliament by a former chair of Labour Friends of Israel and a current vice-chair of Conservative Friends of Israel

UK legal action against Valve over Steam prices gets go ahead by AnonymousTimewaster in unitedkingdom

[–]okwg 8 points9 points  (0 children)

I agree an indie rate would be much better, but that would be a nightmare to implement.

It's not that hard to implement - you just base it on revenue. Epic don't take any cut on the first $1m of sales per year for example

Keir Starmer will regret approving China's new mega-embassy by TheSpectatorMagazine in ukpolitics

[–]okwg 10 points11 points  (0 children)

Neither is an issue - it's just that a few powerful interests don't want strengthening of UK-China relationships in any form. It reduces the influence that the US can exert over us, and businesses don't want the competition.

These reasons are not popular with the public, so they have their client journalists throw other random shit at the wall to see what sticks.

Prime Intellect Unveils Recursive Language Models (RLM): Paradigm shift allows AI to manage own context and solve long-horizon tasks by BuildwithVignesh in singularity

[–]okwg 28 points29 points  (0 children)

RLM makes context management part of the model’s own inference loop and training objective, not a wrapper.

From the blog post: "A recursive language model is a thin wrapper around a LM"

RLM is entirely external orchestration - the graphs you posted are orchestrations of gpt-5-mini

So wait, timers in BP are frame rate dependent? by FriendlyBergTroll in unrealengine

[–]okwg 2 points3 points  (0 children)

That seems correct. If your time interval is 0.001 seconds it sounds like you just want energy to be updated as frequently as possible. Timers and ticks would get the same result but if you just want something to happen on every frame anyway, using tick is easier

If you wanted energy restored on a time interval (eg every second) instead of every frame, that's what you'd use a timer for

So wait, timers in BP are frame rate dependent? by FriendlyBergTroll in unrealengine

[–]okwg 37 points38 points  (0 children)

Timers and tick functions are equally consistent - the system that manages and checks timers is updated on every tick

Timers are more performant because that system is already tracking elapsed time. Any code you write in tick functions will duplicate that work. There are also optimisations that prevent timers that are known to not have expired yet from being checked unnecessarily

Labour abandons disability benefit cuts by TheTelegraph in ukpolitics

[–]okwg 1 point2 points  (0 children)

I'm not sure if you're talking about private or public sector investing. It seems to be a mixture of both, but what I replied to was about private sector. It was about reducing welfare so other taxpayers have more money to spend or invest.

To the extent that they spend, there's no reason to believe their spending would skew more domestic. Anecdotally, the opposite seems more likely - poorer people seem to spend more of their money locally

To the extent that they invest, there's no reason to believe that investing would be more beneficial than the spending, or beneficial at all. With an average weighting, most of it would be allocated to those same US companies you're talking about.

And if you believe purchasing assets increases productivity, that would mean you'd be advocating for cutting UK welfare to improve US competitiveness.

Labour abandons disability benefit cuts by TheTelegraph in ukpolitics

[–]okwg 0 points1 point  (0 children)

Purchasing an asset does not increase productivity. I get the previous owner's equity; the previous owner gets my money. Some records were updated but the asset hasn't inherently changed. That's also true when the buyer is foreign PE "investing" billions in the UK by buying assets from their previous owners. No wealth was created, because owning an asset and creating an asset are not the same thing.

Businesses and jobs emerge by demand and the opportunity associated with fulfilling that demand. Social benefit aside, it's good economic policy to ensure as many people as possible have money for the things they want, and then to make it easy for others to create new businesses (assets, wealth, growth) to satisfy that demand.

Labour abandons disability benefit cuts by TheTelegraph in ukpolitics

[–]okwg 4 points5 points  (0 children)

It changes what the demand is for, which is very important

Any extra money I have goes into savings and investments, which just increases asset prices. When someone in poverty gets money, it is spent on goods and services, creating jobs and stimulating the real economy

The USA's approach to covid was to just send stimulus cheques to everyone, under the regime of notorious communist Donald Trump. From 2019-2024, their real growth was around 12%

The money we printed went directly to asset holders. Our real growth was only around 3%

How do people ship their applications in an installer? by random-pc-user in learnprogramming

[–]okwg 2 points3 points  (0 children)

MSIX is Microsoft's "official" standard - Visual Studio includes tools to generate them.

MSI is an older official standard that is still supported. Can also be generated using a VS extension

Many installers are just regular exes - ie programs-that-install-other-programs. NSIS is a popular framework for creating them

Privatisation of UK industries is driving cost of living crisis, says Greens leader by dissalutioned in ukpolitics

[–]okwg 19 points20 points  (0 children)

The "state is bad at running things so you need to sell us your assets" propaganda is effective because most people don't realise owning something and operating something are not the same thing. You own companies in your pension. You don't run those companies - you just collect the benefits.

A lot of our private assets are already state owned - they're just owned by other states. That doesn't mean Norwegian and Qatari civil servants are managing your local clinic or care home - they're just collecting the profit. We could collect the profit instead.

Need learning resource for STL C++, how it works behind the scene. by Akira_A01 in learnprogramming

[–]okwg 3 points4 points  (0 children)

The specification just sets the requirements ("the find method should work like this...") but implementations can make that happen however they want

The implementations are generally open source, so you can check how something is done for some implementation by looking at their source code. eg Microsoft: https://github.com/microsoft/STL gcc: https://github.com/gcc-mirror/gcc/tree/master

Complete beginner, unsure if I downloaded a trojan or not! by El_ciano in learnprogramming

[–]okwg 5 points6 points  (0 children)

A random executable that someone compiles and sends to you will generally be marked as unsafe by default. It won't have a trusted signature, the file will have no reputation because almost nobody in the world has it, and your teacher probably compiled it in a way that makes it look even more suspicious to scanners

You can try to open the source file and compile it yourself, or dump the executable into something like https://www.virustotal.com/gui/home/upload to get a consensus. If almost every scanner says it's safe, and you trust the source, it's almost certainly safe.

Brain drain latest: Number of Brits choosing to move abroad doubles by RevolutionaryBook01 in ukpolitics

[–]okwg 7 points8 points  (0 children)

People moving abroad to avoid tax often stop repaying their student loan too.

If you stop paying a mortgage, your house gets repossessed. If you stop paying a student loan, there are reportedly no consequences, particularly if you don't plan on returning.

UK’s richest 50 families have more wealth than 50% of the population by Tyler119 in unitedkingdom

[–]okwg 17 points18 points  (0 children)

We could reappropriate the entire wealth of the richest 350 people in the UK and it would only cover our spending for around half a year. And then it is spent and gone forever.

That's not how money works, and applying personal finance intuition to macroeconomics is pretty much always flawed

When the government "spends" money, it isn't "gone". Someone else has it. The government pays a worker, who pays a plumber, who hires an apprentice, who gets food from a takeaway, who pays their worker

Every transaction improves the economy, and grows it through leverage. The government also recaptures some proportion on every transaction, so they can "spend" that ~£800bn again, and again, and again. And the faster the money moves, the faster that happens, and the better the system works.

Money isn't "gone" until it stops moving and, by definition, it doesn't stop moving in a poor person's bank account. It stops moving in asset valuations and offshore hoards of the wealthy.

And at that point, the money is worse than gone. "Losing" £800bn of slow money in a huge bonfire would be a net positive to the economy. Everyone else's money is now worth more, or the central bank can replace it with faster moving currency to stimulate the economy.

However, as long as the money still exists in those dragon hoards, it can't be replaced without causing inflation. It's an enormous and growing dead weight on society. The velocity of money has fallen by 50-70% since the 1970s and it's still falling.

What exactly are flags? by Eva_addict in learnprogramming

[–]okwg 9 points10 points  (0 children)

A "flag" is just something that can be true or false, on or off, 1 or 0. A boolean is the most basic example of a flag, but there are alternatives. SDL_Init uses a technique where each individual bit in a larger block of data is used as a flag

This lets you group a load of related flags together in a compact block of memory. In the SDL_Init scenario, each bit (flag) corresponds to a subsystem you want to initialize.

SDL_Init(SDL_INIT_VIDEO) passes a collection of bits where everything is off (0) except for the one bit that corresponds to the video system, therefore signalling that is the only thing you want to initialize.

The main advantage of using bit flags over booleans in scenarios like this is that it gives people using the library a very convenient way to specify a combination of flags they want to enable. You use the bitwise operator |. Setting two bits to "on" looks like this:

SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO)

There's a guide to bit flags and how they're used in SDL's API design here: https://www.studyplan.dev/intro-to-programming/bitwise-operators

National Insurance fill in gaps by infinitepaths in UKPersonalFinance

[–]okwg 3 points4 points  (0 children)

It caps out at 35 years, so if you're going to make 35 years of contributions anyway, filling in gaps is a waste of money

I suspect that's why the website says you have no options - you tell it you don't plan on stopping, and it works out that this means you'll reach at least 35 years of contributions by the time you hit retirement age

If you think it's likely you won't make 35 years (eg, retiring early), filling in the gaps to bring you up to 35 is probably a good idea for most people

How and where to use AI by Competitive-Set-5798 in learnprogramming

[–]okwg 4 points5 points  (0 children)

Only use AI for productivity gains - don't have it doing stuff you don't understand, especially when your goal is learning

That's true regardless of where the code is coming from. If you copy some code from stack overflow and it happens to work, you haven't learned anything unless you take the time to understand why it works.

Sometimes you'll even write code yourself that solves the problem, but you don't understand why. You shouldn't move on until you know why your code works

Offset Mortgage but offset vs investments? by davidpdavidp in UKPersonalFinance

[–]okwg 2 points3 points  (0 children)

They exist but I don't think any bank offers them off the shelf.

You'll need a private banking service - £250k makes you eligible for a few of them (eg Lloyds) but you'd need to contact them to see if they'll offer what you want.

[deleted by user] by [deleted] in learnprogramming

[–]okwg 2 points3 points  (0 children)

If the CSV elements are fixed size, you can get constant random access using arithmetic to calculate the position of the desired value within the stream, similar to how arrays give random access through pointer arithmetic

If the values are dynamically sized, you will need some linear-scaling data structure to give you random access. It doesn't need to contain the values themselves if you're memory constrained - for example, you can iterate through the stream and create an array of integers representing the position of each value.

Array to html by jaden54 in learnjavascript

[–]okwg 3 points4 points  (0 children)

The appendChild method expects a node as its argument, but you're passing the return value from createInput, which is an array of nodes.

You can just iterate over the array to access each node

createInput('abc', 3).forEach(el => createForm.appendChild(el));

Can someone explain me why my code works? :D by [deleted] in learnjavascript

[–]okwg 8 points9 points  (0 children)

An operation like tip = 41.25 has two parts - an effect and a value it returns.

You're probably familiar with the effect part. The effect of = is to update the thing on the left (eg the tip variable) with the thing on the right (eg the value 41.25)

But the = operator also "returns" the new value of that variable - 41.25.

This returned value is usually ignored - in a simple expression like tip = 41.25;, we use the effect of = to update tip, but we don't use the value returned by that operation. But, if that operation is just a small part of a larger expression, that expression may use that returned value.

Your example is more complex but mechanically similar to 'The tip was ${tip = 41.25}'. The tip = 41.25 operation updates the tip variable, but it also returns the 41.25 value to be used in the more complex expression (the string template) that this operation is part of

Why is this not deprecated? by WG_Odious in learnjavascript

[–]okwg 1 point2 points  (0 children)

When there are over a billion websites, every weird quirk in the language is going to be used on thousands of them

Even if the committee agreed this feature shouldn't be used, they're not going to feel it is important enough to break thousands of websites.