HNHacker News
TopNewBestAskShowJobs

sweeneyrod

558 karma · joined June 9, 2015

submissionscomments
sweeneyrod··on Costs of running a Python webapp for 55k monthly users
If Digital Ocean is giving you an hour of downtime every two weeks (two 9s and a 7) then they're breaking their SLA (four 9s).
sweeneyrod··on The danger from climate change no longer outweighs risks of nuclear accidents
> if you try to sum up fatality risks of nuclear by referring only Fukushima, and including (in that part of your post) any mention of Chernobyl

Good thing I'm not doing that then! I'm sure what would give you that impression, since I do quite clearly say "Even if you take the higher estimates for the risk of nuclear (the ones that assume it hasn't got safer since Chernobyl)". But in case there's any confusion, whether or not you include Chernobyl doesn't change things that much. The two studies in that link give figures of 0.07 and 0.01 deaths/TWH for nuclear. In comparison, wind is 0.035. Coal is 25.

sweeneyrod··on The danger from climate change no longer outweighs risks of nuclear accidents
This position is not justifiable, and the author must surely know that based on his experience and the lack of any quantitative comparison. In other words, he's lying and his lies will kill people if we listen to him.

> Coal and natural gas do not create this kind of acute accident hazard, though they do present a different kind of danger.

Around 1000-2000 people died in Japan as a result of Fukushima. Around 5000-10,000 people died in Germany in the following decade because Fukushima scared them into switching back to coal (https://www.wired.com/story/germany-rejected-nuclear-poweran...). It's absurd to imply that coal and nuclear are remotely similar in level of direct danger; it's like (as in, the relative risk is similar to) writing a thinkpiece describing flu and Russian roulette as "both dangerous things". And that's ignoring climate change.

> And solar, wind and geothermal energy pose no safety threat at all.

This is just untrue. Solar and wind quite arguably kill more people than nuclear (https://ourworldindata.org/safest-sources-of-energy). Even if you take the higher estimates for the risk of nuclear (the ones that assume it hasn't got safer since Chernobyl), they're certainly not different enough that you can claim renewables post "no safety threat at all" in an article about how spooky nuclear is.

And not really the same thing, but:

> without producing a single electron of power

This guy does have have a physics PhD right? He must know that you don't measure electricity in electrons, surely?

sweeneyrod··on Sendgrid under siege from hacked accounts
I've also experienced my IPs getting blacklisted (albeit on the free plan). I can understand this happening (you get what you pay for) but what I can't understand is that their support response was saying that I just had to deal with it rather than switching my IP. I've also used MailGun and not had that problem (although I'm not a fan of the way you can't export logs from them for some reason).
sweeneyrod··on She’s Got Game
> Their GDP per capita places them at #95 (below Iraq) - around $5,500 - they're a very impoverished low-income nation.

That's nominal not adjusted for cost of living. For the latter they're close to the world average, above Brazil and not far below Argentina. Possibly more relevantly, "middle-income" is defined by the World Bank (https://datahelpdesk.worldbank.org/knowledgebase/articles/90...), which in fact categorises Iran as "upper-middle-income".

Iraq isn't actually that poor, it's just terrible for mysterious other reasons.

sweeneyrod··on What the interns have wrought, 2020 edition
I think some popular misconceptions about OCaml are actually driven by its connection with Jane Street. Because they are the most prominent industrial user, people can think it is good for their niche but not useful outside it, or that it's very academic/difficult to learn/ideologically purist. But actually it's a fine general purpose programming language.
sweeneyrod··on What the interns have wrought, 2020 edition
This isn't really what market makers like JS do. While they do make profit from the spread between prices they buy and sell at, the key difference is that they will buy from seller A and sell to buyer B at different times. For the duration between the two trades, they either own a positive or negative amount of whatever the good is, so they are at risk of losing money if the price changes. The spread pays them for taking on the risk and providing liquidity (allowing people to buy and sell any time even if there's no matching counterparty).
sweeneyrod··on BuckleScript Is Rebranding
Oh yes, you definitely want to install it with npm rather than your package manager, unless you are trying to completely avoid npm.
sweeneyrod··on BuckleScript Is Rebranding
More specifically, the Reason syntax has JSX: you can use React without JSX in OCaml/BuckleScript and you can use JSX for non-React things in Reason (either BuckleScript or native).
sweeneyrod··on BuckleScript Is Rebranding
What problems did you have installing? I think it was straightforward for me on manjaro.
sweeneyrod··on OCaml for the Skeptical: OCaml in a Nutshell (2006)
The situation with Reason is (arguably needlessly) confusing. Reason is just an alternative syntax for OCaml, despite being often advertised in combination with BuckleScript (the more recent OCaml to JS compiler). You can use either Reason or OCaml syntax with either BuckleScript, js_of_ocaml or natively (very confusingly there's also a new slightly different version of Reason for BuckleScript only which you can ignore). The advantages of Reason syntax over OCaml are pretty much limited to a nice JSX syntax.

For frontend development BuckleScript is probably better than js_of_ocaml in terms of integration with JS, bundle size and number of users. For backend development I personally think native OCaml (or Reason if you prefer it) is definitely usable. But you could also try BuckleScript bindings to node stuff if you really like node.

sweeneyrod··on OCaml for the Skeptical: OCaml in a Nutshell (2006)
Yes, it has a very 2006-era "OCaml as an alternative to C/C++" attitude, hence the claims that OCaml has an extensive library ecosystem and developer tooling: compared to C this is true but not compared to Python/Java in 2020.

The suggested tools are also out of date. If you want to try OCaml nowadays you should probably install it with opam and use dune as a build system.

sweeneyrod··on Ask HN: Is all of FAANG like this?
GAFAM is the more sensible acronym.
sweeneyrod··on No, you couldn't have made more money than the Twitter hacker
Lots of people must be selling immediately after the event because that's the mechanism by which the price decreases.
sweeneyrod··on The global fertility rate is falling
That figure is adjusted for cost of living.
sweeneyrod··on The global fertility rate is falling
The people you know are almost certainly not representative of the world at large. Maybe 80% is a bit high, but the number is certainly over 50%. The median global person earns less than $3000/year.
sweeneyrod··on The global fertility rate is falling
And you don't need VC funding.
sweeneyrod··on The most remarkable legacy system I have seen
> The weirdest thing, language-wise, that I noticed was scoping.

Not the spaces in variable names?

sweeneyrod··on Moving from TypeScript to Rust / WebAssembly
In what ways is Rust more pragmatic than OCaml?
sweeneyrod··on Moving from TypeScript to Rust / WebAssembly
I don't understand your last sentence. What benefits does lack of a GC have other than more performance?
sweeneyrod··on Parsing city of origin and destination city from a string
Any natural language parser will let you get the most probable parse (for some definition of probable), some can also return a list of the n most probable parses. There are a few different types of parser implemented here https://nlp.stanford.edu/software/lex-parser.shtml
sweeneyrod··on Survival of Scottish Gaelic in doubt
Gaelic speakers actually tend to have very clear accents in English (in comparison to typical Glaswegians), possibly because many of them learned English as a second language in school.
sweeneyrod··on Which firms profit most from America’s health-care system (2018)
If I offer you the opportunity of not having your kneecaps broken in exchange for only $100/month, is this potentially completely fine because I could spend the money on "stimulating demand"?
sweeneyrod··on How Police Secretly Took over a Global Phone Network for Organized Crime
Why would criminals use these kinds of apps rather than e.g. Signal?
sweeneyrod··on How we got our AWS bill to around 2% of revenue
They're not quite comparable, the Hetzner equivalent to that would be the CCX41 plus some extra storage for around $200/month (but you get 11 TB extra transfer). In general I think DigitalOcean VPS's are 1-3x the price of Hetzner ones.

I don't know why Hetzner dedicated servers are so cheap (they're also cheaper than their equivalent VPS's). I guess they take a bit longer to set up but there must be more to it than that.

sweeneyrod··on A primer on the cruel, tacit laws of type-level programming in Haskell
Stereotype threat is probably not a thing https://www.tandfonline.com/doi/full/10.1080/23743603.2018.1... - publication bias
sweeneyrod··on I Just Hit $100k/year On GitHub Sponsors
£80k income puts you in the top 2% of the UK. Something that 98% of people (lower in London but not vastly lower) manage without can hardly be called "table stakes".
sweeneyrod··on Architects have designed a Martian city for the desert outside Dubai
What is your basis for saying this? The UAE has the third highest oil production per capita in the world.
sweeneyrod··on CapRover: Build your own PaaS
Certainly hardly anyone should be physically managing their servers. The relevant comparison is between getting 1GB RAM in the form of a $50/month Heroku dyno and getting it with a $2/month VPS (actually with Hetzner that will get you 2GB, they don't go below 1GB).
sweeneyrod··on Pain Points of Haskell
OCaml is a lot less pure in spirit as well. Not only can you read and write to the outside world without having to jump through hoops, you can also write all your code with pointers, for loops and (mutable) arrays if you so desire.
← PreviousPage 3 of 11Next →