HNHacker News
TopNewBestAskShowJobs

dgreensp

3,476 karma · joined April 10, 2007

David Greenspan
submissionscomments
dgreensp··on SVD Image Compression
I played with this stuff in high school and college. Principle Component Amalysis (PCA), as another commenter said.

One small quibble, with JPEG you don’t “lose” the “high-frequency” data; that would blur the image. You approximate it, so you could argue you “lose” some of it. JPEG is not very good at compressing high-frequency data, which is basically the edges of things, so if your JPEG has sharp edges, you are not losing much high-frequency data, just compressing everything else.

dgreensp··on SVD Image Compression
One can go very deep in making universal statements about compression, or images, probably deeper than you realize, but it will never be so simple and wrapped up with a pure-mathematical bow as you are implying.
dgreensp··on Deep cloning objects in JavaScript
Well it sounds like it’s a web standard and clones a heck ton of browser objects that ECMAScript wouldn’t be able to require it to clone. But yes, I suppose requiring it to exist and work on non-host objects in ECMAScript would be ideal!
dgreensp··on Bird, once valued at $2.5B, just filed for bankruptcy
If we’re going to spend half a billion dollars for a company to hire a few hundred people and then fail, I wish it was for a better cause.
dgreensp··on Atree: A simple and efficient pointer-free tree implementation
Yes, but, operations like, “Does this node have children or is it a leaf?” should not require reading the entire array. Or, how many children; get the first child. Traversing the tree in pre-order or post-order doesn’t just have less cache locality than a B tree (say), it involves sorting a vector of vectors and is at best N log N and O(N) extra space. Deleting a node requires a O(N) writes. Every little operation is massively less local and less efficient.

I stand by the lack of integrity that I got downvoted for pointing out! I’ll die on that hill.

dgreensp··on Epic vs. Google: Google Loses
I'm sure that's how Google feels! "Unfairly competing in the 'Android app distribution market'?? We are Android!!"

This is one of those legal situations I really can't wrap my head around, though. The point is the situations are different enough it would have to be a different legal framework for Apple's situation, and a different day in court.

I think a ruling like this is good. We need more checks on Google, Apple, Amazon, etc.

dgreensp··on The subtleties of proper B+Tree implementation
It really isn't so big a deal; the author of this post is spreading fear, in a way.

For example, saying that you need "real world data" to catch "edge cases" like this... no, proper unit tests will do just fine. Also, the problem of splitting different-sized keys in the way the author first tries to do does not strike me as a mistake anyone would fall into or that is hard to get out of.

dgreensp··on Pitivi – Free video editor with a beautiful and intuitive user interface
Yes, I get the impression it only runs on Linux? And we're supposed to infer that by the fact that it's "distro-agnostic" and sometimes the word Free is capitalized in the middle of a sentence. Because if you're in the right place, you're already running a Free OS.
dgreensp··on Three things that LLMs have made us rethink
Exactly! Nothing is like we would have expected.

The seeming “understanding” and coherency of LLMs is a surprise, and it doesn’t seem like anyone knows exactly what it means about human language and cognition.

It’s possible that by analyzing what LLMs are actually doing we will discover a “code” underlying language that is sort of like a universal grammar, or at least gain some insight into how they stitch together and combine remembered snippets of language so sensically.

While what ChatGPT does seems more like “open-ended talking” than thinking, reasoning, and responding to its external and internal situation (which does not really exist, in the absence of plugins—there is just the talking), that talking can be used to (for example) plan a series of actions.

dgreensp··on Show HN: VideoGist – Useful YouTube video summaries
I'm looking for a good video summarizer! Sometimes a really interesting video pops up in my feed that I don't have time to watch but I want to skim a text version of it.

The ones I've tried have had a lot of issues. I just tried VideoGist on https://www.youtube.com/watch?v=tajhx6oTXnY and it printed an overall summary and the summaries of three "chapters" that it seems to have created (of lengths 18 seconds, 53 seconds, and 1:36), and now it seems to be hanging. It's an over 18 minute video. I don't know how long that's supposed to take, but I think being able to do the process relatively quickly is key, plus giving good feedback about the process (like a progress bar), and not being buggy/glitchy.

dgreensp··on Unveiling secrets of the ESP32: creating an open-source MAC layer
Headline should read "MAC" layer like it does in the article, not "Mac" layer. Two very different things :)
dgreensp··on Silicon Valley's worldview is not just an ideology; it's a personality disorder
He gave generously to Obama's campaign. When he was advocating for universal basic income (2016?), and before that, he called himself a moderate, somewhere between the Democrats and the Republicans of the time (who hadn't themselves yet gone full-in on racism, sexism, etc). Now he inhabits a part of the political spectrum that was virtually unknown before the Tea Party.
dgreensp··on Silicon Valley's worldview is not just an ideology; it's a personality disorder
I don't think it's relevant that other industries have their own kinds of evil—isn't that just whataboutism? Tech is trying to "disrupt" and remake our society in ways and to an extent that other sectors aren't.
dgreensp··on Silicon Valley's worldview is not just an ideology; it's a personality disorder
For me, when Musk suddenly went far-right, and I realized that Thiel et al. kind of all shared the same philosophy (described in the article as "Libertarianism for me. Feudalism for thee"), it made me suspect that at the top of Silicon Valley it's basically a country club where they discuss what sorts of dystopian utopias they are going to try to create.
dgreensp··on Silicon Valley's worldview is not just an ideology; it's a personality disorder
She's not speaking metaphorically, in my read, she is saying people like "Thiel, Musk and Andreesen" don't just share an ideology, they share a personality disorder. The super-powerful companies they run and the ecosystem of people that idolize them for some reason are just outgrowths of their immaturity, self-centeredness, and so on.
dgreensp··on SARS-CoV-2 Infection Affects Energy Stores in the Body, Causing Organ Failure
Well that’s concerning
dgreensp··on SBF Is Headed to Prison but FTX Will Haunt the Crypto Community for Years
The part in the article about calling into question “the most basic tenets of the web3 philosophy” made me laugh. Every statement ever made about web3 has been questionable.
dgreensp··on Guide to Adopting AV1 Encoding
Is AV1 encoding still many times slower / more computationally intensive than other codecs? I think when they were developing it, it was said that the difference would mostly disappear as encoders got more optimized. (Not because of hardware encoding, apparently; I am learning that in contrast to hardware decoding, hardware encoding is limited and isn't a win if quality is important.)
dgreensp··on Nature: Programming language to experience the joy of programming
I just want you to know this was exactly my reaction.

I am working on a programming language, and I can tell you exactly why I’m bothering to write a whole new language, because it is based on all my frustrations spending my days writing code in other languages.

If this language is in the same space as Rust and Go, but different, even saying that (and how) might make me care about this language a little bit. My own language is compile-to-JS but not the same as TypeScript, Reason, PureScript, etc. I would never make the homepage just be marketing buzzwords. Whether I don’t care if anyone uses it or contributes, or I do care whether people take an interest in it, just being real and direct is the best approach. It feels good when someone understands why I’m doing what I’m doing and maybe cares and wants me to succeed because they also have been frustrated about the same things.

Some people aren’t trying to make something specifically new. They are starting a root beer company to make root beer that tastes like root beer, and one day maybe it will be sold in the local grocery store next to the other root beer, who knows. I always like to know if there is actually something special about this root beer or if someone just likes making root beer.

dgreensp··on Braid is dead, long live Braid
In addition, if I’m reading the article correctly, the reason why it would have been better to raise money when the projections looked amazing is that they didn’t pan out, and to expect them to be accurate was greedy?

I’ve been a founder, so I know that raising money is all about telling a story about the future, and the time to raise is when your graph supports that story, or before you have a graph. If a week later, everything is different, well, that’s start-ups for you. But I think it’s good to be able to take a step back from this and recognize how bizarre it is, and that a business doesn’t have to be structured this way.

dgreensp··on Draggable objects
Thanks!
dgreensp··on Draggable objects
I used to write browser UI code all the time, but it’s been a few years. This is the first I’ve heard of someone using pointer events.

Do you worry at all about someone’s browser not supporting them, given that Safari added support in 2020? I guess Safari 12 is hopefully no longer used in practice, with macOS Mojave users hopefully running Safari 13 or 14? It would be pretty bad if something as simple as dragging didn’t work in a production app designed for the market of web users at large.

Adding event handlers to the document during a drag is a time-honored practice, and browsers add brand-new features all the time that are intended to simplify some use case or other but have their own edge cases and gotchas, which the article says are not fully addressed. And there’s still a combination of pointer and touch events in the end result. I wonder if the “simplicity” in the sense of less code is worth the additional edge cases, less browser support, and the developer needing to understand the ins and outs and browser differences of pointer events, which are presumably less understood and documented than mouse events.

dgreensp··on DOJ vs. Google evidence release that judge calls embarrassing exhibit [pdf]
Well it’s true, they don’t have to worry about amount of demand because everyone needs search and Google dominates that market, with no one challenging their >90% market share or the use of that kind of search to find things on the Web.

I don’t think ads are really the “supply,” though.

This seems like one person writing down their personal observations, which are not super deep.

dgreensp··on FTC sues Amazon for illegally maintaining monopoly power
There are always so many blindly pro-business comments on stories like this, like when the Theranos stuff was happening, people were saying "come on, she was just pitching big returns and innovations like any start-up does," ignoring the difference between pitching and straight-up lying or deliberately misleading investors about current facts. Similarly, it seems like many commenters are defending Amazon not based on the facts or legalities of the situation, but just from a place of being more emotionally sympathetic to a giant corporation trying to make a lot of money through various business tactics.

We don't have a surplus of regulation in the US (contrary to what Republicans who want to get rid of the EPA, FDA, etc would say). When we actually have laws that say things like, you can't union-bust, you can't defraud investors, you can't behave monopolistically--and there may be subtleties to those laws that most people don't understand--and companies go so far as to violate those laws, it's a very good thing when they face consequences.

dgreensp··on Why do we need modules at all? (2011)
There’s a spectrum of what different programming languages call “modules” and what they use them for, with languages like ML having “true” modules in the conceptual sense, where a module is a unit of abstraction, the way that classes and interfaces in many languages are units of abstraction, though when you dig into it, I believe modules are more fundamental and more powerful… then on the other hand you have the situation of, “Programs are collections of text files, people don’t want to put all their code in one file, let’s call a file a module.”

Point being, some ways that programming languages use the concept of a module are deep and let you do things you couldn’t otherwise do, some are more dispensable.

Then there’s Smalltalk where I believe programs aren’t collections of text files, you actually browse your code in a sort of code browser and it’s stored as runtime objects in a virtual machine image, basically!

Then there’s the matter of how code is released and distributed… packaging and libraries. (In practice, the words “module” and “package” are used in overlapping ways by different languages.) Are the single-function modules/packages of NPM a good thing? In practice it doesn’t seem that way.

It’s sort of analogous to trying to “giggify” all the jobs. Every individual function outsourced.

dgreensp··on Gene-Engineered Mouth Bacteria
Charging $20,000 for a dose? Really?
dgreensp··on The Erasure of Jews from American Life
I’m Jewish (by cultural background), not aligning myself with this article or liberal values, but I would say the framing here does indeed conflict a bit with liberal values.

2.4% of adults identify as some kind of Jewish; 1.7% by religion. The article mentions that 21% of “elite boomer American academics” are Jewish. 20% of federal judges used to be Jewish. It laments that it is not considered very acceptable to hope for a return to these numbers and for 15-20% of undergraduates to be Jewish. It’s true, it is not. I don’t have a nuanced and researched opinion on affirmative action, but I’m pretty sure it’s ok if a religious group is not as over-represented as it used to be.

It seems like the baseline expectation here is for Jews to be 10x overrepresented in “positions of power” and use that power to sustain or increase the percentage? I’m not trying to read anything into the article, there are just a lot of mentions of power and percentages and a lot of lamenting.

I know there is still lots of anti-semitism alive and well, in the US and elsewhere, today. There’s also a valid and earned backlash against Israeli nationalism. Personally, I am spiritual, not religious. Religious groups have agendas, of course, like for some religions it is converting people to that religion. I think these agendas are more understandable and relatable if you are inside the group.

dgreensp··on GPT-3.5/4 response times are linear with output tokens
My understanding (not an expert) is that the time for a LLM to produce an output is linear in the length of the output, but may not be in the length of the input (i.e. context). It may be quadratic in the context, or using some kind of fancy attention optimization.
dgreensp··on PlayHT2.0: State-of-the-Art Generative Voice AI Model for Conversational Speech
I’ve played around with Eleven Labs a bunch, and while it does a pretty good job sounding like an audiobook a lot of the time, the quality of cloned voices and the ability to convey emotions is inconsistent IME. Based on the samples, this isn’t obviously worse and might actually be better.
dgreensp··on Don’t Make Fun of Renowned Dan Brown (2013)
Related: Slender Yellow Fruit Syndrome (when a writer doesn’t want to repeat a word like “banana” and so writes something like, “He peeled the slender yellow fruit.”)

http://www.teflspin.com/2009/10/technical-writing-and-slende...

I think send-ups like this are great. Love it.

← PreviousPage 3 of 30Next →