Better HN
topnewbestaskshowjobs
Log inSign up

xipix

99 karma · joined Jan 26, 2023 (3y ago) · 61 submissions

Submissions

comment 10mo ago · link · parent

The article seems to evaluate Wasm as it were a framework upon which apps are built. It's not that, it's an orthogonal technology allowing CPU optimisations and reuse of native code in the browser. Against that expectation, it has been a huge success despite not yet reaching bare-metal levels of performance and energy efficiency.

One such example: audio time stretch in the browser based upon a C++ library [1]. There is no way that if this were implemented in JS that it could deliver (a) similar performance or (b) source code portability to native apps.

[1] https://bungee.parabolaresearch.com/change-audio-speed-pitch

comment 11mo ago · link · parent

Driving is prohibited until a certain age. Parents don't get to discuss this with their child and decide when they're old enough.

comment 11mo ago · link · parent

"Can I learn to drive?" "No, you're not old enough" "But my friend is already driving and he's 12" "OK, when you turn 12 you can too."

comment 11mo ago · link · parent

/

comment 11mo ago · link · parent

We absolutely do need regulation of this harm by the law. It's how we stand together as a society, otherwise one child's rules will seem draconian against their friend's lax parents. There's plenty of precedent in other threshold ages at which children can start indulging in other potentially harmful vices.

The vulnerable elder population is more difficult to define by a simple age threshold. We all decline at different ages and different rates.

comment 1y ago · link · parent

You can't use spaces to align because you can't assume a monospaced font will always be used. You can't use tabs either for that matter. If you need structure, use the language's punctuation and line breaks.

comment 1y ago · link · parent

Can it handle "nodes" that emit a different number of audio samples than they consume?

I'm thinking of time stretch effects like mine https://github.com/bungee-audio-stretch/bungee

comment 1y ago · link · parent

That's no excuse for YouTube because (a) audio processing can be done in JS/WASM and (b) they have the influence to improve browser playbackRate implementations to something better [1].

Besides, their Android and iOS apps do slow music as bad if not worse than on web.

[1] https://bungee.parabolaresearch.com/compare-audio-stretch-te...

comment 1y ago · link · parent

If you're learning guitar, drums, piano, trumpet, etc, you'll want to start playing along at about 75% speed then work up until you can play 110% faster than you need to. YouTube's built in audio time stretch makes this a painful exercise.

comment 1y ago · link · parent

Nice analysis, for 1x playback speed. If you're playing back at a different speed, for example, for music practice, YouTube audio is awful.

Why doesn't this huge AV platform use a better audio time stretch algorithm?

comment 2y ago · link · parent

> Fun fact: Unlicensed stations began streaming jungle music from onboard ships off the coast of Britain, hence the expression "pirate radios."

Didn't pirate radio broadcast from boats predate Jungle by about 20 years?

comment 2y ago · link · parent

Two thoughts.

Suppose I deem it safe and useful for my 6yo to drive for a while, using his Xbox controller from the passenger seat.

It is illegal in many countries for a device (or anything else) to obscure any part of the driver's forward view (area swept by wipers). So even without actually controlling the car, we have an unlawful vehicle.

comment 2y ago · link · parent

Has that been tested in court? In my jurisdiction?

comment 2y ago · link · parent

I'd be even more gleeful if I was in car insurance. "Openpilot's not covered, your insurance is invalidated."

comment 2y ago · link · parent

Neat, love it.

Now try synchronising the music to the game.

You could use our Bungee library for the audio processing.

comment 2y ago · link · parent

Bungee is our audio stretching library. It can change music tempo and pitch effortlessly in real time on all common devices and browsers.

Bungee is unique in its quality, performance and controllability. Every media player, DAW, video editor should use something like Bungee for smooth scrubbing and audio slomo.

Try it with one click: https://bungee.parabolaresearch.com/bungee-web-demo

So far we have several licensees of the Pro edition with more on the way.

comment 2y ago · link · parent

The biggest challenge here isn't the tech/standards problem.

It's what this signals for the future of the planet's climate.

comment 2y ago · link · parent

The correct solution to this optimization problem is to write the integers raw, not as ASCII.

comment 2y ago · link · parent

Absolutely you can. With WebAsm SIMD you have near-native DSP performance. Downsides from my experience [1]:

- You are at the mercy of the browser. If browser engineers mess up the audio thread or garbage collection, even the most resilient web audio app breaks. It happens.

- Security mitigations prevent or restrict use of some useful APIs. For example, SharedArrayBuffer and high resolution clocks.

[1] https://bungee.parabolaresearch.com/bungee-web-demo

comment 2y ago · link · parent

Intel, AMD and others also have chips for training that perform close to or sometimes better than Nvidia's. These are already in the market. Two problems: the CUDA moat, and, "noone gets fired for buying green".

comment 2y ago · link · parent

Rent one?

comment 2y ago · link · parent

Getting negative vibes from the name. Cadmium's a nasty substance. I mean, you wouldn't call an augmented reality app ARsenic, would you? Constructive, I hope, criticism.

comment 2y ago · link · parent

A proportional font really helps ergonomics too.

comment 2y ago · link · parent

#1 will lead to #2

#2 will solve #3

123