skysight-inc/HackerNews huggingface dataset:
Hmmm... perhaps an example would be best? I wrote myself FizzBuzz a few days ago as a proof-of-concept.

// AMD cards are 64 SIMD-lanes
// Untested, but I think you can understand the concept from this.
for(int i=0; i<10000; i+=64){
int myIdx = i + hipThreadIdx_x;
bool fizz = myIdx % 3 == 0;
bool buzz = myIdx % 5 == 0;
if(fizz){
fizzTable[fizzTail + active_lane()] = myIdx;
}
if(buzz){
buzzTable[buzzTail + active_lane()] = myIdx;
}

fizzNum = popcnt(ballot(fizz));
buzzNum = popcnt(ballot(buzz));
if(active_lane() == 0){
fizzTail += fizzNum;
buzzTail += buzzNum;
}
__syncthreads(); // Thread barrier, this is the only synchronization needed.
}

The above implements parallel fizzbuzz with 100% utilization and only one synchronization primitive. The syncthreads(); call is extremely efficient for SIMD programming: if you have a workgroup of size 64 on AMD platforms, it is nearly a no-op (aside from a relatively cheap L1 memory-barrier to ensure all threads are reading the same value).

In practice, the above methodology scales to +1024 threads at a time on AMD and NVidia GPUs if you increase the work-item or CUDA-block size to the max.

If you tried to write 64-way parallel fizzBuzz, what would it look like? I think the above implementation, using active_lane(), is pretty elegant.

---------

I read this pattern off of Github with some high-speed GPU-raytracing code. It seems that a lot of GPU-programmers know this pattern already, and use it to increase utilization of the SIMD-cores.
The Internet Has a C/C++ Problem and Developers Don't Want to Deal with It
I once read (sorry can't find cite) that Waze and Google maps run roughly the same routing algorithm now, but Waze is hyper-optimized for time whereas Google maps is optimized for some nebulous quality akin to "fastest reasonable route" where unreasonable factors are things like using small roads, exiting and entering the high a bunch, extra turns, etc.

So Waze probably is faster by a bit, but not a whole ton.

In my experience, Google Maps ETA has gotten to be frighteningly accurate in the past 6 months. For situations where traffic doesn't materially change during the trip, my ETA will be within 2 minutes of arrival even on trips of over an hour.
They published the story 4 hours after the incident happened. That's nowhere near enough time for SpaceX to respond, as such, it is indeed on the journalist in my opinion. Not only is it unlikely that the author found out immediately as it happened, it's unlikely that SpaceX could get a statement ready in 2 maybe 3 hours (assuming an hour total between author seeing this info and a SpaceX rep seeing his email about it), while also leaving the author time to write the article.
Can't say anything about support, but the x11 settings for hidpi and all that are all because of his choice of window manager. i3 is a very hands off, only manages windows kind of thing. Using a full desktop environment will make forgoing all the editing of files.

The rest seems to be normal bsd setup stuff, but I know little of that beyond setting up a few virtual machines to test things
This is a provocative experiment, both in terms of the results and certain elements of the employed experimental techniques.

What I found particularly interesting is that it elicits a consideration of what is memory. Is the association of stimulus-response a 'memory'? (Where does that leave 'instinct'?)

One could argue that the experiment has created an artificial 'instinct' and not 'memory' given that there was no 'experience'. If one were to counter that the invasive (modifying) preparatory steps of the experiment are "the experience", then we have discarded the 'body' entirely and are in the realm of brains in vat conception of 'consciousness', since we are asserting that direct manipulation of brain is functionally equivalent to 'phenomena' as experienced through the mediation of the body, the sensory apparatus, and the nervous system.
> It is for this reason I don't let any apps track my commute to work.

That doesn't seem like it would do you any good. Either other people on the road are reporting their speed and location to Waze (in which case your resistance is futile), or no one is, in which case Waze will presumably assume that there is no traffic on the road and send more people down it.
Occasionally, but not when 5% of the potential freeway traffic gets routed onto the same tiny sidestreet. Waze is also notorious for asking people to make impossible left turns across 10 lanes of traffic.
Serious question but is there a reason more isn't invested in public transport? I've only ever lived in the UK before Tokyo but America is rich enough I don't see why they can't do what those places do.
I solved it (was some weeks ago) by using a relay with a Raspberry attached to the remote shutter port.
A Memory Safety Research Agenda
The GPL is only a copyright license. The GPL DOES NOT impose restrictions on usage, where "usage" vs "distribution" gets defined by copyright law itself.

That's one of GPL's biggest strengths.

Also successful software packages that are GPL are GPL for everyone. You don't have a mother company that can bypass the GPL due to them owning the copyright. And when you do it's usually a scam that people can smell.

You can't say about a license change that it is in the "spirit of GPL" when the mother company, MongoDB Inc, doesn't have to play by the same rules as everyone else.

So I'm sorry, but when you're talking about the "spirit of GPL", you don't know what you're talking about.
Ah thanks. I’ve been reading around, but most posts I see are from 2017 or earlier. I’ve been thinking of giving it a go on my xps, but wasn’t sure about driver support. Looks like support is there.
I agree. I would also point out that this doesn't have much advantage (if it has any) over simple recursion, performance wise.

First, the depth (the amount of storage for traversal) typically is on the order of log2(n) and so this gets amortized very quickly when traversing nodes.

What if the tree is unbalanced?

If the tree is unbalanced you will have all sorts of other problems like problems with inserting or searching. Since trees are typically used for efficient searching and traversal is done more efficiently with just plain array (or list) it is really hard to find any real-world trees that are not kept balanced somehow.
There was this post recently about OpenBSD on the Lenovo X1 Carbon https://jcs.org/2019/08/14/x1c7 .

From what I read OpenBSD can be better supported than FreeBSD on laptops, especially the Thinkpads as that's what a lot of OpenBSD devs used.
This is the first time I see the C language referred as Clang. Yes, I know LLVM.
Yea, counter-point: IF makes me more anxious and irritable, and no way it makes me stronger as someone who lifts regularly (5x week)...

IIRC some studies I’ve read say that IF increases cortisol levels which would explain the anxiety and which I believe is bad for muscle-building.
Last time I got a new laptop (which probably was a few years ago now) the price just wasn't reasonable for a large enough SSD, 512GB is my minimum for it's occasional multimedia uses and database work.

Even now prices have apparently come down but larger drives often only come with high end SKU's. Looking at the MS Surface page (https://www.microsoft.com/en-au/store/config/Surface-Laptop-...) 512GB is only available if I also get 16GB of RAM and a core i7 model, which is well beyond my needs and desire to pay for. 1TB is only comes with the silver model.

So even my next laptop might feature spinning rust, if any exist. On the plus side HDD's add a level of chunkiness I like in laptops.
I was also surprised by the interesting science. We both clicked, though, so maybe good title.
AFAIK, this is not really accurate; Google Maps, Apple Maps, and Waze often pick different routes between the same two points at the same time of day in my (admittedly informal) experiments. Google and Apple pretty consistently favored major roads unless there were serious traffic backups on them, while during anything remotely resembling commuting hour, Waze was frequently acting like your crazy uncle who swears taking 28 residential roads, two of which are unpaved and the last of which is an alleyway that ends in an unprotected left turn across three lanes of dense traffic, is clearly the best route.

(And while that's an exaggeration, Waze has consistently been far more likely to send me down unpaved roads, ridiculously steep hills, and, yes, unprotected left turns onto busy highways, presumably because the residential road I was on was lower traffic than the parallel road one block away with traffic lights.)
This happens in Fremont in the bay area. Its right between 880 and 680 so when one freeway backs up people flood onto the streets to save a few minutes. Also there is a section of Mission blvd that runs parallel to 680 that people started taking as a shortcut. Many of these streets are not designed for that level of traffic. The city resorted to strategically adding some stop signs and "no right turn" signs from what I heard.
Travel time isn't everything. Negotiating a series of scenic turns is often more pleasant than inching along on the highway, even if the latter takes less time.
Or because the communities were built before car culture totally took over the area. I think it's more dependent on geography/geology.

Some of these gnarly streets are in places like the Hollywood Hills, where people try and get around the chokepoint that is created by the Sepulveda pass. But plenty of them are in working class neighborhoods like Echo Park, like this very steep street: https://www.latimes.com/local/california/la-me-lopez-echo-pa...
Are your users frustrated? Do you know why they left?
> That should be ok, there are many other places where such questions can be asked.

Won't say "citation needed", but I will say that outside of reddit I do not frequently visit any such places.

And reddit has its own problems and also hardly counts as "many".
I've been using FreeBSD since version 4.3 on and off. Most of the time I've used it with variants of ThinkPads, recent ones were T530i and E480. The longest period I've spent as my main OS was long time ago on Sony Vaio VGN-FS550. In a sense it has improved a lot, but also managed to remain complicated for someone who just want to test things without prior knowledge. But yes, this is typical amount of things you need to undergo when starting with FreeBSD. And it remained pretty much the same for the past 19 years. I've switched to Linux as my main OS, just because I wanted things to work out of the box.
You need to create a developer account, learn how to use xCode (not at all trivial), and even with all that you need to reinstall it every 7 days.

Effectively sideloading does not exist. The fact that 0.001 percent of people who own an iPhone can, with great effort, sideload apps is irrelevant.
You know something is good when it has to be recommended twice in one comment.

I like to add one point here: Mesh network is not only good for protest, it also useful when network is unstable, for example during bad weather, disastrous event etc. Let's don't forget mesh net can also be use to off-load some of the traffic from the "Normal network", plus good for privacy (If the network is built on top a verified open source structure).

I don't think it's a good idea of advertising a type of tech "good for protest/revolution/revolt/something like that". If you do that, the tech will never be adopted.
Near my downtown side-streets there are temporary barriers that you can actually drive around (but you know you're going against what the sign says).

I presume enforcement is always an option.

Another point, on my street there used to be horrible backup right in front of my house, but once the light near the school nearby went to a half-duplex mode, apps stopped recommending it as a sure bet shortcut. Once that happened traffic lowered considerably.
I am surprised most people on hackernews don't know but the CSGO engine is optimized for extreme frame rates. When played competitively they go for low resolution and ultra frame rates, thus the bottleneck isnt the GPU it becomes the CPU.
So I could put this on my X1 Extreme? I wonder if it would improve battery life.
These "minimal battery" concepts are great. They are the sort of thing that would be fantastic (and maintainable) in the event of a grid apocalypse.

A similar one would be a hot water cylinder that only heats up when the sun is shining.

And maybe something that fills scuba bottles to store electricity as compressed air. etc.
Oregon State has one, geared toward a second bachelor's:

https://ecampus.oregonstate.edu/online-degrees/undergraduate...
I wonder if, for the stated design goal of a zero-battery solution, something like a solar thermal concentrator + Einstein–Szilard refrigerator would work. Something as simple as an icyball or two kept charged via the solar thermal system might work as well.

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

https://en.wikipedia.org/wiki/Icyball
No! But assembling the talent to build a product without a potential source of revenue is difficult.
You can see some examples of this heuristic thinking in "Thinking, Fast and Slow": https://en.wikipedia.org/wiki/Thinking,_Fast_and_Slow#Two_sy...
Actually can you just put traffic-triggered off-by-default red lights, similar to the ones used on highway on-ramps to trickle cars in during rush hour?

If only one or two cars are seen on the road, turn the light off. If more than that, turn it on and allow one car per green every several seconds. It will reduce throughput enough that Waze will automatically route away from it (and eventually Waze editors will have to figure out how to encode it) without affecting normal residential traffic.

For whatever reason, people don't always care about speed limits but they usually don't run red lights.
I did a quick search on the relationship between traffic systems and Nash's Equilibrium and ran across this. A good read.

https://www.cs.cornell.edu/home/kleinber/networks-book/netwo...
It would be a good start if the US would build proper train connections in the corridors where that makes financial sense today. For example the Northeast Corridor could use a lot more investment.
I have a 2015 Intel i5 6600K, it regularly hits its boost frequency of 3.9 Ghz.
Another fun alternative Chinese script is https://en.wikipedia.org/wiki/Xiao%27erjing. It's generally fun to see the usually strict relationship between Chinese graphs and the Chinese language taken apart and examined in isolation. Whether that's taking Chinese or Chinese-like graphs and re-using them for other languages (https://en.wikipedia.org/wiki/Sawndip https://en.wikipedia.org/wiki/Tangut_script https://en.wikipedia.org/wiki/Ch%E1%BB%AF_N%C3%B4m https://en.wikipedia.org/wiki/Man%27y%C5%8Dgana) or other writing systems for Chinese such as Nushu or Xiaoerjing.

It's also interesting to see this relationship break down in studies of very ancient Chinese and Chinese etymology where you often have to consider the development of Chinese graphs and Chinese words/morphemes in isolation.
Yes, I was running Windows 10 on a 7200rpm drive. Reinstalled onto a cheap $50 SATA 256GB SSD (AOPEN SU800): night and day difference. Blew me away.

Obviously M.2 or NVME or PCIE would be a lot better. But even old SATA still made a huge difference.
Faster that Windows!
Don't looks impressive if Debian is running on a SDD and Windows on a magnetic hard disk. However, even on a magnetic hard disk, any modern Linux is more faster that Windows. Specially if is windows 10.

I don't know what M$ did, but every time that I used Windows 10, I see it hitting very hard the hard disk without doing nothing.
Then why hasn’t that happened with Signal yet? Being open source may not have much of a correlation on how features change for such apps.
Where in the page is the evidence of the speed claim made in the headline for this submission?

Edit: title has now been changed
Millionaires buy products, billionaires buy society.
I eat a plant based diet but mostly cook myself and only eat out at places that know how to work with vegetables.

It all comes down to seasoning and knowing how to cook, but all the mind blowing flavours still exist and can be invoked at every meal.
Woah.

Can state law change this, or is this a federal funding requirement? (I can't imagine it's a constitutional requirement. Plenty of publicly-funded services from food stamps to the restrooms at Area 51 have restrictions on which members of the general public can use them.)
This article is making a case for standardized interfaces and the techniques two popular open source projects use to implement it in C. I always find it nice to read articles taking an explanatory look at open source projects, regardless of if it presents anything "novel" in the process.

A non-obvious place where this pattern also exists is React components in JavaScript. Components define an interface via props, but the consumer of the component is the one who provides the event handlers. It's an inversion of control in the same way that passing around function pointers to complete an interface is.
I live in Los Angeles. Waze only learns a new route if you teach it a route. One time I was stuck in the hills in the Valley and traffic was particularly awful. It kept re-routing, and I was wondering why it wasn't sending me on a particular route, so I decided to go that way. Well, next day the route is full of people. This has happened a few times.

So now I have routes that I know and purposely do not share with any of these apps. I make everyone in the car turn off Waze, Google, etc. If I am in an Uber or Lyft, I will just sit there. I once shared a route with an Uber driver and it's now filled with Wazers. I also have routes where I ignore the no turn signs but Waze respects those so I don't care.
> How many questions that get downvoted actually haven't done any research?

The guidelines say "shows research" - hover over the downvote arrow on StackOverflow and read the tooltip - so who knows how many? That said, you're discussing it for you writing a well researched question, but the META arguments are usually for the thousands of "give me the codez pls" homework dumps which get filtered out before most people see them, because the downvotes put them into the review queues and effectively cause them to be filtered.

> the existence of a guideline is not a good reason for the guideline to exist

SO have not changed this policy, despite lots of feedback, for years and years. Shouldn't we assume they have good reasons even if we don't know what they are?

"we're working together to build a library of detailed answers to every question about programming."

The users of a library are not the book authors. The feeling of the book authors about the reviews on their books doesn't come into the design of a library, for one example. So maybe we do know what their reasons are - their actions say they bring in a 'welcoming' policy before they change the downvotes.

> How is "explain why you are downvoting" a punishment if what you're doing is actually reasonable?

You said "high-rank users will be more accountable for their behaviour [which is] being snarky asses", that is very different from "every downvote should be explained".

> You're definitely lacking empathy right now if you don not see that downvotes will never have the "intention" you said, at least for most people.

I have argued the same thing on HN before, downvotes is a terrible UI design for SO. But they are the design, and here I'm arguing that should be respected.
Grow your business globally using website translation services
But before (and after) the trees re-uptake the carbon, the poisonous parts from dirty emissions are still harming people, animals, and other life.
LA is quite fine if you don't have to go very far and can stay on local streets.

However, if you have to switch enclaves by crossing one of the choke points, you will get hammered by traffic.
The lower bounds is where it makes a big difference for most people who are GPU bound at the top end. The 1% and 0.1% of slowest frames when playing a game show huge differences based on CPU and RAM. For the smoothest gaming you need to remove all the potential bottlenecks of the system thats one of the reasons gaming has always pushed the boundaries on CPU/GPU.
Man, hold your horses.

Assume you have 64GB of memory devoted to binary tree (of just integers), assuming the tree is balanced.

Your node is two pointers + integer (24 bytes). That gives 2666666667 nodes. Balanced tree will have 32 levels (log2(2666666667) ~= 31). When doing recursion you just need to keep pointer to the level, so this is 32 times pointer or just about 256 bytes of your cache.

Also, even if we were storing data in memory (and not in cache) this still is orders of magnitude less effort than accessing the memory for the large data structure.
Waze has given me a lot of stupid advice in the last couple years. It will take me off a freeway, requiring many lane changes in heavy traffic, only to route me onto a clogged surface street and back onto the freeway after an exit or two. It usually fails to save me any time, and causes a lot of headaches. I stick with Google Maps now unless I need the police and hazard warnings(long road trips mostly).
>Russia sent agents from the middle of nowhere

Well, actually not from the middle of nowhere. Thanks to the said investigation and checks' photos we know that they were sent literally from one of the HQ buildings in Moscow.:D
Graduated from Oregon state CS online not too long ago, not the best but not a scam either.
A tax for the sources is a great idea, but you also have to take into account where they are burnt. Flying is especially bad because the emissions are generated high in the atmosphere. The greenhouse effect is worse by a factor two or three compared to ground level emissions.
That was similar to my experience but I haven't used it in several years, shortly after the Google acquisition my account broke. Waze seemed to want to route me through school zones all the time. Google Navigate didn't seem to suffer from this quirk. It never occurred to me that those quirky routes could be due to competition in an anon social network ranking contest.
All groups of people found in South Africa were involved in building the infrastructure that I am using and paying for. Beside, that shouldn't even matter because it was state's resources which were used. Even now, it is state resources which are being used to build electricity infrastructure to replace the old.

What matters is that now the infrastructure is built for all group of people. In 5 years'time, the infrastructure will be completely new [1]. But still, no group of people should claim that they did us a favour by using state's resources to build the infrastructure. It is their job to provide electricity for all citizens.

[1] https://en.wikipedia.org/wiki/List_of_power_stations_in_Sout...
OP was referring to the amount of calories stored in a pound of adipose tissue, which is around 3500 kcals.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2376744/
What a load of BS.

Sounds like you couldn't program before SO.
This is a really great idea. It almost reminds me of AC systems that work by freezing water using solar energy.
And rust ndarray implements strided mutable "slices" too, interleaved.
Read up about 1% and 0.1% slowest frame rates, it's a somewhat unknown metric but makes a big difference in the immersion of a game.