Better HN
topnewbestaskshowjobs
Log inSign up

dwwoelfel

4,363 karma · joined Dec 18, 2009 (16y ago) · 505 submissions

dwwoelfel@gmail.com

https://github.com/dwwoelfel

https://twitter.com/danielwoelfel

YC Badge: 0x9e3313e5bd4204ba554c8615b35b4d99d089d31d

Submissions

1.

Writing by hand is good for your brain(nealstephenson.substack.com ↗)

1491 points · by dwwoelfel · 4mo ago · 668 comments

2.

Boom Prize: $750k to the first amateur RC plane that breaks the sound barrier(boomsupersonic.com ↗)

2 points · by dwwoelfel · 4mo ago · 2 comments

comment 7mo ago · link · parent

Are you using `walg wal-receive` for streaming? As far as I can tell, that command will wait for the full wal segment before it pushes anything to storage. I don't see any way to stream wal records continuously in wal-g.

4.

Show HN: Draw a sketch and watch it back again with persistent WebStreams(inkdot.instantdb.dev ↗)

1 points · by dwwoelfel · 8mo ago · discuss

comment 1y ago · link · parent

Carmack is talking about variable reassignment here, which Clojure will happily let you mutate.

For example:

  (let [result {:a 1}
        result (assoc result :b 2)]
    ...)

He mentions that C and C++ allow const variables, but Clojure doesn't support that.

clj-kondo has a :shadowed-var rule, but it will only find cases where you shadow a top-level var (not the case in my example).

comment 1y ago · link · parent

You have to use the slug from the wiki page. `Jell-O` to `Philosophy` works.

comment 1y ago · link · parent

If you want an RSS feed of your YouTube video subscriptions, I made an app for that:

https://yt-better-subs.web.app/

I went through quite the hassle to get the app's oauth scopes approved with Google so that it can keep your subscriptions up-to-date as you add or remove YouTube channel subscriptions.

comment 2y ago · link · parent

Here's how we did it at OneGraph (RIP), where we not only upgraded versions without downtime, but we also moved hosting providers from GCP to Aurora without downtime.

1. Set up logical replication to a new database server. We used https://github.com/2ndQuadrant/pglogical, but maybe you don't need that any more with newer versions of postgres?

2. Flip a feature flag that pauses all database queries and wait for the queue of queries to complete.

3. Wait for the query queue to drain and for replication to catch up.

4. Flip a feature flag that switches the connection from the old db to the new db.

5. Flip the flag to resume queries.

It helped that we were written in OCaml. We had to write our own connection pooling, which meant that we had full control over the query queue. Not sure how you would do it with e.g. Java's Hikari, where the query queue and the connection settings are complected.

We also had no long-running queries, with a default timeout of 30 seconds.

It helped to over-provision servers during the migration, because any requests that came in while the migration was ongoing would have to wait for the migration to complete.

comment 2y ago · link · parent

How do you handle shipping price calculations? Is that also a feature in Stripe's Product Catalogue?

comment 3y ago · link · parent

I'm impressed. I asked it "How much is a flight from San Francisco to the rapid & blitz tournament over Christmas?" and it figured out which tournament I was talking about and showed me ticket prices.

https://g.co/bard/share/7966410c42af

ChatGPT also figured it out, but Bard is much better at displaying information: https://chat.openai.com/share/ba5d5acc-7b40-46e1-ada5-74b4a6...

11.

Show HN: Latch, a feature flagging tool built on Google Storage(github.com ↗)

4 points · by dwwoelfel · 3y ago · 1 comment

comment 3y ago · link · parent

A few ideas to improve the schema based on looking at the examples:

1. Make `globalId` part of a "Node" interface that all of the types implement. This will work better with tooling like Relay (used for refetching and caching). It will also let you add a `node` field that can be used to fetch any node in the graph.

2. Make the sort input an enum so that you have `sort: TITLE_DESC` instead of `sort: {by: TITLE, order: DESC}`.

3. Implement the connection spec instead of returning a list of items: https://relay.dev/graphql/connections.htm. This will let you add pagination data to the field and other useful info like totalCount.

4. Spin up a postgraphile instance with the `@graphile-contrib/pg-simplify-inflector` and `postgraphile-plugin-connection-filter` plugins and copy everything they do.

comment 4y ago · link · parent

You can build curl without support for ftp.

comment 4y ago · link · parent

Might be better to redirect to the news.ycombinator.com instead of google.com. I'd be less likely to notice that, especially if I opened it in a background tab.

But maybe that's the kind of criticism he was trying to avoid in the first place!

comment 4y ago · link · parent

They are getting a severance package.

comment 4y ago · link · parent

According to the article, they likely are getting severance.

Those affected will gain access to the company’s “generous severance philosophy” and “a talent hub to allow them to opt-in to receive additional support services.” (The details surrounding the severance package are unclear, but some affected workers on Blind alleged they would receive two months worth of base pay; a representative from Coinbase did not provide further comment.)

17.

Netlify Graph: A faster way for teams to develop web apps with APIs(netlify.com ↗)

102 points · by dwwoelfel · 4y ago · 28 comments

comment 4y ago · link · parent

At the end of the video you linked, she accuses the author of The Star Builders of "only briefly mention[ing] the total energy gain and never giv[ing] a number".

I had just started the book when I watched her video, and I counted four separate times where he did mention total energy gain. In one chapter (pg. 142 in my kindle edition), he quotes from a source who lays out the distinction she claims people in fusion research want you to be confused about:

Like First Light Fusion, Tokamak Energy is much more interested in power production than energy breakeven. "Achieving a of one is a scientific goal," Jonathan Carling continues, "but it's nowhere near enough to produce commercial energy, which requires a Q [in the region] of tens." As mentioned previously, Q is the ratio of fusion power out to heating power in. His strong view is that unless other star builders have a credible plan to get to factors of twenty or thirty more power out than they put in, then they're in the science game and not the fusion energy game.

This video by the Improbable Matter channel has a good response to Dr. Hossenfelder's general remarks: https://www.youtube.com/watch?v=KtqC8W0_Ups

comment 4y ago · link · parent

It's not the benchmark that's unethical. The unethical part is leaving up the original claim without adding a correction or a note that addresses the problems Fastly found with the benchmark.

comment 4y ago · link · parent

Cloudflare's blog post still says, in bold, "Cloudflare Workers is 196% faster than Fastly’s Compute@Edge based on the time to first byte from the tests we ran on 50 nodes using Catchpoint’s data from across the world".

It is unethical to leave that up after Fastly pointed out core issues with the benchmarking, like using a free tier that was rate-limited.

comment 4y ago · link · parent

My experience working at tech companies is that the tech lead, or anybody at the company, can post in an internal message board or slack to ask "what's up with this weird clause in our ToS" and expect an explanation.

It's nice that eastdakota responded here, but he had two weeks since the original tweet thread from Fastly's VP of Eng calling out the problems with their benchmarking. They didn't respond or retract the blog post in those two weeks.

As a cloudflare shareholder (and a fastly shareholder), I want Cloudflare to act ethically and either retract the blog post or issue a correction.

comment 4y ago · link · parent

But I'd bet kentonv was following this one, since he said "until Fatly complained about it" and not "until I read the blog post".

comment 4y ago · link · parent

It has been two weeks since Fastly's VP of Eng called out your ToS and errors in your benchmark in her original tweet thread [1]. I would hope that Cloudflare would have a better response than this that directly addresses Fastly's claims.

Are you going to remove the ToS clause or issue a correction on the blog post?

[1] https://twitter.com/lxt/status/1462896850055352320

comment 5y ago · link · parent

You can do this with OneGraph (https://www.onegraph.com) via our `poll` subscription.

Here's an example query that will poll an npm package and send a payload whenever the latest version changes.

https://www.onegraph.com/graphiql?shortenedId=FYH1SY

  subscription PollNpmPackage {
    poll(
      webhookUrl: "https://example.com"
      onlyTriggerWhenPayloadChanged: true
      schedule: { every: { minutes: 60 } }
    ) {
      query {
        npm {
          package(name: "graphql") {
            distTags {
              latest {
                versionString
              }
            }
          }
        }
      }
    }
  }
This is just an illustrative example. I used NPM because it doesn't require any authorization. We also support proper subscriptions for NPM that listen to their couchdb change feed.

comment 5y ago · link · parent

It's supposed to resemble a mac app window. I can add a setting to remove it if you like. Email me at daniel@onegraph.com and I'll let you know when it's available.

comment 5y ago · link · parent

There are lots of different approaches you could take. For sourcecodeshots, I run it through VSCode's tokenizer (https://github.com/microsoft/vscode-textmate) and then use node-canvas to generate the image one line at a time.

It's a very imperative process and fairly slow on a cpu, but the nice thing is that I can run the same code in the browser to speed up development. The Rust project, https://github.com/Aloxaf/silicon, mentioned in another part of the comments is probably faster, but I didn't find it when I was searching for a solution.

comment 5y ago · link · parent

If you have a good recursive version of Fibonacci for R, I'd love to swap it out for what I currently have.

For the languages I don't know, I looked at the code people posted on rosettacode.org

comment 5y ago · link · parent

If you're looking for this, but with an API, I built https://sourcecodeshots.com to power syntax highlighting and Open Graph images of code for https://essay.dev.

I initially used carbon.now.sh, but they don't have an API, and the community-provided API is pretty slow because it uses a headless browser to generate the image.

Source Code Shots uses VSCode's syntax-highlighting engine, so the highlighting is about as good as you can get and I can fully support a lot of languages that CodeMirror or Highlight.js haven't gotten to.

The docs, https://sourcecodeshots.com/docs, have plenty of examples of how to use it as an API. You can email me at daniel@onegraph.com if there's something you need that it doesn't support.

comment 5y ago · link · parent

This is what we did at CircleCI. In fact, most of our best hires were people who did not know Clojure before joining the company.

People who already knew Clojure had a tendency to overcomplicate things with solutions that used every bit of their Clojure knowledge.

12345
17