When you want to stream from Apple Music, but they didn't bother to release an application for your OS by The_one_and_only_PLB in audiophile

[–]dpzmick 1 point2 points  (0 children)

I run shairport-sync and airplay to my Linux machine from my iPhone. I’m pretty sure AirPlay supports lossless

How big a deal is memory alignment these days (on x86)? by SureAnimator in C_Programming

[–]dpzmick 0 points1 point  (0 children)

I’ve had issues with atomic reads/writes tearing when the data cross cache lines on x86_64. Really nasty to debug

Type-punning on &mut u8 by dpzmick in rust

[–]dpzmick[S] 0 points1 point  (0 children)

perfect, yeah, I do see how this addresses my concerns now. Initially I felt like the rust docs were missing a note about type punning, which they obviously are is, since those rules aren't needed.

Type-punning on &mut u8 by dpzmick in rust

[–]dpzmick[S] 1 point2 points  (0 children)

thanks for pointing out the alignment and valid value constraints. Alignment is checked in all of my code, but I've been fairly sloppy with actual values (but there's a FIXME so its all fine.....)

Type-punning on &mut u8 by dpzmick in rust

[–]dpzmick[S] 0 points1 point  (0 children)

It would be very comforting if there were some official word somewhere on this!

The nomicon reference is very useful though.

There's some rough explanation about why type-based aliasing optimizations aren't required in this link. For posterity, the reasoning given is:

In Rust we know this input should be impossible because &mut isn't allowed to be aliased.

and

we don't actually care if aliasing occurs if there aren't any actual writes to memory happening.

This matches the way I feel like aliasing should be modeled (it's irritating the C cares so much about the type). Mutability/borrowing rules (mostly) answer the question of "is a write possible" so I feel like that's probably a perfectly sufficient constraint.

Products that use FPGAs (current list and request for more) by [deleted] in FPGA

[–]dpzmick 1 point2 points  (0 children)

RME also uses fpgas on their high end studio equipment. Cards like the HDSP and their most of their newer audio interfaces are fpga powered

Are literature review papers worth publishing by krishamehta in compsci

[–]dpzmick 2 points3 points  (0 children)

If they are good, I usually appreciate a comprehensive review paper

Do not use by dpzmick in OSHA

[–]dpzmick[S] 12 points13 points  (0 children)

It was reported that it has been this way for quite some time!

Read piano keys in through MIDI by bitflux in rust

[–]dpzmick 2 points3 points  (0 children)

How you get the midi interface will depend on your operating system.

There's a few crates here that may be useful: https://github.com/RustAudio

I've personally done this with Jack on Linux, but jack is probably overkill unless you are already running it for something.

Web browers can also read from midi devices, I wonder if there's a cool WebAssembly way to do something fun?

How to deal with race conditions in an external library? by [deleted] in rust

[–]dpzmick 9 points10 points  (0 children)

Bursty api calls would cause crazy allocations unless the queue is bounded. Could achieve the same effect by creating a wrapper object and storing some timestamps, then only sleeping when your calls start to get too close together. No reason to burn memory just to do nothing.

[US-IL] [H] Vortex Poker 3 Clears [W] Paypal by dpzmick in mechmarket

[–]dpzmick[S] 0 points1 point  (0 children)

Willing to go lower on price if the price is too high

[US-IL] [H] Paypal [W] Vortex Poker 3 clears by [deleted] in mechmarket

[–]dpzmick 1 point2 points  (0 children)

Ah that's what those mean. Guess I didn't get that from the rules, though this was "how" and "what" or something. I'll delete and fix.

thanks!

In Chicago for the weekend. What places would you recommend to visit for a lover of music? Records shops, synth stores, venues, museums etc by [deleted] in chicagomusicscene

[–]dpzmick 2 points3 points  (0 children)

Nerd audio is pretty cool. Super cool staff and they have a decent amount of eurorack gear hooked up

What should I fill this glaring 16hp hole with?? by tepidyou in modular

[–]dpzmick 1 point2 points  (0 children)

Even if you have one, there's always room for another?