skysight-inc/HackerNews huggingface dataset:
I wrote some OpenCL code recently, wrapped in a rust program using opencl3. My CL code was pretty slow early on, it's a math heavy problem implemented initially with a bunch of for loops.

I largely "optimized" it by smattering the code with #pragma unroll, which was exceptionally effective for the problem at hand, given that I had tons of statically defined loops that could be easily unrolled.

I know rust has a tendency to aggressively inline and flatten everything, but I'm curious about things like this, where it can be so important in this domain to ensure things are unrolled, as the loop conditionals can otherwise introduce pipeline/concurrency issues.
I can't guarantee that it'd be implemented like this, but I could see it working like this in Rust.

struct Ray {
origin: Vec3,
dir: Vec3,
remaining_bounces: u32,
}

and then using it like this:

static RAY_STACK: [Shared<Ray>; 2000] = [Shared::new(Ray::default()); 2000];

or

static RAY_STACK: Shared<[Ray; 2000]> = Shared::default();

I guess it could also be done like this:

#[shared]
static RAY_STACK: [Ray; 2000] = ...;

but that's not really the rust way.
The cartoon talks about odd-lots and round-lots for a reason.

Odd-lots would not occur on the exchange. The "local" broker will handle odd lots, group them up into round lots, and only once a large enough round-lot was collected would the broker call up NYSE and actually do the exchange.

------

For example, if Alice was selling 32 shares of FOO, and Bob was buying 10 shares of FOO, the local broker would give Bob 10 shares (from Alice), and then take the remaining 22-shares for themselves. It was somewhat risky because if the share price changes dramatically, the broker could lose money... but this risk was compensated by brokerage fees.

Eventually, Eve sells another 180 shares, meaning the brokerage now has 202 shares on hand. At this point the brokerage would telephone in to NYSE that they're selling 2 round lots of FOO.

Once the broker confirms the sell order, they hand the money to Eve, and are left with a 2-share odd lot for themselves.

---------

A brokerage could hold some stock in larger quantities if they were very popular in a town. Maybe Detroit has a lot of Ford / General Motors traders for example, so the local brokerage in Detroit would hold more Ford / GM to help speed up transactions.

When transacting with odd lots, they simply use the last price on the ticker-tape.
Same, the way they have went about "evangelizing" for it really left a bad taste
> Cuda-rust will probably add (probably does already) some sort of inline assembly
Already done and used a lot in cuda_std, it uses normal asm!.

My idea for shared memory is that it will always be unsafe and the only thing i can do is:
- expose raw low level "give me a pointer to 70 bytes of shared mem" function because this needs codegen support.

- Then expose a higher level "give me an array of 50 u16s in shared memory"

- Make as much of it as possible usable behind an abstraction, like block reduce, stuff like that.

But i want to make it clear that shared memory will always be unsafe, shared memory semantics are literally impossible to statically prove. I dont think this is the end of the world, high performance GPU programming will always require people to really know what they're doing
> not sure that you can say that all data breaches are related to static passwords

Nobody said that.
If it helps, in TX you don't need auto insurance, just liability or ability to pay, last time I checked.
I feel like part of the reason may be that people really like react-three-fiber, and svelte needs to show that it can do that too. If someone is looking for "how do I 3d with svelte" it‘s nice to have a defintive answer instead of random tutorials.

If it doesn‘t actually take a whole lot of code, that seems great.
I'm already so impressed by Remix after watching the demo today. Looking forward to Kent Dodd's demo tomorrow and to play around with the framework.

It has a great balance between client and server code. Just as React brought the mental model of writing integrated HTML/CSS/JS for an isolated component, Remix seems to bring the mental model of writing client and server code that are associated to one another together in an isolated way.

There's so much power this brings and the benefit is easily seen in how much less client side JS is really needed to build websites with support for lots of user interaction.

It's a push to go back to running code on the server that can, instead of shoveling everything into the client.

This is only the beginning of Remix, I'm excited to see what the team will bring.
How is sending out an inaccurate amber alert beneficial to any actual missing child or their parents? How is doing so frequently any better?
that still has nothing to do with consumer choice, and is entirely about revenue maximization for canon. It is not somehow magically enabling a greater degree of choice.
What's the all-important figure: Maximum flight distance?

In practice though, it's maximum minutes as many planes will be taxiing then need to sit on the tarmac for quite a while waiting for take-off, and taxiing and loitering after landing till it can reach the terminal.
That’s great for you, now get the other 40% of the country on board and we can “fuck off with any other restrictions”.

Your anger should be directed at the unvaxxed because that’s what’s driving policy right now.
For the record I use the Galaxy Note S6 + Wacom One combo for drawing in Krita and Clip Studio - also works quite nicely. :)
The feature was launched because of a wildfire in Israel. The US government does not track international fires.
It's worth noting that all devices that you can buy with Windows on ARM - those running an ARM version of Windows 10/11 on a Qualcomm chip - don't have Vulkan drivers available. Just DirectX - and an OpenGL compatibility pack that runs OpenGL on top of Direct3D 12.

Those same GPUs have perfectly functional Vulkan drivers on Android. I don't know what the problem is.

Having Vulkan on Windows is more like a courtesy from Nvidia, AMD and Intel that Microsoft hasn't really blocked [1]. But it can't truly be relied on on Windows - other GPU vendors don't need to build it [2]. Presumably with that excuse, Microsoft has not allowed apps on the Windows Store that targeted a 3D API other than Direct3D - that stuff just would not work on Qualcomm devices and presumably other devices as well.

[1]: If they were committed to being assholes about it they could force change as part of the WHQL problem, but it doesn't look like they are that committed. I'm not sure what they are committed to though.

[2]: I.e. what if we get Windows laptops with Mediatek chips, or Microsoft and/or Apple revive some Bootcamp mechanism for Windows on Apple Silicon?
Down for a while now. Hugged to death?
Increase wages, shortage solved.
This is assuming that lower work hours will decrease GDP. Japan is basically the poster child for work cultures that value you sitting at your desk doing nothing useful for sometimes insane durations.
There’s this enterprise mindset surrounding .NET where it feels like you need a lot of boilerplate to do anything, all for the sake of testability. I think I just dislike working with interfaces.
And Android gives a lot of other compatibilities in that app store content. I didn't need to wonder if my HN reader, manga reader, Papers, etc work on it because any Android app does.
Not inclined to you but... I was afraid that the comments in this thread is going to be political. Yup, low and behold HN never disappoints.

At this point, so many things are being politicized (Rust drama today as well), that is better to stay off of HN than not for mental health.
Interesting perspective. The solar system seems like an easily exhaustible frontier.
The Colorado law is silly, arrogant, unhelpful. And, it's backfiring in all sorts of ways. I have many friends in Colorado who are having a hard time finding work because they think that any company who "refuses to comply" with the law must be a terrible, unfair, toxic place to work. They've taken a moral high ground, preaching pay transparency and cataloging job descriptions from companies who aren't "following the law" and reporting them to the bureaucrats.

There are many reasons a company doesn't list salary ranges on job descriptions. Hell, most companies don't even know the damn law exists—they're just hoping to hire good people to do good work.

Yes, the hiring process at a lot of companies is not awesome. Yes, recruiters are useless, and technical interviews suck. But there are a lot of great companies out there that pay really well and care about their employees. If you want to talk about salary, put in a good application, make a good first impression, and you can talk money early on in the interview process. I've hired a lot of people throughout my career. These days, I'm absolutely dumbfounded by the amount of applicants who don't seem to care about anything at all—sloppy résumés, half-assed and poorly written cover letters, days go by in between scheduling emails.

You want to make $200,000 a year? Become a better writer and don't be a fucking idiot during your interviews. Stop swaying in your chair, and playing with your hair, and reprimanding your dog. Fix your lighting and your audio, put a clean shirt on—take things seriously. You might be "qualified" for the role on paper, but no one wants to work with unthinking slobs who seem completely uninterested in actually getting the job.

The longer people whine and complain about "pay transparency", the longer they'll remain unemployed.
Why YouTube Hiding Dislikes Is Bad for the Community
Agreed. You can build a lot of scratch, sure. But WP + something like Avada or another templatey thing, and you can cover most brochure ware sites super easily.
While this might work on your specific device, it is an undocumented interface and there is no guarantee at all for future compatibility.

If you do get a definitive answer from Apple you can share, please follow up here, as I would like to be able to cite it. I would be quite shocked if it's different than what I just said, though.
It really does expose a reality that is both inconvenient and repressed by the ruling class, inflation is (among other things) used to defraud common people and also artificially inflate the value of the affluent's hard assets. It is precisely why the Fed pushes inflation to both eat away at the debt of the affluent, largely at the cost of institutional (pensions) investors, foreign nations, and tax payers. We are also entering, if we have not already entered a negative feedback loop where it is not only not in the interest of the affluent to suppress inflation, it is actually beneficial/profitable for them to drive inflation up … at least until the music stops.
I've done similar things with UARTs over long distance- I was about to write about it, but I actually have it on github:

https://github.com/jhallen/joes-sandbox/tree/master/hw/lined...

CAN is interesting in that the protocol is pretty complex, but from software point of view it's just send_packet() and register a handler for receive packets. The annoying thing is that MCUs don't have built-in CAN line drivers.

A new thing is 1000BASE-T1- Gigabit Ethernet over a single twisted pair. This is supposed to be the future in the auto world..
Err. What country has reached herd immunity? Even 99% vaccination doesn't seem to make much difference.
How do they even get the voltage that high?

The same way as any other battery, just increase the number of cells. Most cells seem to run between 1.5-2 volts. A 12 volt car battery is usually six cells of 2 volts each.
I'll pay you quite a bit to make my ReMarkable do what I want and then go away forever. But once it's working, I'm pathologically opposed to paying for the continued privilege.
Thank you for giving the reduction to absurdity, for the above line of argument.
Bayes' Theorem
That's easy enough in Rust.

struct Vec3(f32, f32, f32);
struct Ray {
origin: Vec3,
direction: Vec3,
bounces_remaining: i32
}

and then something like (made-up API):

let shared = rust_cuda::shared();
let mut raystack = shared.alloc_zeroed::<[Ray; 2000]>();

or maybe:

let mut raystack: Shared<[Ray; 2000]> = [Default::default(); 2000].into();
Good lord. I'll never invest a single dollar in Facebook after reading this. Talk about dysfunction
The M1 Max 32 core GPU is ~1/8 the performance of the 3090. 4x the core count should put it half of 3090 performance, not double.
Basically incentivised tor vpn? I can get behind that part.
Just a remark: the person whose fingerprints have been reconstructed and that was the defense minister of Germany at time of the stunt (Ursula von der Leyen), is now the president of the European Commission (~= head of the EU government).
Time is an extremely precious commodity. It seems somewhat arbitrary to assume that if you like something, you automatically do it in your spare time. It's fairly easy to like more things than you could possibly have time to pursue :)
I was recently screening resumes for one of those bay area tech companies. I can honestly say they were so desperate for quality coders that work gaps never even came up. If you have prior start up experience, are not an asshole, and can answer stupid algorithmic questions you aren't going to have problems getting a river of money dumped on you after taking a sabbatical. Just make sure you budget some serious interview prep time into your sabbatical plans if you aren't already good at it, otherwise you are bound for some anxiety.
But the point is that someone is paying for that bandwidth to be available, regardless of it being used or not, at the moment. Light is not consumed, it is produced. Someone else put it that spillover light is gleaned. Bandwidth cannot be gleaned in the same way. You don’t have excess bandwidth like you would have light.
It’s probably not a good idea to lean into definitions for your mental model of what a network state is/will be. At various stages of growth it will have similarities to clubs, organizations, societies, communities, nation states, and other things that exist today. But ultimately they will be distinct societal constructs that have technological pre-requisites that render them incoherent without them.

The analog to a typical nation state is not fully knowable today imo, but ultimately it will probably boil down to having no impedance mismatch in participating in global affairs (eg treaties, UN membership, etc) vs small independent nation states.
Some FTDI chips can do I2C (also SPI), will i2c-tools work for it?

Otherwise the Arduinos with USB are a convenient way to connect I2C to a PC..
Sure, that's been the case in the past and maybe that's what JohnBooty meant with his comment, but his comment specifically pointed out a particular browser so I took it to mean CPU extensions targeted for how Safari operates. Like, specific ways Safari handles Javascript or rendering with all of its specific quirks etched into silicon. Other browser manufacturers would have to pretty much behave like Safari or else run as a penalty on legacy instruction sets.
Recently? Linux, Amazon, “turbofish”.

Between Oct 2018 and Oct 2021...

https://hn.algolia.com/?dateEnd=1635638400&dateRange=custom&...
I also used Gandi until they had a data loss incident and basically told users to get bent.

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

Now I use cloudflare. No BS, no up-charging, fast, easy, and automatable.
StrongTowns and Not Just Bikes, and similar sites are 100% nothing but anti-car activism. They will never, ever suggest something that isn’t specifically targeted to reduce car ownership and usage. It’s dressed up in all kinds of other rhetoric but at the end of the day they start with the idea that cars are terrible and everything (literally, everything) they publish or create exists to try to demonstrate it. If you’re bought into that idea already it’s fine, but nobody should pretend they exist for any other purpose than to push that singular agenda.
> the political elite

I'm not sure what this means.

> in the major (remaining) EU countries, or it wouldn't be the policy, right?

It is not some policy, it is an international treaty signed by every current in the EU. This would be like saying that NATO is "a policy". By the way, the remaining countries are 27. 13 of those joined since the year 2000 and one left.

> except for the currency integration which will never happen

Yes it did. What a bizarre statement.

> Try ordering an espresso in Berlin without speaking English.

I live in Berlin. You can order anything in German anywhere. This is at best a gross exaggeration, at worse an outright lie. It was exactly this type of "fact" that was used to convince a lot of British people to commit brexit.
I'd be ok with that.
And they can tell? I'm not on Twitter but I can see just following everyone that passes in front of my mouse, and so be it. If that's banned, I'd egg people on to do it more and more and help tear down the idea that follower counts mean f** all.
> F. Game engines actually support Metal - Unity, Unreal, LWJGL, the most common engines run on Metal fine. Don't use Metal as a scapegoat.

With much pain. Have you seen the shader pipeline we have to deal with going from HLSL to Metal? And no, translating the entire body of shader work to MSL is not an option.
No - they were just general purpose boards. They just had strict rules on behavior (well behaved flame wars, etc). I was on them before I was on USENET, and in comparison, USENET really sucked with its relative lawlessness.

The "enforce the rules or your whole BBS will be sanctioned" was extremely effective in producing a civil (but not boring) environment.
At the moment I'd advise against it somewhat -- the silicon shortages have basically made the MCU and a couple of other parts unobtainable.

That said, I got mine from everyone's favourite PCB manufacturer: JLCPCB.

All the parts can be found on the BOM: https://github.com/tzarc/djinn/blob/main/Rev2a/Djinn-BOM.md
No. NameCheap is better than NameSilo.
This seems more likely than my proposals, but it does mean you won't be able to use a particular part of the `__shared__` region for more than one thing. (Mine are broken by function calls, so yours is still better.)
> Sometimes some co-workers will try to match my order entry quota, which would make me open the code, and change an 8 to 9 to increase my production and keep myself on top. I'd change the numbers regularly "just in case" but nobody even noticed.

He should have tried to get management to offshore the position and bid for the outsourcing contract himself... Replace a whole department!
Probiotic that produces lactase enzymes directly in gut
Why Sat Test Prep Doesn’t Help Who You Might Think It Helps
I have been looking for a name for people not understanding which is the millennial generation - maybe “Ridleys Law”?
I assembled mine by hand.

I'm not sure a lot of PCB assembly houses would like reversible PCBs.
Some of these questions are a bit personal. Others are silly or irrelevant. I wouldn't use them on my team.

They're like pajama party questions...
I like to think of like this:

I use Next.js for my marketing site.

I use Remix for my web app.

Next is good if you just need to get some HTML on the page. Remix is good if you need a connect to a database or backend API.
I use dino.im and kaidan.im also exists (though they implemented a newer version of the spec which isn't backwards compatible: https://invent.kde.org/network/kaidan/-/issues/254 ).
Did you link to this SE post so we could laugh at it?

Never smells: You are using a language with discriminated unions (before or after 90s)

Smells: You are using a dynamically typed language, and you used a hack to implement them

Sometimes smells: You are using a 90s language with a horrible implementation of enums

Smells: You are an OOP charlatan and they do not fit your invalid world view and your enums have methods on them plus some other bezerk shit. plus you have cognitive dissonance because you were told objects are expensive and you should really only pass ints around willy nilly and everything else should be god objects
Picking two data points like that is not meaningful.
Nurses have to wear burdensome levels of PPE, and are forced to get vaccinated (despite many of them already getting COVID during the initial outbreak, and their natural immunity providing broader and longer-lasting protection than vaccines).

Go back to complete normal and this shortage will resolve.
It's not about products (business tactics). It's about business philosophy and business strategy.
If memory is exposed in CUDA more like allocators than pre-allocated static memory, look into using the alloc crate with custom allocators that hand out global or shared memory.
Like you said - Microsoft is just completely passive regarding Vulkan on Windows. It's up to the GPU vendors and driver makers, as long as DirectX isn't threatened. And on Xbox, DirectX is your only option, so if you want a nice clean Windows to/from Xbox port, writing for DirectX just makes sense.

As for #2, Qualcomm (according to new reports) has an exclusivity deal for Windows on ARM that is expiring soon. But Microsoft would have to work with Apple and allow drivers to be written for the M1. Craig Federighi of Apple said they would be fine with Windows on M1 but Microsoft wasn't at the time.

Though, to be honest, even if the exclusivity deal expires, I don't see Microsoft being excited about Windows on the M1. It only serves to embarrass their own products.
The article was rubbish, the author himself is a counterargument to his point. He came from a poor family, worked hard studying economic history, became a successful trader and thus extremely wealthy, yet he still proports

>Now, no matter how hard you work, how smart you are, if you come from the ‘wrong’ family you’ll probably never own property. That is feudalism. We’re going back into a world of aristocracy. Capitalism’s over.

Seems more like he thinks so much of himself that no one else could possibly do what he did.
But don't most people just get fixed rates?
Don't most just get fixed rate mortgages?
The money quote from the article:

Scott’s explanation for the horrible box office performance? Apathetic millennials.

“I think what it boils down to — what we’ve got today [are] the audiences who were brought up on these fucking cellphones. The millennian [sic] do not ever want to be taught anything unless you’re told it on a cellphone,” Scott said.

“This is a broad stroke, but I think we’re dealing with it right now with Facebook,” Scott added. “This is a misdirection that has happened where it’s given the wrong kind of confidence to this latest generation, I think.”

-

I think this might be an inflection point for movie theaters post-Covid.

Although the biggest blockbuster this year was "The Battle at Lake Changjin" in China.

https://www.boxofficemojo.com/releasegroup/gr3283177989/

https://www.slashfilm.com/626583/a-chinese-film-beat-no-time...
The top level comment provided a single unsubstantiated view of the wildfire data being inaccurate.

As I mentioned up-thread, I was tracking a wildfire in Washington State and was able to determine by monitoring fire radios and watching cameras that the data was pretty accurate.
And my point is that since you're going to learn a JS-like with build tools, you would better be served by JS or TS instead of Dart, since Dart isn't that popular, the frontend experience is terrible and there's not much choice in terms of backend and libraries.