skysight-inc/HackerNews huggingface dataset:
"Pop quiz! What will the following program return?

int main() {
printf("Hello World!\n");
}

Easy, right? It's gotta be 0, because since at least ISO/IEC 9899:1999 (aka "C99"), main shall implicitly return 0 if you, the forgetful programmer, didn't bother to explicitly return a value:"

As hobbyist programer I write small programs and run them on older computers, running a variety of OS. Among other things, I use -std=c89 for various reasons. Thus, I know the answer to the pop quiz, for me, is not zero. Being forgetful triggers a warning.

cat <<eof >1.c
int main() {
printf("Hello World!\n");
}
eof
cc -Wall -std=c89 -pedantic -ansi 1.c
./a.out

1.c: In function 'main':
1.c:4:10: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
4 | printf("Hello World!\n");
| ^~~~~~
1.c:4:10: warning: incompatible implicit declaration of built-in function 'printf'
1.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 |
1.c:5:2: warning: control reaches end of non-void function [-Wreturn-type]
5 | }
| ^

As a learning exercise I try to silence the warnings one by one.

Instead of just including <stdio.h>, which teaches me nothing, I find the prototype string and insert it the .c file using a short script something like the following

#!/bin/sh
test $# = 1||exec echo usage: $0 function
grep -r " $1(" /usr/include/* 2>/dev/null|sed 's/.*://;s/ *//'

This enables me to learn that the printf protoype uses __restrict instead of restrict, and consequently a portability note:

On Linux, __restrict is defined in /usr/include/features.h

On NetBSD, __restrict is defined in /usr/include/sys/cdefs.h

Now, with the printf() prototype included

sed \$r1.c <<eof >2.c
int printf(const char *restrict, ...);
eof
cc -Wall -std=c89 -pedantic -ansi 2.c
./a.out

2.c: In function 'main':
2.c:5:2: warning: control reaches end of non-void function [-Wreturn-type]
5 | }
| ^

The -std=c89 option enables me to learn to use exit(). Using return statement will also suppress the warning. For the main() function however, cf. a subroutine inside main(), I use exit() instead of return.

sed 4r2.c <<eof >3.c
exit(0);
eof
cc -Wall -std=c89 -pedantic -ansi 3.c
./a.out

3.c: In function 'main':
3.c:5:35: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
5 | printf("Hello World!\n");exit(0);
| ^~~~
3.c:5:35: warning: incompatible implicit declaration of built-in function 'exit'
3.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
+++ |+#include <stdlib.h>
1 |

Find the prototype for exit() and add it in, instead of just blindly including <stdlib.h>.

sed 2r3.c <<eof >4.c
void exit(int);
eof
cc -Wall -std=c89 -pedantic -ansi 4.c
./a.out
It's okay to prefer American made products without bringing some kinda racial implication into it. The whole "buy local" movement is simply an extension of this. It's okay to prefer to trade with your local economy.

While we've never been at war with China, it's not infeasible given their attitude towards Taiwan. And there's very real trade-offs with convenience of importing everything vs. the resiliency of having your own supply chains which we saw a small taste of in the early days of 2020 with medical supplies.

We already buy many China-made things including iPhones and we don't bat an eye at the "Designed in CA, made in China" label... but there's a lot of us that feel uncomfortable with yielding our manufacturing base to globalism, not least of which is that it puts you in a bind if you need to stand up to said country when they encroach on more ideologically-aligned democracies.
> Well, Tesla best hope that other competitors don't come up with safe L4 before them.

Well I can't see anyone even being close at the moment. The only companies doing such things are using company drivers and doing taxicab-like services. Companies other than Tesla don't seem to want to actually sell their product to customers.
For what it's worth, musl's implementation returns 0 on success.
How to Structure a Successful Digital Marketing Plan?
I can see where you're coming from, and this is kind of why I mentioned

> ...I'm no saint myself! I work in the travel industry and ask myself to what degree I enable massive CO2 emissions for people's leisure, wasteful businesses having in person meetings that they probably don't need to etc etc.

That said, I don't think I agree that just because you not taking a job at Rio Tinto or Facebook or whatever won't change the world, you might as well take the job, or that someone else will gladly take your place.

Some of these companies are overwhelmingly likely to, due to their controversy, not attract as good talent at as good rates as they otherwise would, and that's a good thing IMO.
I really like this answer, but I do think a flag “cleanup_required” could be a clean way to express the code as well, with “if cleanup_required …” after the switch block.

But yep, I have no complaints with the code as presented.
This is like being shocked that so many companies now rely on having an electricity supply and can't work during power outages.
Can you please help me understand why working at TMTG ends someone's career?
The correct implementation is to return any non-negative int value you like.
Automation for Information Control [pdf]
TIL. That's fantastic!
Search and Play Store come from the same company, but is play store revenue really a complement to search? How does removing play store fees improve Google's search moat?
> That depends on whether you believe that accusations of not reading the article tend to cause people to read the articles.

No, what it is fairly charcsterized as it was upthread does not depend on that.

Whether you agree that it is generally good advice might depend on that, or more generally what the net effect of tolerating such accusations is on the tone and tenor of discussions.

Having experienced online discussions in many fora since the 1980s, I tend to agree that accusations of not reading doing more harm than good, like most collateral attacks on presumed motive, background, or other reasons for a post you disagree with rather than addressing and supporting the substance of the disagreement directly.
I doubt that’s an issue if people seek out your website and use it. Unless your primary growth strategy is Google SEO, I doubt that tweaking your PageSpeed Insights score is going to do much in cases like this where the site actually does load quickly in practice.
The precautionary savings of physical cash may even be on the rise as people realize how easily their economic lives could be switched off in an instant in the increasingly digital world, whether by being intentionally targeted or accidentally disabled with a lot of bureaucracy slowing down the correction.

Having enough cash under your mattress that authority figures can't easily take from you is a psychological comfort.
"societies face serious issues in terms of equality for women, value of education, fair application of law, systematic corruption and tribalism"

You know why South Korea is prosperous? It recieved more in development aid than all of africa combined

Currently only China is really investing in Africa. While issues you highlighted are serious, these countries were treated very unfairly economically. Do you know what it's like trying to trade with a western megacorp as an african farmer? Can you imagine what its like trying to get a loan to open a business?
I assume you mean USD cash to hedge against inflation of Argentinian pesos?
Anyone have a tutorial on how to use mastodon as an end user? Are there servers worth joining? Does the fediverse make the server you join irrelevant? Has SDF got an instance? Are there clients people prefer? I'd love an alternative social media platform but when I join them they often end up dead (wt.social, etc)
Not really a failed startup but we had a disagreement between the founders and decided to split the company and I and another partner left. We fought over money and the company for a few months and eventually reached an agreement.

Since then I got a job, moved countries and am working on the next thing with my wife :)

It was an invaluable experience and I would do it all over again.
Yep, that is called a "jock tax."

https://en.wikipedia.org/wiki/Jock_tax
consult.
That’s so f’ing messed up. I paid extra for Roku because I thought they made their money by selling me a product that I own as opposed to one that owns me.
> This is also a funny statement, because TimescaleDB is built on PostgreSQL.

I know, but doing timeseries with postgres is "cool", not standard, not boring. I'd even say "risky".

> We actually take great pride in being a "boring" option

No, you're not there yet: doing timeseries with timescale is way riskier than with clickhouse, which is both a bit older (not much) and more mature (much more), while also being more widely used (even if you are doing a lot of outreach like these posts)
Thank you for this. I love many blogs, but as you know many blogs out there are trees falling in the forest with no one around to hear them. Great coherent (and interesting) thoughts are just hard to consolidate in the blogging form factor. Getting a following is even harder and in todays world linking to blog posts is less likely to get readership. That said, I have no qualms with twitter threads as a medium for disseminating knowledge. It works in the public square for better or worse.
So you still need lookup table to figure out whether you're being considerate of them or not. At least you don't have to worry also that you're miscommunicating with them regarding when you want to meet! My sense is that more of the problems we have result from not understanding what time somebody is proposing. People are free to point out, after all, that that isn't a convenient time so long as they understand what is proposed accurately.

There's some possibility, in fact, that everybody living with their own local time makes it harder for people to learn how their local time works relative to others'. If we all used one universal time, we'd probably have developed an intuition for when people were sleeping in different parts of the world according to that universal time. As it is, we tend to rely on the lookup tables every time.
I ended up disliking both.

The Mercury sign-up process was opaque. We fulfilled all their requests and eventually they went dark on us. Turns out that they were waiting on us for something (that we didn't know they were waiting on). But we had no way to see the progress, that they were waiting on information for us, or what they thought was outstanding. Inquiries to customer support took way too long to answer (several days for a response). That support also (as I recall) was conducted through regular email, we decided that the operations didn't inspire trust and we ceased trying to engage.

After our experience with Mercury, some time later we tried Brex. The sign-up process was simple. We provided everything they asked for and our application was approved quickly and efficiently. A day or two after approval, I went to begin the process of funding the new account and was greeted with a message that the account had been suspended. As is common, no reason was given nor would their support assist in resolving the issue. A week or so later the account was terminated without explanation. Weeks after that I continued to get various account maintenance emails for the account they closed (finally had to blacklist to the spam folder, probably still getting them). Luckily we had no transactions and no open balances. I hesitate to think how screwed we'd be had we actually started transacting business.

Both of these companies offered compelling services that we were interested in and matched our needs well. Both of these companies had execution that felt completely fly by night and wasted a lot of time with no result. I get it... start-ups... move fast, break things... but with our money and ability to conduct business on the line, I was left very put out.
this is a huge pain point OAS 3.1 is "basically perfect" and I wish so much we could transition to it, but we expose our API via Swagger.io, so we can't transition yet.

I think OpenAPI is losing out the sexiness battle against graphQL, but I will say this: There's a way in which OpenAPI inherently makes you reflect on distributed systems errors. What are you going to do if a request 500's and you need to maintain consistency between two data systems?
> Based on the office phones I've used, I'm guessing that the buttons with the 7-digit phone numbers are just used to select phone lines that this phone can make/receive calls on, not speed-dial numbers. I'd also guess that they're on an internal military phone network that's not directly reachable from the regular phone system.

Yeah, listing both lines there also might allow this phone to "barge" in on an existing call on one of those lines. If one is in use, it might show up in a different color, allowing the user to select the unused one if they wanted a new line, or the used one if they wanted to join in on the call in process on that line.
> We let North Korea print their own $100 bills for years as a form of off the books aid

That's very hard to believe. Citation needed!
> Are there servers worth joining?

Fosstodon's alright.

> Does the fediverse make the server you join irrelevant?

In theory, yes. But in practice, joining a server means the UI gives you a global feed for that server that you don't otherwise get. And for the niche communities that have a global feed you can keep up with, you want to be able to access that.
None of those platforms got big enough to deal with abuse and malware at an industrial scale.
Would it be harder? Maybe it would make adjusting to the fact that you live in a different longitude easier.
The variable nature of most renewable energy sources might make hydrogen produced by electrolysis cheap enough
Because not all content is on Netflix. Some times you have to deal with an ad funded service.
Wait... The word "harmonious" has been used once in two different translations to english, and so suddenly Bastiat has an ideology close to the one of communist china!?
huh. i just realized a lot of people probably think i'm stupid.
I have like $200 cash just sitting in my room for years in case I need it for something that doesn’t take debit or credit like a carnival trip (I haven’t carried cash, ever, in years).

I wonder how many others do the same? It adds up I imagine.
Living in Singapore, I know a number of people who would have trouble with that statement.
The dead salmon study showed the need to correct fMRI readings, if I recall correctly. I think they showed the dead salmon some pictures instead of playing music.
Family of Three and Their Dog Died Mysteriously on a Hike. We Finally Know Why
Any references what makes their KN95 great ?
Not OP, but your assumption is valid with a high degree of confidence since holding a currency experiencing inflation is a net negative. USD is commonly used as a store of value in those situations.
Anyway AV1 for streaming isn't a thing for now because Qualcomm refuses it.
So you know in the Hunger Games when the guy was like “what if just once no one watched?” .. what if there were a truly massive protest (millions of people) who just said fuck it and didn’t pay their taxes and instead wrote in that they demand proper tax reform
Are you claiming that fire, language, and medicine have no survival value? All of these are memes or composed of memes.
The first step to knowing is acknowledging not knowing.
I rarely comment on here, but this has been my experience with Vemto as well. I've been using it to scaffold ideas quickly and it's nice to have the boilerplate handled so you handle the more important logic to test feasibility.
My theory is that most of these comments are coming from backend devs who rarely do frontend and then complain that the space has evolved since MooTools was hot shit.

React is going on 9 years people.
Whilst there will be lots of folks who complain at performance - its not as if notion is designed to be the backend api for a website, but i have to believe that continuing to drop the barrier to entry even below wix and squarespace has to increase the addressable market for this. I for one still get frustrcted at the level of effort for wordpress, wix and squarespace. could this really be used as the main website for a company, perhaps not but there are lots of other uses like documentation sites that could be interesting use cases
What if it's simpler than that.

People still use cash, but most of the "money" is tied up in finance's parasitism. So while the amount of e-cash has skyrocketed, cash is still circulating and in high use/demand among the people. I know that for facebook marketplace/craiglist I exclusively use cash... when I buy something from my neighbors or go to a non-chain market I go out of my way to use cash since it saves on transaction fees (and taxes, lol.)

I buy and restore classic cars as a hobby and I always buy/sell them in cash if I can.
There are plenty; I think the campfire model is the one that allows you to hold the expectation that friends may go out of your life and not come back, which is a reality of growing older. If you don't expect that to happen, it hurts.
> and that majority interests don’t trample minority interests.

By ensuring (by overrepresenting the same interests overrepresented in the House by a smaller margin, and in the electoral college by a margin in between that of the two Houses of Congress) that a particular minority will reliably be able to trample the interests of the opposing majority.
"Peer review" these days usually refers to pre-publication peer review. This is the mainstream usage, as demonstrated by Wikipedia https://en.wikipedia.org/wiki/Peer_review#Scholarly or even better by Wiktionary: https://en.wiktionary.org/wiki/peer_review

However, I agree that in the context of this thread, post-publication peer review -- usually referred to by another name -- is very important, as it plays a strong role in the formation of consensus being discussed.
Tremendous news. With the USPS’ reach and government banking, they’re strategically positioned to provide banking services to the unbanked and underbanked, especially in more rural areas that aren’t profitable enough for banks or credit unions to maintain outposts. While the gift cards offered as a value store are suboptimal, there is a path to deposit accounts (and instant payments are around the corner).

Progress!
Physical cash that buys less and less with each passing day is not as useful, though.
Read up on working memory. A lot of people can't hold enough items in their head long enough to write a function. And that's if you don't believe in IQ, which is already very heavily correlated with success.
The Linux kernel has 28 million lines of C code, and 180 thousand goto statements.

1 every 160 lines is a goto, and that's just a naive count so includes all header and preprocessor gunk, whitespace, some generated C code, comments, etc.

If you're talking about more pure lines if C, it would probably be close to 1% of statements are goto.

It might not be everyone's cup of tea as the pinnacle of C programming, but it's a real highly used medium-large project that has coped well with a pretty high rate of change from a very wide spectrum of contributors. So it is a good real world example of open C code you can look at that is maintainable while making a lot of use of goto.
But they do take responsibility and are open to scrutiny by their peers when they actually do wrong. In this sense, it's impossible to be a CEO making profit decisions (where loss of life is a balance sheet issue), and maintain the scruples of an engineer at the same time.
TSA might not ask you to turn on an unopened laptop, perhaps; but it had to do with the CPU above all else, I don't understand it but I don't understand half the stuff on that website. Still like reading it, though.
Great. Even more ways for software to hide its inner workings from us, the owners of the machine. Thank god SGX has been cracked.
Apple changed their policies to prohibit this
And quickly emigrated to Switzerland and then the US.

What if he was born in, say, Indonesia, or sub-saharan Africa?
There are a few decent examples given by the Linus kernel devs on a LKML thread where an unfortunate soul wandered in and suggested that they refactor to get rid of GOTOs: https://lkml.org/lkml/2003/1/12/126

> "I will prefer to hide one or more of the inner loops inside of a function call."

That risks the additional unnecessary overhead of a function call, which can be expensive in a loop, and not all compilers are as good at optimizing as they should be.
If you don’t get paid interest at a bank, and no brokerage is going to take you on (or you don’t trust them), then what else are your options?
Weren’t LiFePO4 the batteries that need to be charged in fireproof bags because they have a tendency to spontaneously combust?

Those were the horror stories I read about back when I had some for my Walkera rc helicopter.
Is the Amazon Prime app on Chromecast as good as Roku's?
Yeah honestly this blog post just seems to be highlighting a bug in gcc when it is compiling to an older version of C. Not sure why the author chose to frame it as some big point about the printf function.
Looked them up and for LiFePo4 batteries they seem to charge several times the eBay prices. What could they possibly be offering at that premium, given that it's almost certain they don't make the batteries themselves?
There's no way the model would actually break when Apple pulls in tens of billions USD every year off the App Store, a lot of it provided by whales in gacha games and online gambling services. A single one of those would be enough to keep the store humming (there are a few specific ones that bring in a billion usd a year by themselves)

They could also just require developers to pay them a set % of gross even when using third-party payment processors. There is precedent for this, for example Sony requires this in order to approve cross-play between Playstation and other platforms. It could also be treated as a royalty model where you give them say 5% of your gross revenue to use the iOS platform and the 5% is baked into the normal 30% store cut (Unreal Engine works this way.)
Ugh. The wording in this document is disgusting. It reads like it’s from the evil teacher from a movie: “The United States remains deeply troubled by the ambiguous education-related exception added to the copyright law”.

Deeply troubled? Like “We’re very concerned with your daughter’s inability to submit assignments as requested. We suspect there’s trouble at home and hope we don’t have to involve the authorities.” “You mean when you asked her to draw a cat and she drew a cat then coloured it purple?”
“Yes, exactly! She must be either developmentally delayed, or poorly parented. In either case it’s very concerning.”
100%, we'll take it on-board :)
This may simply be a function of your inability to believe that they could be sincere.

There are without question plenty of "real" flat earthers our there. People willing to spend actual money on experiments doomed to fail. People cutting ties with their families because they don't agree with them.

When we read people espousing flat earth views on YouTube or Reddit or wherever, out natural assumption is to think that they must be trolling, because nobody could be that stupid, but in fact there really is a subculture that does.
sometimes I go straight into technicalities for the sake of time (to colleagues at the same level) and wonder if they actually understood what i said.

I like it when they ask basic questions. at least then I can then explain the basics to them without having to feel like I'm patronizing.
You need innner confidence in your intelligence to be able to bear outer stupidity.

I think that's why many comedians are extraordinarily smart. Not because comedy requires intellugence, but because it requires looking stupid.