HNHacker News
TopNewBestAskShowJobs

coffeemug

16,039 karma · joined August 14, 2007

spakhm.com, coffeemug [at] gmail [dot] com
submissionscomments
coffeemug··on Ask for no, don't ask for yes (2022)
I don't think I've ever worked for a boss who would have disliked this approach, and I had many (good and bad). Assuming of course what you're doing isn't idiotic. All of them were steeped in American culture, though.
coffeemug··on Show HN: Mastra – Open-source JS agent framework, by the developers of Gatsby
If you ignore the word "agent" and autocomplete it in your mind to "step", things will make more sense.

Here is an example-- I highlight physical books as I read them with a red pen. Sometimes my highlights are underlines, sometimes I bracket relevant text. I also write some comments in the margins.

I want to photograph relevant pages and get the highlights and my comments into plain text. If I send an image of a highlighted/commented page to ChatGPT and ask to get everything into plain text, it doesn't work. It's just not smart enough to do it in one prompt. So, you have to do it in steps. First you ask for the comments. Then for underlined highlights. Then for bracketed highlights. Then you merge the output. Empirically, this produces much better results. (This is a really simple example; but imagine you add summarization or something, then the steps feed into each other)

As these things get complicated, you start bumping into repeated problems (like understanding what's happening between each step, tweaking prompts, etc.) Having a library with some nice tooling can help with those. It's not especially magical and nothing you couldn't do yourself. But you also could write Datadog or Splunk yourself. It's just convenient not to.

The internet decided to call these types of programs agents, which confuses engineers like you (and me) who tend to think concretely. But if you get past that word, and maybe write an example app or something, I promise these things will make sense.

coffeemug··on Ending our third party fact-checking program and moving to Community Notes model
Smoking is a better analogy IMO.
coffeemug··on Ending our third party fact-checking program and moving to Community Notes model
My twitter account wasn't big, but it was non-trivial (~30K followers). A post could usually get me to experts on most topics, find people to hang out with in most countries, etc. There were many benefits, so deleting was very hard.

But it was eating my brain. I found myself mostly having tweet-shaped thoughts, there was an irresistible compulsion to check mentions 100 times a day, I somehow felt excluded from all the "cool" parts which was making me miserable. But most importantly, I was completely audience captured. To continue growing the account I had to post more and more ridiculous things. Saying reasonable things doesn't get you anywhere on Twitter, so my brain was slowly trained to have, honestly, dumb thoughts to please the algorithm. It also did something to attention. Reading a book cover to cover became impossible.

There came a point when I decided I just don't want this anymore, but signing out didn't work-- it would always pull me back in. So I deleted my account. I can read books again and think again; it's plainly obvious to me now that I was very, very addicted.

Multiply this by millions of people, and it feels like a catastrophe. I think this stuff is probably very bad for the world, and it's almost certainly very bad for _you_. For anyone thinking about deleting social media accounts, I very strongly encourage you to do it. Have you been able to get consumed by a book in the past few years? And if not, is this _really_ the version of yourself you really want?

coffeemug··on GPT-5 is behind schedule
Very unlikely, for the reason that human minds evolved under extremely tight energy constraints. AI has no such limitation.
coffeemug··on Ink: React for interactive CLI apps
It's not that V8 has performance parity with Mathematica. The Mathematica interpreter is written in highly optimized C by experts over many years. My barely optimized js/V8 code has performance parity to _that C code_. That's what should blow your mind.
coffeemug··on Ink: React for interactive CLI apps
Node/V8 is insanely fast. I never quite realized exactly how fast until I worked on this: https://www.spakhm.com/ts-wolfram-bench. It's mindblowing how fast it is.
coffeemug··on ChatGPT Search
Google is entirely to blame. It would be trivial for them to train a model to rank sites on a scale of SEO garbage to nobel laureate essay, then filter out the bottom 50%.
coffeemug··on ChatGPT Search
Thinking about incentive alignment, non ad-based search would be better than ad-based, but there'd still be misalignment due to the problem of self-promotion. Consider Twitter for example. Writing viral tweets isn't about making money (at least until recently), but the content is even worse than SEO spam. There is also the other side of the problem that our monkey brains don't want content that's good for us in the long run. I would _love_ to see (or make) progress in solving this, but this problem is really hard. I thought about it a lot, and can't see an angle of attack.
coffeemug··on OpenAI builds first chip with Broadcom and TSMC, scales back foundry ambition
Sam explicitly commented on this claim. He said we’ll _collectively_, _eventually_ need to spend 7 trillion dollars on compute to meet demand. Not OpenAI raising 7 trillion to build all the capacity itself.
coffeemug··on A Mathematica interpreter in Typescript
Very cool! Pattern matcher isn't very advanced, I only spent maybe two days on it. Only supports Blank, Pattern, and PatternTest. (Also doesn't handle Flat, so for example in Mathematica `Times[x_, y_]` will match `Times[a, b, c]`, but it currently doesn't in ts-wolfram.)

I'm new to Mathematica, so didn't know about `Condition` (thanks for mentioning it)

It was a little hard to get going, the parsing stage usually stops me because I never learned a good parser generator well enough to just start writing code. But once I got ts-parsec working, the rest was fairly easy. I think I got `D` to work within like two days. Was also very surprised how much you can do with so little!

Shoot me an email at coffeemug@gmail.com, let's chat more!

coffeemug··on A Mathematica interpreter in Typescript
Hey, that's my project!

I just wrote another post about perf benchmarking it against Mathematica proper-- https://www.spakhm.com/ts-wolfram-bench. Really surprised by the result, on the workload I tested Mathematica is only 2x faster than my barely optimized interpreter. A testament to the V8 engine, I didn't quite realize how ridiculously good V8 is until running this benchmark.

coffeemug··on Project Euler #912: Where are the Odds?
https://oeis.org/ is an incredible website! Thanks for sharing.
coffeemug··on Show HN: Meet.hn – Meet the Hacker News community in your city
I would love to see a messaging system on HN. There are so many great people here; but most don't put an email link in their profile. I think adding very simple messaging (just enough to exchange contact info) would be a very positive force in the world.
coffeemug··on They don't make readers like they used to
That means people still buy books, not that they still read. What percentage of people who bought Atomic Habits got past the first chapter? Completion rate may have been very different 20 years ago.
coffeemug··on Show HN: InstantDB – A Modern Firebase
Congrats on the launch! I think Firebase was started in 2011, and it's incredible that 13 years later the problem is still unsolved in an open way. We took a shot at this at RethinkDB but fell short. If I were doing this again today, Instant is how I would build it. Rooting for you!
coffeemug··on Cutaway drawings of nuclear reactors around the world
Tell us more stories about that. Whatever leaps to mind.
coffeemug··on Ask HN: Should we bring software dev in-house?
Drop me an email at coffeemug@gmail.com. Lots of ideas I can't share here.
coffeemug··on Node.js adds experimental support for TypeScript
What's an example of a ceiling? Out of all the mass-market programming languages, TS arguably has the most advanced type system in the world. It's a modern marvel that they got it working on top of Javascript.
coffeemug··on How to choose a textbook that is optimal for oneself?
I'm currently working through calculus. I picked up Spivak's and Apostol's books-- probably the most recommended calc books on the internet. Aaaand... they're ok. There are many parts that are confusing, not because calculus is "hard", but because the authors didn't do any user testing. If they actually reworked the books to minimize real students struggling, the books would have been much much easier to self-study from.

I eventually found David Galvin's calculus notes[1] from University of Notre Dame. He basically follows Spivak closely, but reorganized the material a bit in response to user testing. The notes aren't perfect, but much much easier to follow. Same experience with Terence Tao's linear algebra notes[2].

I think book authors, even very highly respect ones, often kind of suck because they optimize for writing a beautiful book, not for minimizing student confusion. Once you struggle through the confusing parts, yes, the book is beautiful. But it's supposed to be written for people to learn, not for experts to appreciate! Notes written by professors who teach smart kids, optimize for minimizing confusion, and do real user testing are often much better than the best books, in my experience.

[1] https://www3.nd.edu/~andyp/teaching/2020FallMath10850/Galvin...

[2] https://terrytao.wordpress.com/wp-content/uploads/2016/12/li...

coffeemug··on Supreme Court rules ex-presidents have immunity for official acts
Yes. Ever since Bill Clinton (and probably before that, I was too young) the President and a non-trivial number of presidential candidates were either under an investigation of some sort, or a threat of such an investigation. Obviously Bill, Hillary, constant threats of investigation of George W Bush and Obama, special counsel investigating Biden, and all the Trump cases. Notably nothing ever comes out of these.

This is ridiculous! It's blatantly political and both parties are guilty of this. The justice system is meant to hold people accountable for breaking the law, not as an additional political mechanism for checks and balances. I haven't looked into the case and don't know the legal precedent SCOTUS used for this decision, but from a consequentialist standpoint this seems to me an obviously good outcome.

coffeemug··on Safe Superintelligence Inc.
AlphaGo took us from mediocre engines to outclassing the best human players in the world within a few short years. Ilya contributed to AlphaGo. What makes you so confident this can't happen with token prediction?
coffeemug··on Microsoft Chose Profit over Security, Whistleblower Says
At higher levels compensation is now tied to security outcomes. This is as committed as it gets. Definitely not theater.
coffeemug··on AlphaFold 3 predicts the structure and interactions of life's molecules
> If you're the sort of person who believes that human brains are capable of understanding the "why" of how things work in all its true detail

This seems to me an empirical question about the world. It’s clear our minds are limited, and we understand complex phenomena through abstraction. So either we discover we can continue converting advanced models to simpler abstractions we can understand, or that’s impossible. Either way, it’s something we’ll find out and will have to live with in the coming decades. If it turns out further abstractions aren’t possible, well, enlightenment thought had lasted long enough. It’s exciting to live at a time in humanity’s history when we enter a totally uncharted new paradigm.

coffeemug··on Ask HN: What nonfiction books do you keep rereading?
I looked up Sled Driver and the cheapest I can find is $350 on eBay (with $475 being the next best price). Where did you find the book?
coffeemug··on GPT-4.5 or GPT-5 being tested on LMSYS?
There is a huge class of problems that's extremely difficult to solve but very easy to check.
coffeemug··on Biden signs TikTok bill into law, starting clock for ByteDance to divest
If any ideology or regimes espousing it have earned scaremongering, it's communism.
coffeemug··on Mental health in software engineering
People use all kinds of colloquial models for mental health that may or may not have a relationship with reality. It is not obvious to me that there is such a thing as "underlying problems" that you mask by doing something else. Maybe, maybe not-- mental health is complicated and you have to prove this stuff. An alternative model is that people get depressed when they do nothing at home, and get better when they're surrounded by other people and have tasks to complete. I don't know what's actually right, but I'm always very skeptical when people approach these things with certitude.
coffeemug··on The Pentagon's Silicon Valley Problem
If you define “goaded” as “put into a situation in which a different response wouldn’t have been possible”, then it’s the correct word. The Israelis could have decided to "end the back and forth once and for all" five years ago or five years from now, but they didn’t— they decided to do it now.
coffeemug··on -2000 Lines of Code (2007)
I’m sure there are engineers who fix a critical bug every few months and generate millions of dollars of value, but as a general rule great engineers tend to be prolific and engineers who aren’t prolific tend to not be great.
← PreviousPage 4 of 34Next →