Better HN
topnewbestaskshowjobs
Log inSign up

O3marchnative

259 karma · joined May 2, 2024 (2y ago) · 39 submissions

I love writing fast code.

GitHub: https://github.com/smu160

Submissions

comment 1w ago · link · parent

Or they say it's a gig, but it's actually only 1G download and something significantly less than 1G for upload.

comment 1w ago · link · parent

In general, starting a war without proper equipment, preparation, etc. can and should be viewed as a criticism of the war itself.

If the U.S. didn't have an "all-volunteer" military, the issues in the article would certainly be viewed as criticism of the war.

comment 1w ago · link · parent

I think that in this case it's about the "rules for thee, but not for me" aspect. If the average U.S. citizen attempted to do what Lutnick allegedly did, the consequences would likely be unpleasant, at best.

comment 1w ago · link · parent

One can only hope everything you've laid out comes to fruition.

comment 1w ago · link · parent

Perhaps, but it's highly unlikely it can outperform classical machines. If it actually had that capability, it would be front and center in the announcement.

comment 1w ago · link · parent

Is this new processor capable of achieving reliable and practically useful results beyond the capabilities of classical machines? The answer is almost certainly, no.

comment 1w ago · link · parent

> It didn't even need information on the machine it was running on, it just spent 5-6 seconds during startup trying some 50 different memory access patterns, figuring out the size of the cache from when it slows down, ... and then you had a simple language you could specify operations to execute on large images and it would do them. Fast. Very fast.

This is pretty cool. It sounds very similar to how FFTW works. You create a plan, and you give it as much time as you're willing to spend on planning. It will then use that time to find the fastest set of underlying kernels for your hardware and input size.

comment 2w ago · link · parent

It's not always trivial to saturate available memory bandwidth. You may need to use more than one core, or you need to carefully consider the topology of the chip you're working with (see lstopo). For example, what if the L3 cache is actually split in two [0]? In such cases, adding more bandwidth doesn't do much for you.

[0] https://en.algorithmica.org/hpc/cpu-cache/sharing/#saturatin...

comment 2w ago · link · parent

It's also used to significantly increase the efficiency of nuclear weapons, without the need for developing an outright thermonuclear/hydrogen bomb [0].

[0] https://en.wikipedia.org/wiki/Boosted_fission_weapon

comment 3w ago · link · parent

At least it has never been easier to transition to another tool or to make your own.

comment 3w ago · link · parent

Perhaps they'll let it slide if we turn over all our under utilized RAM sitting in our PCs.

comment 4w ago · link · parent

Wirth's law is certainly alive and well [0].

[0] https://en.wikipedia.org/wiki/Wirth%27s_law

comment 1mo ago · link · parent

> Soldiers move in 2D, missiles in 3D.

Infantry troops still operate in 3D as they can/will direct mortars, air assets, etc.

In general, what you laid out is a bit of an apples and oranges comparison. An infantry platoon applies fire and maneuver using all of its elements to "close with and destroy" a smaller element.

You emplace your weapons squad which has machine guns and other large weapons (e.g., mortars) that will keep your enemy's heads down. This allows your maneuver elements (i.e., assault squads) to maneuver to the enemy force.

In the case of missile defense, you have a limited set of complex and expensive bullets, and your enemy has cheap bullets. If you want to defend yourself, you're attempting to hit your opposition's bullets with your own bullets.

comment 1mo ago · link · parent

> you need to spend more than one defensive missile per attacking missile, because you might miss

It's almost always the case that you'll expend more than one interceptor per incoming missile as interception is probabilistic. In general, you can estimate the number of missiles you'll need to achieve a certain probability of interception with the following formula: 1 - (1.0 - sspk)^n, where sspk is the single shot probability of kill (i.e., successful interception with a single interceptor) and n is the number of interceptors.

Shameless plug here, but I wrote up a post about this problem: https://smu160.github.io/posts/missile-defense-is-np-complet...

comment 1mo ago · link · parent

I tried out quite a few products and brands. I've settled on opnsense running on a spare x86 based machine with an intel x550 T2 NIC that I got off of ebay. My only regret is not making this switch earlier.

comment 1mo ago · link · parent

There are many ways to get rid of bounds checking in Rust. One of those ways is just utilizing iterators. For alternatives, there's a bounds check cookbook you should checkout [0].

Thus far, I've written two libraries that utilize Rust, and they are usually associated with "high performance". I was able to exceed the performance of similar libraries written in C/C++.

To be perfectly clear, this doesn't mean Rust can replace C/C++ in every scenario, but the actual perf gap is narrower than some folks may be willing to admit.

[0] https://shnatsel.medium.com/how-to-avoid-bounds-checks-in-ru...

comment 2mo ago · link · parent

Out of curiosity, did you try out any other portable simd crates before landing on fearless simd?

comment 2mo ago · link · parent

This is quite amazing. Fearless SIMD is what finally allowed my FFT crate, PhastFT, to run on stable Rust [0]. PhastFT previously depended on Rust’s std::simd (as well as multiversion), which still requires nightly [1].

One of the main contributors to v1.0 of fearless_simd started out by helping me evaluate portable SIMD crates for PhastFT. Once we landed on fearless_simd, he ported PhastFT from std::simd to fearless_simd. We did find that more functionality was needed than fearless_simd offered at the time. So, he started contributing significantly to fearless_simd. It’s really rewarding to see how working on a hobby open source project can help improve the Rust ecosystem.

[0] https://github.com/smu160/PhastFT

[1] https://doc.rust-lang.org/std/simd/index.html

comment 2mo ago · link · parent

That makes the issue worse as the actual app/device likely just relies on querying some NTP pool for accurate time. Then that would mean the actual stratum 1 servers are not working right.

comment 2mo ago · link · parent

I was thinking of this in terms of aerial refueling.

It's always better to take off with less than a full tank of fuel. Once you're airborne, the aircraft can top off its tank to complete its journey. Of course, it may even be more economical to top off at multiple legs as the journey proceeds. To your point, a "reverse" refueling would also be ideal in order to lower the weight of the aircraft.

In certain contexts, it's already being done. It'd likely need to be much safer in order for civilian aircraft to carry out aerial refueling though.

comment 2mo ago · link · parent

I'm reminded of the OPM breach back in 2015 [0]. Practically everyone that even applied for a security clearance was compromised. In addition, millions of sets of fingerprints were recovered by the entity that carried out the hack.

[0] https://en.wikipedia.org/wiki/2015_Office_of_Personnel_Manag...

comment 3mo ago · link · parent

I've been considering upgrading from 1 Gbps to 5 Gbps. Have you noticed any significant benefits for any particular use cases?

comment 3mo ago · link · parent

The author mentions Rust's portable SIMD library [0]. The only issue with portable SIMD is it's only available on nightly. I used it in my FFT crate, but we had to switch to the fearless_simd crate in order to get a portable SIMD solution that works on stable [1].

[0] https://doc.rust-lang.org/std/simd/index.html

[1] https://github.com/linebender/fearless_simd

comment 3mo ago · link · parent

This argument usually depends on how you quantify defense spending, no? [0] In terms of PPP, the U.S. is falling behind. To be perfectly clear, that doesn't somehow absolve the size of U.S. defense spending. If anything, it's damning of all these wunderwaffe projects defense contractors take on and the taxpayer funds.

[0] https://www.economist.com/graphic-detail/2026/05/11/by-one-m... (no paywall: https://archive.ph/X9zzc)

comment 3mo ago · link · parent

Going back to Clausewitz, war is a continuation of politics through other means. Moreover, victory is achieved by using force to compel one's opponent to carry out one's will.

> intact and combat capable

On its own, this claim is likely true. Nevertheless, this does not mean one's opponent is going to carry out one's will. Hence, one cannot declare victory. It follows that anything short of achieving one's goal is a loss. A loss doesn't have to be complete and utter destruction. It's fair to say that Argentina did not achieve its strategic objectives during the Falklands War, no?

> Losing is what happened to Germany after both World Wars.

Yes, but Germany is not as good of an example in this case as Japan during WWII. Japan would have likely accepted something short of unconditional surrender much sooner than August 1945, but the U.S. insisted on unconditional surrender. As such, the U.S. did not win until Japan agreed to unconditional surrender.

comment 4mo ago · link · parent

I always remember it as the opposite of what I think is typically called the granny knot. In the case of the square knot, it's just right over left, then left over right.

comment 4mo ago · link · parent

Have you taken a look at Iran's targeting capabilities and the assets they were able to destroy? More importantly, have you considered who facilitated those targeting capabilities?

https://www.hudson.org/national-security-defense/war-above-w...

comment 4mo ago · link · parent

This one and the square knot are indispensable

comment 5mo ago · link · parent

> This is a foundational principle of computer science

How exactly is this a foundational principle of computer science?

comment 6mo ago · link · parent

Wow. I was not expecting that topic when I clicked on the link you provided.

When I went through such a selection process years ago, we took all sorts of tests before and even after the selection process. Towards the end, the head instructor told us they don't really have a good way to measure who will make it through. What he did tell us though is that top physical fitness test scores were not indicative that a candidate will make it to the end.

Is there a PDF version or instructions for building your thesis? I'd like to read it.

12