Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vnorilo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
331.
▲
by
vnorilo
7y ago
For the record, I think this is a terrible idea. However, the way I'd do it if needed: keep two or the most recent good buffers. When you need to synthesize, start running a phase vocoder based on the hop between those two. You get fro
332.
▲
by
vnorilo
7y ago
Presuming GP includes unique_ptr, there's no real loss of RAII. In my opinion you might as well write trivial classes, but hey, to each his own.
333.
▲
by
vnorilo
7y ago
I guess the OP means pod types (plain Cish structs) where dtors are implicit.
334.
▲
by
vnorilo
7y ago
Short stop the world is well and good, but some of the performance impact is pushed to the mutator via write barriers. That can be another can of worms.
335.
▲
by
vnorilo
7y ago
Reference counting is a form of gc though. It even comes with some nondeterminism in the form of release cascades. Usually performs worse than heap analyzers too, due to hitting atomic counters a lot. The lack of heap overhead and simplicit
336.
▲
by
vnorilo
7y ago
Many programmers are very emotional about their language of choice, especially if it is their only one.
337.
▲
by
vnorilo
7y ago
Mobile Safari supports PWAs and quite a bit of infra like service workers. Last time I looked it didn't work well in the background (reloads page on resume) but seems like they have most of the building blocks. EDIT: This post [1] says
338.
▲
by
vnorilo
7y ago
I think the underlying art is in striking the right balance between the specific and the general. In studying PLs for almost a decade now, I always ask PL designers I meet to try and distill their wisdom in one sentence. Andrew Sorensen sai
339.
▲
by
vnorilo
7y ago
This is completely true. I just want to add that the problem with currently standard WebAudio is that the audio callback still goes into the main js context/thread, so any custom callbacks via ScriptProcessorNode can be pre-empted by
340.
▲
by
vnorilo
7y ago
It could be a bug; I don't see an immediate reason to zero eax in this fragment. Sometimes it's easy to miss the reasons why compilers zero apparently unused things though: it can be about breaking data dependencies or making sure
341.
▲
by
vnorilo
7y ago
This thread [1] might give you some idea of the complexity involved in a similar issue. OTOH, if you see RAX being zeroed before using EAX, it is likely to be about breaking false deps. 1: https://gcc.gnu.org/bugzilla/s
342.
▲
by
vnorilo
7y ago
Indeed, thanks! Skimmed a bit too quickly.
343.
▲
by
vnorilo
7y ago
Yes; in fact memcpy/move are intrinsics in LLVM IR and are one of the more common targets of its idiom recognizer. Fun fact: many loop replacements and vectorizations depend on signed induction variable, so that the compiler doesn'
344.
▲
by
vnorilo
7y ago
I don't recall seeing bit counting in the LLVM idiom recognition, but it's been years since I pored over it. Could you maybe Godbolt an example where this substitution happens? I'd be happy to be wrong in this case :)
345.
▲
by
vnorilo
7y ago
The problem is that the architecture in question would take forever in cpu time terms to switch back and forth, so a sprinkle of heavy avx512 was the worst of all worlds. In addition, some cpus would emulate 512 with half width micro-ops
346.
▲
by
vnorilo
7y ago
For our firstborn, the (finnish) hospital provided us with a family room for 3 days. Due to the circumstances of the birth, it was me (father) who got all the instruction at that point. I actually got to teach my wife how to change nappies
347.
▲
by
vnorilo
7y ago
I'm a happy recipient of this box 5 years ago. In the fog of the first days of learning to care for your newborn, it was a godsend. It felt like someone actually cared, rather than a bureaucratic handout.
348.
▲
by
vnorilo
7y ago
Typically you'd have a handful in-object and a heap allocated tail if needed. A bit like small string optimization.
349.
▲
by
vnorilo
7y ago
Not UB but rather implementation defined. The compiler will not do anything weird here, but you rely on platform behavior that's not specified by the C lang spec.
350.
▲
by
vnorilo
7y ago
Suppose your `Tree` is an array of `Nodes` sorted in whatever traversal order is expected to be good. Edges are fully defined as pairs of indices (Node[A] -> Node[B] means you need to know just A and B): Nodes can contain their own upstr
351.
▲
by
vnorilo
7y ago
From the paper discussed in the article: > Our main finding is that these results are not meaningful and should be discarded. As often happens, ML found a way to exploit a trivial bias in the dataset. Tip of my hat to the researchers for
352.
▲
by
vnorilo
7y ago
If you require the highest performance and your trees are write once, read often (and immutable), it's worth looking into if you should just sort the nodes in traversal order in one contiguous block of memory. Storing the edges as indi
353.
▲
by
vnorilo
7y ago
Thank you for the viewpoint. It certainly has merit, but there is also the possibility of "metapackages" like luminus [1], a curated package of libraries that work well together. It's easier to make a framework in the land of
354.
▲
by
vnorilo
7y ago
My favorite thing about Clojure: You compose libraries, instead of totally buy into framework A or B. Some people prefer the opposite. However, Composition works in Clojure because everyone is using the staples: functions, maps and seqs.
355.
▲
by
vnorilo
7y ago
While thinking about this I feel most of my fridge graveyard is because I'd rather eat something else. That's horribly entitled and now I feel bad.
356.
▲
by
vnorilo
7y ago
Thank you for making a level argument. I think freedom of speech and press helps to bring abuses to daylight and rule of law is essential in reining them in. I believe both are more robust (but, not nearly perfect) in western democracies, a
357.
▲
by
vnorilo
7y ago
Western countries may not always live up to ideals with the pressures of migration, but it is disingenous to compare immigrants to a resident minority. Please note that in EU at least, a lot of the conflict is about who counts as an asylum
358.
▲
by
vnorilo
7y ago
I don't know. My favourite languages to work in are Clojure (very dynamic) and the ML family (powerful types). I'll admit I've indulged in some C++ type orgies in the past. What I don't like is dynamic types in an impera
359.
▲
by
vnorilo
7y ago
Sounds like you might enjoy Lisps even more (clojurescript for frontend?). In my experience, that's the pinnacle of dynamically typed.
360.
▲
by
vnorilo
7y ago
For me, the balancing factor is that there is much less code to debug or read.
More ›