skysight-inc/HackerNews huggingface dataset:
I haven't played with Pulumi in a long while, because we decided that for hiring reasons we'd hold our nose and use the aggressively stupid terraform because at least it's known stupid

But I just fired up a recent version of Pulumi and can say that there is "no long live Pulumi" in its current state because they aped terraform so much it falls prey to the exact same stupidity as terraform, only now featuring their own bugs <https://github.com/pulumi/pulumi-aws-native/issues/108>

$ pulumi new aws-native-go
$ grep NewBucket main.go
bucket, err := s3.NewBucket(ctx, "existing-bucket-name", nil)
$ aws s3api list-buckets --query 'Buckets[*].Name' | grep existing-bucket-name
"existing-bucket-name",
$ pulumi preview
@ previewing update....
+ aws-native:s3:Bucket existing-bucket-name create

so: (1) I see, you required that I give you live AWS credentials, but you didn't use them for shit (2) this is not legacy terraform behavior this is using their own provider so they are not beholden to the incredibly misguided decisions Hashicorp made

You can retort "but muh state file!!1" all you want, if I $(pulumi import 'aws-native:s3:Bucket' existing-bucket-name existing-bucket-name) and then run $(pulumi preview) it for damn sure uses any credentials to interrogate the resource so let's just skip the pretense that one needs a state file to straight-face check proposed changes. Asking the user to learn the crazy import syntax for every resource across every provider just to do the work of a computer running a HEAD request against an API is stupid

Or, if one wants to take the terraform approach of hurp durp I dunno if any resources exist, then don't require live credentials during the plan phase so that everyone is on exactly the same page about what will and won't happen for each phase
be sure to mock people with +20 years software design and development experience, too...
> I think I've heard euros claim they don't have air conditioning, too.

This. I don't know about Italy, Spain, and the like, but here in Paris, people mostly don't have A/C in their homes, but basically every office does.

So yeah, carting people to the office and back consumes energy, then you have to consume some more to keep them cool. Bonus points for an impossible number of people burning gas in their cars while waiting around on gridlocked highways and polluting the air. At least public transit uses (mostly) nuclear power here.
I struggle to resonate with what you are saying, as my experience is the opposite. I'm curious where this discrepancy is rooted. Reckless hypothesis: are you working on majority latency or majority throughput sensitive systems?

I have seen so, so, so many examples of systems where latencies, including and especially tail latencies, end up mattering substantially and where java becomes a major liability.

In my experience, actually, carefully controlling things like p99 latency is actually the most important reason C++ is preferred rather than the more vaguely specified "performance".
I mean, it's essentially the same problem that Wikipedia has been facing for years.

It's pretty much useless for anything political related because we all know which world view it will have. All in all, this whole thing reflects the same problem, much like Wikipedia they trained ChatGPT on ""authoritative sources"", aka mainstream media outlets which, the vast majority of them, have a political bias in favor the left.
As an Apple client: good that they keep working on anti-theft measures. I hope they end up serialising every last bit of the phone.
Where/how? Do they have outdoor gun valets? Is the valet an FFL, is there a 10d waiting period when transferring back?

How does that work at locations like post offices or the VA, where it's illegal to carry just in the parking lot?
Executive compensation, stock buybacks (which is an extension of the former).
Agony might be a bit much, and i'm not trying to defend C because this is one of the strong reasons for using C++/STL...

But, generally one should just reach for a library first before doing a complex data structure regardless of language. And for example, the linux kernel does a fine job of doing some fairly complex data structures in a reusable way with little more than the macro processor and sometimes a support module. In a way the ease of writing linked lists/etc are why there are so many differing implementations. So, if your application is GPL, just steal the kernel functions, they are reasonably well optimized, and tend to be largely debugged, are standalone, etc.
C is not a "portable assembler".

An assembly language program specifies a series of CPU instructions.

A C program specifies runtime behavior.

That's a huge semantic difference.
> If you haven't run the numbers you could in fact be wasting more electricity by fully turning off your system when you aren't home

I've seen similar statements a few times, even in this HN thread. Most articles just repeat the statement without showing any numbers. This article does show numbers and the graphs. From the article:

> What we found was that even when the A/C temporarily spikes to recover from the higher indoor temperatures, the overall energy consumption in the setback cases is still less than when maintaining a constant temperature throughout the day.

Full data on https://theconversation.com/does-turning-the-air-conditionin...
The 42% presumably includes hosting cost and salaries in support of "Wikipedia and its companion sites", whereas the ~2% is direct hosting expenses.
Nice. Exactly the kind of thought exercise I was hoping for.
Well the theory behind it doesn’t say „blue is unhealthy or harmful“ but „blue is daytime“.

Hence the idea to filter out blue at times when there is no blue sky in nature (aka at night).
Or it slowly goads people back into cities with efficient transportation networks.

I've been saying the following for a couple years now:

If you believe governments believe climate change is real(and I phrase it this way to avoid debating people on the reality of AGW), then you accept that incentives will align to reduce energy usage(assuming no mass carbon neutral energy on the horizon, which I believe is a safe assumption) and goad the population away from inefficent suburbs/exburbs and back into higher density urban environments.

And I say this as a lover of suburbia who generally hates urban areas(save Tokyo, which is wonderful).
Jesus what a shit show. What’s the point if the sites can change their ToS and flip opt-out to opt-in at whatever whimsy they do choose. Needs to be some kind of uniform privacy enforced.
Apologies, it's a note, not a footnote. But notes in ISO standards aren't normative either.

This is a general principle of ISO standards, see https://share.ansi.org/Shared%20Documents/Standards%20Activi...:

> 6.5 Other informative elements

> 6.5.1 Notes and examples integrated in the text

> Notes and examples integrated in the text of a document shall only be used for giving additional information intended to assist the understanding or use of the document. They shall not contain requirements ("shall"; see 3.3.1 and Table H.1) or any information considered indispensable for the use of the document, e.g. instructions (imperative; see Table H.1), recommendations ("should"; see 3.3.2 and Table H.2) or permission ("may"; see Table H.3). Notes may be written as a statement of fact.
That is incorrect. Idiomatic Go is abundantly clear that values must always be useful, even if all you have is the default value. Thus T must be useful regardless of the state of error, and vice versa. As such, they are free to be observed independently. That does not mean T and error cannot be in a relationship, but they are not dependents.

There being a relationship between T and error is common, but observance of error is only significant when the error is relevant. Quite often it is, but not always, and in the latter case you can, assuming the code is idiomatic, safely use T and ignore error. T must be useful, after all.

It may be possible to create a scenario where T is not useful when error is not nil if you really want to screw with people, but that code would decidedly not be idiomatic. Indeed, there is always some way to screw with people if you try hard enough, but that's really beyond this discussion.

The use of the Either monad here is trying to cover a dependency which doesn't exist.
Doesn’t Poozle mean something, erm… quite specific?
So everything's great, but the FBI should tell us how great it is more often?

Somehow, that doesn't sit well with me.
Various bodies that track worldwide congestion/traffic show traffic trending upwards for years now. Of course not counting the CoVid year(s) but afterwards, it has been on an upwards trend. Even in "less developed" areas in the Caribbean, Latin America and Africa the trends are to greater congestion and the associated lost time, deaths, increased pollution and lower quality of life.

https://inrix.com/blog/2022-traffic-scorecard/

https://www.theguardian.com/environment/2020/sep/15/road-con...

https://www.itdp.org/2021/03/22/the-next-pandemic-surge-traf...
There's not a good public breakdown of how much of those salaries are on people developing Wikipedia/mediawiki/moderation tools, and how much are on special projects. It doesn't matter, anyway, because impressive failed software projects like the awful visual editor are hard to parse out of the "real work" budget.

Wikimedia foundation has cancer [1]. They've provided a huge value and reaped big rewards, but now they have built to grow, and the growth engine just keeps wanting to grow.

[1] https://en.m.wikipedia.org/wiki/User:Guy_Macon/Wikipedia_has....
And yet ITP destroys all cookies after 7 days, even first-party cookies, unless your site never uses any other third-party iframes or hosts servers in multiple data centers.

But they do it to prevent websites tracking their own visitors without their consent for more than 7 days… I think.

So session expire not just to spite you.

But the question is — given that the cache is totally cleared, after 7 days, can iOS safari ever guarantee that a specific URL will NEVER be replaced by a server to something else? With non-expiring caching, we could! But now?
I'd rather rely on session expiration rather than on the fact the SCIM sync works well. I implemented SAML and SCIM services. With SAML you implement things once, tweak it a bit, and then it works with all the IdP, even those you never heard of. SCIM on the other hand have only 2 client implementation that I'm aware of (at the time I worked with it at least) and they were sufficiently different from each other than you kind of had to do 2 implementations. Not to mention it uses stupid JSON patch thing that are crap to work with unless you use mongodb or similar I guess. And stupid limitations on forcing the sync on AzureAD that I forgot the details of.
Nope. You have no idea what my nutritional needs are, nor are you numbers even close to optimal. To start with, the notion of dividing a plate based on percentages is ridiculous and displays a clear ignorance of the basics. For optimal performance we need at least a certain minimum amount of high quality protein (right essential amino acids) based on a ratio to lean body mass regardless of how much we are eating. That's a fixed number, not a percentage.

It's sad how confidently wrong many HN users are whenever we have discussions about diet and nutrition. People read something somewhere that aligns with their preconceived biases and then they repeat it back without doing real validation.

If your want to see empirically what actually works then ignore the gurus and junk science you see online, and instead look at the diets of masters athletes who have been competing at high levels for decades (including recovering from injuries). The percentages on their plates are substantially different from your numbers, and the majority eat a significant amount of animal products.
space-x has taken over Nasa to some degree, i think
It could also show you videos that are trending and watched by people that are subbed to the same things you're subbed to. They definitely have that information. Or old videos of people you're subbed to and haven't upvoted or downvoted or whatever.

This *was* a very powerful and useful feature they've ripped from us.
Perf is a niche, here's another: address space lets you talk to hardware.

VM and OS abstractions have been so successful that you can go a whole career without talking directly to hardware, but remember, at the bottom of the abstraction pile something has to resolve down to voltages on wires. Function calls, method names, and JSON blobs don't do that. So what does? What abstraction bridges the gap between ASCII spells and physical voltages?

Address space. I/O ports exist, but mostly for legacy/standard reasons. Address space is the versatile and important bridge out of a VM and into the wider world. It's no mistake that C and C++ let you touch it, and it's no mistake that other languages lock it away. Those are the correct choices for their respective abstraction levels.
Only inside Bell Labs, the world outside was enjoying high level systems programming languages since 1958 with the introduction of JOVIAL.
Probably not that one but I’ve seen https://en.m.wikipedia.org/wiki/The_Bridge_(2006_documentary... powerful film.
> Is that also true if you are (or are traveling with) a woman?

I don't think gender is a factor here. But it depends on the neighborhood you're in, not whether or not it's a motel.

However, that's not pertinent to the point that I was making, which is that Airbnbs are more of a luxury option, not a cost-saving option. The comment I was replying to appears to be asserting that being opposed to Airbnbs is elitist because it's being opposed to affordable options. In my experience in the US, that doesn't track. Airbnbs tend to be more expensive than someone who runs lean is likely to choose.
Try doing the same in Go and it's even worse.
I was trying to find a way to provide feedback on this issue; but, I'm supposed to go to their YouTube forums to handle it, and the top voted post on those forums is how they've disabled posting on the forums for several months.
Would be interesting to read and see how well it stacks up to the original.

I remember being quite surprised and somewhat disappointed after reading some of my favorite sci-fi in english, after many years.

Translators to Russian did a great job at adapting it and in some cases the translation was better than the original... Less dry..
> Apple searlized the iPhone 14 backglass [video]

searlized? srsly?

https://www.youtube.com/watch?v=HbvYeLxMKN8
correct. security often compromises itself for sake of itself. It's stupid and is the "lowest denominator" thinking. If they store a history of hashes, one could compare them but not classify similarity. Only whether it was used previously or not. I get down voted by the security folks who think this practice is a good idea. It's not. It's a horrible idea. So is enforcing 30m session/cookie timeouts. Or constantly scanning your machine for "threats". Pegging your CPU at 100%, 100% of the time. Security folks are like the mall cops of IT. Not saying that's everybody. There's some terminators out there, or Jack Ryans, but most are Paul Blart. They want to read your emails, see your browsing history, read your chats, get offended if you criticize them, bring you into HR if you circumvent their crappy jump box backdoor into AWS...
Apple continues to push the envelope when it comes to product design and anti third-party repair.

They must really hold the quality of their devices to such a high standard, that even people who would willingly accept the "risk" of installing third-party components (or first-party from the manufacturer!), can't install the parts in their phones because it'll cause problems.

Not to mention the software Apple uses to "link" each part in a phone together so it removes issues like this is closed source and not really available to anybody so even if you did replace parts yourself you still can't use them!

They call themselves green and climate friendly, but it doesn't seem so friendly when you can't even re-use components from other phones that are broken to fix yours!
On practice those were either proprietary or required beefy machines that the people writing C couldn't get.

On the limited environment where C got created, it was the only option. And everybody suddenly adopted that limited environment, because it was cheap. And then it improved until you could use any of those other languages, but at that point everybody was using C already.
> Sorry, but truth ain't always easy to hear.

It's copeium. The alternative is to admit that there could be another system, authoritarian, non-democratic, where there is no freedom, yet it's successful and have a chance to be the biggest economy in the world in a few decades. At this point, it's all about ideology.
Either be a service or be a charity.

But don't take donations for a service and then use them for a charity: that's lying to donors.
If you don't understand C, C++, or one could argue Rust these days you're sitting at an abstraction level much higher than where the "systems" domain tends to be. ABI, cache misses, page tables and memory mapping, restrict, all of that stuff is at an arm's length in a managed language.

One of the best courses I had was taught by Bruce Dawson, it was an entry-level "image processing" course but really it was a tour-de-force on cache hierarchies, modern computer architecture and how to build efficient real-world algorithms and not things that just scored well on the complexity scale. The first assignment was a simple bit-blit, he grabbed a random assignment from the class and in about ~30 minutes walked us through a multi-order-of-magnitude performance improvement with just small adjustments that made the program more cache-aware and also showed how you empirically test for performance improvements instead of doing it in a theoretical manner.

Back when I was in college(which was admittedly a long while back now) those sorts of things just weren't taught and that class was by-and-far an outlier from traditional coursework. My experience has been that even though there's a lot of talk about "fundamentals" in a CS degree it's touched at such a shallow layer that practical application of any of those fundamentals are missing and it doesn't "stick".

I've met all of a handful of people who can tell me what restrict does(much less how to use it), what a cache-aware data structure is or why we care about value types. ABI is just a 3-letter word to a large majority of people because they just don't have to deal with it(but are then oblivious when it blows up, I.E the number of times I've seen STL in what are supposed to be ABI-safe boundaries). That stuff is all foundational at the systems level. I've had much better luck with breaking people of their assumptions(I.E. Big-O) and working up from first-principals of how computer architecture works and structuring systems in such a way that take advantage of that instead of a theoretical ideal.
> C++ makes it laughably easy to write incorrect code

It also provides a lot of mechanisms and tools to produce correct safe code, especially modern C++. Most codebases you're not seeing a lot of pointer arithmetic or void pointer or anything of that nature. You hardly even see raw pointers anymore, instead a unique_ptr or a shared_ptr. So yes, you can write incorrect code because it's an explicit design goal of C++ not to treat you like a baby, but that doesn't mean that writing C++ is inherently like building a house of cards.*
> none of these arguments are useful if they are all phrased in terms of two absolutes. we could clearly chart a middle course between breeding as much as possible and lying down and dying.

That's also primarily an American issue. They tend to view everything through the lens of 2 political camps and "whose side are you on?".

That kind of view is completely antithetical to actually solving problems.
24-year-old me would have been Googling where to buy this by the time I was halfway through the article. It's not for me any more, but Acronym definitely hit what they were going for with this. Laptop and phone design used to be a lot less homogeneous than it is now, and though our devices are vastly more powerful and functional these days they definitely lack a sense of fun. I applaud anyone working to bring that back.
It could be more performant because of the known constraints around it, or it could be an ad-hoc, informally-specified, bug-ridden, slow implementation of half of some data structure. At least with a generic and resuable data structure you have a known reliable building block. Again, performance over safety.
I've edited the comment, but it's pretty galling to see that kind of conspiratorial nonsense that I was reply to here.
The only context in which the technical difference between memory and disk can be glossed over is one where the audience is made of laypersons that wouldn’t understand the first thing about seekable vs random-access memory in the first place.

A tech-illiterate author/editor is the much more plausible explanation.
A much more immediate reason to stick with WFH, in the mass transit averse USA at least:

> Road traffic crashes are a leading cause of death in the United States for people ages 1–54

https://www.cdc.gov/injury/features/global-road-safety/index...
Irrelevant. Hollywood accounting works because a film studio can, by shifting expenses to a particular film from elsewhere in the company, always claim that the film is unprofitable; the overall revenue and profit/loss for the studio is unaffected.

The documents WSJ viewed are for SpaceX as a whole, not "SpaceX's launcher division". Even if the launcher division charged the Starlink division 9000 megazillion dollars per launch, that would be exactly balanced by the Starlink division having to book 9000 megazillion dollars of expense per launch.

Again, according to the documents WSJ viewed, SpaceX overall has achieved profitability. That's a major accomplishment given it being by far the lowest-cost launch provider in the world.
His life story is very tragic, as it was for most people in the post-revolutionary times. His diaries were published and they are quite a harrowing read at times.
I want to watch that show "The Year Earth Changed" but I'm afraid it will just make me so sad.
I worked at an Indian tech consulting firm. Even though India is considered a high context culture, our working environment felt fully low context with endless meetings trying to get all stakeholders on the same page, clearing out assumptions, nailing down timelines and aligning resources. When I moved to a normal US company it felt like downright mind reading how we got shit done much faster because we did have a much larger shared context. So it's all relative and I bet American culture feels like high context to others, and those guys are astonished we can work without more hashing out than we do.
>How exactly do they do that?

Through groups like ALEC[0]. And that's nothing new.

[0] https://alec.org/
That must be why every C project has its own string, dynamic array, hashtable, etc. It's definitely more performant to have several different implementations of the same thing fighting for icache
I wonder what's the best solution here then. A different language that actually is portable assembly, or has less undefined behaviour or simpler semantics (e.g RIIR), or making -O0 behave as portable assembly?
How questions/requests work in the Mediterranean Europe:

- Hey can you do $WHATEVER for me?
- Sure!
- Really? Can you really do this for me?
- Well, actually I'm busy tonight so I can't do it, sorry

Not answering "sure" the first time? Rude. Not asking for confirmation? Rude.
That's really interesting! I've wanted to do something similar but assumed that the token count required to ingrain a meaningful amount of information would make it very difficult. How many tokens do you typically need to feed into these base models to get consistent content out? Does generated text ever end up leaving the specialized domain? (like League of Legends characters mixed into a Minecraft story)