skysight-inc/HackerNews huggingface dataset:
It depends.

For one thing, constexpr guarantees that errors will produce compilation failures. (At least it guarantees that when used in certain ways; unfortunately C++ overcomplicates things.) In a version of C that doesn't have an explicit constexpr keyword but does allow the compiler to treat arbitrary variables as constants, you could perhaps approximate this by using a value in a context that forces it to be a constant expression… e.g. `const int x = foo(); _Static_assert(x == x);`. But that's a hack. Much better to have an explicit way to say "please evaluate this at compile time".

Also, suppose the user doesn't use an expression in a way that forces it to be evaluated at compile time, but you still want to allow the compiler to do constant evaluation for the sake of faster runtime performance or smaller code size. In this example, should fib(35) be evaluated at compile time or runtime?

unsigned int fib(int n) {
return n <= 1 ? 1u : fib(n - 1) + fib(n - 2);
}

int main() {
fib(26);
}

It depends on the user's intent. In this case, evaluating fib(35) takes less than a millisecond at runtime on my computer, but evaluating it as constexpr with clang requires about a full second. (After all, naive fib performs an exponential number of recursive calls.) Sounds like it's probably a job for runtime… unless the user really values runtime performance or code size more than compile times (maybe they're targeting a really slow CPU), in which case they might prefer it to be done at compile time. Best to give them a choice.

Making things worse, the compiler has no real way of knowing how long something will take to constant-evaluate other than trying and seeing. It can give up after a timeout, but if the timeout isn't very tiny, it risks wasting a lot of time on aborted constant evaluation attempts. Therefore, while optimizers already try to perform opportunistic constant folding, they have to be very conservative with it. This problem doesn't occur if the compiler knows that something should be constant-evaluated because the user has marked it as such.
He seems to overlook a fundamental optimization for open hash tables: ordering the elements in the linked list associated with each bucket. Right now to find an element, he reads the entire linked list if it's not there. By ordering the elements in the list upon insertion, he can greatly improve on that.
Dunno, I've had use from knowing how to implement hash tables several times just in the last few months. Extremely useful stuff if you are working with memory mapped data that is larger than system memory.
the electricity market equivalent of HOAs are not the invisible hand
Funded by taking on debt. Using new debt to pay back old investors. I think there is a name for this strategy?
No taxation without representation, that is.
Simplify use of a debugger. Would be nice if the performance is at least bearable when you’re doing this.
Aliasing is ubiquitous in systems programming. Reinterpreting arbitrary types as arrays of bytes, for example. Honestly, it's kind of amazing that C even has this rule. Seems to be an attempt to be competitive with Fortran.
How did the article get the idea of Apple-patented PPI? It didn't explain it nor does the article it linked suggested it was Apple patented.
I'm really glad you like it.

Out of curiosity, if you had to pick your biggest annoyance with GitJournal, what would it be?

Disclaimer: I'm the author, looking to improve GitJournal.
I have the same problem. I build different modes into my keyboard via QMK that I can switch via special key combos. It works okish, with the exception being that modifiers just work differently on Mac with Cmd not really cleanly mapping to Ctrl — don’t you find this annoying?
Toilet Duck is sold as such in the US.
Prop firms sure like their esoteric C++!
Hands and fingers always trip up NSFW detection models. We use them for automoderation and a lot of people demoing nail art, close up shots of someone painting etc get classified as NSFW. My guess is that fingers kind of look similar to legs to a CNN model and it appears like naked legs.
(? works for both Option and Result, as does unwrap(). ? propagates to the caller, while unwrap() initiates a panic and unwinds the stack)
What Is Go?
Residential coal heating is extremely rare in the US[0], to the point where it occasionally gets a human interest story whenever a reporter runs into someone who uses coal. Most of America uses gas, some newer buildings and the south uses electricity, and wood handily outnumbers coal. The roughest equivalent we have here is oil heating, which is really only common in the northeast. It’s my understanding that that’s being phased out, because it’s unpleasant to live with.

I don’t even know where I’d go to buy coal, to be honest. For most of America the closest we get to the stuff is a charcoal grill.

0 - 130,000 households two years ago, half in Pennsylvania.
My big question here is:

Why aren't companies being found criminally negligent with the CFAA when they force poison-pill "upgrades" that remove stated features from the original device?

How is this functionally different than the crypt-ransomware we see in the news?
Pretty much every printer released since 2010 has IPP Everywhere support, which allows for driverless printing on any platform including Linux.
Six Designs That White People Never Notice Are Racist
How could it be that SpaceX is answerable only to the FAA and is immune to the EPA? Why is it on the FAA to regulate a well? I think the author of the article should work on including a bit more exposition and a bit less snark (if he actually intents to persuade people, anyway.)

Also I'm a bit confused why people are surprised the methane for these rockets will come from a well. Did people really think Elon Musk was going to stick a hose up a cow's ass to collect the methane?
Oh gotcha. I thought you meant that you were some how modeling the prng using some reduced set of constraints.
> But, if you declare a thing constexpr and someone updates some part of it to be !constexpr, you get a nice compiler error. Without labeling the value as constexpr, you don't get that certainty.

That's not really true. You don't get that "certainty" with constexpr either:

template<class T> T f(T);
template<class T> constexpr T g(T x) { return f(x); }

Notice you won't even get a warning with -Weverything under Clang!

> Edit: is the argument that const static is also that? (If so, only for direct initialization of structures / you still can't have the equivalent of a constexpr function).

For variables, const static should probably evaluate at compile time whenever possible, like you mentioned.

For functions, constexpr is really useless (again, see above as just one example) and an inline declaration serves pretty much the same practical purpose. I think you're thinking of 'consteval', which is at least not completely useless, so it's a little easier to justify. Even then, it should've probably been an attribute rather than a keyword.
My main monitor is a wonderful 27" Dell Ultrasharp 3K, and for my secondary monitor (which I keep in portrait orientation) I have a 24" Dell Ultrasharp FHD 16:10.

After seeing how crisp and clear the text is on my main screen, I was really annoyed with myself for not getting a 3K screen for my secondary monitor too :(
Niche? Maybe in some areas. There are at least 10 companies using Elixir within biking distance of my house. I've been working with Elixir professionally for six years and have never had an issue getting a job or hiring people. Things may be different in your area.
It’s a nice way for companies to look diverse without actually being diverse.
How to Set Up OpenSUSE for Gaming
I am still skeptic, honestly, are some metal gears worth the 20x-10x cost increase? Yes, you can make it more suited for long term use for _some_ cost, but that much? At what point is is actually fleecing customers? Some products surely are just fleecing, but how can you tell? Usually, you can't.
Cliodynamics is this, but for the miseries of industrial war.
Seems would be impossible were UK staying in EU?
Typically the method used to get these numbers is arithmetic. HG flour is $22 per 50# wholesale, bulk, delivered. Organic HG is $48 for the same. A bag of flour is about 30 loaves (we scale recipes to the 50# bag). Typically the artisanal seed stuff will get the higher grade flour.

Shredded mozzarella is $52 per 20# wholesale, bulk, delivered.

Et cetera.

Certainly if you are in a different market, the economics could be different.

Hope this helps you understand.
Could you share the setup you ended up using?

In my institution I have to replace a long lived solution that even suports a nis domain, and I feel a bit overwhelmed.
Wtf is wrong with cops, the #1 death of K9’s is heat stroke? So basically negligence by their handlers? It’s a mazing we trust these dumbasses with guns.

Additional Source : https://thebark.com/content/surprising-cause-death-police-do...
I knew I shouldn't have made a categorical statement, but it's been the rule rather than the exception everywhere with a printing press. Even the much vaunted US freedom of the press ran into the Comstock laws.
Do you put your life on the line at your job?
That's the core of the problem though right, sacrifice something today to help reduce the greenhouse problem in the future.
I laud Mao`s attempts, as hard as they may have failed. War and agriculture are the foundations of all successful states.

Once both have been rectified higher forms of progress are made possible and industry can be established.
It is. The expressions that look like this:

(sys.lap-x86:xor32 :eax :eax)

are assembly language statements.
I agree that #1 would be considered harmless by most people, and except for the fact that it's still copyrighted would not be subject to a takedown anywhere. As you say, #2 would probably be widely accepted due to the religious context, even though objectively it is quite gory.

I disagree with your assessment of #0. It is extremely gory, repurposes religious imagery in a secular context, and was considered such a menace to society that it could not be shown in museums and had to be hidden for 15 years.

And I think #3 and especially #4 were not meant to depict nudity devoid of a sexual context. With Fragonard, there is often an acknowledged voyeuristic element, even in paintings where there is no nudity, such as https://www.wikiart.org/en/jean-honore-fragonard/the-swing-1... (cf also the original French title).

But it's kind of twisted that we consider it less weird to look at a person nailed to a cross than one engaged in a prelude to a reproductive act.
A large amount of California environmentalism is air quality, as measured in California; moving to cleaner sources within the state and dirtier sources outside the state helps tremendously with air quality as measured in the state. Of course, it doesn't help air quality near those other sources, and global measures aren't helped by simply moving coal plants elsewhere.

It's also not great for grid reliability to increase the watt miles used (is there a real term for that?).
we need more energy, not less! if you want to be an ascetic because you have an irrational fear of nuclear energy go right ahead. but we need to be bringing TWs online to run those carbon skimmers and nuclear is the only real route to do so
Star Wars enthusiasts build a life-size replica of X-wing starfighter
https://archive.is/iYCWl
Really? I feel like that's just having any 2021 laptop. [...] 20% for a few hours of video calls just feels baseline.

I had a brief Linux/Windows excursion with a ThinkPad T14 Ryzen laptop. Three hours of video meetings was enough to drain most of the battery in Linux (worse power management, plus no hardware encoding/decoding in some video meeting apps). In Windows, it lasted a bit longer, but the battery would definitely be drained 50%, often more.

The ThinkPad was not a lemon. This seems like pretty normal drain if you look at people's experiences on the web.
Across all ages COVID looks to be #2 in causes of death but #1 for ages 35-54. [1]

Note that only in 5-6% of deaths is COVID the only cause of death. CDC has data on comorbidities [2]

[1] https://www.healthsystemtracker.org/brief/covid19-and-other-...

[2] https://www.cdc.gov/nchs/nvss/vsrr/covid_weekly/index.htm#Co...
Was curious & looks like COVID is the #1 killer of fire fighters as well:

https://apps.usfa.fema.gov/firefighter-fatalities/fatalityDa...
The average age of death from Covid in the US is higher than the average age of overall death. So I don’t think it applies everywhere. I think occupations that don’t encounter so many people probably have a lower death rate.
That's my worry about the integration of crypto into tradfi (via BTC ETFs, stablecoin savings accounts, &c). It's OK if crypto is a hellstorm of speculation because it rides on top of rapid experimentation. However, it's really not tolerable to have that much chaos actually affecting e.g. people's retirement funds. If crypto messes up main street then the regulatory hammer will be unfortunately well earned.
Related to starting in tech support, try to get an entry-level job in quality assurance (QA) / quality control (QC). You'll get exposure to software engineering and software engineers, then make more an informed decision about the field.
Curious, why doesn't supermarket bread go stale as quick as bakery bread? Is it because they use some sort of preservative (I could not find anything obvious in the ingredients list)?
I'd take that bet. https://www.livescience.com/nuclear-fusion-reactor-sparc-202...
You are correct. IIRC, LEOs are around #16 after loggers, fishermen, and bartenders.

But considering the amount of push back on vaccine mandates, including threats of walkouts and mass retirement, the effects of politicizing the vaccine and COVID in general are truly stunning. This is what was significant about this to me.

edit: I see your edit with the source now, thanks.
Not really, that was Denmark, or France's nuclear buildout.
I’m glad that nude artwork is filtered out from the mainstream, because if it weren’t, the art world would become even more faddish and attention-seeking. I can’t even search YouTube for recipes or offgrid videos anymore, because the top results are always a woman in a sexualized pose.

It’s okay to like boundaries. Everything doesn’t need to be blared in your face all the time. Saying this doesn’t make me a Puritan, it makes me in line with most of the people on earth.
How does S0ix work on Linux? Is there a way to powerdown more?
Java Optionals are useful in Streams.

I've found I agree with the principle that Optionals only make sense for return values (and if the method returns null, that should be treated as a bug).

I've seen Optionals used for member variables, and they might as well just be null. (And are highlighted as such by IDEs like IntelliJ).
Good point, USB-B is used on printers.
I disagree, France is being completely rational here. There is a better mix of power that is possible now than in the 1970s, because of technology advancements. A lot has happened in the past 50 years.
It really shouldn’t. Most pro users absolutely don’t need a 4K webcam.

It should have a better camera, that much I agree with.
If I am doing the numbers right, the overall US COVID death rate is ~2200 per 100K and LEOs are 476 from that site out of (from other sources) about 700K, which is 68 per 100K.

Which initially makes LEOs look like they are doing quite well, but I suspect its quite bad once you correct for age demographics of the population and the law enforcement profession. There aren't a lot of cops in the age groups with the highest COVID-19 death rates...

Then its a high contact profession that has been highly resistant to every control measure (to the point of actively sabotaging enforcement in many places where they were responsible for it), so its not at all surprising that they would be hard hit.
> A deliberate underproduction to get "bailed out" is a strong accusation

In 2019, 25% of its electricity was imported[1]. This is before California takes even more power offline and replaces it with variable power.

[1]https://www.eia.gov/todayinenergy/detail.php?id=46156
If anyone had any doubt about whether Elon really had the environment in mind when he founded Tesla, I think now you've got your answer. In fact, most people driving electric cars likely wouldn't think twice about building a fracked well if they knew they could make millions from that... if they really cared about the environment, they wouldn't even drive around.
renewables are not big enough in a huge industrial and developed country like Germany

Hysterical shutdown of nuclear plants following Fukushima lead to the gap being covered by fossil fuels

also while US have very cheap gas from the domestic industry, Europe is constrained by a couple of pipelines and shipments and market fluctuations, so it didn't replace coal

https://www.cleanenergywire.org/factsheets/germanys-energy-c...
couldn't they focus on developed an autonomous/robotic helicopter rather then a drone? I don't think it can run 24x7 since it needs to refuel/recharge.
It's a demonstration of rationality? No one builds new nuclear power plants because they can not compete on price. Hinkley Point C will produce power at $145/MWh. That is crazy. At that kind of price point, you are better off building an interconnect to Norway and straight up importing hydro power.

Think about the kind of lifetime and investment that comes with nuclear. You start a new plant project today. It might produce power in 15 years, for some 30+ years to make it economical. Who the fuck wants to bet $20B+ on solar not supplanting our entire power generation within some 45 years?
Because that is what you are saying: build new nuclear, because even half a century from now, we won't have the storage technology to make solar and wind work. That's the bet.
Self-awareness in the context of one's adherence to "influencers" in culture. If you read the article as I did, and constantly thought: "Could this apply to me in some way?", then you are appropriately testing yourself.
> I agree that liberalism is a good thing, the only problem it's not me you need to convince, but Putin, Erdogan and Xi, and they obviously don't want to give their power like it would imply

i think this line of reasoning is very wrong and in some sense insulting. i am sure you don't mean it like that, but i would say that if you need to convince someone of something like that, it is the people of those countries that you need to convince. also rejection of liberalism doesn't only happen in russia, china, and turkey. it is pervasive in central and eastern europe, in middle east, as well as in some huge populations like indonesia, and probably in a lot of other places too. pretty much it is possible that most of the world's population thinks it is not a good idea
They could also have self hosted a website and accepted payments through Monero or Bitcoin. Why rely on Onlyfans as another third party site?
It has a window, that already makes it better than a cheap hostel room I stayed at once.

Go look at US prison cells, they're so much worse, there's often no separation between the toilet and the sleeping area.
it's not though. fear of flying is common enough but people accept that's not backed up the statistics. nuclear energy is in the same camp.

it is objectively the safest method for power generation
Cops are worshipped by society because "they put their life on the line". This, like the link you shared, should disabuse people of that notion. Unfortunately it will change nothing.
Yup. And nevermind the top 1%, it’s the top 0.01% that are calling the shots. Taxation any lower is just misguided.
It would make some amount of sense.

It seems like the other most common killers, heart disease and cancer, tend to take you out with more predictability and on a longer time scale (barring surprise heart attacks). I would expect that a large percentage of people dying of these diseases leave their jobs (voluntarily or laid off) before they die of it, making them less common causes of death for active professionals.

On the other hand, covid hits people fast and hard. One day you're fine and working and the next week you're on a ventilator, so these deaths are more likely to happen to people still actively employed.

And we see exactly this reflected in this data. There were 15 heart attacks and no reported cancer deaths, and 231 covid deaths in 2021, even though the overall death rate of covid is comparable to those two.

Nobody stays on the job when they know they have a few months left to live.
I also don’t see what all the fuss is about here.

SpaceX making a well to power the human colonization of mars is a drop in the bucket vs all the other wells in the state.
Hinkley C is up past 15 years construction time, £22Bn build cost and £50Bn electricity purchase guarantee (profit subsidised by the taxpayer in some way). Compared to how many solar panel MW you can buy on the open market at consumer prices for that money, it's terrible value for money, ignoring winter base load concerns anyway.

We're going to have to have Chinese expertise come in and build them for us. "[China] has 38 nuclear power reactors in operation and 19 under construction. It has increased its number of operating reactors by more than ten times since 2000 and plans to bring five units into commercial operation this year alone." - https://www.iaea.org/newscenter/news/how-china-has-become-th... [2017]
Laser scanner combos are huge compared to an inkjet.
Germany had a bunch of nuclear plants, which have pretty low carbon emissions.

Then they decided to shut them all down; and that they urgently need a new gas pipeline - Nord Stream 2 - to import natural gas from Russia.

Doesn’t sound very carbon neutral to me.
This reminds me of a visualisation tool [0] for the distance between the meaning of words in french, based on databases of texts. I wonder if that would help to grasp the nuances in older times.

[0]: https://www.cnrtl.fr/proxemie/sottise
Google was already the super hot place to be before the recession. And Apple was the media darling even before iPhone.
No? What gives you that idea?
UK Launches Digital Pound Foundation
Yes, countries run into trouble when people start voting tribally, not on the issues. Diversity has some benefits, but it also has downsides. I'm suspicious of people who deny either.
Pizza dough typically has oil and sugar, bread dough does not.

Pizza dough is typically bulk fermented cold for 2-12 days, bread dough is usually bulk fermented at room temperature for 1-4 hrs. Rye breads are a bit different and the fermentation is staged over about 36hr, at room temp.
I think you're confusing yourself with the terminology, so thank you for bringing this up, I'm referring to a specific likely scenario where the effects brought on by climate change and workforce displacement which I broadly refer to as 'dystopian', not the broadly applied science fiction reference where, in some cases, society itself has collapsed to surreal science fiction like levels.
If twenty years ago you had told me, "One day we'll live in a world where the NY Post is a more intellectually honest and insightful paper than the NY Times", I'd have laughed in your face, but here we are.
My charger just stopped working one day on the first 13 v2. The touchpad would also just not accept input sometimes. Also, and this one I had forgotten: sometimes it would just experience sudden power loss. Returning the damn thing for a warranty repair was a nightmare. Finally they just shipped me a new 13 v3 which had a broken hinge.

You may just be lucky. The failure rates of Librems are well documented across their forums, subreddit and YouTube. I strongly urge anyone not to buy one, including the new 14, which has extensive reports of keyboard input failure, coil whine, terrible audio and generally poor fit and finish.
Seems like stargaze would be a good candidate for Tesla solar + mega pack installation. 10 mega packs should do the trick.