skysight-inc/HackerNews huggingface dataset:
> You realize this person that you are calling an expert claimed that they optimize software by putting tiny memory allocations into their tight loops right?

You're either misunderstanding, or pretending to misunderstand for some reason.

What I said was that allocating fresh objects and using those can be faster than re-using stale objects in some failed attempt to optimise by reducing allocations.

Why would that be? For the reasons I explained: The newly allocated objects are guaranteed to already be in cache. Each new object is guaranteed to be close to the last object you used, because they're allocated next to each other. The new objects are not going to need any memory barriers, because they're guaranteed to not be published. The new objects are less likely to escape, so they're eligible for scalar replacement.

You dismissed all that as 'throwing out terminology'.

Here's a practical example:

require 'benchmark/ips'

def clamp_fresh(min, max, value)
fresh_array = Array.new
fresh_array[0] = min
fresh_array[1] = max
fresh_array[2] = value
fresh_array.sort!
fresh_array[1]
end

def clamp_cached(cached_array, min, max, value)
cached_array[0] = min
cached_array[1] = max
cached_array[2] = value
cached_array.sort!
cached_array[1]
end

cached_array = Array.new

Benchmark.ips do |x|
x.report("use-fresh-objects") { clamp_fresh(10, 90, rand(0..100)) }
x.report("use-cached-objects") { clamp_cached(cached_array, 10, 90, rand(0..100)) }
x.compare!
end

Which would you think is faster? The one that allocates a new object each iteration of the inner loop? Or the one that re-uses an existing object each time and doesn't allocate anything?

It's actually the one that allocates a new object each time. The cached one is 1.6x slower in an optimising implementation of Ruby.

It's faster... but the only change I made was I added an object allocation instead of the custom object caching. I went from not allocating any objects to allocating an object and it became faster. This example is so clear because of the last factor I mentioned - scalar replacement.

If you came along and 'optimised' my code based on a cargo cult idea of 'object allocation disastrously slow' you wouldn't be helping would you?
"From € 1.000 p/m" is even worse. I was not even aware of any locale using ',' for decimals and '.' for thousands.
Small-Town Natives Are Moving Back Home
In my brief usage of OCaml, it seemed like the consensus was that the OO features were better off forgotten.
A lot of things. The main thing to realize is that the Wayland team doesn't really care about much other than putting windows into compositors.

Wayland doesn't actually support screenshots, it's all extensions.
I'm sure you could find ways to spend more money and increase the quality of that free education, no?
A good number of that good number of people that dont pay taxes are children that dont participate in the economy first hand.
> One wonders when the paintbrush was invented if people argued people should still finger paint, and that the paintbrush alienated artists from their work.

But how about tracing-paper? Or even a camera obscura? [1]

[1] https://www.vanityfair.com/culture/2013/11/vermeer-secret-to...
Coin value is a social phenomenon anyway, so it’s kind of meaningless to assign cause and effect. My point was that electricity usage in PoW provides an external metric for assigning exchange value to the coin which is not self-referential, unlike in PoS.
I realize most people don't actually do this, but imo it's pretty irresponsible to drive around in a 1.5+ ton vehicle without taking the time to RTFM, regardless of how complicated it is.
How Owners Equivalent Rent is calculated: https://www.bls.gov/cpi/factsheets/owners-equivalent-rent-an...
Most of what you would need to cobble together a busybox like binary is there in the systemd/src/basic directory. stat-util, procfs-util, sort-util, path-util, and so on.
Check out Retool: https://www.ycombinator.com/companies/1564

A wswig for internal UI/dashboards has a lot of value for companies that don't have a dedicated internal tools team.

My company had an internal tools teams at one point but it got killed because of other business priorities.

We use https://github.com/sferik/rails_admin, that still requires development time and frontend knowledge, but the framework is terrible.

https://marmelab.com/react-admin/ is much better but also required development time and frontend knowledge.
You do know a lot lot lot of people would still be at a loss when it comes to doing what you describe in your last sentence.
Right, but are all vaccines equal ? Take the chinese Sinovac one for instance, which several countries have been using for their mass vaccination program. Preliminary data in Brazil showed an efficacy of about 50% in preventing asymptomatic infection[1].

Are we sure that it will be able to "end the pandemic" in these countries as well as the mRNA ones? I remain a bit skeptical. In a CDC simulation[0] back in June 2020, the conclusion was that:

> This study found that the vaccine has to have an efficacy of at least 70% to prevent an epidemic and of at least 80% to largely extinguish an epidemic without any other measures (e.g., social distancing).

Could someone more educated than me in the matter chime in?

[0] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7361120/

[1] https://www.bbc.com/news/world-latin-america-55642648
I agree but I wouldn't call systemd a init system.

It's a service manager for your Linux OS which manage all services down to initial startup related services.

Just viewing it as a init system is misleading.

As a side note I think a service manager directly above the kernel is a must have for any modern server or desktop operating system ;=)
From TFA:

> Intel has revealed that each Pentium III chip will carry a unique serial number that can be read by the computer's software. Intel claims that the serial number will facilitate e-commerce, promote "digital content protection," prevent counterfeiting of Intel processors, and help to track stolen ones. We know users have questions about this controversial feature, so we assembled this FAQ. Q: Why are privacy experts concerned? A: Privacy experts are concerned because the CPU's electronic serial number could be used for purposes that may not be in users' best interests.
WHO disagrees with you.

HEALTH RISKS FROM DRINKING DEMINERALISED WATER

"V. CONCLUSIONS
Drinking water should contain minimum levels of certain essential minerals (and other components such as carbonates)."

https://www.who.int/water_sanitation_health/dwq/nutrientscha...
Another emulation lawsuit, Sony v Connectix, happened the previous year. In that case the concepts of emulation were found to be legal but Connectix was hit for copyright infringement of the Playstation's BIOS.

Bleem used HLE to avoid needing a copyrighted BIOS image. Sony complained to the courts, but Bleem successfully defended all counts using the Connectix precedent.

You're looking at the appeal - in appeal, the only leg Sony had left to stand on was the use of screenshots of copyrighted games, but the court determined it to be fair use.

So the precedent comes from looking at a series of cases around this time, but Sony v Bleem is commonly used as a handwaving reference to the whole saga. It's the first major time this defense was successfully used in court.

For an interesting comparison, the GPLv2 was written in 1991 but technically wasn't tested in a US court until 2014.

(IANAL.)
+1. I can also recommend his new book “Staff Engineer: Leadership beyond the management track”.
anyone know of a GitHub list of open source clones of popular products?
Trucks have gotten too tall recently. I’m not sure exactly why. The offroading packages lift the body, so you’d think they could lower the cabs to the old height. Also, fuel economy has been stuck for decades despite most shutting off engine cylinders, and including all sorts of other fuel saving gizmos.

Having said that, modern trucks have much better visibility than other body styles. The rear view mirrors are placed lower, greatly reducing blindspots beside the truck, and the backup cameras are higher off the ground, providing a better angle.

As for parking, fitting an American sports car in a spot is almost as much of a crap shoot as fitting a full sized truck.

As for the masculinity digs, well, it’s my wife’s truck. We’re both extremely concerned about climate change, but there is no reasonable alternative on the market. It’s not like the cybertruck is shipping or dealerships carry smaller engine trucks any more. Heck, they don’t even make small diesel trucks any more, and the EPA was blocking sales of the larger diesels the last time we were shopping. (Small diesel trucks had much lower CO2 emissions than gas trucks, but they have a less popular acceleration curve.)

There’s a lot of ignorant prejudice in this thread.
I would certainly take a taycan over any tesla, but to be fair, the taycan has a significantly worse range. I might be wrong now, but tesla was the leader in that category last I checked.
> If we had some kind of EAC support

Um... let's not.
> I ended up pursuing early medieval Chinese literature

I read https://www.amazon.com/dp/1624666302/ (Selections from the Taiping Guangji, by Ditter, Choo, and Allen) and would love to find more books like it. It translates some stories and prefaces each one with introductory and explanatory material covering concepts used in the story ("侠 has referred to different things over the centuries..." / "most animals are depicted as being able to take human or animal form at will, but tigers are an exception, requiring their skins to resume animal form" / "readers would have recognized that the neighborhood the protagonist lives in is, while not especially well-off itself, physically next to an extremely wealthy neighborhood" / "the tiger uses 'inclination toward mountains and forests' literally, and her husband interprets it differently because this is a conventional expression referring to the retirement of an official from public life").

The introductory/explanatory material adds an incredible amount of value for me. Might you be able to recommend anything similar?
> Determination is more important then anything.

No, it's really not. If what you were saying was true, everyone who wanted to be a financially successful artist would be. The truth is there are such things as supply, demand, process, practice, mastery and logistics. To over-anthropomorphize these things based on "determination" is naive and hyperbolic. The truth is that consistency matters a lot more.

I stopped listening to people like you who think there's anything wrong with thinking the world is stacked against me, and especially for minorities and women. I stopped listening to people like you, who think we need encouragement, not horror stories. I used to listen to folks like you, but then I stopped. Instead, I listened to those horror stories. Shrank not away from them, held space for them and held fidelity to reality first and foremost.

And once I focused on the realism, I began to see things clearly. A lot more clearly than you. That's when my career began to take off and I began to make better art. Isn't that odd?

--

The problem is that to you, the youth are vehicle for your own hopes and aspirations. You don't stop and consider what they think from behind their own two eyes, you project your own parochial assumptions unto them. You forget that once upon a time, you were their age, and you would have found it patronizing to be treated with kid gloves. You don't treat them as equals. You treat them like a pet dog. I think that's wrong. Young people these days are a lot more capable than you think. And they face a really challenging world. It's immensely disrespectful to not treat them as equals, to presume they need "encouragement" -- let me ask you this, have you asked them what they need? Maybe you would be surprised.

I don't treat any of my friends or colleagues with kid gloves, certainly not the ones younger than me. They tell me about the state of the world and how unfair it is, and I listen. I ask them what /they/ need. Some of them need encouragement, but that's rarer than you'd think. Most of them want information. They want experience. Strategies. They want to be challenged, motivated, given interesting threads to explore and follow, collaborated with. They want to know what I did when I was in their shoes and went through the same pains, even if it's not exactly the same thing. Sometimes they want to work together on something cool so they can see how I operate. Maybe they just want an ear to listen to.

But they don't want to be condescended to, or patronizingly told that their problem is that they think the world is stacked against them when they need to think happy thoughts. And of course they wouldn't want that -- because to be told that is something that serves the person doing the telling, not the person who is listening.

So if you're saying anything like this to young people, I think you need to take a long hard look in the mirror. You are out of touch.
yes, if you don’t have marketable skills there are artificially crippled growth industries involving drugs or your body

that isn’t new with crypto
I know it’s slightly imprudent but I initially discount the opinion of anyone who uses the word “performant.” I know many others do as well. Language matters. Use precise language that has a specific meaning. Anyone can make a vague claim that something is “performant”
Then why do women (not girls) voluntarily participate?
I did a web search for "cots" and learned that a cot is...

> a small usually collapsible bed often of fabric stretched on a frame

But in this case, COTS is apparently...

> commercial, off-the-shelf

In other words "photo equipment" or "consumer/retail photo equipment."

Upon further reading[0] it seems odd to use the term here, but maybe I'm misunderstanding something. It's often used for software and has a key phrase...

> packaged solutions which are then adapted to satisfy the needs of the purchasing organization

But it's possible the term has been co-opted to mean something else now.

[0] https://en.wikipedia.org/wiki/Commercial_off-the-shelf
Show HN: I made a service to create blog from Slack. –- Slog
Those losses can be made much less than that. Theoretical minimal losses are on the order of 1-2kWh per kg, and in practice not much more than that[1]. Further efficiency improvements can get reality even closer to theoretical.

Most of these arguments are increasingly outdated, as I mentioned before. We're at the point where hundreds of billions of dollars are being spent on hydrogen right now[2]. So naysayers are more accurately described as being out of touch with latest events and not people with any special knowledge.

[1] https://www.hydrogen.energy.gov/pdfs/9013_energy_requirement...

[2] https://www.jwnenergy.com/article/2020/7/8/europe-unveils-pl...
> The guys doing the actual calculation receive a government salary that is fixed, they don't get any bonus linked to the outcome of the measurement. Their bosses don't get a bonus based on how low the CPI comes out either.

Assuming everyone always stayed in the same job position, this might be true, but advancement within the system is frequently based on whether your work is producing the desired results so when you treat this as a multi round game, their salary level can be tied to the degree which the data they produce conforms to the desired narrative.
Probably German.
There are billions of non-photorealistic games out there with every aesthetic imaginable, both retro and non-retro. It's not an exaggeration to say that there are far more options today if that's what you like. You just have to do a little searching.

https://obradinn.com/ http://www.antichamber-game.com/ https://www.supergiantgames.com/games/hades/ https://store.steampowered.com/app/1057090/Ori_and_the_Will_... https://store.steampowered.com/app/239030/Papers_Please/ http://kentuckyroutezero.com/ https://store.steampowered.com/app/48000/LIMBO/ https://store.steampowered.com/app/557600/Gorogoa/ https://www.monumentvalleygame.com/
A New Dungeons and Dragons Electronic Dice
> They did not follow through because he failed to actually hire a hitman.

Not sure why that isn't a crime, but I stand corrected. Thanks for responding with legitimate criticism instead of just downvoting
Awesome, thanks for the explanation
Your health insurance policy provider, as soon as you get an EOB.
Tesla did buy 1.5B$ bitcoins, so ..
Governments have a monopoly on issuing fiat currencies, but for PoS cryptocurrencies there is no enforced scarcity—any DApp that can run on Ethereum can easily run on any of an infinite number of Ethereum clones, so why bother using the expensive congested network?
The Hyperreal
It feels like having a marketplace for this cheapens the experience of using formalwear. Imo

I would try and find a way to change the experience so its not similar to buying stuff on Ebay (i.e the homepage feels that way)
I am not sure the bit depth and sample rates of web streaming services are simply the question of conserving bandwidth and not the result of some underlying limitation of some web standard.
I think you are underestimating how severely in the hole many our pension systems are and how much of a political non starter it is to suggest that those pensions can't be paid.

One does not simply fix the pension system.
I believe the comment refers to the fact that Tesla bought a lot of bitcoins. So for their current valuation to make sense, either they have to succeed in monopolizing the auto market, or their bitcoins have to go up a lot in value.
One great way to get this into the mainstream would likely be to clone and adapt `feathers.js` support for `Airtable`:

https://github.com/jonascript/feathers-airtable
Sandstorm kind of tried that (https://sandstorm.io).
Even in rabbinic Hebrew, the name for this script is כתב עברי (Hebrew writing), and the name for the script used today is כתב אשורית (Assyrian writing).
show me a c program that does this in a manner that a rust program can't emulate
Paper miles don't count for much. Real world miles are a more useful comparison. The Taycan does poorly in the EPA's test but does a lot better on the road:

https://www.caranddriver.com/reviews/a30874032/porsche-tayca...

https://www.cnet.com/roadshow/news/2021-porsche-taycan-epa-r...

https://www.youtube.com/watch?v=5C_7fBljFzY

https://www.youtube.com/watch?v=GFsjMvCFlig
AMMs are quite a different beast than posted-order exchanges.

These are more like ballast systems, yes, as seen in large ships, than anything else I could describe.

It has revolutionized trading and liquidity without exactly being a panacea, but its pretty damn close.

They’re pretty good, and it is an active area of development to be better. Transaction fees can range from $.01 to $150.
There isn't one efficacy number for Sinovac:

“As of December 16, 2020, there were 12,396 health workers over 18 years old enrolled. A total of 253 positive cases were collected during the observation period. After 14 days following vaccination with 2 doses of vaccine following a 0, 14 day schedule, the efficacy rate against diseases caused by COVID-19 was 50.65% for all cases, 83.70% for cases requiring medical treatment, and 100.00% for hospitalized, severe, and fatal cases.”

The near 100% efficacy against hospitalization and severe disease is still sufficient to end the disease burden of the pandemic.

The virus may become endemic to the human race, but if the disease burden is somewhere in between the common cold and seasonal influenza then the _pandemic_ is over.

The achievable goal is probably not eradication.
trains are a great solution for point-to-point links between two dense areas (eg, city center to city center or intra-city transit). given that GP has a 120 mi commute, it's a fairly safe bet that they either live or work in a sparse area that would not be well served by a train. the appeal of a train drops off pretty fast if you have to drive to the station.
> C++ code I wrote 15 years ago won't compile today

Do you recall specifically why?

Also, isn't C pretty 'time proof'? The only time I've seen old C fail to compile was when dealing with a real relic of a codebase. If memory serves it used the pre-standardisation parameter-declaration syntax:

void my_func(x, y)
{
int x;
long y;
}
It's a fork. By definition.
The Fed's mission is to control inflation and unemployment. Note how the two most ridiculous fudged statistics published by the US government are inflation and unemployment.
> The crux of the issue here is that it's not possible to know what someone else truly believes.

I don’t think there’s some process to follow to acquire knowledge with a guarantee that we haven’t made a mistake, but I don’t think that means it’s impossible to acquire knowledge. I think we can and do acquire knowledge about people’s beliefs and intentions and use that knowledge to solve problems. Obviously examples are convicting people of fraud and various crimes where the person’s intentions are relevant.
I see. I had blinkers on for engineering which has symbols like nu for Poisson's ratio and epsilon for strain and I've developed some annoyance working with source code that's full of spelled out Greek letters where it's not even clear what they represent. Now I think about it, there are cases like you identified from finance where the Greek letter becomes the mainly known name, such as alpha and beta for Rayleigh damping coefficients. When implementing algorithms from literature, I've sometimes named variables with both - the description to aid understanding and the letter to make it clear how it corresponds to the original material. Still don't get to choose the letter though.
They're correct when it comes to scientific fields - the number of significant figures is important, so 18.0 and 18.000 really do mean different things.
For a moment I thought you were joking. Thanks for the info.
> Automated computer generated art is as beautiful as the greatest paintings.

As someone who paints daily and has made a lifetime study of painting, including visiting museums locally and worldwide, as well as trying to stay abreast of the "state of the art" of the use of computers in art (as well as writing software as a day job for decades), I am puzzled by this statement.

The greatest paintings, "in the flesh," simply have a punch and an impact that, to my eyes, has not been rivaled by the "state of the art" in digital renderings of any kind, or indeed in any works where a mechanical process is anything but a small factor in the completed work.

I would be fascinated to see what you consider to be examples of "automated computer-generated art" that rivals the works of Rembrandt, Titian, Velazquez, or anyone in the top tier of art history. Those artists are world-famous (not just now, but for centuries) for a reason, but you often have to get in the same room with the works to see why.
Isn't this the PaaS model?
Someone has to make these calls in any pooled-resource scheme. Jeff Bezos is free to pay whatever he likes from his own pocket, but any shared pool should be sensibly regulated to prevent ridiculously wasteful spending in the last few months of life.

If we perfected artificial hearts, for example, and they cost some nominal amount (less than a typical car, for example), we still wouldn't implant them in 102 year-olds. I'd argue against that implant for my parents, myself, and in the unlikely event I'm around then, for my kids.

I don't live under NHS, but the calculations they do, while often the subject of finger-wagging, seem entirely sensible to me.
> 73% of pregnant Somali women in Sweden are Vitamin D deficient vs 5% of pregnant Swedish women

You have to be careful with those claims; I believe "Vitamin D deficiency" is one of the medical metrics that isn't race-normed. But there's no reason to expect Somalis to have the same natural level of Vitamin D that Swedes do.
"performs better" the dictionary will catch up

edit - apparently oxford dictionary has it already as "performs well"