skysight-inc/HackerNews huggingface dataset:
A reinterpret_cast is something that shows up very rarely, so it’s fine that it’s not concise. And when it is used, it usually can do with a function naming it. I try to have a “no raw reinterpret_cast” view unless it’s chars to unsigned chars for string stuff. And as others have said, it’s grepable and can’t cast away constness. If I’m handing a const unsigned char* to a function taking a char* that I know wind modify the data, I don’t want that to be (char*)ptr. I want it to be const_cast<char*>(reinterpret_cast<const char*>(ptr)) because yikes, it should stand out because it’s awful.

And then I’d wrap that godawful cast in a function overloading the legacy C interface, so the overload has one job: to encapsulate the logic that the legacy function isn’t const correct. So then I’d have like void wrappedFoo(std::string_view s) { foo(const_cast<char*>(reinterpret_cast<const char*>(s.data())), s.size()); } with lots of comments about the cast.
Yes, if you redefine the word grant to mean something else, Space X is only successful because of grant money. Words don't mean anything.
Not from me :) it’s a relevant point!

This is a little out there, but this thread is old enough at this point. I would say that COVID was something that improved my outlook in the future. Some aspects of the political landscape seem frankly, pretty dark and depressing. As someone who had a unique vantage point on aspects of the pandemic, I have to say that I saw the best of us demonstrated.

I think that ultimately the difficult adjustment from a 1970s economy to the services economy of today has created unrest and dissatisfaction that has and will change the US for years to come.

It is weird that Walmart has the same standing as a state health department. But ultimately, technology and standards like SMART allow us to trust assertions made by Walmart. I personally have issues with that, but it’s reality. Verifiable credentials are imo probably going to be one of the more powerful tools out there for lots of consumer to government or consumer to business use cases.
In the 50 states where poor kids get free lunches, the poor kids never handle the money. The school gives the kid free food and get reimbursed by the federal government.
That’s a fair question—we’re not in the business of enabling SMS spam, and we have a strict anti-spam policy that we enforce. Some of the use cases that we want to help with delivery are SMS 2FA, alert messaging, account notifications, customer care, etc. Everyone who sends SMS, including large, trusted brands, struggles with deliverability at a certain scale.
>Race virtually never comes up in daily life for the rest of us…

And yet it seems it does in upper class enclaves like Silicon Valley, Seattle, Manhattan... It's an interesting and perhaps telling correlation: the college-educated, privileged elite who believe they are doing the right thing by zeroing in on race as the foundational problem of America.

How naive and perhaps blissful to to be so ignorant at how unjust the world is overall, there are so many perhaps urgent issues with suffering people, and we're worried whether companies with average salaries in the multi-hundred-thousand dollar range are diverse enough.

In a microcosm within a big country where the average savings and health and medical insecurity are very serious.

The focus on race, even if race is on a checklist of problems to resolve, borders on scandalous.

The scandal is the list of people whose lives are ruined because they're poor and either experience an absence of medical care or crippling debt. But it's a class issue and that topic is verboten, perhaps because it's non-existent to the groups mentioned in the first sentence above.

Looking at health inequity should be a priority over who is on the board room or what groups occupy what percentages of things. It would make for a more just society in a big way.
Related:

Institutional memory and reverse smuggling - https://news.ycombinator.com/item?id=3390719 - Dec 2011 (36 comments)

Tell HN about: Institutional memory and reverse smuggling - https://news.ycombinator.com/item?id=3311015 - Dec 2011 (9 comments)
Once when I was a kid, too young to have any sense, I wanted to make some money shovelling snow. I didn't realize yet that you need to make an sgreement with your customer before doing the work. This was a small town in upstate new york so even the strangers were not really strangers. As a kid you don't really see any adult as being all that different from your parents or teachers.

So dippy me just starts shovelling the sidewalk in front of one of the shops on main street, a good chunk of storefront between the shop and the street that hadn't been done when the others had been.

It took a good hour or more, and I cleaned it all up good, no haphazard slack job. Then the owner comes out when it's all done and gives me 2 quarters. This is about '77 to '79, that's 1978 to be clear not 1878...

I go home and my dad asks how I did and I tell him, and he said first, you should have asked if he wanted his sidewalk shovelled first, and agreed on a price before doing it, so in that sense you can't complain because you did that to yourself. However seperately, you should have given him the 50 cents back and said no thank you sir. if this is all you can spare, then you obviously must need it more than me. And refuse to take the 50 cents and even refuse to take anything even if he then offers more. You were wrong to just start doing something without being told to, but he should be ashamed to do that.

That is what's wrong with a $5 gift. Or an uttery thoughtless gift. Keep it. You obviously need it more than me.

It's more about dignity and respect and thoughtfullness than plain money, but a tiny token money value with no other aspect to make it more about being funny or something, is itself a message.
I don't see 'notify your supervisor when tasks are complete' as part of most contracts either; it wouldn't be there, really, because beyond really basic stuff that actually creates way too much information for the supervisor to go through.

Without it being in the terms, it's not a duty you have to fulfill. It's not deceptive not to do favors for your supervisor.
Ridiculously targeted laws like this are quite a new invention.

I see that the “[feeling of] safety above all” contingent is quite voracious about defending this latest government intrusion, so I’ll stop giving them comments to downvote.
??? The tweeter you linked printed out her code as a joke, her tweet right below this is quoting Elon, "Comedy is now legal", you taking a joke as confirmation that something happened is a great example of why twitter is a net negative on humanity.
Hi Elon! Sounds like you're smoking weed again.
I’m sure there will be some people let go that don’t deserve it. But I imagine the majority of the sorting here is pretty accurate.

My guess is 6 months from now the company will be stronger than ever with an inspired staff that trusts their peers are pulling weight too.
Heard a story of a man who was under a car, cutting out a converter when the owner snuck up on him and smashed the butt end of a rifle right into the thieves balls. The man ended up losing both his testicles. No charges were filed. I like it. Perhaps another price should be your balls cutt off with a sawzall.
I just got my Toyota car on monday after almost 5 months of it sitting in the repairshop waiting for new catalytic converter after original one was stolen. Poland.
No, but this opinion is demonstrably wrong. Read any of the ACOG literature, there are dozens of peer-reviewed studies about the safety and efficacy of induction, assisted deliveries like vacuums, and both scheduled and emergency c-sections.

Scheduled c-sections outperform emergency c-sections in every metric tracked. Scheduled c-sections are no worse for the baby than natural delivery, and if you take into account recovery time from surgery, no worse for the mother.

You can have an opinion on whatever you like, but to be blunt, if it's as stupid as this one you should get called out for it.
To say nothing of my personal landmine: plurals vs possessives of words that end in "s"
MTBF is mean time. So “a few over 14” isn’t anomalous if the mean is ~10. In fact it’s a bit low.
It's really complicated, because plants also use other bands of color for decisionmaking (e.g.: am I being shaded out by another plant? Am I tall enough? What time of year is it? Should I make flowers? etc). Growers and light manufacturers have found that adding some infrared and other frequencies help, even though they don't contribute substantially to energy absorption.

Also, there are multiple chlorophyll molecules, with slightly different spectra. Lots of fun stuff in this field.
The guy or gal that's been working on it the last two years has slowly been working through my bucket list.

If I can just get guardrails that configure the basic AWS security foundation stuff like password policies, I'll be satisfied. And oddly enough, the CloudFormation coverage for this stuff is abysmal. We don't even allow IAM users in the member accounts, but we really need to check off this compliance box.
I've had nothing but terrible experiences with cree bulbs, often lasting less than a year.
well, not design a self-driving car, for starters
How much input audio would you need to produce audiobook quality? Hint Hint...
In no other mainstream language other than C (and maybe non-idiomatic C++) would this have ever been a problem.
He might. Shortly after firing them, he tweeted:

> Wachtell & Twitter board deliberately hid this evidence from the court. Stay tuned, more to come …

https://twitter.com/elonmusk/status/1586885887341645824
Kudos. I'm astounded that something like this is possible. AI, while not AGI, is already capable of some things that I would not have expected to be coming so soon.

From the FAQ:

----

Isn't it bad to use someone's voice and have them say things they haven't?

Yes.

----

Kudos for that as well.
Reading this comment I highly doubt you're a high performer.

The really great people understand that life isn't a zero sum game and have a high degree of empathy and altruism for their team members. And they definitely see the bigger picture e.g. that firing 50% of the company (as is rumoured) is not going to be good for anyone.
I agree it's a giant complex platform, but see a few of the issues I've been having in the last couple of days when interacting with Instagram through it:

- Can't publish posts with more than one picture. "An error has occurred".

- Scheduled posts that failed to publish (see above) sometimes disappear from the list, sometimes falls down to a "Failed" portion in the list.

- Wrong interface language (determined from IP geolocation?). Also no settings to change it.

- Phantom unread indicators (red badge showing X unread messages, but when you click it there's nothing...)

- Missing conversations (shows up correctly on the Instagram app, but they're not there on the web panel)

- Tagging profiles on a post sometimes works, sometimes doesn't, sometimes works but at the wrong picture coordinates.

- Tagging and @ autocomplete doesn't sort by relevance (you have to spell out the entire handle of the profile you want to post, as it autocompletes with random profiles I have never interacted before).

And those are just what I consider to be critical technical issues. There's also missing feature parity (can't publish stories with interactive stickers) and all-around performance problems (the portal is slow as molasses).

I've tried logging off, logging back in again, switching browsers (to one with a fresh profile), trying the Meta Business Suite app on Android. The problem is on Meta's backend.

Meanwhile, Meta's status page says there are no issues with the Business Suite. Yeah, sure.
Unfortunately, a lot of Java programmers write imperative code in Java.
Although I have seen "good" Java programmers write "good clean code", it's the exception, rather than the norm. Most of the good Java programmers that I know have moved on to better languages and platforms.
Even in C, you can write an abstraction for a growable buffer. The problem is, you have to make all the rest of the code work with it, rather than a char* or whatnot.
How much of this is from historic inertia of morning people continuously promoting other morning people because their schedules aligned.
This is what systems like deb and rpm do - they curate a list of packages that can be installed to the system. But most people (in my experience, including myself) don’t use them because they get out of date really quickly and don’t lend themselves to things like virtual environments very well.
You should investigate them at least. There's no harm in shining a little light on how purely criminal app got approved to be in the walled garden. And maybe some money to be forfeitured there as well.
Go on. What are the actual words?
> is it also accurate to say that proteins may fold differently based on temperature, ph, and other factors?

Yes, look up “metamorphic proteins”.
It is also defined for floats.

Using it seems like a bad move though -- for large values it can round back to the input value.

Indeed, the following stupid test program works, although it may heat up your laptop slightly.

#include <stdio.h>

void main()
{
float C = 1.0f;
float Cin = 0.0f;
int i=0;

while (Cin != C)
{
i++;
Cin = C;
C++;
}
printf("%i %e\n", i, C/C++);
}

And, it finally lets us confirm what the mathematicians never could. When does the limit happen? 16777216. No further questions.
Yes, if you mean pseudoephedrine, that's to stop the production of meth.
Please don't post unsubstantive or flamebait comments or take HN threads on generic flamewar tangents.

https://news.ycombinator.com/newsguidelines.html
Trying to find occurrences of “mouse”/“mice” in Alzheimer’s articles as soon as they show up on HN frontpage is now a meme of mine.

PS: there is none this time, which is progress, I guess?
This is a joke right? Have you seen how much the USA pays in social safety nets?

Also, in the absence of the war on drugs, you'd still have criminal gangs, so no, that has nothing to do with it.
Supply chain effects don't seem to have a fundamental reason not to get resolved. What about the Ukraine war? What's the endgame and resolution on the horizon?
> If you wish to provide access via SSH…

Don’t do this. I can’t think of a single reason that anyone ever needs to SSH directly into a server on AWS in 2022.

Use System Manager Session Manager

https://docs.aws.amazon.com/systems-manager/latest/userguide...

Short explanation: it allows you to access a Linux instance via SSH using SSM as an IAM controlled proxy or use RDP for Windows.

You don’t need ingress access to your instance or even egress internet access if your security policies mandate it as long as you set up the correct service endpoints.

Also, just use Control Tower and federate it with your IDP - Active Directory, Okta, etc.
You're being deliberately obtuse, aren't you?

Obviously, if Cisco sells their hardware outright and doesn't retain any ownership rights in that hardware post-sale, they have no legal grounds for damaging or destroying that hardware without the consent of the owner. That would simply be vandalism.
High-performing is not necessarily equivalent to working crazy hours. In fact, working crazy hours, in some circles, is indicative of not being high-performing.
The only we'll ever this inflation period flattened is to reduce marketing to a strict minimum to keep demand down.
Because I am not knowledgeable about D runtime I can not say that it will not cause any conflicts with Rust assumptions (thus the use of "probably"). For example, IIRC there are serious issues with integrating Go code into a Rust project. If D code is compiled in the betterC mode, then there should not be any problems.
My first real programs were games. I cannot think of a single piece of code I wrote at that time that wasn't a part of a game.

"Games! Day one!" to paraphrase David Warner from Time Bandits.

I got in to the games industry at the time when a programmer, or a programmer and an artist would turn out a game in two to six months. I grew up, quite literally, in the games industry I spent a good 25+ years making games, and have dipped my toes back in once or twice in the last second or so. Having had that experience from "An army of one" making a game I wanted to make, to "a face in the crowd" of dozens to hundreds making a game that other people want, I bowed out of the industry and went on to other adventures - that usually paid more and came with far better WLB.

For a while, I had a reasonably successful company where I hired old-timers of the industry to build games just like that. We didn't survive the 2008 recession unfortunately but we did have a lot of fun doing it for about six years.

I've since, personally, returned to making those "army of one" games; code, design, art, music, sound. I'm not looking for commercial success anymore. I just have a really persistent itch.

Last night was interesting, at dinner at the King's Head in Santa Monica, I got together with a few other veterans of the industry from SEGA, Activision, and so forth, all of us either retired or approaching that age when we see 10 or so years down the road to "it's all over."

Our careers have all mostly moved on from the games industry because that industry does not favour wisdom, experience, miles on the clock or the desire to call it a day after putting in a 60 hour week.

During the course of dinner the conversation turned to an interesting topic, we all felt we had five or so games still left inside of us.

Not big games.

Not AAA productions.

Not games that required a team of hundreds working grueling hours with a marketing budget that dwarfs the GDP of a small country.

A game that requires a few people to execute on, something small and easily grasped, polished to a standard that a lifetime of experience and craftsmanship brings with it.

And that is what I have been doing for the past five or six years, making a few small games every year, taking a few weeks to scratch an itch, and publishing them here and there. And I also learned, that is what quite a few of my ex-colleagues have been doing too or are looking to do.

Any time there is a tool like this comes along, I look and think "Wow! I can make a game and learn something new!"

So... thankyou for introducing me to this.
I agree with your point. In our case the current software is perceived legacy and management is looking for a new solution based on no-code.
It's hard to tell what are the author's favorite things about pf. The article read more like a general discussion of pf.
How's the canine space program going? Any reusable rocket bodies yet?
Thanks for figuring that out. In that case I'm glad I remembered to add the caveat!
I think children, and higher order mammals in general needing significant sunlight for optimal health and early growth/development came way before night owls.
Made With ML – develop, deploy and maintain production machine learning
But on the lowest tier plan after your data is used you're living a rough life on 2G speed.

"Once high-speed data is used (including Mobile Hotspot), you will have 2G speeds the remainder of the month. Your data experience and functionality of some data applications such as streaming video or audio may be impacted."
As a former “night owl” who has largely adjusted to a morningish schedule for approximately a decade… alarms are the devil to me. I only set them as an emergency last resort. Even if I do, I generally try to get to bed early enough I won’t need to rely on them. Alarms and abrupt wake from sleep are immediate and persistent negative rest for me. Even waking too early, checking the time to discover I could rest longer but not by much, is more resting. At least then I get an extra 20 minutes to just quietly ease my brain into the waking world instead of bludgeoning it with blasting sounds I either need to react to immediately or pretend I’m sleeping through.
You mean Oracle's entire business model?
No, Mexico. California doesn't border New Mexico, but they do border Mexico.
By the same logic, it’s rigged in favor of the night people as they go to bed a few hours after it chooses to set.
The notion that the reason certain groups of people aren't taken seriously in certain roles is because of "D&I" or "AA" is flatly ahistorical.

Certain people just refuse to accept certain groups of people are capable of accomplishment without outside help or uniquely uncommon circumstances.

But every generation finds some excuse that their prejudices are "rational".
harsh, but fair.
We use it in production at Arista-NDR (for both CI and our Linux rootfs that we deploy on prem and in AWS).

Definitely more than just a developer play thing.
That's hilarious, and probably explains why it takes a few seconds before it starts working.
Maybe you can educate us all on what Twitter's new purpose is.

Because from what I've seen from Jason Calcanis, David Sacks etc they seem to be outsourcing product vision to their followers who have no skin in the game and plenty of hidden agendas.

Can't imagine any great engineers finding that inspiring.
Based on your comments it sounds like you have beef with what you consider less skilled employees. I bet you're a joy to work with. Maybe you should take some time off, you sound burned out. Like being 100% honest here.
> production REPL which lets us manage our entire server fleet with like 1/3 of the staff

I'm intrigued. Are you talking about the `rails console` REPL? How did that allow you to manage your fleet with 1/3 staff?
This isn't a movie I don't think anyone is seething or really cares. They may look at you and wonder where you rank, so it forces you to prove yourself. But in this industry every interview wants you to prove yourself in pointless ways regardless if you have 20 year or 1.
This is incentive to build a better fediverse or decentralized social network or whatever you want to call it. There are lots of projects working on it, obviously, and lots of people already doing it to some extent, but this is one of those events that illustrate why it's a thing worth continuing to push on and move forward.
> 3 Insufficient supply (generally) for demand

Welcom to Always Late Inventory(tm).

Nobody has any inventory to absorb demand. Nobody has any excess capacity to bring online to absorb demand. Nobody is going to tool up for demand that is likely to go away once fulfilled--especially since most of them have no competitors anyway due to consolidation. Rattle this backward at each step of the supply chain.

Maximally efficient is minimally robust.
> The current crisis is supply side driven. If you see a fall in consumer confidence it’s just because the media keeps repeating it’s going to be terrible like this article.

These are two incompatible views. A supply side driven crisis means there is a shortage of goods. In this case, the shortage is driven by sanctions (whereas previously it was driven by covid restrictions). In both cases, it is a lack of stuff available to buy, leading to inflation and business shutting down because their costs of energy, food, and other essentials are too expensive. It has nothing to do with Narrative or Media (although one can argue that Narrative and Media is what drove the public policy response which created the sanctions that led to the contraction).

When we talk about Media and Narratives hitting ordinary consumers, that is a demand-led recession, not a supply-led recession, although the evidence of Narratives creating artificial demand-led recessions in the real world is quite weak. Most business (and consumers) respond to how much money is in the till at the end of the day, not to media reports about economic surveys.
I found this course to be great for foundations and uses open-source tools to implement everything you learn. But it does not use any one stack too deeply so I’m implementing a version for AWS (with and without SageMaker). If anyone wants to collaborate, comment below.

Main link is the GitHub repository but the free text lessons are here: https://madewithml.com/