Better HN
topnewbestaskshowjobs
Log inSign up

rq1

835 karma · joined Nov 12, 2016 (10y ago) · 380 submissions

Submissions

comment 1w ago · link · parent

Every improvement is welcome. Keep up the good work.

A happy atuin user.

comment 1w ago · link · parent

Yes. An index is always useful.

comment 1w ago · link · parent

“long-period transients“

What wait, 8mn is a long period?

I checked the fastest pulsar observed rotates and “emits” at 716Hz! :shock:

That’s ~70.000km/s on the equator given its ~30km diameter :shock: :shock:

https://en.wikipedia.org/wiki/PSR_J1748%E2%88%922446ad

4.

Self-charged toothbrush facilitates tooth healthcare maintenance(science.org ↗)

1 points · by rq1 · 2w ago · discuss

5.

Evidence for the decay B0→μ+μ– and improved measurements of Bs0→μ+μ(lhcb-outreach.web.cern.ch ↗)

3 points · by rq1 · 2w ago · 1 comment

comment 2w ago · link · parent

That’s an interesting project name for whoever lives in the Middle East.

comment 3w ago · link · parent

For anyone still doubting of the contemporary decline, and the looming moroseness.

There comes the undeniable proof that we’re back to the Stone Age!

comment 1mo ago · link · parent

Yes and it needs to be load bearing. It’s not a claim that its seams are.

comment 2mo ago · link · parent

When you see the level of cheating and deception: I think they’re Sam Altman-aligned.

comment 2mo ago · link · parent

Bend the spoon*

* for people who don’t know the ref

comment 3mo ago · link · parent

Exactly.

comment 3mo ago · link · parent

It was indeed an attack.

The trains and other public transports to bring these people there were free that day for that specific destination.

comment 3mo ago · link · parent

Just think of it as a decompression procedure.

That’s all.

comment 4mo ago · link · parent

Hilarious. It is absolutely a logical défense: our societal order and its relative fairness don’t emerge from the void.

Otherwise a victim defending himself is the same as the person assaulting?

Perpetrator: you just stabbed me OMG!

Victim: you were going to rape and kill me

Perpetrator: sorry that’s just whataboutism and definitely not a logical defence. Your actions can be judged on their own merits, regardless of who presents the arguments.

comment 4mo ago · link · parent

I never understood how people referred to or understood “whataboutsim”.

I personally understand it not as a diversion but as a critique of the moral higher ground implied by the first accusation. Said differently: keep your own house in order.

comment 4mo ago · link · parent

I wouldn't disaree on the ergonomics: a powerful but unusable tool is... useless!

Though ignoring all the PL lessons for the sake of "pragmatism" is just plain ignorance.

Rust has a quite solid theory backing. Zig has nothing interesting really: it's "vibe coded" by someone who was doing game dev or something like that.

comment 4mo ago · link · parent

From a PL Theory perspective, Zig is vibe-coded.

Not sure why people use it.

comment 4mo ago · link · parent

I was wondering WTF was happening.

This was past month:

   516 + 518*n
   516  n=0  count=4454
  1034  n=1  count=318
  1552  n=2  count=129
  2070  n=3  count=56
  2588  n=4  count=35
  3106  n=5  count=14
  3624  n=6  count=6
  4142  n=7  count=4
  4660  n=8  count=6

comment 4mo ago · link · parent

Because it’s supposedly open?

comment 4mo ago · link · parent

The main advantage of PeerTube and alike is that they keep the “professional content creators” and their crappy content away.

Because of their unique monetisation feature.

comment 4mo ago · link · parent

The Pi compression algorithm is better.

comment 5mo ago · link · parent

The important properties of the logarithm are structural: we usually do not care about units or bases, except when carrying out an actual numerical computation.

As developed in the article, informally, but somewhat sufficiently, the change of base formula shows that the choice of base is largely irrelevant: different bases give equivalent logarithms up to a constant factor.

The Taylor expansion of exp gives a more intrinsic and general definition of the exponential function. This allows exp to be generalised structurally to many algebraic settings, provided the relevant convergence conditions are met: for example, the complex exponential and its many possible logs, the matrix exponential, and so on…

comment 5mo ago · link · parent

I think sooner rather than later, AI will replace CEOs.

comment 5mo ago · link · parent

You’re absolutely right to push back on this.

Sometimes it’s not just about the Ys but also the Qs.

comment 6mo ago · link · parent

Enterprise programs*

comment 6mo ago · link · parent

Photoshop?! Where we’re going, we don’t need photoshop.

27.

Efficient biosorption of nanoplastics by food-derived lactic acid bacterium(sciencedirect.com ↗)

2 points · by rq1 · 7mo ago · discuss

comment 9mo ago · link · parent

I assumed new projects but I just realised that I didn’t write it.

But still disagree: we have cbindgen.

comment 9mo ago · link · parent

> I would say modern c++ written by someone already familiar with rust will probably be structured in a way that's extremely easy to port because you end up modeling the borrow checker in your brain.

I can't stress out how much important this sentence is. I would even remove the "familiar with rust" part.

Anyone who still thinks it's good to use C/CPP on modern hardware where Rust support is available and good: please print the sentence above and post it all over your place.

comment 9mo ago · link · parent

Imagine you read a value from stdin and parse it as:

Maybe Int

So your program splits into two branches:

1. Nothing branch: you failed to obtain an Int.

There is no integer to use as an index, so you can’t even attempt a safe lookup into something like Vect n a.

2. Just i branch: you do have an Int called i.

But an Int is not automatically a valid index for Vect n a, because vectors are indexed by Fin n (a proof carrying “bounded natural”).

So inside the Just i branch, you refine further:

3. Try to turn the runtime integer i into a value of type Fin n.

There are two typical shapes of this step:

* Checked conversion returning Maybe (Fin n)

If the integer is in range, you get Just (fin : Fin n). Otherwise Nothing.

Checked conversion returning evidence (proof) that it’s in range

For example: produce k : Nat plus a proof like k < n (or LTE (S k) n), and then you can construct Fin n from that evidence.

(But it’s the same basically, you end up with a “Maybe LTE…”

Now if you also have a vector: xs : Vect n a

… the n in Fin n and the n in Vect n a are the same n (that’s what “unifies” means here: the types line up), so you can do: index fin xs : a

And crucially:

there is no branch in which you can call index without having constructed the Fin n first, so out-of-bounds access is unrepresentable (it’s not “checked later”, it’s “cannot be expressed”).

And within _that_ branch of the program, you have a proof of Fin n.

Said differently: you don’t get “compile-time knowledge of i”; you get a compile-time guarantee that whatever value you ended up with satisfies a predicate.

Concretely: you run a runtime check i < n. _ONCE_

If it fails, you’re in a branch where you do not have Fin n.

If it succeeds, you construct fin : Fin n at runtime (it’s a value, you can’t get around that), but its type encodes the invariant “in bounds”/check was done somewhere in this branch.

12345
13