skysight-inc/HackerNews huggingface dataset:
> You have lots of options for strings and string formatting.

“Strings and string formatting” is a very broad domain.

For most specific tasks, there is one low-impedance approach and it takes very little (but not zero) reflection and/or experience to find it.

Most new Python features directly address specific tasks for which there are currently multiple relatively high-impedance approaches taken because there is not one obviously correct way.

Python's “one obviously correct way” is not “one possible way” (the latter approach is closer to Go.)
My most recent issue was with the ElementInternals API: https://developer.mozilla.org/en-US/docs/Web/API/ElementInte...

They still don’t have it implemented despite giving their “strong support” a few years ago when the API was in the final spec stage. That’s really the crux of the issue - they always seem a few years behind in implementing any new spec.
Ask HN: What to Tell the Recruiter/Interviewer?
I am currently working remotely and its been only 4-5 months in the job. I am going to start searching for a job in Japan or Germany to relocate there.

I am wondering what would be the best answer to 'Why do you want to leave your current job?' as this question will definitely come up in the interviews.

My obvious reason is to relocate to a first world country but that's not what I am going to tell them.

The product i am working on is a huge SPA but built in jQuery and vanilla JS. I feel like i am missing out on latest frontned stack and that will definitely hit my career in the future but not sure how i should phrase this as i don't want to appear as i took a bad decision joining my current company.

Any suggestions on how should i tackle this question when it comes?
If you kept the whole 500GB in spinning disks you can blow through a lot of cost for sure. However as the older data is infrequently accessed you could keep that in an online archive which is much cheaper. That archive can be queried seamlessly with your hot data at the cost of additional latency. Online archive stores data in S3 rather than spinning disks, hence the reduced cost.

You should also be aware that running a two node replica-set means if one node fails and you have set a write-concern of majority (which you must do to ensure you do no lose data) then writes will fail at the client if either node is down. So you are saving money at the cost of durability. It's important you be aware of those tradeoffs.

See https://www.mongodb.com/atlas/online-archive for info on archiving and https://docs.mongodb.com/manual/core/replica-set-write-conce... for more info on how write-concerns are used in a replica-set.

The default for write-concerns on Atlas clusters is w:majority. i.e. each write must have been received by a majority of the members in the cluster before the client recieves acknowledgement.

(I work for MongoDB).
It sounds like their tech was somewhere in between these two extremes. I would expect that some engineers with relevant experience in networking and programmable logic could get it done. It's also not particularly novel- lots of networking stuff is offloaded to custom chips. My guess is that they didn't make a good business case for it, in which case I would have to dispute OP's idea that "progress was delayed".
Well, I give your attempt at keeping everyone happy 1.85 thumbs up (out of 1.85).

Best wishes on the recovery!
For anyone who drives a car and thinks this is a good idea, why not go right now and voluntarily get a breathalyzer retrofitted in your current car? If you don't want to do that, then you should really rethink your position.
Interesting that there is a lot of variation between the modules - some get 1.1 million bit flips and some 14. Perhaps that was the ECC?
> What other considerations are there other than skill?

Narrative is critical, and often external, coming from the curator, dealer, critic, etc. Humans love stories.

“Death and Transfiguration” by Strauss is a beautiful, skillfully written piece of music. A story I heard is that Strauss on his deathbed exclaimed “it’s just like I wrote it!” Is it true? Did he say this? I have no idea, and in a sense it doesn’t matter. The piece is made better by the story I remember when I listen to it. It’s not in the music, it’s with the music.
> Strongly agree. Keeping ourselves humble and remembering that nobody is infallible is important.

That's not how it works in real life from my experience.

I usually assume everyone is stupid, including myself, that's the most humble thing a person can do IMO.

But what actually happens is that other people assume that I am the only one who's stupid, because I'm open about the possibility, while they don't even consider it a thing.

It's a well known human bias, there's almost nothing we can do about it, except train or minds to see others and ourselves as fallible, instead of victims of the system.
Syntax changes for Corinna, proposed declarative OO Perl mechanism
Oh I’m certainly not telling you it’s a solution or that it’s easy (and I think you get that). It’s just what has worked for me (based on my own perceptions).
There is never black/while or 1/0. There is always a spectrum of possibilities. You can say that whichever taste the majority of people like is the good taste!
This reminds me of how left-handed boxers generally have an advantage over their opponents.
> I'd love to see this code in memory testers like memtest86 so I could send the RAM back if it ever caught a problem like this.

Is this an individual stick bug, or a design bug akin to Spectre? Given that they tested 40 different sticks and seemed to find effective patterns for all of them make me think it's the latter. In which case, just return all your computers?
IBM creates largest ever superconducting quantum computer
Does not work on Intel Core Generation 1 (specifically Xeon Westmere EP hex-core) with DDR3-ECC.

Perhaps I should start snapping them all up … because market demand.
I agree, he conflates skill with "good art".

I think he is still correct though but for a different reason. When someone first creates art they may begin naively and create art that is lacking in subtlety, perhaps speaking to the more immature aspects of our human nature?

A good artist graduates from that phase and begins to recognize it in other artists — can say, "Yeah, I used to do art like that but I have moved on." In the same way the art connoisseur should be able to say, "Ahhh, I used to like art like that once, but my tastes now appreciate the more nuanced."

Maybe an example is a car that the owner did as "black-on-black", like Darth Vader, blacked out badges, blacked-out windows, black paint job.... You recognize that "Hey, all black, cool, right?"

Am I being too elitist?

(Hello user, BTW.)
Space debris 'event' forces ISS crew to take evasive action
It amazes me when people seem to lack taste. I'm not even saying the ability to rank items in a way that agrees to some general standard. I'm saying the ability to notice that there is even a difference. I'll talk about taste in the literal sense but this extends to everything. I remember being at a Chinese restaurant with some friends where we were eating scallion pancakes. I said, boastfully, that my family makes better scallion pancakes and a friend remarked that he didn't think there was any difference, that indeed all scallion pancakes were exactly alike to him. Or another friend couldn't tell the difference between orange juice from concentrate and not from concentrate.

I wonder how much of this is physiological and how much is mental. I can't help but think you'd need some sort of color blindness for taste to genuinely not notice any difference between scallion pancakes. But perhaps my friend was exaggerating.

My theory is that taste is one quality that separates the academics from the business people. Academia doesn't necessitate a lot of taste. If you have it, great. If you don't have it, no big deal. On the other hand, stuff such as product design, user interfaces, even software engineering, requires taste. You need to understand what makes a good piece of software or a good product. One could argue that Steve Jobs was a product supertaster. He was finely attuned to stuff that the average user (or the average HN reader) would not see. As PG notes, taste is being attuned to the collective unconsciousness, to a collective aesthetic. If you can tap into that, you can attract customers.
Then there is a semi-order (fuzzy as it may be) in taste, and "good" and "bad" taste exist.
> writing in an easier to maintain language would repay the effort

COBOL is very easy to learn, but, as was pointed out in [1], it's not only COBOL, but COBOL and CICS. CICS is an extremely optimized transaction manager that's been continuously improved and has been coevolving with IBM hardware since the 60's.

There is also the workflows around the very non-Unixy nature of zOS. IBM has been doing an excellent job at introducing good operations practices and adding tools and functionality to facilitate that, but it's a long process.

Also, remember these machines also run Linux incredibly well. They are unbelievably fast.

1- https://news.ycombinator.com/item?id=29229525
In Python’s type annotation system, “class T or None” is represented by “typing.Optional[T]”. I think C++ has something similar for STL containers. Even numpy has NaN values. So your usage still fits some reasonable definition of homogeneous :)
No, demand is actually down in Japan[0]. That chart shows residential housing vs. under 65 year-old population. So demand is decreasing but residential RE is rising slightly. Your analysis is also ignoring that services cost a lot more in the US than they did in the past. You can't build cheaply in NYC or SF or Seattle anymore because construction workers cost more.

[0]: https://lh3.googleusercontent.com/-xDrQEcMyF5Y/YWDyNh-3TiI/A...
Most people don't start shopping at grey/black markets in order to avoid paying sales tax. Most people don't pay their employees under the table to avoid paying income tax. Most people don't move or de-value their own homes in order to avoid paying income tax. Those taxes make up most tax revenue, and wouldn't get caught in that definition.
They also make it really hard to sell a house, when you sell and move to a new house they dont let you continue to live in the old one for a few months to make the transition smoother.
It also makes me think of the phonograph in Godel Escher Bach. One character made a record player and the other made a record that always caused the record player to break. The crux was that a record player cannot be built that can play all records; it is impossible.
And hope your neighbours don't think the same and get better wireless equipment.
In other words, this is a very limited, niche market product.
Do you have an email address I can send a message to?
I've heard the term "non-avian dinosaur" a lot these days.
The title incorrectly implies implies this is the only bad memory leak in Monterey (even though the author acknowledges it's not the only in an edit complaining about 'comment bombing').

While the pointer one may be the worst culprit, it's definitely not the only one - every few days I see Control Center using >3GB (once force-killed, it goes back down to 26MB). It's not a massive issue on my machine (I just check memory usage every day) but it gives a very bad impression that Apple haven't fixed it yet.

I'm sure is especially challenging for non-technical users who're more likely to be on a lower-memory system and run out of memory regularly
This is definitively wrong. Not to comment on "modern" python, but in general if this code returned an exception on division by zero it is definitively worse.

The reason is because an exception is a runtime check. It caught an error that is hidden until runtime. The better way is to encode this logic into a static type checking system so this error isn't even permitted to run.

With the type Optional[Int], Any other function that utilizes the output type of this function MUST also be an Optional[Int] and not just an Int, meaning that the function signature must handle the None case and this is caught statically before run time. Insofar as the function type signature... python type checkers should handle this error.

However tbh I'm not sure how extensive type checkers for python are and whether or not they can track this type of error for the logic itself. For example while the below will catch a type error if you feed it a bad parameter, the signature itself could be wrong and not caught by a type checker:

x1: Int = 2 # results in type error (Good)
x2: Optional[Int] = None # results in runtime error. This is bad in terms of safety

def addOne(x: Optional[Int]) -> Optional[Int]:
return x + 1

As far as I know the above is permitted by python type checkers when truly correct code is below:

def addOne(x: Optional[Int]) -> Optional[Int]:
return x + 1 if x is not None else None

However with python 3.10 pattern matching the level of static type checking can increase to the point where this type of safety is 100% possible: https://www.python.org/dev/peps/pep-0636/.

x1: Int = 2 # results in type error (Good)
x2: Optional[Int] = None # No error (also good)

def addOne(x: Optional[Int]) -> Optional[Int]:
match x:
case None: # if this case were deleted should result in static type error (also good)
return None
case _:
return x + 1

Not sure if python type checkers can handle the above code, but exhaustive type checking is 100% viable in the future if the syntax utilizes the pattern matching shown above. Haskell and Rust already have this level of type safety. See: https://rustc-dev-guide.rust-lang.org/pat-exhaustive-checkin...

What this means in short is that you are wrong. Whatever your notions of "modern" python should be having division by zero return a runtime error instead of a None or an Error type is definitively worse. We are at a point in our technology that this type of error should be caught automatically BEFORE a program even runs. All type errors should be encoded into types and caught via static type checking and NOT via exceptions.
Better is just a word that means "more good", so I've already answered this. One simply subjectively prefers some art over other art. What people prefer (i.e. think is better) does not correspond to production skill, as I already argued.
My main takeaway was the shocking efficiency of AVIF. Just ~20% the size of JPEG!
Presenting a specific experience refuting an earlier generalization is reasonable here, I think.
Edit: OK fine, I'll shut up.
The CAPTCHAs are probably over-applied by people who use the defaults, but they're absolutely necessary for some sites, especially e-commerce. The alternative would be flat-out blocking requests that trigger the CAPTCHAs. An absolute shitload of traffic on the Internet is the abusive sort, and lots of that's aimed at sites that accept CC payments. Used correctly, CAPTCHAs mean you don't have to blackhole as much traffic, so actually increase the fraction of people who can reach your site, versus some other world without them where you'd just be forced (by costs & risks of dealing with abuse) to drop those requests.
Which features are you thinking about that would present a privacy risk?

I am aware of the File System Access API. What else is there?
Can't wait for the first large-scale exploit of this stuff, which will finally force DRAM manufacturers to fix their faulty crap.
I'm having a hard time imagining how using Bayesian optimization would improve safety during the search process, especially since in practice it often tends to just give approximately uniform sampling of a space anyway. It really likes the unexplored territory and is likely to try things far away from the optimum that are more risky.
I am from a region adjacent to coastal Karnataka, where people desperately want railroad but likely not getting it in near future, due to environmental reasons. Railways hardly would impact the environment, but vastly decrease traffic and cost of travelling.

The so-called environmentalists doesn't have a problem when the forest department itself is planting Acacia trees Willy-nilly in the fertile malnad region. But somehow railroad will destroy the environment.
Original author already said DDR5 ECC, once mapped, will too suffer SPECTRE.
Only because we have decided to consume 16,000 a year in city service on that same house, and finance the rest with the urban development Ponzi scheme.

I suspect the appetite for suburban living would dry up if we all paid the actual maintenance costs of those streets, water and schools on a land-value basis
> if humans had evolved a couple of million years earlier, or any of those stupidly tasty things had evolved a couple of million years later, we wouldn't have been able to experience them

Proof that there is a God! /s
Restricting the list just to the ones I can find on caniuse or bugzilla, but this is a tiny, tiny subset. It also doesn't include the fact that implementations are completely busted (IndexedDB for the longest time [1], ServiceWorkers [2])

https://caniuse.com/av1

https://caniuse.com/mdn-css_properties_contain

https://caniuse.com/css-overflow-anchor

https://caniuse.com/css-focus-visible

https://caniuse.com/js-regexp-lookbehind

[1] https://bugs.webkit.org/show_bug.cgi?id=226547

[2] https://bugs.webkit.org/show_bug.cgi?id=187461
Redundant array of inexpensive RAM?
It was the same idea of DSL's. If you bring the language very close to the business domain, the program and the spec are very close to one another.

Didn't quite happen in COBOL's case.
Are You My Mother Tongue?
Bitcoin supports post dating transactions. The transaction can be updated between parties, off chain. Lightning Network. If a bad actor gets involved, the last transaction updated between both parties rules and is the remainder is refunded upon the timeout of the post dating.

This function is provided by script: https://en.bitcoin.it/wiki/Script
> Graham seems to be conflating skill with taste

I came here to type this sentence almost word for word.

I think this divide is most easily seen in the realm of acting, with no better example than Nicholas Cage: high skill level, low taste, at least judging by the majority of projects he chooses. (The counterargument might be that he realizes he's making a lot of bad movies and just needs the paycheck – he's infamous for blowing his money in foolhardy ways – but I definitely think at least some part of the essence of Nicholas Cage comes from conflict between high skill vs low taste).

I was friends with a guy in college who was a masterful musician (toured professionally as an all-purpose backup musician for some mid-tier bands you have heard of) and I used to argue with him about one particular band whose music I disliked [^1], and he would say, "But do you know how hard it is to play those notes? Look!" and he would stretch his fingers all over the bass fret, and I'd say, yeah, but... finger gymnastics is not the same as good music.

Also back in college, when CDs were a thing and money was scarce, I used to debate with myself about whether it would be worthwhile to accept the faustian bargain of trading my own musical tastes to exactly match the contents of the record store's discount CD bin, which was filled with things like Richard Marx albums [^2], so I could buy ten albums for five dollars.

[^1]: I don't want to start a flame war but it's the 80's-era band with complex bass arrangements which I have noticed is popular with sysadmin folks

[^2]: No disrespect intended to people who dig Richard Marx, or to Richard Marx himself, but it sticks in my mind as the thing that was in the bin I was looking at when I had this thought.
Good question! Both Datafold and Atlan support data monitoring as a secondary feature, but have different main focuses:

Datafold is primarily known for their Data Diff regression testing that simulates the result of a PR on your data within a CI/CD workflow. There’s definitely a need for proactively preventing data issues from occurring in the first place, but issues introduced via code are only one subset of potential data quality issues.

Metaplane is focused on catching the symptoms first via continuous monitoring. Regression tests don’t replace the need for observability, and vice-versa.

Atlan is primarily known for their data workspace features that make collaboration easier, like a data dictionary, SQL editor, and governance.

Data collaboration is a huge unsolved problem and data monitoring does play a role there. But Metaplane is focused squarely on the problem of detecting data issues and giving you relevant metadata to prioritize and debug.
The opening story is actually implicitly a fantastically wonderful account of the victory & success & miracle of how greatly an open democratic society is flourishing across the world, how different things are today.

The big old bad power-mad losers managed to overturn justice & democracy illegemately, yes, and that's what this article is about. But it is a somewhat narrow thing that a real genuine common person is not now in power.

Living the United States, this kind of come out of nowhere story feels much more rare. Folks like AOC feel ultra noteable and rare. Although I guess the Tea Party is another semi-recent larger-scale example of a lot of semi-from-nowhere's being surged into high office, although under the wing of some not at all from-nowheres.
indeed

> males weigh 190–400 g (6.7–14.1 oz), while females weigh 260–630 g (9.2–22.2 oz);

quite efficient, sentient automaton. on the other hand the tracker we built keeps going offline because it needs constant recharging :-)
Thank you for sharing your detailed experience and insight into the problem. It sounds like this field has a long way to go to produce better engineers. Perhaps the way software engineering education and training needs to be completely rethought. It’s ironic that despite the name, so much of the creation of software lacks the craftsmanship attributes that other engineering disciplines possess.
i never understood why salt was (is?) so valuable yet is available in seemingly endless quantities in the ocean
?

• I was talking about Hacker News markup.

• Python officially recommends spaces: https://www.python.org/dev/peps/pep-0008/#tabs-or-spaces
> Eventually, it will be obvious that running shared workloads on a single piece of physical hardware has fundamentally unremediatable security implications.

If I understand correctly, Homomorphic Encryption aims to solve for these kinds of attacks (although presumably the computations are more expensive and programs must be restructured to use HE primitives?). https://en.wikipedia.org/wiki/Homomorphic_encryption

EDIT: Why the downvotes? Am I mistaken?
Can you elaborate or provide a reference on how those CPUs are different?
Knuth wrote that discussion point in assembly language.

I translated it to C so that people got the gist of it.
I loved Firefox Send, but part of its appeal was I know Mozilla as an organization.
Doing this makes a lot of sense for any web setup where you already have something you're calling an "asset pipeline", but can seem pretty nuts where you're writing simple no-JS HTML.
“Electron family” state of matter hints at new type of superconductivity
Could quantum computers be cost-effective by 2036?
If you uncheck the "Enable PHP" option in the PHP section, the index.php fallback remains checked in the routing section. It probably shouldn't.