Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
duped
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
481.
▲
by
duped
1y ago
I wouldn't get worked up about the actual names of things I used here, but there's no difference between having the key contained in the user data versus lifted up to the containing object... every language supports iterating obje
482.
▲
by
duped
1y ago
Unfortunately "the compiler is required to supply the actual parameter as if it was copied" is leaky with respect to the ABI and linker. In C and C++ you cannot fully abstract it.
483.
▲
by
duped
1y ago
If you use varints for pointers you can have the best of both worlds, and achieve even better compaction for the smallest objects.
484.
▲
by
duped
1y ago
A pattern I've seen is to take something like `{ "users": [{ "id": string, ... }]}` and flatten it into `{ "user_id": { ... } }` so you can deserialize directly into a hashmap. In that case I can see 65k+
485.
▲
by
duped
1y ago
Millions of people have been trying for a decade to
486.
▲
by
duped
1y ago
> For instance VST3 does not support many to one, and only awkwardly supports two to one -- via second-class "side-chaining" -- sound processing architectures This is a limitation of your host and plugins and not of VST3, plugi
487.
▲
by
duped
1y ago
This analogy goes pretty deep. Fun fact, in British English the term for a vacuum tube triode is "valve" precisely because it operates like a valve. FETs (particularly JFETs) follow the same analogy (which is why FET and triode am
488.
▲
by
duped
1y ago
The FBI is also struggling for legitimacy at this point in history
489.
▲
by
duped
1y ago
So your paper design is most similar in spirit to CLAP. I would say that the actual audio/event processing bits are the "easy" part of the API. > And here VST3, which has a defined model for parameter interpolation, is eas
490.
▲
by
duped
1y ago
You are, you can, and people do. Sure you should use C interfaces, that's what CLAP does, and it's easier to understand as a result. The C standard similarly does not specify an ABI.
491.
▲
by
duped
1y ago
So there's a couple of problems here. The first is that VST3 does not exist in a vacuum. Plugin developers need to ship AU (and previously VST2 concurrently with VST3) plugins. MIDI still is the basic abstraction used by higher level
492.
▲
by
duped
1y ago
> 2048 additional parameters (128 controllers * 16 channels) just to receive CCs. It's worth mentioning that it's 2 x 16 x 16,384 in MIDI 2, + 128 x 16 MIDI1 because you gotta support both. But to quote Steinberg devs, "pl
493.
▲
by
duped
1y ago
The ABI isn't covered by C++ standards, it's target and architecture dependent. For the purposes of this discussion that ABI is stable for C++ vtables on the targets and architectures that VST3 supports. If a compiler and linker d
494.
▲
by
duped
1y ago
> As for MIDI controllers, the host is supposed to convert them to parameter changes And nearly everyone except Steinberg considers this to be a mistake. MIDI messages (CCs, pitch bend, and so on) are _not_ parameters.
495.
▲
by
duped
1y ago
Some background is needed for the thread API The basic threading model for plugins is the "main" and "audio" threads. The APIs specify which methods are allowed to be called concurrently from which thread. There is also
496.
▲
by
duped
1y ago
Most plugins don't use these APIs directly, they rely on wrappers like JUCE. Once JUCE supports CLAP the plugins will follow. That should happen in the next year. The bigger problem are hosts. While Apple and Avid will probably never s
497.
▲
by
duped
1y ago
>Also, CLAP uses 3 or 4 methods to represent MIDI data (MIDI1, MIDI1 + MPE, MIDI2, CLAP events) Contrast to VST3 which doesn't support MIDI at all, unless you count cresting thousands of dummy parameters hardcoded to MIDI controller
498.
▲
by
duped
1y ago
The ABI is stable everywhere VST3s are used. It has to be or nothing would work.
499.
▲
by
duped
1y ago
They're not, "smart" thermostats have a WiFi frontend that allows devices to connect to it from the network but the thermostat itself is hardwired to the furnace/HVAC. You could in theory put one next to the furnace in y
500.
▲
by
duped
1y ago
In speech coding/synthesis this called a "source-filter" model (decompose speech production into a sound generator in the vocal folds and filter in the vocal tract, and parameterize them) and it's actually older than Tuk
501.
▲
by
duped
1y ago
> the key question is how to convert an inherently continuous signal (speech/audio) into a discrete set of tokens Did Claude Shannon not answer this question in 1948? You need at least 1 bit per 6dB of dynamic range for each symbol
502.
▲
by
duped
1y ago
> Servo is a prototype web browser engine
503.
▲
by
duped
1y ago
1000% yes, because this kind of stuff is not oneliners and you don't want to throw it away. You also don't have the rats nest that is python environment and package management.
504.
▲
by
duped
1y ago
I haven't found a better CLI calculator utility for writing more than one-liner numerical stuff with some plots than MATLAB and octave. They're fantastic. Python is trash, by comparison.
505.
▲
by
duped
1y ago
> Flock is uninterested in fixing the room for abuse baked into its platform, and says local officials can best protect their constituents from such abuses by removing the cameras entirely. https://evanstonroundtable.com/
506.
▲
by
duped
1y ago
I wouldn't call it niche I just don't think "gourmet cheese store" is accessible to the average American. You can buy plenty good cheese at the supermarket.
507.
▲
by
duped
1y ago
I mean there are things you can reasonably do better than the grocery store but something things are unrealistic. Like "just go to a gourmet cheese store" is not something you can do in most of the country. I live in one of the la
508.
▲
by
duped
1y ago
I get that, but what interpreted language do you want to write iOS apps in when there's Swift and Obj-C right there, with bespoke support and tooling from Apple? And if you care about performance, why aren't you writing that code
509.
▲
by
duped
1y ago
Is there a production JIT for a compiled language that is actually faster? I understand the theory, I don't think the practice backs it up.
510.
▲
by
duped
1y ago
What advantage does JIT compilation have over Swift or Obj-C?
More ›