skysight-inc/HackerNews huggingface dataset:
Heh.

That script could probably have used POSIX::_exit() to get the same speedup without the calling process thinking it crashed.

uWSGI, a web application container for Python, Perl and other languages has an option for that:

--skip-atexit-teardown

The teardown time delay comes from:

- Unreferencing objects recursively, therefore tracing all objects.

- Calling destructor functions.

- Potentially doubling idle memory use due to copy-on-write as all the objects are written to.

When a web application server restarts all its child processes, the third item in particular can result in a large spike in memory use.
Oh boy. We had somerhing like 5 our of 8 drives fail all at the same time. All of them were affected models bought at begining of summer and failed a couple months later.

It was a pretty maddening thing to debug and figure out where the issue was (servers, rack, drives, RAID do controllers). 2 different machines 2 and 3 drives. Week later we found the Intel bulletin about the issue.

Thank God for pgbackrest backups.
I remember reading this once upon a time, but what a pleasant and hilarious rabbit hole to see again. Thank you for putting this in my feed!
> All floating point implementations are deterministic.

The entire point here though is that implementations are allowed to produce different results, and that code that needs to produce the exact same result using different implementations need to take this into account.

The application (SixTrack) had, AFAIK, only been used in compute clusters before. When they started using it in LHC@Home, running on a large variety of user hardware, this issue was exposed.

> What I'm saying is, if they obtain different results across CPUs within their accuracy target for results, their code is simply broken and they need to change their code to either use a numerically stable algorithm or higher-precision floats.

Right, that's what they discovered and that's what their solution was as I mentioned in my original post.
It is completely fine for you to say that opinion is unjustified.

But they still weren't calling themselves some kind of better-than-everyone dev.

Though if you're using "developers" to mean that entire section of the company, including management, then what was on their plate and the constraints are almost all self-inflicted.
It'd be interesting to see a version of that graph with just Episilon/Shenandoah. It's hard to tell but it looks like Epsilon may actually have lower average latency but Shenandoah may have lower jitter & max latency.
Just like how the MPAA/RIAA couldn't get SOPA or PIPA passed so they slapped some "protect children from sex explotation" language on it so it would be politically difficult to oppose.
Finalisers are not guaranteed to be called by GC in theory, and in practice they run asynchronously even if they are going to be called, so aren't likely to be called if you GC and then exit.

So how does calling GC help with anything?
The "anonymous officer" is misstating the way the rules actually work to the point of basically lying about them. (Actual rules: http://www.courts.ca.gov/partners/documents/CalculatingCusto...)

Custody credits. For crimes committed after October 2011, defendants who do not misbehave while in jail will receive 1 day of "conduct credits" for every 1 days of actual jail time served. Felons will similarly receive 1 day of conduct credit for every day of actual time served in prison while on good behavior. However, felons convicted of a violent crime only receive 15% conduct credit for time served (so 1 day of "conduct credit" for every 15 days of jail time served) and 0% credit if convicted of murder.

The only crimes you can (or could) receive 30+ year sentences for in CA are violent crimes (like rape, armed robbery, or murder) or 3-strikes sentences, and such sentencing is no longer possible for a 3rd strike unless the 3rd strike is a violent crime.

So lawyers game this so that the felons stay in these prisons/jails longer than other prisons and come out faster.

The police officer is lying. Credits are based on statutory formulas and no facility provides any more custody credits than any other, because the facility doesn't determine how many credits you get.
Maybe it's a reference to https://xkcd.com/559/?
also relevant:

https://en.wikipedia.org/wiki/William_Grey_Walter

"Grey Walter's most well-known work was his construction of some of the first electronic autonomous robots.[citation needed] He wanted to prove that rich connections between a small number of brain cells could give rise to very complex behaviors - essentially that the secret of how the brain worked lay in how it was wired up. His first robots, which he used to call Machina speculatrix[3] and named Elmer and Elsie - ELectroMEchanical Robot, Light-Sensitive, were constructed between 1948 and 1949 and were often described as tortoises[4] due to their shape and slow rate of movement - and because they "taught us" about the secrets of organisation and life. The three-wheeled tortoise robots were capable of phototaxis, by which they could find their way to a recharging station when they ran low on battery power."
I had considered getting a bidet until I read this article from UC Berkeley. I’d love to hear some counterpoints to their arguments though!

https://www.berkeleywellness.com/self-care/preventive-care/a...
This is one of the most amusing Hackernews comments I've read.

Do you by chance play something like Arma, DCS, or Farming Simulator?
In fact, with offset pagination, there's no way you can ever get back to that item, because you didn't reference the item, you referenced page 317. By the time you go back to page 317, there are 28 new items, and the item you care about is now on page 321, or whatever.

Your use case is precisely a use case for keyset pagination. What you're referencing here from Facebook or Twitter is just poor UX
since starlinks may change positions autonomously it's impossible to predict their positions. and they are so damn many
It makes a difference there, sure, but SpaceX lowered orbits from 1,150 to 550km. Half the latency, but only by about as much as traffic between LA to SF incurs.
It's fascinating that the two example spammers in that post have women personas, whereas a huge chunk of the problem is men (generally actual men, not fake personas) trying to hit on women. It's not clear to me Keybase believes that's actually a problem or, as the original article says, working as designed.
API for Get Scientists?
I tried to search for more than 2 hours some API where I can get the list of the most recognizable scientists throughout history, but I only found breeds of cats, comics and anime, do you know any API that does that? I find it weird that I can't easily find this API
I made it for fun, but it ended up being kind of useful. I say to Siri "record my weigh" and it response "how much do you weight?" I say the number and it records that number, along with the data and time, in a Google spreadsheet.

Khoi Vinh wrote about shortcuts on his blog[1]. He uses one to automatically archive screenshots to a particular Evernote notebook.

[1]:https://www.subtraction.com/2019/12/04/shortcuts-and-screens...
People's reactions to art, especially complex art[0] is going to be highly subjective.

What I wonder most when reading this article is "Will I enjoy a game that successfully evokes those emotions in me?" That's my go-to. But as I read on, the author changed my mind a bit. I may want to actually experience the game, regardless of whether or not I'm willing to continue playing after a short bit of experimentation.

I think that crossed an important line, for me. I wasn't a snob that believed "video games would never be considered a truly complex art, only a form of (mindless) entertainment[1]". In fact, I believe video games have so many things about them that are superior to what we generally consider art (film, and even in some ways, the written word). And I put my money where my mouth is -- at home, I am strict about consumption of "mindless entertainment" (read: almost all things TV), but I will let my kids play many "social" and creative video games with very little/no limits[2].

The difficult place I see game companies in, these days, is that to create this form of immersive environment is really expensive (though getting cheaper every day). And the more risky moves they make (i.e. punishing the player to evoke sensations of guilt for "Doing the Right Thing(tm)" as is so true in real-life), the more likely the game is going to be solidly rejected by mainstream audiences and that cost will not be recouped. Perhaps this is a future cause of "all great art fails to be recognized in its time"

I, personally, haven't been a gamer for a long time. I mostly play with my kids, and while I can hold my own, I can't handle a game that I can't meaningfully play without getting destroyed seconds in, and I've found that the games that fall into these categories tend to have that level of difficulty around them. Now that my kids are getting older and starting to play some of the more teen-oriented games, I'm finding myself wading into those waters again. I haven't been terribly impressed, if I'm being honest. Other than the graphics being dramatically better -- but, lets face it, I work in this industry ... that wasn't a surprise and the novelty wares off, quickly, when the gameplay starts and you discover that the physics hasn't come as far, as fast.

[0,1] Quick: Define art. Define entertainment.

[2] Only to say, I don't consider them an activity to be avoided in favor of other, more meaningful/educational-oriented activities, but to be balanced with other healthy activities like "exploring/playing outside/making things with non-virtual things". I never got the whole "Quit building that entire universe in Minecraft and go sit at the dinner table and play Sorry! with your sister"
I loved Gothic 1 and Far Cry 2, both are unmatched by the sequels in many ways. The immersion is different though, in G1 the world and your place in it was very believable, in FC2 the first person experience of the player was very believable. I can see how one may be more appreciated than the other, but I can’t feel right about comparing them.
“Professional bridesmaid” is an actual job. Meet a woman who does it
We've got it here in Centennial Colorado. Symmetric Gigabit

https://coloradosun.com/2018/09/13/municipal-broadband-citie...
It is solved with keyset pagination to be precise. "I don't want to lose my place in the feed" - well, you just lost it because of OFFSET.
The mere fact that something is "research" does not mean that it is credible. The study you reference in particular has a lot of issues: https://buttondown.email/hillelwayne/archive/science-turf-wa...
The "and healthy immune system" bit would seem to make your advice inapplicable to hospitals.
Only 2 Days Left
Off topic: I mentioned to someone at StarLink the idea of equipping their gear to perform global RF interferometry, will let you know if it turns into something!
At least on unix systems, process termination implicitly calls close() on every file descriptor anyway. There should be no need to call it explicitly.

(You won't get the chance to log any write errors reported by close() or react to the errors, though.)
Definitely a very real caveat, but in this case, you're breaking the monotonicity condition that makes paging this way very simple. As you describe, adding a little bit more context to restore the monotonicity condition makes all go well!
This article is so so stupid.
It takes at reference the places where pagination is the worst: Facebook, twitter, google...
Using machine learning to choose compression algorithms
I'm not going to reply to all of your follow-up comments, but it simply isn't possible to get 2x or 3x time served based on where you serve your sentence.

The 2x time served is a good conduct credit equal to one day of conduct credit for every day served on good behavior. If you misbehave or commit further crimes in jail or prison, you don't get the credit.

Violent felons get significantly less credit for good behavior (15%) and murderers aren't even eligible.
This used to be called ‘pack-ins’, no? Like when Sonic was included with a Genesis?
This is not at all related to RDBMS. You would still prefer keyset pagination in a "highly scalable" nosql database.

Meanwhile, I'll wait for that convincing example of where "some people" want to find 3170-3179 useful.
People are gonna dogpile you, but if you'd said this about JS they wouldn't have blinked.
The real issue is political. The sitting president despises Bezos and wanted to ensure Amazon got screwed over.
Someone at the same coffee shop or the owner of the shop injecting ads or botnet mining.
It'd be nice to have a per-thread mode for this.
How is this comment flamebait? First time that I have really thought you missed the boat.

Please don't censor people just because they criticize HN or the community.
If you're running on a battery and aren't sure you'll be able to plugin in the next 10 minutes.
Sounds like the maintenance shut downs that window OS would need from time to time.
The monthly “Freelancers” thread on HN seems reasonably lenient about small agencies posting. I’ve had a number of clients from it over the last few years.
Yeah there’s a ton of other engineering skills you could teach in parallel. It really isn’t that crazy of an idea. If SpaceX is putting them in orbit on excess capacity from scheduled flights I’d hope they’d give away the time for free. Or they could invent their own market here for scheduling time.
No they did it just for speed and cost. Once they got permission and right of way access from the city to do trenching, it wasn’t a different permit to do shallow trenching as opposed to the regular method.
IT is (one of) the odd one outs here, though. Most job profiles do not change that significantly over the course of 5 years.

Nurses still do mostly the same things as 5 years ago. As do teachers, policemen, construction workers, waiters, etc. etc.
Research is actually just all over the place (lots of papers come to many, many different conclusions), because it's impossible to control for various things like developer experience.

Instead, common sense is actually the best substitute we have.
Perhaps you could install it with Windows Sandbox. Low risk.
I use and understand them.

What I don't understand is what kind of solution you're talking about, how it's different from the one recommended in the article, what exactly you mean by "page arbitrarily" and does that imply more capabilities than the solution offered in the article (where you remember the auto-increment-value/timestamp/sort-field of the last record and then request additional records based on that).
It's true I never told Windows my working hours, but I would shut down mostly nightly and it'd still happen.

I just find it to be incredibly user-hostile to force updates in the middle of a session, starts to feel a bit more like Microsoft's computer than mine at a certain point.
You don't need a position prediction to remove an anomaly.
It's the only Far Cry game I couldn't force myself to finish and I finished all the others (including Blood Dragon); the most surprising was Far Cry 5 where it started completely meh (I left it alone for a month after the initial gameplay) and then ended up as my favorite; maybe 2 is similar.
Majaro actually looks beautiful, I'll definitely check into it, thanks for the heads up!

Some part of me is tempted to make the jump to qubes too
Heh, I've been thinking that would be great for distractions. Have to work but are on Reddit? Shock!

Alternatives: automated time waster blocking (on the router probably), self-blackmail (nudes go out automatically, or your important stuff is deleted).
This makes sense. New games could rely on API changes in software. It happens all the time for me as an iOS developer, and we have to make an educated decision on which OS versions to support and which ones not to.
Happy to hear that! If you'd like to see some Smalltalk tools rendered in Java Swing, check out this demo [1]. More details on this are in the blog post on our Polyglot Programming seminar [2].

[1] https://www.youtube.com/watch?v=If7xNBYA0Bk
[2] https://medium.com/graalvm/hpi-polyglot-programming-seminar-...
It's more of a comment on how we spin the justice system. We say things like "they're sent to prison so they can be reformed," But if we _really_ believed that, why are we restricting their behaviors post release? (past some period of observation)

The truth is that it's a punitive system, rather than trying to do anything productive about it.
I think Gothic 1 is far better, and there also might be an element of “you had to be there” as in be the right age when you discover the freedom and bigness of the game compared to other games at the time.

The realism of the world is still unmatched by many titles in the way all the NPCs of the world had a routine that followed the day night cycles, and you could do whatever you want, make allegiance with whoever you want, and all be progressing the game in what was the first or best anti-linear game for many people.

Much of the bigness was attributed to straying too far into the wilderness being absolutely dangerous.
> We aren’t going to falter on it. We never have. And we never will.

Except when linux users had to use weak keys with your service, I suppose.
It's probably been in a lot of movies, but I've always loved this scene in THE CORE where they land a space shuttle in the LA river: https://www.youtube.com/watch?v=GG1RwE_x6Vg
Here's a brief summary of why this article and why Vannevar Bush was so impactful. (Please note that this is all from memory, so while some of the specifics might be off, the general thrust is right)

Vannevar Bush helped organize the American scientific effort during World War 2, and afterward was instrumental in setting up the modern university research system we have today. The main argument was that research was the "Endless Frontier" (hence the name of the book about him). Things like the National Science Foundation and DARPA are part of this compact, that the Federal government would fund research universities to do fundamental and applied research, which in turn would help contribute to American national security.

Regarding this specific article (As We May Think), I would argue that it's core impact is that it made a case for why information technologies were needed, and laid out a vision for what that world might be like. Even though the article was written in 1945, it talks about information overload(!), and the challenges of finding the right information when there is so much of it. It also imagines an early form of hypertext via a device called the Memex, which later inspired Ted Nelson, Doug Engelbart, and others in their work. There's even discussion of a kind of collaboration in the form of "trails" or paths as to how one found a piece of information in the first place. One might share these trails with others, forming a kind of hyperlink that we don't have a modern equivalent for. Intriguingly, Bush also imagines wearable computers (a wearable camera) that can be used to help augment people's memories.

In short, this article heavily influenced a lot of people's thinking about what computing technologies could potentially do in the future, and was a major part in getting us to where we are today.
This is very cool! Thank you for your work and inspiration it creates todo similar things.
Oh, OK. I also thought it was electroshock motivation.

You still can't just "turn off" your mind, most likely. You'll just be trapped there thinking
But that measurement is literally a dot that you know would not be there at time T-1, then should be there at time T and then shouldn't be there at time T+1.

Astronomers are lazy.
Sorry, that generalization doesn’t hold water.

It makes sense for systems where libc is tightly coupled and coversioned with the kernel, e.g. BSDs, but Linux always relied on third-party C libraries and supported static binaries, etc.

You could argue that BSD made the mistake of intending to have a Windows-style C library compat guarantee but not enforcing it, but that was not in scope for Linux. The philosophy has always been syscall-level compat (and there are lots of famous threads with Linus re-enforcing this to others who would presume that things should be “fixed in user space”).

So it’s hardly reasonable to generalize based on some BSD concerns; Linux is WAI and represents the most common Unix-like system people use today by far.

There’s a pretty good argument that this level of compat, while the source of some problems, has also made other things much easier: consider container images that are bundled with their own system libraries. (You could certainly invent schemes to inject these libraries, but dealing with link and library level compatibility seems even more complex to deal with than system call-level compatibility.)
> It was absolutely a huge use case that people would submit deeply paginated queries directly, such as from saved search result links to resume later

How would offset pagination matter to these folks? They would have probably had an even better experience with keyset pagination, resuming later after the exact item they left with, not the page which may have random other items on it by the time the resume.

> or known good bots that we allowed to crawl and index the search results for customers that integrated our inventory to their APIs.

Why not offer an API to those bots? And how does this relate to offset pagination, in the first place?
McDonalds probably wouldn't hire a pedophile due to its customer base, but it would (and does) hire other types of former felons, since the majority of McDonalds are owned and operated by franchisees who are generally permitted to control hiring as long as they don't violate labor laws.
That is a terrible attitude IMHO - why should they have to have to learn how to talk to developers? Your cynicism towards “typical users” probably harms you and your career.

I find that the vast majority of people are not stupid: they have learnt that trying to get things fixed is usually a waste of time. As a developer I truly understand this from when I’ve tried to get others to fix their software, and I am very good at describing problems.

Regularly I am the one that created the software problem, and if I were a better developer I would have avoided making the problem in the first place (or had ways to detect it, or easy ways for my clients to tell me).

Edit: simplified.
I don't really see why you would write any lisp in an editor that isn't Emacs. Visual Studio Code is very capable... of jumping in to a hot loop periodically to crash or require you to kill it, sapping your battery at idle, and making rookie mistakes long-since corrected by the 40-year editors.

If I were looking to replace Emacs, replicating CIDER is a tall order, especially CIDER over TRAMP. Tell me when you can automatically shell into your high-memory remote machine with an editor running locally, and get a full REPL with inline evaluation on the remote machine.. and it "just works" (i.e. install the package from MELPA, and it works out of the box).
Locally, not globally and in 2100.

The title is misleading whether you want it or not.

There is a reason they didn't write a precise title.
Make a deal to bundle Roku sticks with the TV to reduce the cost maybe?
PAE is a bit limited, they actually released an x86 64 bit version of XP that worked with more RAM properly and out of the box.
Ask HN: Script/AI/site to parse block of text to sentences?
I periodically download automatic transcriptions off the captioning of YouTube videos. They come in as one large block of lowercase, unpunctuated text. Is there any scripting rules, AI, or other tricks that can parse these into sentences?

Example: https://www.youtube.com/watch?v=WPPPFqsECz0