skysight-inc/HackerNews huggingface dataset:
> The trick is to just not use `malloc()` and `free()` unless absolutely necessary ;)

The problem is that often C programmers have to deal with API and libraries they didn't write themselves to solve their problems, thus are forced to use constructors and destructors even when they don't want to.
We need more robots. And basic universal income. Oh, and pizza.
I agree. It might work, but I think that in the short run, it won't be trusted if there isn't a mechanism to funge those stablecoins into actual, mattress-stuffable USD.
Because he bought them all. This is why, in states where disasters are probable due to natural issues (hurricanes, earthquakes), price gouging is a crime. Not only is it a crime, but it is one where there is full bi-partisan support for the continuance of the law. If you want to put a smile on the face on someone suffering from calamity, first help them, and then arrest the bastard who tried to profit off of it. The first smile will be gentle and gracious, and the second will be of pure glee.
Even with arbitration, the new pattern is to write a bot to mass file arbitration cases. DoorDash was arguing that the thousands of arbitration cases filed against them in one day should've been converted into a class action lawsuit. They ended up paying millions in arbitration fees alone.
Though it's interesting that threads were added to the standard. Perhaps though they filled a niche that wasn't as well filled as select/poll/epoll/kqueue/etc had already since pthread api is perhaps harder.
I don't have data, but I would feel pretty confident that the vast majority of Americans don't share your experience. The number of people who can walk to work within 25 minutes is likely miniscule, and therefore requires some amount of time in traffic, often substantial. And virtually every other point follows from that fact.
In reality, I don't pay creators to avoid ads. I can just use an ad blocker for that. I pay creators because I want them to keep making content and I know they can only justify doing that if they make enough money off it.

I've used the word "donation" a few times, but I don't really see it as a charity. They're providing me a service and I'm simply allowed to pay whatever I want for it.

To that end, YouTube Premium is a disappointment to me. It's fixed at $12/mo for everything. I can't donate more and I can't pay less in exchange for removing ads on only a few specific channels. On top of that, there is no transparency over how much money is taken by Google and how the remainder is split across the channels I watch.

YouTube Premium is a service for people who can't or wont setup ad blockers, are already paying for Google Play Music, care about the exclusive content, or want to download videos with the YouTube mobile app.

I use a PiHole and have no problem using a VPN to connect to my home network if I want to block ads on my phone. I still buy my music, so I don't care about the Google Play Music subscription. I don't care about the exclusive content and I can just use youtube-dl if I really want to download a video.

The only reason I would get YouTube Premium is to support YouTube itself. But the questionable actions YouTube has taken to stabilize its ad revenue (coupled with the many problems of its parent company, Google) alleviate any guilt I might have otherwise felt. At this point, I only use YouTube because of their content monopoly.
There is always a chance. We would need to see a proposal based on experience with an existing implementation.
Yeah, and the issue is with those macros exactly. It makes writing code on them really damn annoying and it relies on C constant string concatenation, breaks the flow quite a lot.
All of quantum mechanics is non-commutative algebra. The commutative relation [x, p] = i*hbar gives you the Weyl algebra, for example.
An easy (and problematic) example is decimal separators (radix characters) being parsed or written differently based on locale.
Also Nanos - https://github.com/nanovms/nanos for those who want to run go unikernels on gcloud || aws. (I'm involved in the project).
Gas and oranges are hard to hoard; airline seats are impossible. And your examples are all from normal times, not major disasters. None of what you say is relevant to disaster profiteering.
I have been told in this very AMA that I lacked enthusiasm about C (and the gratuitous insecurity of the language when we know that a well-designed type system and a few runtime checks solve the problem entirely is indeed the reason for my perceived lack of enthusiasm): https://news.ycombinator.com/item?id=22865912

I hope that this perceived lack of enthusiasm means I am handling the conflict of interest honorably.
int i;
[…]
i += 1;

potentially is undefined behavior; i could overflow.

Compilers nowadays are fairly good at warning about definite undefined behavior.

I don’t think anybody would be happy with a compiler that aborted on all potential undefined behavior. That would (almost) be equivalent to banning the use of all signed ints.
It's completely dependent on your ability to close the deal. If you can get the business then yes, if not then no, and it's hard to tell which will happen without you trying to get a deal signed. I'd recommend reaching out informally to places you have contacts and going from there. If you get no traction then you know the answer.

Also, make sure you setup the contract with short milestones as some companies will slow in paying.
I've been using NextDNS on my laptop, two phones, and a tablet for months now, after hearing about it from a poster here on HN.

Love it. I'm just worried that there is something a bit more nefarious going on. If you're not paying, you're the product being sold.

Are we still just in the 'growth and acquire' phase here, where paid subscriptions will eventually be required?
YouTube Videos About Speed Reading
>The main driver behind the evolution of the C Standard is not to break existing code written in C, because the world largely runs on C programs.

If not deprecate, then at least make fixed width types as equivalent members to them, ie all char based apis should accept s8 (typedef signed char s8) and all int based apis should accept s32.
This is a good candidate. Although some of this effect might be countered by people dying because they didn't get elective treatment.

Regardless: when you change pretty much every parameter of society (risk behavior, driving, crime, health care, ...) I don't understand how one can use the overall death statistics and try to attribute them to Covid.
> Unit and integration tests aren't punishment inflicted on inferior developers: they'd an extremely useful tool that makes your life easier and your team more productive.

I can't agree with this more and also find the reverse is true: not having tests will punish you repeatedly. If we measure inferiority by unproductivity, adding tests also enables you to become the opposite of inferior (ferior?)
That's the Keynesian view where you can move a lever (cause) and measure the changes (effect).

Thats not Keynesian economics at all! Or rather it's a view that people from schools of thought completely opposite to Keynesian also believe.

Does anyone not think this? Eg, Quantitative Easing: does anyone (Keynesian or not) think it does nothing?
I liken a few different things to Zeno’s paradox. Types might save you from 10% of your failure modes. And the next tool, and every one after, fix 10% of what’s left. But you never arrive.

Or alternatively, every efficient method of code verification just results in more code. Each product is “worth” so many man-years and so anything that reduces effort just increases scope. Which may also explain program bloat; adding three libraries gives me time to... add two more libraries.
Fact is, that when I know when something feels unusual. And when this happened, I had no idea what the Covid symptoms are like. And at the time, I also didn't think that it was this. Only after several people in my community reported the same "symptoms" did I become suspicious.
This is the last drop. They ditched the google music in favor of half baked youtube music, with no playlist import, horrible offline support, tons of bugs that still there.
I heard they are big somewhere in India. Well... good luck. I'm done and switching to Spotify. The only reason I was attracted by this terrible service was pricing. I subscribe from my country of origin at ~2 USD/mo subscription. For that price, I was ok with their quality.
I would start by running through the water-rights laws by state, that could help narrow down your search
There are a bunch of research projects that did just that. And even just compiling with address sanitizer makes it "memory-safe" to a significant degree.
> US testing is so porous as to be meaningless, even today.

We've been testing well over 5000 people per day on average for over a month. Suppose 500 tests per day are randomly administered for the purpose of estimating overall prevalence of the virus. That sample ought to pretty clearly establish the total number of cases within 5%.

I'm sure there are some clever statisticians at the CDC with some fancy Bayesian inference or something who can push the confidence up even higher using all the non-randomly administered tests.
I had wondered whether the flu our family got hit with over Christmas could have been coronavirus (had mentioned previously that my wife actually broke a rib from coughing).

But then a few weeks ago we all started to sneeze, cough, and run low grade fevers. Wife lost her sense of smell. And then a bunch of symptoms between us that I later learned are all coronavirus symptoms.

The dominant things for me was the shortness of breath, and the extreme fatigue. Like, feeling like you’ll just go “goodnight!” and collapse on the kitchen floor fatigue.

The breathing was the most disconcerting. I’d wake up in the morning thinking I was getting better, but by the afternoon I’d feel like someone was sitting on my chest. The cough never really got crazy bad for me. Where a panic attack might feel like you can’t catch your breath, this felt more like trying to breath under a swimming pool.

Caring for 3 young kids with a sick spouse has been... a test, lol. But fortunately we’re all young and healthy and things are returning to normal. As slowly as it came on. Luckily I stocked up on things just in case, but at the height of being sick it was impossible to get any grocery delivery windows. They did finally come through about a month into this process, so, feeling grateful all around.

I had what would be called a “mild” case, but it definitely sucked. Looking forward to antibody testing so we can know fo sure it’s what we had, but based on all of the symptoms, the long incubation time, etc, it seems very likely.
Cleanup on function return is not enough, it needs to be scope exit. We're using this for privilege raising/dropping (example posted above) and also mutex acquisition/release. Both of these really "want" it on the scope level.
It is. That's part of why it's so cheap!

Google keeps things a bit messy so they can drive ad rates higher.
What I would love are examples of how they are useful.
> In my opinion, the two languages are going to co-exist for a long time.

It goes deeper than that, in a couple of places Rust depends on the C standard: the fixed-layout `#[repr(C)]` structs (without that attribute, the compiler is free to reorder the struct fields; with that attribute, it's laid out the way C would do it), and the `extern "C"` function call ABI. The way to call any other language from Rust, or Rust from any other language, is to go through `extern "C"` functions passing `#[repr(C)]` structs. So even if the C language dies one day, parts of it will live in Rust forever (or as long as the Rust language lives).
the quality is so bad I can't believe we used to watch it.

The quality wasn't that bad, the recording you're watching is. On the one hand, a friend of mine who's wife is apparently enjoying Columbo reruns, commented on the pancake makeup being quite noticable. Which I suppose it would be if pulling from the original tapes or whatever. On the other hand, my wife and I watched a few reruns of Taxi (late 70s) and I know if it looked that bad back in the day, I wouldn't have watched it.

There might not have been a lot of lines of resolution, but SD TV looked better than many recordings would have you believe. And remember that you're probably watching on a TV three or four times larger than what was used to originally view it.
Stephen Wolfram is well known in the industry as being a pompous, self-indulgent man. There was an old joke I heard which went:

> Q: How do you know if Stephen Wolfram invented something?

> A: He'll tell you.

I saw a TED talk by Conrad Wolfram about using Mathematica as an educational tool [1]. I went to one of my tutorials and tried to discuss it with the Professor (we were encouraged to bring up basically anything we'd seen or encountered in our first few weeks of uni). His response was "I don't think we need to worry about what Conrad Wolfram is saying."

By all accounts, Stephen and Conrad Wolfram are clever men. It is without a doubt that Mathematica is an extraordinary piece of software. Many people here will have benefitted from Wolfram Alpha and will have used Mathematica either in an academic context or in an engineering context.

Stephen Wolfram, however, is not Christ, even though he likes to think so.

[1] https://www.youtube.com/watch?v=60OVlfAUPJg
N is a variable. It might be INT_MAX so the compiler cannot optimise the loop for any value of N. Unless you make this UB.
No, it's exactly the opposite. Without UB the compiler must assume that the corner case may arise at any time. Knowing it is UB we can assert `n+1 > n`, which without UB would be true for all `n` except INT_MAX. Standardising wrap-on-overflow would mean you can now handle that corner case safely, at the cost of missed optimisations on everything else.
> SF in general tends to rely on the "whig view of history": technological development and social progress moving forwards.

This is what I think was so original about The Handmaid's Tale--a possible iteration of our own culture and technology that moved backwards-sideways instead of forward. (Disclaimer: we read this years ago in school, and I haven't had a chance to see the recent adaptation.)
Omega Infinity- Solar Spectre Review
You’re replying to a comment about macros, not about functions.
So the car is a self-contained transportation box. Feels to me that a bunch of the weight comes from the self-contained "sovereign" or "autonomous" bit (in the sense that there's a driver that can do whatever they want - the car isn't really a part of an enforced larger system). Most cars do behave according to the rules, but the crashes (and all the safety) comes into play when someone doesn't...

If you try to synchronize the system (e.g. have one central master server controlling all cars on high-speed roads), then I have a feeling that a lot of weight can be shed.
I have really enjoyed simple economics texts.

I highly recommend Economics in One Lesson by Henry Hazlitt. It is a very approachable book that can be read in one sitting.

It illustrates the seen and unseen effects of action from Frédéric Bastiat.
Companies need to try to separate functions as much as possible. It's reasonable for people to find an empty office or conference room for occasional impromptu meetings or calls. But some jobs--recruiting, biz dev, etc.--basically live on the phone. It's not realistic for them either to shut up or find a room every time they're on a call.
After killing investigation, Bloomberg News sought to silence reporter's wife
Yeh. Unik is more of a unikernel orchestrator, like OPS is, versus the actual kernel itself. For the go implementation it uses gorump which we sponsored and then retired years ago in favor of Nanos our new kernel.

The naming "collision" though is so bad it really feels like a case of squatting the seo though. Outside of Nanos, Unik is the very first thing you'll find when searching for go unikernels.
It's entirely possible that this will be bad for WFH in general, as many people will mentally conflate working from home with an unpleasant and scary time.

Personally I think the push for WFH is much smaller and noisier than most people think. People who don't want WFH, like me, tend to be pretty quite on the subject because "the status quo is fine for me, thanks" isn't something you can get fired up about.
Interesting read. Barnum was quite a character, and might even be seen as a prototype of L. Frank Baum's The Wizard of Oz:

"'Barnum was right when he declared that the American people love to be deceived,' Baum once wrote of one of his heroes. Strikingly, even after the Wizard reveals his con, the Lion, the Tin Man, and the Scarecrow still ask for his aid. Like the quack he is, he obliges, stuffing the Scarecrow’s head with pins. The Wizard, you might say, is America’s first celebrity guru: an ur-Dr. Phil, using charisma and a screen to project authority and wisdom he doesn’t truly have." [0]

[0]: https://slate.com/news-and-politics/2009/09/dissecting-the-r...
- Which differences between the C abstract machine and actual modern CPUs/hardware have proven most difficult to deal with in the language?

- Are you planning any addition regarding modeling of how modern CPUs work (e.g. pipelines, branches, speculative execution, cache lines, etc)?

PS: Thank you for doing this!
Can anyone explain, in simple terms, how interoperability and migration works with ActivityPub (or point to resources that do)?

If I create an account on a Mastodon instance, and want to move it to another instance, do I lose everything?

And how does integration among the various platforms currently out (e.g., Mastodon, Plume, Pixelfed, etc) actually work? Is there some tool to see feeds aggregated from all these implementations? Or does it work differently?

I ask these questions as someone used Mastodon for a bit, has explored a handful of ActivityPub implementations. It all sounds very cool to me, but I still don't quite "get it".

Personally I prefer the approach of Secure Scuttlebutt, but I realize their P2P workings are probably unrealistic and impractical for the vast majority of people.
Can we map inches on screen CSS accurately now?
I went the opposite route and moved to a language that, while not the most performant, championed the idea of developer happiness (Ruby).

> if you don’t Like something, change it.

This is also super important, and a good point make. Don't ever choose a technology for the sake of looking good; choose something you enjoy working with.
This MAC only for now? Is Windows usable?
> This is one of those things that sounds good when you're in college, and sounds, well, horrifying is too strong a word, but it will definitely set off the warning bells for anyone that's been programming for a decade or more.

To someone that has programmed for a good 2 decades and more, the above sounds like what a college student or junior dev that just found out about TDD would say.

Unit test and integration tests are (bad) substitutes for good and modular design, which should piggyback on a strong type system. I've seen it so often that whenever I read comments like the above I feel the need to create an HN account just to reply to them.

Junior devs in charge of major design decisions create damage that goes way beyond their limited reach. Test code is untested code. Test code is brittle code - especially integration tests are. You need tests because you're using a dynamically typed language? Well, stop using that language for anything that is even remotely complex. Your future senior dev self will thank you.
> I'm strong supporter democracy but the idea that voters are "adults" does not hold water.

People are indeed capable of acting irrationally. But they're still citizens and not subjects of the government, which is still accountable to them (for the good and the bad), or should be, at least.

This specific government acts in bad faith, far more than what can be considered tolerable (and the meaning for the choices made is lost completely).
It's a three year rotation: Python, C (Unix), C (Arduino). My goal with the class is to teach ideas that will stand the test of time. C (and Unix) certainly fit that bill.

Happily, the tooling is the easiest part. Every student has a rasberry-pi running debian, no mouse, no window server, and no extraneous software. You can spool kids up on a nano-based C toolchain in one class period with remarkably few sharp edges. There's even some fun accidental learning the first time they nano their executable file.
If I have to read through so much of the article context disguised as bragging without anything resembling something new then maybe this Fundamental Theory is less important than Stephen Wolfram showing how many Important Things he's done
The Académie Française tries really hard to be prescriptive, and perhaps that works for the handful of elitist writers hanging out around Saint-Germain-des-Prés but it definitely can't keep up with the connected world, the language that is actually spoken and used by everyone, and often gives in by being descriptive with a noticeable lag and awkwardness. It is more of a self-congratulatory circle of elites trying to uphold a (400 year-old) tradition for the fun of it, and the population often decides to use vastly different words regardless of what is considered a "real word" in French.
Ask HN: What is an example of great software spec?
The committee has reviewed a proposal (document N2360) to for const-correct string functions.

But making function signatures const-correct solves only a small part of the problem. A new API can only be used in new code, and casts can remove the constness from pointers leaving open the possibility that poorly written code will inadvertently change the const object. An attempt to change a global variable declared const will in all likelihood crash, but changing a local const can cause much more subtle bugs.

In my view, a more complete solution must include improving the detection of these types bugs in compilers and other static and even dynamic analyzers even without requiring code changes. It's not any more difficult to do that detecting out of bounds accesses. (In full generality it cannot be done just by relying on const; some other annotation is necessary to specify that a function that takes a const pointer doesn't cast the constness away and modify the object regardless.)
In support of ActivityPub, what are some good intro/tutorial resources?

Any recommendation for a cloud provider to host a Mastdon server? DigitalOcean vs. AWS?
Oddly, it doesn't emulate the serial port. This is despite emulating 3d accelerators.

I wish they focused on making emulation of older models (like the original PC) as good as possible, instead of catering to people who just want to play DOS games.
Does it concern you how aggressively compiler teams are exploiting UB?
This depends a bunch on what your goals are. There are no specially named files, so looking for a particular filename is not particularly useful. It is sometimes informative to find the file containing the main, but not always.

My job at NCC Group involves a lot of code reviews, so frequently the files that are of interest to me are the ones that contain the most defects. I typically identify these by compiling with compiler warnings turned up and warning suppression turned down. I'll frequently also make use of static and dynamic analysis, including the GCC and Clang sanitizers.
That’s possible too. My evidence is only anecdotal, but when I tried the MDH I moused over almost every pixel to see who had bought it. It was quick and easy, no friction. But when I tried the MDW I scrolled for a few seconds, then got tired of it and lost interest. The wall went on forever, but I cbf to scroll through it all.
Do you remember swine flu? The media storm died down as experts gathered more information and made recommendations. Note how with Covid19, the information has changed over time, but not enough to change expert recommendations, which have remained fairly consistent.
Show HN: Founder Bingo – Most common mistakes founders make