Email or username:

Password:

Forgot your password?
Dan Ports

This is your periodic reminder that 10 years ago an audiophile forum started debating which versions of memcpy had the highest sound quality.

And that C++ new sounds better than malloc.

audioasylum.com/messages/pcaud

223 comments
Brendan Cully

@dan this is breaking my brain worse than when I tried to parse HTML with regular expressions.

John Regehr

@dan this is truly one of the most perfect exhibitions of human nature that ever happened

past oral no mad

@dan oh god, lol, lmao

Did you see the audiophile SSD that made the rounds a couple years ago? They said it sounded best with the OS loaded onto it and music on a different drive entirely.

The Doctor

@dan @ieure This kind of thing makes me wish I didn't have a conscience.

past oral no mad

@drwho @dan Think of it as a guerrilla progressive tax system.

past oral no mad

@drwho @dan You'd be using rich dipshits' money to create blue-collar manufacturing jobs. Seems like a win/win to me.

Steve Canon

@ieure @drwho @dan everyone knows that memmove has a warmer vintage sound, though.

The Doctor

@steve @ieure @dan If you can't hear it by disconnecting your speakers and tuning an AM radio across the room, it's crap.

dr 🛠️🛰️📡🎧:blobfoxcomputer:

@steve @ieure @drwho @dan memcpy is already implemented. blue collar jobs copying it to vinyl install disks.

Christiano Haesbaert

@dan @ieure Lol this manages to be worse than the gaming community

ArtyIF

@syklemil @dan @ieure gold-plated jacks are also pretty useless

esa

@artyif

Oh yeah, but it's at least possible to mumble something about conductivity for those. With these it becomes even more obvious that it's just a moron tax.

David Andersen

@f4grx @syklemil @dan @ieure wait, putting everything in this thread together, let's shed our consciences and manufacture TOSLINK cables with gold plated connectors _and_ ferrites. It, um, "conditions the optical flow for reduced decoherence"! Only $299 for a 1m cable with free prime shipping!

Charlton Trezevant

@dan switched from std::memcpy to Monster’s $60 gold-plated one and I can definitely hear a difference

ed(1) conference

@chtzvt @dan Just wait until you switch from a modern "transistor" CPU to a real computer that uses tubes for processing. Much warmer sound.

Dennis "D.C." Dietrich

@chtzvt @dan You need to combine that with a pure gold optical cable to connect to your DAC for maximum digital edge purity and lag-jitter-minimization.

Orion Edwards

@dan from a reply later in that thread:

“I have found the best sound is an infinite goto loop with it throwing an exception after it reads beyond the end of the buffer, I set exceptions off so it doesn't crash the program. “

I can’t stop laughing 😀😀😀

Petah Kahn🏳️‍⚧️

@dan @hazel that makes monster cable seem less stupid. Still stupid though.

Eric Dannewitz

@dan @donmelton
Almost as good as the mental gymnastics when someone needs a Yamaha CL5 mixing console cause of the pre-amps but they are using wireless microphones…….

Bryan Beauseigneur ⎇🦀⎇

@dan TIL audiophilia = mysticism.
It’s reminiscent of homeopathic infinite dilution of some substance or another. But it’s even more baseless.

calcifer :nes_fire:

@RustedComputing @dan every hobby with a technical aspect has a "woo-woo" subgroup like this. Audiophiles mostly aren't like that, but boy are their woo subgroups noisy in comparison to a lot of other hobbies.

The Doctor

@dan More and more, I'm thinking the whole audiophile community is a trolling competition that got way out of hand.

Fritz Adalis

@dan
This site is addictive, it led me to 6moons.com/audioreviews/furute

It's a CD demagnatizer. It removes magnetism from aluminum CDs.

G. Wozniak

@ricci @FritzAdalis @dan This reminds me of when I was taking music production in the early 90s and people claimed that vinyl was better than CDs because vinyl captured the frequencies over 100kHz which gives music its flavour and colour.

Rob Ricci

@gwozniak @FritzAdalis @dan The 'SSD for music' linked elsewhere in this thread actually claims that it makes your bits sound more like vinyl 🤦‍♂️

John Regehr

@dan it's the undefined behavior that provides a subtle frisson. audio code in Rust just sounds more boring, this is all provable

Quinn Wilton

@regehr @dan and people say Rust doesn't have soundness bugs

Dev (deprecated)

@regehr @dan keep talking shit about rust and I'll provide some unsubtle frisson 😡

The Uberduck

@regehr @dan I like my memcpy like I like my speaker cables: hand-assembled.

No two binaries alike; order your artisanal glibc packages today!

Adam Thompson

@uberduck @regehr @dan Hmm, did you work for my company under a different name? 'Cuz that sounds totally on brand for someone I knew.

Sophie Schmieg

@regehr @dan to be fair, UB can, in theory, make your music sound better. It won't, but it can.

0xC0DEC0DE07E8

@sophieschmieg @regehr @dan Anything* can happen.

*It’s not all equally likely, and you probably won’t like it, but it could happen.

raphlinus.github.io/programmin

0xC0DEC0DE07E8

@sophieschmieg @regehr @dan Apologies for the lack of alt text, I don’t seem to have the option to edit it in (maybe because I used the edit function to add the picture?)

The picture depicts a bugfuck-bonkers scene with orange sky, flying unicorn and disembodied mouths and eyes. It’s meant to convey the kinds of things that could happen if you allow UB.

Peter Barnes

@dan Oh, there’s no end to them. Oxygen-free copper *USB* cables… Noughtier noughts, oneier ones! Analog numbers! I guess we should be glad their gullibiity doesn’t translate into anything more dangerous than listening to the sound of empty wallets.
the-ear-net.blogspot.com/2012/

Florian Haas

@dan Yet another example of how extremism is indistinguishable from its parody.

Thanks to @jcfischer for the pointer; this gave me a good chuckle to start my Sunday morning. 🙂

Jens-Christian Fischer

@xahteiwi @dan I had these kinds of discussions around 25 years ago when I worked in an IT company, where the boss also was into HiEnd and helped design and produce speakers. The gear he had in his office was astounding.
But I also learnt to appreciate just how good good sounding gear sounds. Forever changed the price tag of Audio equipment I bought. (Around 2k is the sweet spot to get great audio). Luckily he wasn’t in that camp, but some of employees and colleagues…

Jens-Christian Fischer

@xahteiwi @dan also at that time the best sounding CD players were cheap CD-ROMs from PCs. Simple reason: They transferred data in 8bits, and fed them to a DAC with an external clock, while audio CDs fed data serial to DAC and clock was derived from bit stream. That led to jitter, while the el-cheapo CD-ROMs had stable clock :)

Ramin Honary

@xahteiwi @dan @jcfischer
> Yet another example of how extremism is indistinguishable from its parody.
Yeah, seriously, I thought this was satire at first.

I used to joke that your CD player had to be designed such that the laser that read the disk was perfectly in-phase with the laser that wrote the disk or it could negatively impact sound quality. Or that the low-pass filter of your DAC had to be impedance-matched with the ADC circuit that recorded the digital signal.

But apparently there are people who would actually believe this.

@xahteiwi @dan @jcfischer
> Yet another example of how extremism is indistinguishable from its parody.
Yeah, seriously, I thought this was satire at first.

I used to joke that your CD player had to be designed such that the laser that read the disk was perfectly in-phase with the laser that wrote the disk or it could negatively impact sound quality. Or that the low-pass filter of your DAC had to be impedance-matched with the ADC circuit that recorded the digital signal.

Ramin Honary

@jens @xahteiwi @dan @jcfischer
> "Ah, but laser vinyl players."

Witchcraft! Heresy!

Jens Finkhäuser

@ramin_hal9001 @xahteiwi @dan @jcfischer Well... there's no needle to scratch and degrade the precious record. Can that offset the digitization? Can we have analog laser-based readers?

So many important questions for audiophiles.

Toby

@dan You'd be amazed what compiler optimizations will do to the developer's original intent!

Gerd Flaig
@dan please tell me that the whole thread is just an elaborate joke.
Dan Hedley

@dan In the scale of stultifyingly pretentious bullshittery, audiophiles are just above cryptobros and just below wine bores.

corycarson

@dan what a fascinating thread. Thank you for sharing.

I am still trying to grasp the confusion of concepts where one build was too “bass heavy”.

Dave

@dan LOL. Found out yesterday that you can buy audiofile network switches 😳 - so much snake oil…

Central Illumination Agency

@dan This is just the high-budget version of that classic thread with the bodybuilders arguing about the number of days in a week.

Brian Stafford

@dan I honestly can't work out whether this was an elaborate troll.
It reminds me of debate about jitter on cd drives affecting sound quality (ignoring that resynchronising to an accurate clock is easy to do in hardware). Or eliminating negative feedback from audio amplifiers. Oh, and shaving the sides of cds. And many many more...

Mika

@briancs @dan myself I recall that this turned out to be a bug in Linux where the memory was getting corrupted by these calls

Brian Stafford

@mkf @dan bug or misuse. Memcpy() is explicitly documented to have undefined behaviour if copied regions overlap. You need memmove() if that is the case. I'd be truly astonished if a bug in memcpy() laid undiscovered for any length of time. Literally everything would be broken.

Mika

@briancs @dan that is a good basis for presuming my memory may wrong me, wouldn't be a rare occurence. i will sometime see back in my fedi boosts to find the thing i may have had misread and come back with it

remote procedure chris

@dan real audiophiles only listen to music decoded on vacuum tube computers

author_is_stribika

@dan Should we tell them about acoustic cryptanalysis? At least they could come up with more plausible nonsense.

Arsen :gentoo:

@dan i.. what?

EDIT: why are there no voices of reason

Matthew Booth

@dan Poe's Law means I have no idea if the original post is serious or not. I'm fairly sure that at least some of the replies were taking the piss, though.

Gil Hova

@dan I worked in film sound (post-production) in the late 90s, just as everyone had switched to computers. I had two sound editors tell me to never put a WAV file in a zip, because it would ruin the audio quality.

ed(1) conference

@gilhova @dan I'll see your zip-file argument (which I've also had re. audio & graphics) and raise you the professor that didn't want students storing files on Iomega Zip drives for the "same" (i.e. name-collision with "zip" and zip is bad) reason. :flan_facepalm:

talk of lossy-vs-non-lossy never sank in.

Gil Hova

@ed1conf That's a good one!

I had a computer repair instructor who insisted that you shouldn't put a magnet too close to a CD-ROM, or you'd erase it. Like, mind, this person *taught computer repair.*

Rev. Johnny Healey

@gilhova @ed1conf I worked in a library that used Tattle-Tape (magnetic strips) for security. Books with CD-ROMs had a big warning sticker flagging them for exemption from the security system.

Gil Hova

@rev_null @ed1conf It’s amazing how common that misconception is!

Paul Barker

@dan This reminds me of Wat HiFi? which sadly hasn't posted in years.

wathifi.com/

Tristan Colgate-McFarlane

@dan hilarious, but it also reminded me of a glibc memcpy (I think) bug that broke Linux audio for ages (iirc, it had something to do with the direction of copying)
lwn.net/Articles/414467/

Robin Syl 🌸:blobcatreach:​

@dan that's it, I'm burning my headphone stash, the world does not deserve audio gear

Marcus Barczak

@dan and in 2023 you can part with $1200 EU for the "best sounding" ethernet cable 🤣 jcat.eu/product/signature-lan-

Dick Telder

@dan
Do not forget to add a 'ground box' to your hifi system.
(most expensive soil a man can buy)
entreq.com/products/ground-box

Pixdigit

@dan my favourite sentence from that thread: "I guess they think bits are bits. ".

𝓢𝓸𝓯𝓽𝓷𝓮𝓼𝓼 Guaranteed 🦝

@dan the ONLY way I could see this making any difference is if your use of memcpy were on a device with just marginal ability to play audio in the first place, producing jitter.

Even in that extreme edge case IDK if it would matter 😂

0xC01DC0FFEE

@dan audiophiles will believe anything if you sell it to them at a high enough price

0xC0DEC0DE07E8

@dan 😭 I miss when the worst thing I knew audiophiles believed was vinyl >> PCM 44kHz > mp3 because there was at least some sort of theoretical argument for loss of precision that some small subset of super-heaters (à la super-tasters of broccoli) that could hear the difference.

Soy

@dan that list of 'RE's' in reaction

Todd Vierling :verifiedenby:

@dan
I would be surprised that the thread wasn't on the first of April, but then I remind myself that it came from an audiophile forum

Dan Wallach

@dan In grad school (late 90s) my desktop machine was a Dell PC with some sort of Soundblaster card and a CD burner. If I played music through the sound card, it was picking up all the internal electrical noise of the machine. Scroll your web browser and get a ton of high frequency noise.

Luckily, the CD burner had its own headphone jack, and that sound output was clean.

Rob Ricci

@dan Honestly, while reading about ridiculous audiophile junk is endlessly entertaining, there is a little part at the back of my mind that knows, for sure, that there is some area of my life where I don't know nearly as much as i think I do, and am completely susceptible to this kind of stuff. And of course I don't know what area(s) they are.

DeManiak 🇿🇦 🐧

@dan are they..were they.. serious?
Like..for real??

numbakrunch

@dan #LittleKnownFact Be sure to keep your digital cables straight. The 0s can get around the corners more smoothly because they're round but the 1s can sometimes get stuck.

🇺🇦 haxadecimal

@dan I think you may have misspelled "audiophool".

リーハイ

@dan Audiophiles can't be reasoned with, it is known.

billy joe bowers - Harris2024

@dan

Audiophiles are funny, but this music fan conspiracy stuff filters down into a lot of regular people's lives, they're just the extreme version.

So many clueless people talking about how record labels and producers work, how you can't hear music the way it was intended because manufacturers don't think you can handle the truth...

It's pretty much the equivalent of your relatives who don't believe Qanon entirely or that lizard people from space rule the Earth, but do believe Fox News.

billy joe bowers - Harris2024

@dan

Audiophile/music fan conspiracies are just like any other conspiracies; there's a hidden truth that dark forces are trying to keep from you. Once you are exposed to that truth you will be enlightened and better than.

Ivan Moscoso

“playing wav files from a ramdisk gave best sound” 😃

Bruno Nicoletti

@dan WTF? How were they ever let anywhere near a compiler.

Gags

@dan

Lots of snake oil and golden ears in the audiophile scene ..

There are some reasonable folk out there also, many of them hanging out at places like audiosciencereview.com

Wil Shipley

@dan That’s just basic science! Also it’s why I only use one-way audio cables, so the ions can flow more freely! 🙄

CarlRJ

@dan decades before that, I recall watching a Usenet audiophile group get into a days-long debate over whether CDs read from the center to the outer edge, or from the outer edge to the center, complete with lots of theories and suggestions for scientific experiments to prove one hypothesis or the other.

Instead of just looking the answer up in the technical documentation for the CD format.

Adrian Cochrane

@dan That's quite an argument to dig through... Though there is some theory suggesting that audio has special performance considerations, which *might* give this argument some credence.

On the otherhand I don't trust internet arguments!

Ian Douglas Scott

@dan Modern C++ and Rust are noisy and bad.

RAII = resource allocation is interference

Of course m68k assembly has the sound that's the most uh... bright? Warm? Smooth? Iridescent? Homeopathic? Tanniny?

グレェ「grey」

@dan "playing wav files from a ramdisk gave best sound" something similar to this (e.g. playing AIFFs from RAM Disk) may have been true on Commodore Amigas, in the 1980s, back when the CPU was 7MHz and disk i/o could theoretically cause an audio drop out.

Given that, IMHO Windows has always been a downgrade from Amiga Workbench, it wouldn't surprise me if maybe some system set ups are less optimal, but if that alternative memcpy exists, it can be tested, empirically, not just subjectively.

Nire Bryce

@dan I have never before seen a mailing list where the reply list itself is a message from god

██████████████████████████████

@dan reminds me of that mp3 player that has different implementation with bias to use eax instead of ebx and vice-versa, because person argues the cpu registers have a different feel/quality :D

Icecream95

@dan Different instruction mixes can cause the CPU to use different amounts of power and so make the coil whine sound different.

But I don't think that just a different memcpy would be enough to cause an audible difference. Java vs C for an application using a lot of CPU (and generating a ton of garbage) *might* be audible, especially if garbage collection causes frequencies to ramp up on other CPU cores.

Rich 🥷🍁

@dan reminds me of the Monster Cable ads - for digital audio.

ttk✔️ (DO1TTK)

@dan @mischmus yeah, so when you remove the thread ID from the URL to get other funny posts to other funny topics, you'll get indead other funny full stacktraces. Quite some fun. :D

Space Hobo Actual

@dan Did they work out whether or not Wario was a libertarian?

DELETED

@dan Whenever my mouse moves I hear noises out of my speakers. Do I need a gold plated mouse mat?

rheinneckar.social/@walsonde/1

Miah Johnson

@dan seems like they did a solid job choosing the right domain name for their site.

床井 一郎

@dan In Chinese-language audiophile pop culture, it jokingly matters which kind of power plant generated the electricity, be it hydroelectric, wind turbine, coal, solar, nuclear, or whatever.

John Baker (he/him)

@dan Neither comes close to analog memcpy. 😉

Robert

@dan I kinda don’t understand, is it speed that makes it sound better? I fail to see how either one would sound different lol


@dan why is there no programming language called Vinyl? Surely that would provide the ideal development environment. It would run in QEMU-Needle to provide richer sound.

Peter Mulholland

@dan This does not surprise me in the slightest!

GNU/overflo

@dan
Remember the premium sound sd cards?

FSMaxB

@dan if you're broadcasting you're music via radiowaves with your PDP8 circuitry, debating the sound quality of memcopy implementations might actually make sense.

Kazinator

@dan

The exact claim is that replacing memcpy in a playback loop with an optimized version removes some audiblea artifact ("edge").

This is within the realm of the plausible.

The code shown contains not only a memcpy, but several Win32 event waits in the middle of the loop, which are suspicious. As a general remark, if you want to be streaming samples without any skips, you have to just shove bits into some pipe/device, without synchronizing with other threads.

Ħannes Ħauswedell 🕊

@dan And then people run around lumping C/C++ together like one language when C++ CLEARLY SOUNDS BETTER!

Lunar Exploration Module 🤖🏳️‍⚧️

@dan@discuss.systems Now I'm wondering if anyone debated Linux vs. BSD, or CISC vs. RISC, or x86 vs. aarch64, or STP vs. USTP, or ext4 vs. btrfs...

Yet Another Mowgli

@dan to be fair, a decade ago we weren't neccesarily oozing clock cycles with Audio, and some of us were getting pretty bad latency/clicks and pops. It did actually matter how things were allicated and used, and Malloc actually had several successors that did a better job by default. I've personally run into these kinds of horrendous system level issues for decades, so I can relate. That doesn't mean it's not a ridiculous convo, just that I can see why it exists 😂

1977er

@dan @erd and a new Pope was selected. Coincidence?

Taylan
@dan I'm breathing into a paper bag right now to calm down.

Jokes aside though, in wanting to be fair to these people, you could theorise about how the difference in performance between memcpy and allocator implementations (new vs malloc) could introduce jitter during playback...

And closing a file explicitly might be preventing that operation from happening automatically at a later time (or causing some other side effect) and thus also preventing jitter...

I know it's all extremely unlikely on 2013 hardware, but, you know, it's not quite on the level of thinking that your CAT6 cable or SSD can affect audio quality, where you know with absolute certainty that the data rate is so high that no matter how crap the model you have is, it won't ever be so slow as to cause a starved audio buffer...
@dan I'm breathing into a paper bag right now to calm down.

Jokes aside though, in wanting to be fair to these people, you could theorise about how the difference in performance between memcpy and allocator implementations (new vs malloc) could introduce jitter during playback...
spikebike

@dan Heh, the idea that different memcpy implementations would result in different bits is silly. However the idea that different implementations would have different performance, clock speeds, CPU utilization, power utiliziation etc isn't. I've heard fans, coil whine, power differences, and interference definitely impact near by speakers.

jn

@dan given that with sufficiently bad board design (interference from the power ciruitry into the audio circuitry) you can hear code behavior such as CPU wakeups, i would be curious to see someone take the documented situation, discard any and all explanations given in that forum (which are trash), and investigate if there's a measurable difference

different memcpy implementations might activate SIMD units in the CPU or not, which may be measurable.

new vs. malloc is definitely nonsense though

Frang :veripawed4:

@dan every day we are further from the light

Edwin Groothuis

@dan @bsdphk You might joke about it, but sound mapped in #FreeBSD superpages sounds a little bit better than sound mapped in #Linux hugepages.

Mike (VK1OMG) 🏴‍☠️

@dan gold plated something something rewrite it in rust

Oliv'

@dan thank you for the big laugh 😅

ahnlak

@dan was ever thus - a million years ago i worked on a hi fi shop and you heard so many crazy theories...

replace fuses with nails to give you "cleaner"electricity

tie an odd number of loops into mains cables to suppress eddy currents

Kurt Roeckx

@dan The effect might be real. The CPU might cause electromagnetic interference that is picked up by one of the analog components. Executing something different will then result in a different audible effect, which might sound better. The real fix of course is not changing the software but the hardware.

Go Up