skysight-inc/HackerNews huggingface dataset:
You can use a radix heap rather than a binary heap. I have an implementation here, with benchmarks using pathfinding: https://github.com/mpdn/radix-heap

It has the nice property that the amortized cost of pushing/popping an element is independent of the number of other elements in the heap.
Likely tied to how quickly we produce novel things in general, making the dangerous subset sufficiently large. That’s a root of a common argument you’ll see around regulation stifling innovation.
The best marketing for me is to see lots of useful/large projects using the language. That's why I invest time in Rust: lots of things are built on Rust, as the constant flow of "ABC written in Rust" posts on HN and other forums can attest to. Because that means that people who are good enough to write those things thought that Rust was a good choice.

Go is the same thing: I learned it because in devops it's the dominant language, which tells me it must be pretty good for those use cases (even if so many people dislike it, no one can claim it's not good enough).

I've looked into Odin and thought it was interesting, but given the amount of work being put into Zig, right now I feel like that's the safest choice (I must say I dislike how even basic things are still being changed in Zig, but no one said it would be otherwise so that's on me). Zig gives very tangible benefits, like not depending on just the LLVM (WIP) as a compiler backend, being able to compile to basically any combination of C stdlib/arch/OS from anywhere without worrying about toolchains and other things that I believe Odin lags behind, despite perhaps being the better language of the two when looking solely at its design (I am not too sure about that as I haven't used Odin for anything yet, and done very little Zig).
Evaluate Markdown code blocks within Vim
This headline is false and clickbaity.

You absolutely can check out video games just like library books -- physically.

What the article says is libraries can't make digital copies of the games and lend them remotely over the internet.

Nothing is preventing traditional physical lending.

I personally think it's time Congress got around to putting all works that haven't been commercially available for e.g. 5 years into the public domain. That's the easiest way to fix this. But that's the job of Congress, not the US Copyright Office.
DRAM/SRAM/Flash bits and CMOS triggers flipped (not all at once, random). Magnetic media is much more resistant, but in almost all HDDs using classic CPU (and DRAM cache), which are affected by cosmic rays, so info corrupted when travel from HDD surface to computer motherboard.
Maintaining copyright should require a duty to distribute. If you do not distribute (at a reasonable price, no tricks allowed) your work, the copyright should just expire because you clearly aren't making any more money.
I wouldn’t say this specific order is “clearly unenforceable” — after all, Wikipedia did remove what it was asked to remove globally, at least for now, didn’t it?

Yes, people can use VPNs to circumvent the order if the banned content is available elsewhere. But the law and judicial orders do more than just attempt to constrain behaviors.

Legally, those within the reach of India’s enforcement jurisdiction can be punished for disobeying the order. And since we’re all discussing things from a practical standpoint as well, we should keep in mind that states often uphold their interests abroad — even illegally. See the recent diplomatic row involving India and Canada, for instance.

I insist: both in legal and in practical terms, there is more to this case.
The deposit would be either too high for normal people to pay, or too low to matter to bad actors
In common usage, there is a distinction between "an algorithm" and "the algorithm". The latter is often shortened to "the algo".
SSE2 is a requirement for x86-64, which gives at least a reasonable(128bit wide SIMD) baseline.

SSE4 is from 2008, so making it a requirement isn't unreasonable.

Even AVX2 is from 2013, so some apps require it nowadays.

It is extremely difficult for a compiler to convert scalar code to SIMD automatically, even static C++ compilers really suck at it.

A dynamic compiler for javascript would have no real hope of any meaningful gains.
Show HN: Throw Your Message into the Void
I sometimes catch myself struggling wanting to get the last word, or leave a comment that's not entirely objective in code review, or want to get something out even knowing it doesn't contribute to the conversation.

For example, the other day there was a conversation of someone wondering why they can't get the newest version of the unzip package that ships with a recent OS release running under an older OS release, which they found to be worse than Windows. I posted a comment demonstrating that while you could move executables across (using Docker containers), it wouldn't run due to the dependencies, but then I deleted the comment because it didn't actually give them a workable solution.

Another recent case was people talking about imperative languages and functional languages and someone brought up a snippet of code in Haskell that read like executable line noise to me. Not as much because of the syntax itself, but because most of the variables were single letter or very short and I dropped a comment with an example of what it'd look like with "more Java" naming conventions. I did delete that one as well, realizing it contributed nothing to the greater conversation.

On one hand, I want the feeling of expressing the thoughts, on the other, it isn't always productive to do so. That's why I made a little site to help me with letting go: it's just a front end app where I can drop whatever I want to say (and maybe what I'm responding to) and... send it into the void.

There's no back end, no analytics and honestly anyone could make something like that in a day (if concerned about privacy), but I wonder whether people in general are able to dismiss thoughts like that. Perhaps not, judging by how many arguments there are online where people go back and forth with no actual progress or compromise, but in my case something like this definitely helps my mind get some closure and be at rest.
I think you are talking past each others. Preventing N+1 by doing lazy fetching and having synchronous / asynchronous API are orthogonal issues. Async API must not block the thread/event loop when the data loading is being done.

Diesel hasn't been providing an async API for reason told in this thread: https://github.com/diesel-rs/diesel/issues/399

The situation might change some day though, once async support in the core language and surrounding ecosystem gets stronger.
I also remember when Facebook originally added their algorithmic timeline.

At the time everyone was complaining that Facebook was just "people posting their lunches" and from that PoV I thought it was a great addition to promote the things people found important in their lives instead of the noise.

Of course that didn't last long.
Bro you literally just described Mastodon.
The AMD MI300 is nowhere near Hopper.

A real threat is Cerberas. Their approach avoids the memory bottleneck of loading the whole model DRAM->SRAM for each token batch. I hope their IPO goes well before the AI bubble pops.
HCI Deep Dives: AI-generated podcast using the latest publications in the field
What next, forcing Gary Null to change his name?
Had the same thought. About 2k users connected when I opened it. Impressive if the numbers are believed.
I'm sorry, but that ad placement is really obnoxious. Blocking these cool, new power ups after someone is halfway into a game comes off as a dark pattern, whether it's intentional or not.
we have so much oil and natural gas, we're going to transition off of petroleum before we run out
You can absolutely do global knowledge in proc macros via the filesystem and commit their output to version control: https://github.com/trevyn/turbosql
> PPS: I think the choice of ^ to handle pointers is one of the worst decision in the syntax.

Funny that's my favourite aspect of Odin's syntax.

p: ^int

Easy on the eyes.

I also like the convention of the type on the left and its usage on the right:

p: ^int // ^ on the left
x := p^ // ^ on the right

Very similar to languages of the Pascal family, but less verbose.

And with structs:

p^.x // not necessary
p.x // this will do
I sorta get what you're saying, and tbh I've always found it hard to single out a single muscle from all the other tiny muscles around it. I can already raise one eyebrow alone, and I don't remember when I learned to do it so I don't remember the experience, but I do feel that 'single muscle vs many muscles' when I do that.

With the "muscle" in the mid-back of your brain, I understand that much more. If you respond well to meditation and get a sensation from asmr for instance, if we're speaking on the same area, that area gets sensations if the person is more prone to stress.

When I sort of make myself hotheaded, or have any drug, or even really relax, I feel sensations at that area. I wonder if you're the same.
Catallus 16 as a precursor to gangsta rap? Gaius Suetonius Tranquillus (pace Peri blasphemion) as a precursor to tabloid/meme politics?

Exercise: score Trump against Aristotle's desiderata for the "great-souled man" in the Nichomachean Ethics

[EDIT: I get ~1/25, giving full marks for "He must be open both in love and in hate"]
I think your target user is lost without drag and drop.
I'm hesitant to spoil anything, but Disco Elysium immediately came to mind for me.
The high-end desktop supercomputers for AI and HPC
I’ve never heard this before in my 20+ years of software engineering. Perhaps this is within the context of a conversation.
I’m not sure I understand your comment, wasn’t the point that

int a = 3 ** int_ptr;

Calculates 3 times (*int_ptr)?
I think comments about how Wikipedia is backing down when they have the right to ignore the situation doesn’t do Wikipedia justice.

Getting Wikipedia banned in India, would hurt the people of India, who don’t have a say in the matter.

Sure, _some_ people will still figure out a way to access it. But, they are not even the people who most need Wikipedia.

I think Wikipedia’s trying to toe the line, preventing a country-wide ban, which would affect nearly a billion people, while still drawing attention to the situation is a pretty good strategy.
Get some of those annoying YouTuber “dev influencers” to cover it and that will get all the developer teenagers hyped about it. It almost goes without saying that the YouTuber should also be gurning in the thumbnail.
Federation is a form of decentralization. It has its issues but it doesn't mean it isn't decentralized. Moving towards distributed, peer-to-peer applications is the path forward.
You needed an FPGA to pull your orders on underlying price moves /s
Yes this is in the context of normal human beings talking about their lives on social networks, not engineers.

Like when people get a random post or video served to them they found interesting they'll say "the algo decided I should see this today"

Content creators will discuss what they need to create for "the algo" to like and promote them.
See, it is confusing, because the code doesn't compute a power.

It's a multiplication with the value pointed to by int_ptr, e.g. rewritten to make more sense:

int a = 3 * (*int_ptr);

...or in Odin it would look like this (I think, haven't used Odin all that much yet):

a := 3 * int_ptr^
Show HN: ThinkPad Keyboard Backlight Controller
This repository provides a controller for managing the backlight of ThinkPad keyboards with integrated Systemd support. The controller offers extensive features including event-based backlight control, automatic brightness adjustments, and scheduling. This tool is especially useful for users who want to fine-tune their keyboard backlight settings based on input events, time, or system state.
> space data centers would require the development of a launcher 10 times less emissive over its entire lifecycle to significantly reduce carbon-dioxide emissions

Well. Is that plausible?
Creating a 3D Hand Controller Using a Webcam with MediaPipe and Three.js
Starliner is a reusable spacecraft. Since it lands in the desert, it should be easier to refurbish than Dragon, which lands in the sea.
But all that is mostly theoretical unless Starliner becomes a reliable spacecraft.
A 6mb mp3 downloads automatically when visited, on desktop at least, which seems pretty wasteful.
It's because when he saw the moneylenders in the temple he went all Bruce Banner on them.
The Hunter Biden laptop story is highly improbable and has many typical hallmarks of Russian Disinformation. It also happens to be true. That is all there is to it.
A tweak to that could be along the lines of "if the DNS lookup of the domain responds with NXDOMAIN for more than x days, give it a fresh start".

I'm not up to date with SEO so unsure whether Google would (or is able to) reset the domain's backlink profile, I'd guess it would be possible. A lot of the value of using expired domains is for backlinks (or at least was)
Take Back Control from Product Management
It's pretty good soft serve ice cream, which is a style many people like. It isn't really any worse than other chain soft serve ice cream like Dairy Queen's. It's not the same sort of thing as scooped hard ice cream, and it isn't something you can really make at home, whatever the merits of home made ice cream are.
Consciousness: A guided expedition into the foundations of existence
They seem to spin in different directions because you are observing them from a single point - earth.

Consider the following. You and I are standing on opposite sides of a pane of glass. I spin a wheel parallel to the pane of glass and we both observe it. From my side of the glass the wheel is spinning clockwise. From your point of view (because you are seeing the opposite side of the wheel) it is spinning counterclockwise.

Whether a given rotation is clockwise or counterclockwise depends entirely on your reference frame - they really don't have a robust definition that doesn't depend on the pov of the observer.

There is a really excellent and clear description of the problem and solution to this that is employed in classical mechanics here[1] but if you only care about the solution, by convention we employ the right hand rule. If you and I both agree a common direction in the plane of rotation of the wheel say parallel to the floor off to the side (whichever side doesn't matter but for one of us it will be to the left and the other right), point our right hand index finger in that direction (called r hat or the direction of radial motion) and curl our two smallest fingers in the direction of rotation of the wheel, our thumbs will be pointing parallel with one another. This would be called n hat (normal motion), and is the direction of any vectors which are the cross product of two vectors in the plane of rotation of the wheel. As a bonus if you make your right hand middle finger perpendicular to the index finger you have theta hat (tangential motion). Now even though you and I can't agree whether the wheel is spinning clockwise or counterclockwise we have three identical basis vectors and can use these to form a common polar coordinate system to describe this rotating system.

[1] https://www.youtube.com/watch?v=q785KV5ZIN0&t=45s
https://www.pewresearch.org/social-trends/2021/06/30/behind-...

Pew says 57 to 42.

Evangelicals factor into this I guess.
In fairness, a space data centre could power itself from solar 24/7 without batteries (if you’re ok with downtime over the equinox).

I share your scepticism overall though.
Wikipedia is often wrong once you stray from mainstream topics. Subspecialties often have 1-2 super-contributors, whose blind spots and misunderstandings become part of Wikipedia. Plenty of articles also have no actual citations of their technical content.
Agreed. Last week, I tried hiring a content agency to help us craft quality articles. To my surprise, their question within five minutes was, “Which keywords do you want to optimize for?” I have to admit—it left me stunned! :)

Maybe I’ve been ignorant, and keyword stuffing actually does work, but it got me thinking. It would be great to hear from successful newsletter owners to understand what truly works in building engaging and effective content.
> These are valid artistic choices, just like you know guitarist who run their guitar through amplifiers that distort. On persons "mistake" can be another persons goal.

Sure, if that’s what you want to do, do it and the record it on a better medium.
I think this is actually a deeper issue.

The CEO would trust the personal assistant to do this if they have a deep trust in the assistance competence. They would also need to know the assistant has a deep enough understanding of the their preferences to not do something they don't like. AI can mirror that.

More importantly though there will be consequences if the human assistant makes a big mistake and books the wrong flight. They would have to take responsibility for the mistake.

The LLM is always just going to write in text it is sorry if it makes a mistake. That is never going to be good enough for anything of consequence. The LLM would practically have to be omniscient in a way that is not going to be possible in a world filled with uncertainty.

So much of human activity is built around the network of trust that another human takes the blame if something goes wrong. So much activity involves coin flips and that someone takes the blame when the coin lands on heads but we bet on tails.
I have noticed this as well. There is a huge resistance to learning Git, and I think it's partly warranted. Researchers know what it is, and know that it's valuable, but think it will take too long to learn and they want to move fast. I recently started building a tool called Calkit (https://github.com/calkit/calkit) in an attempt to simply and unify Git and DVC for these types of researchers. Hoping to convince folks that working reproducibly is actually faster in the long run, never mind the fact that it makes their work more directly usable for pushing the field forward more quickly overall.
(Not who you are replying to) Not sure if it’s specifically related to DBSP but checkout incremental DataFun (slide ~55 of https://www.rntz.net/files/stl2017-datafun-slides.pdf) and the paper cited there: A Theory of Changes for Higher Order Languages: Incrementalizing Lambda-calculi by Static Differentiation (Cai et. al, PLDI 2014).
Wouldn’t you say that the WaPo brand owns its prestige much to the journalists, editors and other professionals who build the newspaper on a day by day basis?

These are not random people whose opinion matter as much as those of other random people. At least in theory, people seek the Post for the quality of the work done by the editorial staff. Accordingly, the staff should have more — not less — influence over the content of the paper.

No one buys the Post out of a wish to read Bezos’ personal views or those of random strangers.
We still have the FSF and free software, both predating "open source" and the OSI.
> So no data is really lost except when it is.

The period before inaccessible objects are pruned automatically is quite relaxed by default (between 2 weeks and 90 days, depending on the object), and it is configurable. So the scenario we're discussing here where data is lost by a force-push is just not a practical concern.

> Like I said, there are specific circumstances where you can do it safely. But that's very different from being safe in general.

No, force-push is safe _in general_. It is a bit inconvenient to recover the inaccessible commits if someone makes a mistake, but this doesn't make rebasing or force-pushing unsafe.

> Users can't and won't learn the full details of everything they use, especially "secondary" tools that they use to support their main workflow

Huh? How is Git a "secondary" tool for a programmer? It is an essential part of the programmer's toolkit as much as an editor is, and understanding and being proficient with both is equally important. Users in this case should be expected to learn the tools they will be relying on for a large part of their career. Compared to the complexity of programming environments, stacks and languages we deal with on a daily basis, this tooling is fairly simple to grasp.

I'm not saying that Git doesn't have issues that can't be improved—it certainly does—but in the grand scheme of things it is a simple, reliable and well-engineered piece of software.
The "reproducible" as in the strict definition and reproducible for practical developer are different concepts. While bit-level reproducibility impacts everyone in some small way, normally devs care about whether the same versions are deployed everywhere and work the same for everyone. They ignore issues like function A being before function B in their shared library, but B before A on their coworker's machine. Or the fact that some debug symbol contains a timestamp.

In general it's good for declarative management of systems and projects that can be deployed in a repeatable (even if not 100% reproducible) way.
That’s what I’m going to tell myself when I stand on the bathroom scale in the morning. “I’m not fat, if I just compute my dry mass, I’m in superb condition.”
I am following this case closely to see how will WMF handle the issue when it goes to court, as the issue I am experiencing is similar to this one.

To describe briefly: There is a politician ("S") with articles in various languages of Wikipedia. One day, a group of people claiming to be the daughter of S ("T") tried to insert content that can be described as "trivial" and not relating to the work of S itself. Wikipedia editors, including myself, tried to argue to T that the content T inserted in an article about S isn't something that should be inserted, and despite the article of S including the criticism relating to lawsuit against S and his policy, the content was supported by books written by scholars. T simply argued that the content written in article of S is false, and threatened to bring lawsuit against editors involving in the process of keeping article of S up to standard. So far, T managed to file a police report against some editors, but no lawsuits were filed as far as I know. T also maintained presence in another forum, and I also argue that Wikipedia do not allow T to insert content of S in a manner T intended to. Instead, T decided to quote my reply out of context to defame me, causing me to send cease and desist notice. This prompted T to stalk my lawyer and publish the information, causing the lawyer and myself to discuss further action that should be taken in relation to this issue.

I have reported this incident to WMF 5 years ago, as the issue has been as long as that point. The issue on T and S has become so persistent such that I have proposed that our language of WMF project will ban any content relating to their family, as we do not want our volunteers to expose to legal liability for having to deal with frivolous lawsuit. This threatened lawsuit is one of the reasons I largely retired from writing content in Wikipedia, as I do not want accomplices of T and S to discover that I am active and that they will continue to harass me, though I'll still handle this behind the scenes if needed.
A Peugeot 206? Why do you need such a big car?

Drive a Fiat 500e instead: https://www.carsized.com/en/cars/compare/fiat-500-2020-3-doo...

Or a Citroën Ami: https://www.carsized.com/en/cars/compare/citroen-ami-2020-2-...

Or a Renault Twizy: https://www.carsized.com/en/cars/compare/renault-twizy-2011-...
Advertisers is one thing, but where's the business sense in not reporting on an executive? That sounds like a little fiefdom, not something that makes "business sense."

Whenever people say stuff like this it reminds me why I'm wary whenever people mention things being business friendly or pro-market because it has a lot to do with protecting certain people who already have a good position over merely following market forces.