frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

GenAI-Assisted Fantasies – Communications of the ACM

https://cacm.acm.org/blogcacm/genai-assisted-fantasies/
1•rbanffy•8m ago•0 comments

CXL AI and Liquid Cooled Gigabyte Servers at Computex 2025 – ServeTheHome

https://www.servethehome.com/cxl-ai-and-liquid-cooled-gigabyte-servers-at-computex-2025/
1•rbanffy•10m ago•0 comments

Anthropic releases custom AI chatbot for classified spy work

https://arstechnica.com/ai/2025/06/anthropic-releases-custom-ai-chatbot-for-classified-spy-work/
1•pseudolus•12m ago•0 comments

Colors the Peasantry Wore in the Middle Ages and Renaissance Part One

http://isabelladangelo.blogspot.com/2019/01/colors-peasantry-wore-in-middle-ages.html
1•Bluestein•13m ago•0 comments

Rubenerd: Australian Navy ship blocks Kiwi Internet

https://rubenerd.com/australian-navy-ship-blocks-kiwi-internet/
2•rbanffy•15m ago•0 comments

Ferry Operators Bill

1•luhenba•15m ago•0 comments

How NASA Plans to Deal with Death in Space

https://www.jalopnik.com/1879088/how-nasa-plans-to-deal-with-death-in-space/
1•rntn•16m ago•0 comments

MapLibre Newsletter May 2025

https://maplibre.org/news/2025-06-02-maplibre-newsletter-may-2025/
1•todsacerdoti•17m ago•0 comments

30 years ago, Apple fans met the Mac clone. This is the weird, wild story

https://www.macworld.com/article/2796769/the-weird-wild-story-of-the-mac-clone-era.html
1•mafro•17m ago•0 comments

Digipin: A Geospatial Addressing Solution by India Post

https://github.com/CEPT-VZG/digipin
1•47thpresident•20m ago•0 comments

Unveiling the EndBOX

https://www.endbasic.dev/2025/06/unveiling-the-endbox.html
1•jaypatelani•25m ago•0 comments

Rendering Assassins Creed: Shadows

https://www.youtube.com/watch?v=yj5pYktC3X8
2•anotherhue•36m ago•0 comments

DTS: X is losing to Dolby Atmos

https://www.flatpanelshd.com/news.php?subaction=showfull&id=1749195083
1•woldemariam•38m ago•0 comments

LeCabot, a $135 open-source alternative to Spot by BostonDynamics

https://github.com/phospho-app/lecabot
2•bottomotto•40m ago•0 comments

The Hidden Diary of Samuel Pepys

https://www.historytoday.com/archive/feature/hidden-diary-samuel-pepys
1•pseudolus•46m ago•0 comments

Fast limited-range conversion between ints and floats

https://purplesyringa.moe/blog/./fast-limited-range-conversion-between-ints-and-floats/
1•usdogu•46m ago•0 comments

First Map Made of a Solid's Quantum Geometry

https://www.quantamagazine.org/first-map-made-of-a-solids-secret-quantum-geometry-20250606/
2•pseudolus•49m ago•0 comments

Trump lifts US supersonic flight ban, says he's 'Making Aviation Great Again'

https://www.theregister.com/2025/06/07/trump_supersonic_flight/
5•beardyw•54m ago•1 comments

Show HN: TapNfix – Instant help, anytime, anywhere

1•TapNfix•58m ago•0 comments

Cut Across, Hare

https://medium.com/luminasticity/cut-across-hare-0c5a791e0c06
1•bryanrasmussen•59m ago•0 comments

Buyer with Ties to Chinese Communist Party Got VIP Treatment at Crypto Dinner

https://www.nytimes.com/2025/06/06/us/politics/trump-crypto-dinner-china-he-tianying.html
4•perihelions•59m ago•0 comments

HMAS Canberra accidentally blocks wireless internet in New Zealand

https://www.abc.net.au/news/2025-06-07/australian-ship-navigation-radar-new-zealand-internet/105388702
3•kepair•1h ago•0 comments

Apple WWDC 2025 Preview: iOS 26, macOS 26, New AI Features, iPadOS 26

https://www.bloomberg.com/news/articles/2025-06-06/apple-wwdc-2025-preview-ios-26-macos-26-new-ai-features-ipados-26-redesigns
1•rcarmo•1h ago•0 comments

£127M wasted on failed UK nuclear cleanup plan

https://www.theregister.com/2025/06/07/mps_find_127_million_wasted_sellafield/
5•penda•1h ago•0 comments

Web Proxy Sites 2025

https://github.com/proxyorb/awesome-web-proxy-sites
2•proxy2047•1h ago•0 comments

How AI is impacting jobs

1•dnsharma•1h ago•0 comments

Show HN: Coredns-gslb – A GSLB plugin for CoreDNS (non-Kubernetes, self-hosted)

https://github.com/dmachard/coredns-gslb
1•dmachard•1h ago•0 comments

Arguing point-by-point considered harmful

https://www.seangoedecke.com/point-by-point-considered-harmful/
1•alexharri•1h ago•0 comments

Why Nvidia Can't Just Quit China

https://www.wsj.com/tech/ai/why-nvidia-cant-just-quit-china-18e494f0
4•bookofjoe•1h ago•1 comments

2025 is a great time to be a pen tester

https://www.jimgumbley.com/blog/great-time-pen-tester.html
2•LeonigMig•1h ago•0 comments
Open in hackernews

Highly efficient matrix transpose in Mojo

https://veitner.bearblog.dev/highly-efficient-matrix-transpose-in-mojo/
106•timmyd•15h ago

Comments

sestep•15h ago
I'm not an expert in this space, but is this meaningful? I'd assume that it's more common to fuse together transposition with an operation that precedes or follows it (e.g. matmul), which should be far more efficient than materializing the entire transposition in memory if it's just an intermediate value.
musebox35•4h ago
Matrix transpose is a canonical example of a memory bound operation and often used to showcase optimization in a particular programming language or library. See for example the cutlass matrix transpose tutorial from Jay Shah of flash attention 3 paper: https://research.colfax-intl.com/tutorial-matrix-transpose-i...
saagarjha•55m ago
Unfortunately the issue (alluded to in the blog post you linked) is that transposes do absolutely no work but memory loads. Sure, they test that you can swizzle your accesses, but modern accelerators are all about pipelining and feeding matrix multiply units, which is considerably harder than loading from memory as fast as possible. Actually, even the Mojo post barely beats CUDA for most of its kernels, because you can hit memory bandwidth for transpose on the latest hardware using techniques from 5-10 years ago. This is definitely not true for more interesting operations.
colesantiago•14h ago
Does anyone use Mojo in production at all or are even hiring for Mojo?
melodyogonna•1h ago
Modular (the company behind Mojo) uses it in production. I imagine that if they have any clients then those also use Mojo in production - albeit indirectly - since all the GPU kernels used by Modular are written in Mojo.
htrp•14h ago
Left unsaid, the 14% improvement in performance came at the cost of increasing dev time by 35%
bravetraveler•14h ago
Reminds me of this, lol:

> "From the moment I understood the weakness of my flesh, it disgusted me. I craved the strength and certainty of steel."

14% all the time vs 35% some of the time

edit: Closing numbers are far less impressive than those buried in the middle of the post. Confusing; bye everyone

vlan121•14h ago
Mojos compiler is closed source. Thats a big no-no
dgurchenkov•11h ago
I work on Mojo. The whole compiler, runtime etc. will get open sourced, most likely within a year. It is just a matter of time and us getting all the required work done.

https://docs.modular.com/mojo/faq/#open-source

almostgotcaught•10h ago
> runtime

Are you talking about your libc equivalent or MAX?

voronar•14h ago
Mr. Mojo Risin'
arjvik•14h ago
Where's the 14%? Looks like their final kernels show a 0.14% improvement of Mojo over the equivalent CUDA kernel?
77pt77•14h ago
It looks because it does.

>(2771.35/2775.49 - 1) * 100 = -.14916285052369131300

Flagged.

timmyd•14h ago
Updated the title to the original. I did base the numbers on

"This kernel archives 1437.55 GB/s compared to the 1251.76 GB/s we get in CUDA" (14.8%) which is still impressive

jsnell•14h ago
The "Switching to Mojo gave a 14% improvement over CUDA" title is editorialized, the original is "Highly efficient matrix transpose in Mojo".

Also, the improvement is 0.14%, not 14% making the editorialized linkbait particularly egregious.

baal80spam•14h ago
0.14% is within the limits of statistical error. So this is a nothing-"article".
jsnell•14h ago
I don't think that's fair. The article promised a highly efficient kernel and seems to have delivered exactly that, which isn't "nothing". My beef is entirely with the submitted title.
jebarker•14h ago
Yeah, it seems like the blog post is just meant to be an example of how to do something in Mojo and not a dunk on CUDA.
timmyd•11h ago
FWIW I didnt take the blog as a dunk on CUDA, just as an impressive outcome from the blog writer in Mojo. It's awesome to see this on Hopper - if it makes it go faster thats awesome.
atomicapple•14h ago
I think the OP based the title off of "This kernel archives 1437.55 GB/s compared to the 1251.76 GB/s we get in CUDA" (14.8%) and not the final kernels for whatever reason
timmyd•11h ago
[op here] To be clear: Yes, there are 3 kernels - you can see those in the linked github at the end of the article if you clicked that. These are:

transpose_naive - Basic implementation with TMA transfers

transpose_swizzle - Adds swizzling optimization for better memory access patterns

transpose_swizzle_batched - Adds thread coarsening (batch processing) on top of swizzling

Performance comparison with CUDA: The Mojo implementations achieve bandwidths of:

transpose_naive: 1056.08 GB/s (32.0025% of max)

transpose_swizzle: 1437.55 GB/s (43.5622% of max)

transpose_swizzle_batched: 2775.49 GB/s (84.1056% of max)

via the GitHub - simveit/efficient_transpose_mojo

Comparing to the CUDA implementations mentioned in the article:

Naive kernel: Mojo achieves 1056.08 GB/s vs CUDA's 875.46 GB/s

Swizzle kernel: Mojo achieves 1437.55 GB/s vs CUDA's 1251.76 GB/s

Batched swizzle kernel: Mojo achieves 2775.49 GB/s vs CUDA's 2771.35 GB/s

So there is highly efficient matrix transpose in Mojo

All three Mojo kernels outperform their CUDA counterparts, with the naive and swizzle kernels showing significant improvements (20.6% and 14.8% faster respectively), while the final optimized kernel achieves essentially identical performance (slightly better by 4.14 GB/s).

The "flag" here seemed innapropriate given that its true this implementation is indeed faster, and certainly the final iteration could be improved on further. It wasn't wrong to say 14% or even 20%.

jsnell•10h ago
Users of the site only have one control available: the flag. There's no way to object only to the title but not to the post, and despite what you say that title hit the trifecta: not the original title, factually incorrect, and clickbait. So I'm not that surprised it got flagged (even if I did not flag it myself).

Email the mods at hn@ycombinator.com. There's a chance they'll remove the flag and re-up the post.

timmyd•10h ago
thanks jsnell - i did they and they appreciated the comment above, and unflagged it. i appreciate it!
noracists•14h ago
slop
londons_explore•11h ago
Why do we ever need to transpose a matrix?

Isn't it better to simply combine the transposition with whatever next operation one wishes to do with the matrix?

throwawayabcdef•10h ago
The next operation might need the data in column major order to read it fast. So you might have to transpose first. And these maybe be concurrent stages of a processing pipeline.
viraptor•9h ago
Now I'm curious, how many times do you have to fully read the matrix in GPU for the total impact of reading columns to be higher than one-off actual transpose and then sequential row reads? I know it depends on lots of things, I'm after a rough estimate.
saagarjha•53m ago
It's quite rare. Usually problems are tiled anyway and you can amortize the cost of having data in the "wrong" layout by loading coalesced in whatever is the best layout for your data and then transposing inside your tile, which gives you access to much faster memory.
hogepodge•10h ago
You're right that a good graph compiler will do this for you. There still may be times, like if you're interfacing with another library, where you'll need to switch a matrix between row major or column major layouts.
fulafel•4h ago
This could make Mojo look even better as it would ld be more compute heavy and the last step thread reduction would be less relevant.
almostgotcaught•10h ago
As someone said below - you'd never write just a transpose kernel - it'll be fused into something else.
saagarjha•1h ago
Look the frontier AI companies need something other than reversing binary trees to give interview candidates
melodyogonna•3h ago
I wonder if there is a reason for not using the high level abstractions provided by Modular
saagarjha•52m ago
Most interesting algorithms (e.g. with dynamic shapes, mixed computation) are typically better scheduled by hand.
saagarjha•45m ago
> This kernel archives a bandwidth of 1056.08 GB/s which is faster than the 875.46 GB/s we archived using CUDA. I believe that to be the reason because we use the PTX api for TMA transfers in Mojo.

I can't say for sure because I couldn't find the CUDA kernel but I kind of doubt this is true. You can hit memory bandwidth on Hopper without using TMA at all, which is mostly designed for accelerating asynchronous copies and reducing memory pressure. If all you are doing is a transpose you don't need any of this to go fast (though it might simplify your indexing code…?)