skysight-inc/HackerNews huggingface dataset:
I wrote an article on my learnings on using vanilla js to create spa. If anyone wants to read it, its here https://dev.to/rishavs/making-a-single-page-app-in-ye-good-o....

This is a good example of why a vanilla JS app is much simpler than a framework driven app. Because you've only done the absolute minimum, and it wouldn't work for even a moderately complex real world project.

There's no security considerations. There's no state management. There are no tests. There's no performance improvements like memoization or a VDOM. Even simple things like managing constants isn't done well (eg you've hardcoded the API address in to the getPost function). There's no error handling, so if an API call to fetch a post fails nothing will happen except you'll get a JS error in the console to say 'post.id' not found when PostShow tries to expand out the template string.

Making a simple app in vanilla JS by ignoring everything that makes a fast, robust app hard to build is easy. That's not what most developers are trying to do when they use a framework though. People reach for frameworks so they can implement the hard things without having to build them from the ground up.

No doubt you could implement all of those things, but by the end of it you'd probably have implemented something very similar to React. It's not unreasonable for people who want those things in their apps to just use React in the first place.
Well since you replied to me I'm going to require your SSN and date of birth as part of my privacy policy. Didn't like it, you shouldn't have replied to me.

Sounds like you're the type of business the law was created for
In Moscow the post-covid blood donors are getting $70 for 600ml of plasma instead of regular $50.
You cannot be seriously suggesting that government mandated sick leave results in Venezuela. I'm living in a country that provides mandated sick leave (which should be expanded to more casual workers, especially in this context, at least temporarily) and, shockingly, we haven't gone the way of Venezuela. Nobody should have to sell their blood to recover costs - if things are that dire, there needs to be a proper support system in place, and in exceptional times that certainly includes some level of sick leave support for low paid/casual workers.
What a sad way to ruin the song "Oh Superman" by Laurie Anderson.
You've been breaking the site guidelines repeatedly lately. That's not cool. Emotions are inflamed right now, and that makes it more important, not less, to follow these rules: https://news.ycombinator.com/newsguidelines.html
Didi's AV Unit Nabs $500M in Funding
Some of the limitations make it a no-go for me at least [0]

[0] https://www.sqlite.org/omitted.html
Though, early Smalltalk did not support lexical closures.
In case of protein folding it's mostly that the optimization problem is NP-hard.
I've yet to see any evidence or plausible explanation for how pooling funds to have one person buy a large quantity of necessities could be a widespread strategy in this situation. It seems like this is just a red herring, and that the vast majority of people tying to buy large quantities of eg. TP, hand sanitizer or masks are either irrationally hoarding excess supplies for personal use, or planning on scalping.

But even if shopping on behalf of the entire neighborhood is common, is protecting that strategy more important than deterring hoarders and preserving the ability of underprivileged people to buy what they need for themselves?
https://1997.4042302.org/whatdidyoudo Is it a 404?
Most of these would make a pretty good checklist (if phrased more positively).
Self-Service and Shadow Work in Service Design
Why would that be a problem? That's the point, that you can set tab width any way you want.
Seems to me that ensuring small rural towns can disobey federal laws is the wrong thing for which to optimize our society.
10000 of them will be tested[1] regardless of symptoms. Very nice. I don't understand (and have often wondered) why we, in Europe, haven't been doing this for months. Plenty of testing capacity.

[1] the article doesn't specify, but presumably a PCR test
Sure, the most asinine thing (borrowing from Rob Pike) is to have a system where invisible characters define the scope and semantics of what you are writing. Now Helm takes this one step further (and I one beyond that before saying no more to myself and discovering https://cuelang.org) and starts using text interpolation with helpers for managing indentation in this invisibly scoped language. I hacked in imports, but was like, ok, making this worse.

So there's this problem and a number of experiments are going on. One camp has the idea of wrapping data / config in more code. These are your Pulumi and Darklang like systems. Then there is another camp that say you should wrap code in data and move away from programming, recursion, and Turing completeness. This seems like the right way to me for a lot of reasons both technical and haman centric.

I've pivoted my company (https://github.com/hofstadter-io/Hof) to be around and powered by Cue. Of the logical camp, it is by far going to be the best and comes from a very successful lineage. I'm blown away by it like when I found Go and k8s.
I am ready! NetBSD is running on the toaster. I think haproxy can do 10K req/s. tcpserver on the backends. I only write robust shell scripts, short and portable.

As a spectator, not a tech worker who uses these popular solutions, I would say there seems to be a great affinity amongst in the tech industry for anything that is (relatively) complex. Either that, or the only solutions people today can come up with are complex ones. The more features and complexity, the more something is constantly changing, the more a new solution gains "traction". If anyone reading has examples that counter this idea, please feel free to share them.

I think if a hobbyist were to "[deploy] a single statically linked, optimized [C++] server that can serve 10k requests per second from a toaster" it would be like a tree falling in the forest. For one because it is too simple, it lacks the complexity that attracts the tech worker crowd, and second, because it is not being used by well-known tech company and not being worked on by large numbers of people, it would not be newsworthy.
Wdefv
fghjkm,
Gravity and electromagnetism are basically the same from a mathematical perspective if you’re just looking at the forces produced: they’re both inverse square, proportional to some intrinsic property of the objects involved. The main differences are the constant in front (gravity is kind of wimpy) and the fact that “electrical mass” can be negative and its force has a minus sign in front. The only reason you see gravity at large scales is that charges mostly cancel out at larger scales, while gravity cannot.
If you're a ruby user looking for extra performance, try Crystal[1]. Everything you love + types compiled to native binaries. You can set up sentry[2] to autocompile and run every time you save, so the feedback loop is just as tight.

[1]: https://crystal-lang.org/

[2]: https://github.com/samueleaton/sentry
About the same as mine, I have started writing PHP code as my first project a decade ago without any web framework and not even a PHP proficient. Until Laravel first appeared in the PHP world when MVC approach was easy to pick up for a small site.

I'm no longer find MVC approach sufficient for all projects and move on to Javascript, Swift, etc, finally settled on Go just before it turns 10th. I'm really appreciate I could build without web framework today.
The Randy Shilts book it is based upon is a very engaging and detailed record of the AIDS epidemic in the US. He himself sadly died of it, shortly after finishing the book.
Eliminate Bad Habits with Mindfulness
Java is the default language for computer science??
Grew up at the tale end of that, during reagan 80's. Learned how to hide under a desk for nukes. Hide under a doorframe for quakes. But Ghostbusters was good.
I saw similar punctuation on "Forensic Files" used by a serial killer. Not that anyone who uses odd quotes is a serial killer. ~~Just sayin'~~
The example (v += 1,2,3,4,5) is neither "nice" nor "expressive". It's confusing and dumb. The reader of this code can't be expected to know what it does. And, looking at the implementation, there's not even an efficiency benefit from doing this. You'd have a more efficient and literate program with std::iota.

The rest of the article isn't wrong, but it fails to establish why anyone thinks this pattern is "nice".
Alas this does not describe everyone's relationship to work.

Huge communities of people work really hard for zero money to get job satisfaction. You need look no further than many open source projects to see this, not to mention armies of volunteers at any charity shop etc.

While it is rare to find that perfect job, where you are both fulfilled and paid well, it is certainly something to hang into when you find it.

For me, I programmed for free long before anyone paid me, and I'll program for free when they stop paying me. In between I have earned dramatically lower pay working for myself, on projects I enjoy, with minimal oversight, than I would have gotten working for some corporate as a cog in the machine. I don't envy my rich Google compatriots - it would kill me to do their job.

The old cliche says if you find a job you love, you'll never work a day in your life. That's bogus. Work is still work, and I work harder than most,but the work is meaningful, satisfying, and fulfilling. (_and_ I get paid :))

To answer your question though I dug out this story I read a long time ago https://www.mentalfloss.com/article/31077/when-his-project-w...
I was referring to the same claims spread in the West, e.g.:

https://www.telegraph.co.uk/news/2016/03/16/historys-greates...

"Based on the theories of Dr William Campbell Douglass, many believe that that HIV was genetically engineered"

"William Campbell Douglass, M.D. Education: BS, University of Rochester, New York; MD, University of Miami School of Medicine; Graduate, U.S. Navy School of Aviation and Space Medicine" (1)

"Survey data from the United States (US) and South Africa (the only countries for which quantitative data exists) suggest that a significant minority of people endorse such beliefs and that this matters for public health." (2)

And "we know who" now spreads the disinformation about the COVID-19 virus (I won't intentionally mention him, he has too much fans here).

(Additionally, the biggest stockpiles of chemical and biological weapons were always in the U.S., apparently more of 10% of the chemical weapons are still not destructed.)

1) http://ncoic.com/aidswar.htm

2) https://onlinelibrary.wiley.com/doi/full/10.1111/j.1467-9566...
Now, that's what I'm calling "move fast and break things"!
If a patient gives too much of their blood for this, would they have less antibodies for themselves if they get reinfected?
> They could pass a bill right now addressing anything (pick your favorite issue that is broadly supported by the Democrat voter base) and send it to the Senate to be debated.

The word you are looking for is “ignored without hearings, debate, or votes”, not “debated”.

> People need to wrap their head around the possibility that Democrat party leadership doesn't actually agree with their "base" on the issues, they just pretend to.

The Democratic Party leadership agrees almost entirely with the base of the faction that has dominated the Party for the past ~25 years, the center-right neoliberal faction whose powerbase was in the conservative (compared to the party mainstream) Democratic Leadership Council — openly founded in the 1980s to reverse the progressive direction of the Democratic Party — before it took over the party apparatus rendering the DLC itself superfluous.

It's not a secret to anyone in the party, whether in the progressive or neoliberal faction, that those two factions have a deep and abiding conflict of values and are only, when their relationship is at its strongest, in an uneasy alliance of necessity against the Republican Party and the far right.
Am I the only person on the internet who doesn’t get spam emails? Or just the loneliest?
Personal attacks will get you banned here. No more of this please.

https://news.ycombinator.com/newsguidelines.html
They would die of blood loss before that happens
There is something and there is nothing. We think we are something, but in someone else's view we are nothing.

You are the cat inside the box. You exist as a person, live in a planet and the entire setup could and couldn't be real. The experiment prooves that something is uncertain and all these are nonsense.
GitHub warns Java developers of new malware poisoning NetBeans projects
>On what project are you right now and what is fueling you ?

I don't know anymore.
Really? It's not done that to me yet. It just pops up a 'see this page on the wayback machine' dialog, which I can dismiss if I want.
> in my country they'd had been shot, as soon as police see they carry a weapon

Michigan allows the carrying of firearms anywhere (open carry), and concealed firearms except for 9 locations, like schools:

https://www.clickondetroit.com/news/2019/08/05/understanding...
It's a good question.

I wanted it to be easy to copy and share and since I didn't think curation should add anything that fits the bill, using a single file would limit the number of items people would add to their curation. JSON also has a small limitation in the fields that it cannot have multiline strings which was originally supposed to force to shorten the description.

But yeah you are probably right, I will do something to migrate it later into a directory of files.
Technically you can have some sort of command in your C++ program to make it fork itself, that is restart itself disk, maybe after freeing non-shareable resources like listening sockets. One could even imagine that this command includes self-recompilation by invoking make (or whatever your build system is).

An alternative is to have your program expose its pid somewhere, and your make file could send a signal to that pid when a new version is ready. The advantage is that if your program crashes on startup, you don't have to do something different to restart it.

If your application has to include an "auto-update" feature (like browsers), use that instead - its certainly better to eat your own dog food. Maybe just hack it a little bit so that you can force a check programmatically (e.g. by sending it a signal) and so that it connects to a local updates server.

It is true that C++ is an overly complicated language; if you don't need maximal performance, you have a lot of AoT languages that are a bit slower ( something around 0.5 C ) but more "user-friendly". In particular, if you are into servers and want fast edit-compile-run loops, Go might be a good choice.
You've been flaming up a storm on HN. That's against the rules and I've banned this account. If you don't want to be banned, you're welcome to email hn@ycombinator.com and give us reason to believe that you'll follow the rules in the future.

https://news.ycombinator.com/newsguidelines.html
JobRun: Background processing in Java. Distributed and backed by persistent stor
Making a large financial incentive to catch Covid19 would be a net benefit to the world, in your opinion?
That's great but then you're not doing what the commenter above said and "logging in to a server and tinkering with it"
GitHub Actions, C++ with Boost and cmake, almost a 50% speedup with caching
The question is not really "was this particular one man made?", but "is it possible?" It is pretty obvious 1970ties technology was not advanced enough to pull this stunt. But times change.
A purchased domain with a purchased server counts here as private property. Self host if you must.

We should definitely allow property owners accept or refuse certain behaviors on their premises. If you step onto my lawn and spout similar nonsense, I'll kick you out all the same. Stand on your own soil if you insist on shouting low quality and ill informed troll comments.
The Anatomy of Connection Pooling
Also sometimes, long lines can more easily render the structure of the program. Like when a function is called with many/long arguments several times in a row, with varying arguments. If you have one line per call, you can easily see that it is the same function and what argument is changing at each call. If you rewrite each call as 5 lines, it is much more difficult to grasp what is going on.

And when you need to change, say, the second parameter, you will see that the same call is made n times, and not forget one in the process.
AIDS killed healthy young men. The same is not true of COVID.
Six Levels of Interaction with a System
When you are coming from old sysadmin world and you mastered unix systems architecture and software - what k8s does is very straightforward because its the same you already know.

K8S is extremely complicated for huge swarm of webdevs and java developers that really reqlly dont understand how the stuff they use/code really works.

K8S was supposed to decrease the need for real sysadmins but in my view it actually increased the demand because of all the obscure issues one can face in production if they dont really understand what they are doing with K8S and how it works under the hoods.

Which I find hilarious.
Some Japanese Whiskies Aren’t from Japan. Some Aren’t Even Whisky.
For sure. Once one built with Django or/and Rails, it is much easier to know how to structure the other more decoupled frameworks like ExpressJS. Sometimes it is much better to decouple an app into different components that we need such as ORM, layout engine, depending on the task at hand.
I shouldn't "have gotten" NAS drives, because I have 15 of the DM000s in an array and only one has failed so far. That means, assuming getting NAS drives would've earned me a 0% failure rate (which they wouldn't have), I would've spent two to four times as much money on the NAS markup as I have on replacing the single failed drive.

Just because Seagate says they want to upsell me for dubious market segmentation reasons doesn't mean I need to pay attention to them. I know what I'm doing, I know desktop drives work just fine for my use case.

Before SMR. Now with SMR, they've found the perfect way of getting rid of everyone who was buying desktop drives for NAS use they were perfectly suitable for, and force them into the NAS upsell. 4 years later and it still costs more to buy a NAS drive today than it cost to buy an equally fit por purpose non SMR desktop drive back then.
> I always wonder why Democrats, while in power, don't something about this and other problems that African Americans face?

They have, especially when the progressive wing of the Party was more dominant, but even some since. The Obama DoJ was no slouch on police accountability, something Trump and incoming AG Sessions were positively giddy about ending in 2017.

It's a long list of problems, though, and the US system is deliberately designed with a large number of veto points to prevent lasting radical course corrections from being easy to implement even with a transitory majority.
Android studio runs fine on my 8GB Laptop, On pi bottleneck would be CPU not RAM.
I think its possible Trumps is actually striking the tune with fellow Republicans to get their likes learning anout Reagan slow approach to AIDS - I was shocked when during last SOTU, Trump announced that within one decade we will finally find a cure for AIDS/HIV. What gives??
That's a bold assumption to be making, especially regarding a fat soluble vitamin that builds up in the body.

A bag of carrots wont hurt you yet an equivalent dose of betacarotene (vit A) supplement definitely will and is strongly associated with increasing certain cancers. There's a reason you won't see those on the shelf apart from miniscule amounts in multivitamins.

Nothing in nutrition exists in a vacuum.
Set your pod to pull image always and have entrypoint shell script that clones the repo, kill the pod so on restart you could get your code deployed.

You could run init container with Kaniko that pushes image to repo and then main container that pulls that back but for that you need to do kubectl rollout restart deploy <name>

If you are looking for pure CI/CD gitlab has awesome support or you could do Tekton or Argo. They can run on the same cluster.
True; I learned many years ago that that is not a good plan. Although, I too, love it. But I use my X220 and Openpandora at home to satisfy that need. Those setups I could not reproduce if you paid me.
Could this be automated, e.g. by a browser extension or a small app setting up an alias and an ding a site-specific rule to your FM account? I am thinking about a one-click sort of thing, a DYI alternative to Sign In with Apple.
So, a Python fanboy. Well, I remember when I learned Python 5 years ago, I did all of these. Before that I did them all with C# 14 years ago, and before that I did the same with Java, VB, PHP, C/C++, ASP, HTML etc etc(you insert any fad in past 20 years, I've done it) all the way back to 90's when I started with Pascal and Assembler.

The general answer to all of them is "you grind and RTFM". I too am awaiting the time when all I need to be expert in a new technology is to just go buy the plugin I'll insert into my brain (hopefully we'll become cyborgs, that's my optimism) but until then is grind & RTFM.
In interviews I've read with nurses over the decades, they invariably say, "Don't get pear-shaped."

What they're referring to is visceral fat (around their organs), so in their experience treating thousands of patients, that's their primary advice.

Something to think about.
> I've never needed anything to be that fast

In a world where you are billed by ressources used, wouldn’t it be a good idea to have light and fast services that don’t consume those ressources ?

I’ve been wondering this for a time now.
> The most simplistic task - execute some code in response to even in a bucket - makes kubernetes with all its sophisticated convergence capabilities completely useless.

That's because you're not thinking web^Wcloud scale. To execute some code in response to event you need:

- several workers that will poll the source bucket for changes (of course you could've used existing notification mechanism like aws eventBridge, but that will couple you k8s to vendor-specific infra, so it kinda deminishes the point of k8s)

- distributed message bus with persistanse layer. Kafka will work nicely because they say so on Medium, even though it's not designed for this use case

- a bunch of stateless consumers for the events

- don't forget that you'll need to write processing code with concurrency in mind because you're actually executing it in truly destributed system at this point and you've made a poor choice for your messaging system
For example https://deno.land/x/ is effectively nothing but a URL redirect server, where it rewrites URLs to include a git commit-ish reference in the redirected URL. So https://deno.land/x/oak@v4.0.0/mod.ts becomes https://raw.githubusercontent.com/oakserver/oak/v4.0.0/mod.t..., which GitHub serves up a nice versioned module.

Thus http://deno.land/x/ is the de facto central registry. I'm yet to see how it makes a difference whether the logic of resolving a package name to a concrete version of the package is baked into command line tooling or a web service.
"More data is more better" (beginning of the video) is my favourite new engineering meme.
“a regulatory Wild West”

“The lack of regulation benefits major producers,” said [a Japanese whisky expert]. “If the lack were a disadvantage to them, rules would be quickly be implemented.”
Yes I agree, I learned TypeScript from this book and learned modern JavaScript along the way as an extra.
Good for them intel processors hasn’t changed last 2 years
You can use something like dokku for most of what you cited for much less overhead, if you are not planning to use the "highly available" feature for sure
Rancher makes this quite painless; worth a look if you have to run on prem, or in an iaas cloud for some reason.