skysight-inc/HackerNews huggingface dataset:
I tried to use ORMs in Java years ago, but realized that while it makes simple things simpler, sooner or later you will need to do something that the ORM can't do simply. Or you will bang your head against the fact that you are trying to marry object graphs to relational models and you'll burn a lot of CPU, IO and memory in the translation. I have to admit I've been against ORMs ever since. You end up having a weak grasp on what is happening under the bonnet.

You can make much better use of your database, and understand what is going on a lot better, if you let the database be the database.

My approach is to forget about the database, and focus on what the application needs from the persistence layer. Then design an interface for the persistence. Then I implement that interface for each kind of persistence backend I need (SQL, files, memory, etc) while maintaining a single set of unit tests and benchmarks that are written against the interface.
This isn't new. A lot of applications and libraries do this. And I think it is a good way to design things.

Usually the database I use to develop a SQL schema is Sqlite3, since it allows for really nice testing. Then I add PostgreSQL support (which requires more involved testing setup, but I have a library that makes this somewhat easier: https://github.com/borud/drydock). (SQLite being in C is a bit of a problem since it means I can't get a purely statically linked binary on all platforms - at least I haven't found a way to do that except on Linux. So if anyone has some opinions on alternatives in pure Go, I'm all ears)

In the Java days JDBC every single method implementing some operation would be a lot of boilerplate. JDBC wasn't a very good API. But in Go that is much less of a problem. In part because you have struct tags, and libraries like Sqlx. To that I also add some helper functions to deal with result/error combos. Turns out the majority of my interactions with SQL databases can be carried out in 1-3 lines of code - with a surprising number of cases just being a oneliner. (The performance hit from using Sqlx is in most cases so minimal it doesn't matter. If it matters to you: use Sqlx when modeling and evolving the persistence, and then optimize it out if you must. I think I've done that just once in about 100kLOC worth of code written over the last few years).

And best of all: I get to deal with the database as a database. I write SQL DDL statements to define the schema, and SQL to perform the transactions. I don't have to pretend it is a object model, so I can make full use of the SQL. (Well, actually, I try to make do as far as possible with trivial SQL, but that's a whole different discussion). The interface type takes care of exposing the persistence in a way that fits the application.

(Another thing I've started experimenting with a bit is to return channels or objects containing channels instead of arrays of things. But there is still some experimenting that needs to be done to find a pleasing design)
thule chariot bike trailer
Looking at your posts on HN (this topic and others) you clearly and plainly defend CCP (chinese gov) on many of it's policies (even if being atrocities), while trying to evade questions and whitewash topics. You did try defend CCP Taiwan stance.

You either lie, either are (in my opinion) delusional, because your writing here 'CCP is open to criticism', on this very thread about Peng. This is nuts. Literally 30 minutes after publication of her _personal_ post, remind you she is a China citizen, the post is removed (no trial! pure force gov action) and discussion is actively blocked in China. It is a very simple cognitive task in reasoning and critical thinking, to conclude what does it mean for CCP and China in general, if there are _personal_ things not allowed to be aired there.

If you can't grasp it, do a simple exercise: on your next trip to China (or ask your china based family) do a post about Peng, asking for answers, reposting her post etc -> you will be healed quickly and promptly by the very CCP.

p.s. I'm just a guy, my opinion is mine, I may be wrong. Yet I observed your karma on this thread, literally hundreds of people dont agree with you on HN. I would start thinking about me if that many HN people tell me I'm wrong.
If we want SASR2 to mutate into a less deadly version than we need to let it spread SAFELY. This is done through vaccines and NOT wearing masks. It can be accomplished as you said, but there is just more risk to life.

SARS2 mutates much more slowly than Influenza so, IMO, we actually NEED to get people more infected. I would not be saying this if we locked every country down in the beginning but this is where we are.
Who probably also advised to never listen to advice from successful authors.
Even just in the universe of piracy programs, Kazaa and it's offshoots got bloated, so Kazaa lite became the no-bloat version of that
VMS --- the operating system from DEC --- has flatfiles, and file creation is as simple as opening one in an editor, much as with Unix.

MVS --- the mainframe OS from IBM --- has a far more complex data storage model, with "disk" storage being "DASD" (directly-addressable storage device), and requiring a long JCL or TSO/ISPF file definition including cylinders and sectors (similar to formatting a DOS disk, rather than simply creating a file.

VMS certainly has its warts, and I much prefer Unix / Linux. But requiring verbose file definitions isn't one of them.
I happen to know that pytorch is a pain to maintain in packaging systems. It has a complex build system, many non-python dependencies, and massive build times. I don't know how this factors into the dissatisfaction with a C++ implementation, but I wouldn't be surprised if it were a factor.

In other words, python binary wheels are harder to maintain than source-only python packages. And pytorch uses more than a few. I can't imagine Julia makes the problem much simpler. The main pain point is probably the lack of standard, multi-environment packaging solutions for natively compiled code.

I don't know what it would take for this sort of pain point to improve significantly. Some standards around how C, C++, and Fortran projects are packaged would help. This would allow projects to build on top of existing natively compiled tech a lot better. Maybe the biggest reason those languages don't have the same "ecosystem" as python is utter lack of packaging standardization.
That would have been EPYC!
With mRNA vaccines shouldn't it be possible to quickly adapt the vaccine to those variants? I'd expect they only have to change the mRNA to code for the spike protein of the variant, leaving everything else in the vaccine the same. That should mean that the potential side effects should be the same and with the same frequency, which should greatly reduce the amount of safety testing needed to ensure that it is as safe as its predecessors.
Delta has improved in cell machinery and better cleavage site (point where its spike protein splits in half when entering the cell) but outside of it is well recognizable for current vaccine induced antibodies. There is no need for a new vaccine against it, just more antibodies to clear normally higher viral load that comes with it, so more of the same vaccine is better than something completely new.

For data points, data from Israel states that third shot has been more tolerable than the second one in general with less frequent and less serious side effects. I will get mine in coming week and I can tell you about my personal experience - two previous shots gave me just pain in the injection site.

Pfizer and Moderna chose a little different optimization strategy - Moderna went with higher mRNA dose (3x higher than Pfizer), Pfizer tested also smaller dose, saw that it produces about the same result but with less side effects and went with lower concentration.

Now it appears that immunity from Moderna shot is longer lasting but it really does have more side effects than Pfizer.

I think it is also the reason why the booster dosage of Moderna vaccine is half of its initial dosage. So perhaps it still will provide a little better immunity having about 1.5 mRNA concentration of Pfizer and has now about the same level of side effects. Hard to say at the moment.
Hetzner has its network hiccups sometimes, but AWS quality may be a joke if you really care about latency tails and even median under any significant load. I didn't analyze the networking itself, but - you run in a VM and share host machine with other clients VMs - you just can't get stable latencies this way. It's night and day when you migrate to baremetal Hetzner and observe how latencies change.
(Again - it's about dedicated baremetal - I know nothing about Hetzner's cloud)
The people refusing dialog are the one who are most intolerant. That is the intolerance that shouldn't be tolerated.
A semicolon in Lisp starts a comment. Despite how bad some comments can be, I kinda doubt comments are the source of all evil in general.
So it's better to know none of this (even if partly incorrect) and struggle with social interactions for years? No, thanks.
And, possibly, a good enough writer to know that just because you don't need to do something doesn't mean you shouldn't do it.
As pointed by https://news.ycombinator.com/user?id=mdp2021 in another thread:

https://www.nature.com/articles/d41586-021-03495-2

> Vaccines reduce the risk of long COVID by lowering the chances of contracting COVID-19 in the first place. But for those who do experience a breakthrough infection, studies suggest that vaccination might only halve the risk of long COVID - or have no effect on it at all ... Long COVID can arise even after a mild or asymptomatic coronavirus infection

> For some individuals, long-COVID symptoms are mild; for others, they are life-changing. Nearly one-third of the people with long COVID at [Physiotherapist David] Putrino [of Mount Sinai Hospital’s Abilities Research Center in New York City]’s clinic have severe cognitive difficulties that can affect their ability to concentrate, speak and remember, and which were not present before their illness. About 60% of Putrino’s patients have had to change jobs or stop working as a result of their illness. “If you’re young and healthy, death from COVID may be highly unlikely,” Putrino says. “But severe debilitation is not.”

> Several studies are presented in this divulgative article. As was common for the topic of the not well defined long covid, numbers may vary strongly.

> --

> People divide in those who want to avoid death, and those who want to avoid damage. This article is very important in showing that those who intend to defend and preserve a maximized quality of life should take strong precautions to avoid infection, regardless of the vaccination status with the current products.

If I want to get on with my life there's a strong incentive to be extra prudent until we figure out something to deal with with or prevent long term non lethal but debilitating damages.
Anecdotally I've had to untangle lots of half applied state. Sometimes a provider has a bug, sometimes somebody on the other side of your company changed your terraform plan without migrating the running state, sometimes there are network issues that prevent your plan from applying correctly, sometimes the cloud provider said it deployed the resources but it actually didn't, etc, etc.

It's extremely painful and delicate to do and it may not happen frequently, but in my experience it happens frequently enough when I'm dealing with a lot of terraform.
Show HN: A Docker/OCI IPFS based distributed registry
We've Been Doing It the Wrong Way
This is bias in propagandist form. Give me pessimistic archive with right vs wrong facts. Why in the era of digital information we don't have public tools to fact-check political and corporate propaganda vs scientific evidence.
This will be a good nonprofit"startup" :)
The Platform and Program Split at Uber
I am seeing a use of the instruments that seems quite confused.

The semicolon is part of the division of the expression of thought in supersets and subsets of structural affinity: comma, semicolon, period, new paragraph. (Which also means that the semicolon has a necessary role in general: whenever the structure is best defined also using that level of affinity.)

The dash, the colon and the brackets are instead related to the modality of relation: the colon to express dependency, the dash to provide detail, the brackets to insert a note parallel to the main flow.

(Note: there is also a sub-function of the semicolon to separate list items. I did not use it in the paragraph just above as I intended to exploit the "nuclear" aspect of comma-separated list items, but that is a rhetorical option and the semicolon would have been necessary for more complex items.)
https://news.ycombinator.com/item?id=29336140
Show HN: I made a movie recommendation app based on your mood
Hey,

I used to spend hours researching for a movie to watch, looking at reviews on IDMd, genres, actors, trailers...

Ironically, I feel like the abundance of movies is making it harder to pick one.

I've noticed I tend to watch movies based on how feel so I tried to mimic this behavior with Mood2Movie.

1/ It maps your feeling to movie genres you might be interested in.
I.e. if you're sleepy you might want to watch an action movie or a comedy

2/ It only fetches great movies with a rating > 6.7 on IMDb

If you're also picky about which movie to watch, give Mood2Movie and try, and hopefully, it'll work for you too.

Enjoy the show!
UPI has been truly revolutionary for me here (in a mid sized city in India). I almost do not remember using Cash from the time the Pandemic started. 5 Years ago if someone had told me I could live Cash free for 18 months I would have thought that future is decades away in here. One point I would like to add is the recent changes with UPI Autopay have significantly reduced the friction of recurring payments. It is not made completely friction less as the India financial regulators believe that some friction in recurring payments flow is better for consumers even if it is worse for business.
I don't think parent said this person is incorrect. It said that the arguement is falliscious.

Whether the value judgement of it being holds we don't know but infection numbers look bad
It's certainly the case that neither television not automobile were inventions completely free of negative effects. But to say that they made the world worse is a very myopic view, focused on first world moral panics rather than attempting to evaluate what these inventions meant for a Turkish or an Indian village, for example.
Free online homepage builder for creators
Revolut offers free SEPA instant payments.
Also we'd need to vaccinate those bats with something which actually kills off corona rather than just reducing its' effects a bit.
Yes.
Those tend to be either an excuse to meet your friends or a bunch of introverted rejects calculating things in their little kingdoms.
It's super hard to design games for more than 2 players with real interaction in a way that avoid ganging up on the winner so in most of the games for more than 2+ players the designers take the easy way out.
If I understand correctly, the military doesn't really want to be cutting edge, as things go boom with yesterday's tech, without the trade-offs of untested, novel "innovations". I think there isn't much advantage in new developments, apart from convenience.

And for W2k, I wasn't merely suggesting it's well-tested, but also a different, better thing than say WindowsXP. At least, I got the impression operating systems folks reference it for a "many good ideas" kinda thing.

Sorry, I don't have any expertise in any of this and talk mostly out of my ass.
It's true that South Africa is largely unvaccinated, but seroprevalence is over 70%, making it one of the most immunized places on earth. Delta had little room to grow, so whatever came next had to be a mutation with some immune-escape properties.

Considering that even the most highly vaccinated places on earth are shattering records of infection rates, it seems implausible that vaccinating the rest of the world would somehow fix this issue. The "most unvaccinated" places on earth are also some of the most populous, therefore a variant is most likely to arise there out of pure chance.

In this case, due to the large number of mutations, the prime suspect is an untreated HIV patient with a lingering infection, which is most likely to happen in the southern parts of Africa. It's not clear whether vaccines prevent lingering infection in such a case.
There is no where near enough farms close to NYC to meet NYC’s food demands. Buy local can work depending on the local climate, population density, etc but it isn’t inherently more environmentally friendly. Large scale food distribution networks are extremely efficient where farmers markets high markups often mean inefficient practices behind the scenes. At the extreme end you get indoor farms for produce which takes vastly more energy and resources than using sunlight on a farm thousands of miles away.
I think that might be the point; it would create a headache for the company and its users and when they do the retrospective they'll find that use of unverifiable domains was the mistake. Or using the vendor who uses them was the mistake. Filtering that catches "false positives" which are indiscernible from phishing is 10x more likely to curb this practice than trying to educate anyone about the problem.
Because people have a problem with punctuation?
It depends. If one process is writing into the file whereas other processes are reading from the same file, there is not much wrong with that. Otherwise, we wouldn't be able to tee log files in UNIX.

Yes, the UNIX file locking semantics and implementation are at odds with parallel operating systems. The rise of «worse is better» in its glory – I will take three.
And no fucks; were given.
> people have a problem with punctuation

What do you mean?

I hope it's not something like "[some] people are confused by numbers, so avoid numbers". Of course (special contexts aside), those people should fix their problem with numbers, and whenever numbers are useful or duly for the purpose of communication, they should be there. The same for punctuation or any other function.
You say "benefits", I say "inevitability".

Neither Communism and anarchism seem to model well the requirement for a management layer, or its effects.

These negatives are only transparent in capitalism, somehow.
Many Kubernetes operators are sufficiently mature to use them to manage external infrastructure.

When it works, it's nice to be able to deal with one templating language and one system to manage all of the elements of your deployments. Deploying a single helm chart is a nicer developer experience than managing both a helm chart and a terraform plan.
But what does mine say?

Dude!
I’ve read some shelves in my life, and from a reader’s perspective a good read has never made me think about what punctuation the author used. This is an inside nonsense which only worries idling writers and critics.
I find it amusing that programmers use semicolons more often then writers.
The Delta variant seemed to skyrocket and outcompete the previous variants as soon as vaccinations started [2]. And the four people where they found the new variant were vaccinated with Pfizer and travelers to South Africa, not clear if they were citizens of that country yet.

[2] https://www.ft.com/content/06334a7b-30cc-40bf-942b-e3bcd2efb...
mathematicians have 100000 words for "function"
This is an apples to oranges comparison.

He said union-free, not automated.
Yeah i'm not getting the parent either, on Debian you just install the avahi package and it's done. Maybe other distros are more complicated.
Postgres operators are mature now. This is something you install on top of Kubernetes and allows to declare a fully replicated HA cluster with backup and restore in a few lines of YAML. It's actually quite cool how easy it is to create/destroy those clusters.

Same for Kafka, mongodb, redis, ...
The essence of the article is that they underestimated how flawed their algorithms are and how hard it is to build a good lasting algorithm in a dynamic world.

Many seasoned wall street algorithms have suffered many times over 5 decades, and when they fail we call them black swan events.
Often it happens like this:

Teacher: Your kid needs to read a book by a black author.

Parent: Why do my kid need to read a book by a black author? I don't think that is a good way to pick books.

Teacher: So you say you refuse to let your kid read any books by black people? Stop being such a bigoted racist! Society isn't tolerant enough to tolerate people like you!
That’s a powerful story. I’d encourage you to try yoga. Do the Beachbody 3 week yoga retreat. Then continue doing one of the final “flow” routines every day. It’s 30 mins and is very accessible. It cured my chronic back pain and has eliminated anxiety about a range of things. After 4 years of doing this its also left me with an insanely strong core and great flexibility.
An automated rail system might work better.
Preface this with I don't hate K8s. I see it as a solution and something to be used when the situation calls for it. I've used it quite a bit from directly interacting with it using Go and it's Go modules, using it's REST API, via kubectl, and via those that provide front-ends for it (Rancher).

I see it as all about use-case, staffing, and what kind of instance you are using. Cloud-based? A-lot more freedom in being able to just deploying a cluster and not worry about much, on-prem based? Well dang now you've opened up having to be the one to update those nodes yourself - hope that you are a systems admin as well and have the time to perform said updates.

Situation A - I'd like to introduce you to Docker Swarm.

Secret management - sure K8s can do it, but I'm almost certain your organization as well as mine has accepted a vault of some sort that is not in K8s for end users and services to use. Now you just have to write your applications to use this.

Network policies - while K8s can do this, I don't know if this is the strongest argument to use K8s or just a nice cherry on top. It feels like just a shift in responsibility or adding more granularity from your network security team.

When does the situation call for it (in my opinion)? Your company has embraced the methodology of work with staffing for it and you have more than a handful of apps on more than a handful of nodes.
The original article[1] has a few more details, but to my reading doesn’t blame the AS/400 as helping facilitate the fraud in any special way. It mostly talks about a lack of oversight and culture of secrecy at Madoff’s company.

[1] - https://web.archive.org/web/20100129061850/http://www.iddmag...
"the final sample consisted of 786 participants (653 female, 127 male, 6 other/unspecified) ... 39% Asian, 32%
Latino/a/x, 13% White; approximately 40% with household income $0 to $39,999, 28% with income $40,000 to $80,000, 31% with income $80,000 or higher .... an overwhelming majority of participants (94.3%, n = 739) indicated support for the use of trigger warnings in our sample."

That's one heck of an unbalanced sample. The vast majority were women, nearly 1% were "other" and nearly 90% weren't white? Yes they're aiming to study college students specifically rather than the whole US population, but, how representative can this sample really be of even the college population? It feels like anyone who thinks safetyism is bunk didn't even show up for their study at all.

Yes they go ahead and use the normal statistical techniques on the data but there are limits to how far you can fix a sample this overwhelmingly dominated by certain types of people.
Ah, the colon. To misquote Denis Leary, never use a punctuation symbol named after part of your ass. And then the semicolon. Half-assed by name, half-assed by nature.