skysight-inc/HackerNews huggingface dataset:
Here is a different take on it. We can use #define to inform the header about the properties of certain symbols.

Here is my oob.c program. I will show the output, and then the content of "oob.h".

#include <stdlib.h>
#include <stdio.h>
#include "oob.h"

int oob_fail(const char *file, int line)
{
fprintf(stderr, "%s:%d:out of bounds array access\n", file, line);
abort();
}

/*
* Declare properties of array type x
*/
#define ARRAY_ELTYPE_x int /* element type is int */
#define ARRAY_SIZE_x 7 /* number of elements is 7 */

/*
* Ensure array type x is fully declared at file scope
*/
ARRAY_FULLTYPE(x);

/*
* Inform the OOB module that the identifiers p and a are
* used as variables related to type x: either pointers
* to it or values.
*/
#define ARRAY_TYPEOF_p x
#define ARRAY_TYPEOF_a x

int get_elem(ARRAY_TYPE(x) *p, int i)
{
return APREF(p, i);
}

int main(void)
{
ARRAY_TYPE(x) a = ARRAY_INIT(1, 2, 3);

for (size_t i = 0; i <= ARRAY_SIZEOF(a); i++)
printf("a[%zd] == %d\n", i, get_elem(&a, i));

return 0;
}

Output:

$ ./oob
a[0] == 1
a[1] == 2
a[2] == 3
a[3] == 0
a[4] == 0
a[5] == 0
a[6] == 0
oob.c:31:out of bounds array access
Aborted (core dumped)

The content of "oob.h"

#ifndef OOB_H_435E_FDE9
#define OOB_H_435E_FDE9

int oob_fail(const char *file, int line);

#define OOB_PREFIX oob_ident_
#define OOB_XCAT(X, Y) X ## Y
#define OOB_CAT(X, Y) OOB_XCAT(X, Y)

#define ARRAY_ELTYPE(T) OOB_CAT(ARRAY_ELTYPE_, T)
#define ARRAY_SIZE(T) OOB_CAT(ARRAY_SIZE_, T)
#define ARRAY_TAG(T) OOB_CAT(ARRAY_TAG_, T)

#define ARRAY_FULLTYPE(T) \
struct ARRAY_TAG(T) { \
ARRAY_ELTYPE(T) a[ARRAY_SIZE(T)]; \
}

#define ARRAY_TYPE(T) struct ARRAY_TAG(T)

#define ARRAY_TYPEOF(V) OOB_CAT(ARRAY_TYPEOF_, V)
#define ARRAY_SIZEOF(V) ARRAY_SIZE(ARRAY_TYPEOF(V))

#define ARRAY_INIT(...) { { __VA_ARGS__ } }

#define AREF(ARRAY, I) \
(((size_t) (I) >= ARRAY_SIZEOF(ARRAY)) \
? oob_fail(__FILE__, __LINE__), (ARRAY).a[0] \
: (ARRAY).a[I])

#define APREF(PARRAY, I) \
(((size_t) (I) >= ARRAY_SIZEOF(PARRAY)) \
? oob_fail(__FILE__, __LINE__), (PARRAY)->a[0] \
: (PARRAY)->a[I])

#endif

Preprocessor invoked on oob.c (snipped down to the relevant part after the run-time support function oob_fail):

struct ARRAY_TAG_x { int a[7]; };

int get_elem(struct ARRAY_TAG_x *p, int i)
{
return (((size_t) (i) >= 7) ? oob_fail("oob.c", 31), (p)->a[0] : (p)->a[i]);
}

int main(void)
{
struct ARRAY_TAG_x a = { { 1, 2, 3 } };

for (size_t i = 0; i <= 7; i++)
printf("a[%zd] == %d\n", i, get_elem(&a, i));

return 0;
}

It's clean enough to be readable (except, of course, code dense with AREF or APREF calls will be a mess). Uses arrays wrapped in structs, so you can pass arrays by value.

You have to make a list of your variables that are involved and write some #define lines for them.

Same for the array types.
I know a dev fresh out of college who became proficient in COBOL, got a govt job offer, and now is working as a lifeguard because places that hire COBOL programmers take forever to process their paperwork. Presumably he'll start his real job in late summer when they get their act together.
Handmade Time Machine
It still wants half a gig on the nodes. They all want 500+MB
Nah it's caused by poor family cultures that lead to mental illness and drug addiction. Short of rounding up families and forcing them to be responsible for their children, teens, and young adults, there's actually nothing we can do to get these people off the street.

You know it's funny. A lot of people look at the US and turn up their noses at our "poor infrastructure". Just a couple of months ago I watched a very tropey discussion take place on the lack of a robust US rail system. In another discussion, the lack of a robust US healthcare system.

All the armchair pundits come out to point to other countries as leaders in these areas, but when it comes to homelessness, I see a lot less of it pointing to places like Japan, Singapore and the APAC region, where homelessness is a cultural stigma placed not just on the individual but on the family. Family name and culture mean something. Generational safety nets are present because the family cares for the individual simply because they share a common genealogy. Families will go very far to avoid allowing a member of their heritage to become a vagabond.

Weird to me how this part is left out of the conversation. Perhaps this is a consequence of our indulgence in unrestricted libertarian individualism.
> I’ll simply note - at the 1000 foot view - there are 115,000 homeless people, and $17B was spent on them.

Wrong.

The $17B spent on homelessness spent over several years on the problem of homelessness was not (even in a loose sense) divided across the set of people currently homeless, or a set the same size. It was spent on the set of people who were homeless or at risk of homelessness at some point during the period of expenditures, which is a much larger number.
Yeah. Duh. If you had included, in your prompt, the NHTSA quote that I quoted, ChatGPT might have been more helpful to you. Viz: On Wednesday, the National Highway Traffic Safety Administration issued a notice of proposed rulemaking that would see automatic emergency braking become a standard feature on all new light passenger vehicles.

That point being: maybe NHTSA's advocacy of a requirement for all new vehicles is beyond the scope of its mission and it should confine itself to providing information to the policy makers who might possibly understand the tradeoffs.
In a way, the US "handles" it very efficiently, but only in terms of spending the money and funnel them to the related interest group, but not in terms of solving the homeless problem.

Because for them, problem is their opportunity.
I need you to be hit with a $50,000,000 bunker bomb. Your logic is ready to bomb itself
I know this is offtopic but I have a question: if the title of the video is too long, then do I just cut off some off it to include the [video] label?
NVLink is the GPU interconnect and part of the memory fabric. InfiniBand at 400Gbps is the data and storage interconnect for the CPUs but also to build clusters bigger than 256 GPUs. It's all in the docs.
> Whitney feels that researchers are overcoming the computational obstacles and that computers, despite their considerable expense, have already been proved cost-effective. With a computer, one will need a much smaller movie staff. Lighting crews, carpenters and cameramen are expendable. One can film in any weather and dispense with travel to exotic sites.

thanks for posting this! in reality over the last 40 years, movies got bigger and employed far more people
Definitely giving them $4700/month no strings attached will solve the problem quickly. I get it, white collar people are the heaviest drug users, but the fent will kill them in the street in a couple of months. That’s just $10,400 spent, which is much better than where we are now. It is, however, a very dark solution, and not humane at all.
You probably still won't get it, but replace "dog" with "kid" or "friend" and say that sentence again. That might give you a sense of how attached a lot of people are to their dogs.
> Billions going where, exactly? If the problems growing, and you are just sinking billions into it without making any measurable impact, where the fuck is the money going?

Well, that’s simple. Most of the money goes to politically well connected non-profits with missions around alleviating homelessness. The problem is that if you alleviate homelessness, the money goes away and everybody at that non-profit loses their jobs. I’m not specifically accusing anyone of corruption, but the incentives aren’t good.
Well, physically, you really need three independent machines. Which means three copies of the file, three processes, three verifications, and so on, and a way for those processes to communicate with each other and "vote". Then you run into the problem of definition - is a cluster a quine? Note that most of the "primordial bit flip" problems go away if you make N >> 3 and design each machine to "fail fast".
Article from 2022.
Fun detail not mentioned in any of the news reports I've seen so far about the incursion: the confirmed Neo-nazi ties of the head of one of the fighting units, the Russian Volunteer Corps:

https://en.wikipedia.org/wiki/Denis_Kapustin_(militant)
A lot of people are angry at churches. Mostly with good reason. So they tend to get the torch a lot more than your average business.
Cons of Cost-Push Inflation

Increased Prices: The result of any inflation is going to be increased prices on goods or services. This can impact spending behavior if consumers aren't able to receive more pay for their work as they'll have less to spend on products that cost more.

Decreasing Demand: If jobs and wages aren't increased then inflation actually can cause a decrease in demand. If consumers have less money to spend then they won't be able to keep up spending at higher prices.

Creates Uncertainty: One of the biggest problems with inflation is that it creates uncertainty with consumers, investors, and businesses alike. Businesses and consumers are less likely to make decisions when there is so much unknown about the future as the effects of inflation take place. This can lead to a decrease in spending and investment, which is typically detrimental to the economy.

https://seekingalpha.com/article/4488384-cost-push-inflation...
The vast majority of people who are homeless don't suffer from mental illness or drug addiction. The most visible do, but not most of them. And of those, a bunch didn't suffer from drug addiction when they become homeless.
Apple's security marketing is pushing people away
I'm wondering if Modelica might be useful for this. Its an open source modeling language though I've never used it. Its basically writing models with differential equations for each of the components and then connect them together to form a system.

https://en.wikipedia.org/wiki/Modelica
Wow. That is pretty brilliant.
And reduce production run by 20% to entice scalpers to buy all of your stock instantly.
Be weary of ERP solutions and vendors selling one stop silver bullet integrations for B2B. We've had clients get badly burnt that way. The setup fees are often large, and doing any kind of customization can require going through the provider's reps. Implementing Kalviyo on an ERP storefront site cost the client somewhere around $5,000, which, on any number of other e-commerce platforms we could have done for them in an hour at our hourly rate (which is less than $5,000). Let me know if you want to talk B2B e-commerce as I have plenty of war stories.
Technical Debt Is Over-Used
We need viable political choices with incentives to compete on something other than alienating voters who would be expected to vote for the other side for accountability (which mostly means we need proportional representation.)

That is not the same as needing the opposing party in America’s duopolistic system.
Carmack was the textbook definition of rock star programmer and had a sizable portion of company ownership when they released doom/quake code, kinda hard to emulate that as a cog in the machine
Forgive me for the vast oversimplification, but…

17 billion over 4 years (per the article)

17 billion dollars => 113 million square feet @ $150/sqft
113 million square feet => 113,000 housing units @ 1000 square feet

This is not a realistic comparison, but thinking about it as an upper bounds could be a useful yardstick by which to compare actual outcomes.
The Internet is not that big, though. You could potentially try all 2^32 IPv4 addresses with your password of choice and see when it came up here.
Super cool!

People interested in this should also give SnapCalorie a try. Can help with the tracking side of the equation.
I think above freezing in winter might generally be considered nice weather.
The rich have a much lower marginal utility per dollar than the poor. My goal at least is to maximize utility, so increasing taxes on those who enjoy dollars less is the correct decision.
wouldn't that be stopped by CORS blocking which is pretty much the norm for large websites?
I thought that was coming down from the trees? And didn't some people think even the trees were a mistake?
1. Homeless are drug addicts.

2. Therefore, the homelessness is caused by drug addiction.

Not exactly sound reasoning. Plenty of people with mental illness and drug addiction still manage to pay rent.

No one disputes the rates of addiction and mental illness among the homeless. California has neither the highest rates for drug addiction/overdoses nor the highest rates of mental illness, yet it has the highest rate of homelessness.

There is no correlation between rates of mental illness and rates of homelessness. There is no correlation between drug addiction rates and homelessness. There is a strong Correlation between rents and homelessness.

Why? Being mentally ill and a drug addict doesn't automatically make you homeless in an area where rent for a room is $400/month.
apartments would be cheaper than 400K per.
> Do you think that if every homeless person took a little more personal responsibility this issue would be fixed already?

Yes. A little more personal responsibility leads to taking more and more personal responsibility. I dislike talking about homeless people as a homogenous group, but the visibly/street homeless need to take more responsibility for their life in order to improve it. There are many resources available that can make their journey out of homelessness faster.
I'm open to giving someone free housing if they aren't on drugs. I just can't wrap my head around why we should reward people with free housing for being drug addicts.

I have lots of sympathy for the drug-free homeless community. I think the drug addicted should be put in treatment programs or charged for possession of these drugs so that they can be treated in prison. I'm angry that we allow people to smoke fentanyl out in the open in SF. It's bad for everyone including those who are addicted.
Incrementally improving lookup latency in distributed hash table systems
I don't think it's a positive news.
Instead of eliminating deserts let's make them even more terrible so there will be no hope in future to make them green
Harmac ended up being bought by the people who actually operated the mill from an American company that went bankrupt, and has been running well since 2008.
I know this article is about Strang from the context of his retirement a few weeks ago, but the title is clickbait.
It's not even a lack of homes--its a lack of access to existing homes. There are already ~16 million vacant homes in the USA, a tiny fraction of which could house the homeless if there were political will.

We all can say homelessness is a problem, but if you ask these people hoarding vacant homes if they'd be willing to house a homeless person on their property, or if you ask a politician whether they are willing to nationalize those properties to provide homes, suddenly their response will be "Uhh... Ohh... Hrrmm... I guess it's not that big a problem." The rubber is not hitting the road.
I don't entirely agree with this article ... it's quite possible to "pass" an array as a pointer to an array type, as opposed to a decayed pointer, e.g.

void f( int (*a) [5] );
int a[5] = {1, 2, 3, 4, 5};
f( &a );

The larger problem here is more that this mechanism doesn't support arbitrary sizes. Which probably makes sense from how c handles memory, but it's very restrictive.

Incidentally, I recently had an argument with a friend who had been "coding for years" in c, that the memory address of "a" and "&a" in the example above are identical. He thought it was so obvious I was wrong (because pointers) that I had to code it and print the addresses for him and prove they're the same. He was completely mind-blown xD
It's a very simple cycle.

The state spends money to help the homeless.

The broad availability of help for the homeless increases the likelihood that homeless will migrate to and stay in the state.

Repeat.
They're using ordinary power tools, such as bandsaws and sanders. There's some hand tool work on the connections between beams. It looks like cabinetmaking carpentry on a larger scale, with lots of chiseled joints.[1]

The real hand work is on artistic stonework. That really is being done by hand. Omni CNC's proposals to make replacement parts with their stone-cutting computer controlled milling machines were turned down.[2]

[1] https://www.msn.com/en-us/video/travel/notre-dame-restoratio...

[2] https://www.omni-cnc.com/how-cnc-stone-cutting-machine-help-...
Getting PR_END_OF_FILE_ERROR on Firefox, anyone else?
AI is transforming our world – it is on all of us to make sure that it goes well
A disposable mask with open sides cannot possibly filter particles that small out of the air you breathe.

From basic physics -- of course it can. They don't work particularly well, but they do partly obstruct small droplet flow. In any case, there are easily findable studies about this asserting that even that crap-ola disposable masks have at least some measurable efficacy.
Seems pretty accurate. Based on my (almost true) resume[1] the top result was:

Man Group Alpha Tech | Quant Python Engineer | London, UK

[1] Resume:

male
sharpshooter
can run 1 mile in under 6 minutes
bench press 300 lbs
IQ of 137
7/10 attractiveness
10% bodyfat

:D
It can always be a coincidence, but I would get colds regularly (twice a year at least) and pollen allergy, sometimes severe ones, for decades. Plus some coughing and other transmissible sicknesses. That all that has stopped since 2020 at the same time as I started wearing masks and washing my hands very frequently would be an extraordinary coincidence.

Even if we exclude 2020 and 2021 as freak years because my interpersonal interactions have been drastically minimized, that still leaves one year and half.

I haven't had Covid either, and neither did my partner, and it could also be a coincidence and not related at all to our strict masking and constant ventilation policy, but again that would be an extraordinary coincidence.
I could see people switching jobs more often to keep up with inflation, which would lead to losses in productivity.

smaller businesses getting pushed out because the ability to manage prices instability makes it harder to navigate.
Upthread the author says one of the three servers is in Digital Ocean, which gives you an AS to target. Reverse engineer the web page so you can capture the websocket to your terminal, grep it for your IP, and search all of DO's ipv4 address space. use Shodan to limit your targets to only machines with an open port 22 to make it go faster.
Not sure I follow what you're trying to say. But the trials should end around the same time the manufactures can supply it.

If you can manufacture a vaccine that you cannot sell then you have wasted production space. Like the trials had a pre-determined duration so if you know the trial ends in August and you know it takes 1 month to staff up the production line then at the end of June check the preliminary data and make a call to staff up the factory in anticipation of the trial succeeding.

But in order for the vaccines to be in a trial (testing) by March they had to have already been in development before March, I suspect a lot of these companies decided in like January/February to start staffing people to work on a vaccine; how and why would that have been faster if those federal people weren't fired?
> In closed-source designs, the lack of access to information acts as a barrier for adversaries

ROFL. Acts as a barrier for script kiddies, until the tool is released on Reddit, then you're just screwt.
I only want 3 changes.

1) I want to mark books as "read" so they are in a separate list

2) I want a true 8x11 display area for PDFs

3) I want a slot for a micro-sd card to hold PDFS
Are you sure? Did it fall from the sky? No, it didn't. You saved up $27,000 and then you bought the bitcoin. So first you had to have $27,000, otherwise none of the subsequent steps would have been possible.
Why cultivated meat is still so hard to find
Scrum was invented to manage a team of
dysfunctional COBOL programmers at a bank. That says it all about it.

It's mostly for less skilled and unmotivated workers working on a relatively simple projects (e.g. corporate/enterprise software development).

Leaving aside stupid rituals and ceremonies, which are time-wasters, and motivation-killers. Scrum aims to address the task management aspect by approaching it as a tickets bin packing problem. However, it relies on the false assumption that accurate task estimation is possible.

For reactive or unplanned work, short sprints can be effectively replaced by a pure Kanban approach.

For proactive or planned work, long sprints can be better substituted with mini-waterfall SDLCs.

While the post mentions the Shape Up method and highlights that FAANG companies do not use Scrum, it fails to mention that these companies utilize mini-waterfall SDLCs with approximately six-week cycles.
K-EmoPhone: Mobile and Wearable Dataset with Emotion, Stress, Attention Labels
I discovered it in 2020 when it seemed the world really was falling apart, and agree that it was strangely calming to think about such huge timescales.
It’s only a matter of time until someone starts screening for mental state and suggesting advertisements or soliciting based on receptiveness.
As a parent, I’m hoping technology like this would be better at flagging abusive behavior, depression, or mental fragility.
Ok, call it handouts. But if you just care about the budget, providing housing is the cheapest way to solve the problem. Will some people "take advantage" of this arrangement? Sure. Does it matter that much?
This idea of worrying about who gets what for free before actually solving the problem, is a major blocker in solving the homelessness problem. And not only do the homeless suffer for it, the people who have work or homes in the area suffer for the lack of pragmatism about it.
FDSKey – Famicom Disk System drive emulator
The small towns in BC don’t have their homeless issues, because without services, you either die or are in a bus to Vancouver. A common route for homeless people in Montana is to wind up in Spokane first and then Seattle later, since you can’t really survive in MT at all without a job, and while Spokane used to provide a bunch of flop houses (my grandfather owned one), those are gone now and it is too cold to live unsheltered there in the winter. Cities do pick up much of a national problem because of the social resources they can provide, and accordingly only national solutions have a chance of working.
Looking at the transcript, I barely see any mention of California, and when it's mentioned there is nothing about their policies.

https://www.buzzsprout.com/1112270/3883985-homelessness
Your OS version may vary (I'm not up to date) but look for ‘App Exposé’ in the Trackpad settings.
Relevant paragraphs:

> How this de-anonymization attack works is difficult to explain but relatively easy to grasp once you have the gist. Someone carrying out the attack needs a few things to get started: a website they control, a list of accounts tied to people they want to identify as having visited that site, and content posted to the platforms of the accounts on their target list that either allows the targeted accounts to view that content or blocks them from viewing it—the attack works both ways.

> Next, the attacker embeds the aforementioned content on the malicious website. Then they wait to see who clicks. If anyone on the targeted list visits the site, the attackers will know who they are by analyzing which users can (or cannot) view the embedded content.

> The attack takes advantage of a number of factors most people likely take for granted: Many major services—from YouTube to Dropbox—allow users to host media and embed it on a third-party website. Regular users typically have an account with these ubiquitous services and, crucially, they often stay logged into these platforms on their phones or computers.

Isn't this one of the older forms of de-anonymization? And this is pretty visible to the user too, embeds hint to even non-technical people they can be tracked across websites.