HNHacker News
TopNewBestAskShowJobs

phpnode

7,416 karma · joined October 23, 2009

Founder of https://codemix.com/ - authoritative product context which makes sure coding agents build the right thing and humans stay in control.

Email: charles@codemix.com

submissionscomments
phpnode··on Cloudflare's abuse policies and approach
Worst HN thread in living memory imo
phpnode··on Apple M2 Pro to use new 3nm process
Well actually, it's not just HN, I see this pattern all over tech Twitter, programming subs on Reddit etc too. I think it happens when people want to participate in the conversation but don't have anything actually worthwhile to say, so rather than say nothing they nitpick.
phpnode··on The man who bought Pine Bluff, Arkansas
I've been reading this site for 13 years and I think pontifier's original post is my all time favourite HN comment. It's perfect in so many ways, and the fusion reactor is the icing on the cake. I think this might be the peak of hacker news.
phpnode··on Ask HN: How to find a small town to relocate for remote work?
I don't think you're being particularly charitable in this thread - at the very least you're misrepresenting what he's said publicly.
phpnode··on Ask HN: How to find a small town to relocate for remote work?
Pine Bluff's population has declined by 50% over the last few decades, presumably the reason they were so cheap is that there's a huge supply surplus? And given the murder rate is 10x the national average I don't see demand for property increasing. In short, run for the hills!
phpnode··on To uncover a deepfake video call, ask the caller to turn sideways
in the UK this is already relatively common for online banking. I asked my bank to raise my daily transfer limit the other day for a property purchase and part of the process was recording a video of myself in their app.
phpnode··on Joe Bernard successfully land solid fuel model rocket after 7 years (video)
I'm so glad to see his tenacity paying off, it's been great to watch his progress. To be honest I never thought this would be possible because there's just so much variance with these small solid fuel motors. Impressive.
phpnode··on Lyra: Fast, in-memory, typo-tolerant, full-text search engine in TypeScript
indeed, I see that this project is storing documents as js objects so is likely to overwhelm the GC when the database is in the region of 500mb or so. For things like this it's usually better to use an ArrayBuffer for storage, but this complicates the implementation significantly.

It is possible to write very fast js, but it's hard to write very fast idiomatic js

phpnode··on HypeScript: Simplified TypeScript type system in TypeScript's own type system
Tetris is challenging because TS escapes newlines in type output, so you'd end up with a bunch of\nwhich makes it\nhard to read the output. It could probably be done using arrays instead, but that gets truncated so you'd have to have a very small "screen"
phpnode··on HypeScript: Simplified TypeScript type system in TypeScript's own type system
it'll tell you that `string` cannot be assigned to type `"RED" | "GREEN"`, and so you'll need to write a function that refines the type correctly, e.g.

    function isValidInput(input: unknown): input is "RED" | "GREEN" {
      return input === "RED" || input === "GREEN";
    }

    const input = readFromUser();
    if (isValidInput(input)) {
      doTheThing(input); // no type error
    }
phpnode··on Show HN: This Food Does Not Exist
indeed, it's just the most prominent example at the moment
phpnode··on Show HN: This Food Does Not Exist
This is already possible today and we don't need AI generated stock photos to do it. A bad actor can already spin events to fit their narrative, suppress dissent and control their population. Dictators have been doing it for centuries and we're seeing it in real time in the form of Putin's Russia right now.
phpnode··on Woman ‘dehumanised’ by viral TikTok filmed without her consent
that's not what empathy means, you don't have to house someone to feel empathy for them. In this case, I'd say don't judge them so harshly because they're a product of a failing social system. They're the consequence of society's collective decisions and priorities.
phpnode··on Books to read to understand financial crime
the UK edition is fantastic, I've not read the US version - is it worth it?
phpnode··on Oxide builds servers as they should be [audio]
* Cantrill
phpnode··on Scaling our spreadsheet engine from thousands to billions of cells
GC pressure is the cause of many of your competitors' problems. I'd be planning a move to an alternative sooner rather than later otherwise you'll run into the exact same problems that they have - after a certain point in the company's life it becomes practically impossible to fix
phpnode··on Scaling our spreadsheet engine from thousands to billions of cells
this is definitely not true - there's a huge depth of complexity in these multi-dimensional databases. It's relatively easy to make a proof of concept - it's "just" an array of arrays after all, but building something production quality is a multi-year endeavour
phpnode··on Scaling our spreadsheet engine from thousands to billions of cells
that'd be Anaplan I assume?
phpnode··on Deprank: Use PageRank to find the most important files in your codebase
thanks for this comment, I'll look into fixing it. In the meantime I'm curious whether it works when you install deprank directly? e.g.

    yarn add deprank
    yarn run deprank ./src
phpnode··on Deprank: Use PageRank to find the most important files in your codebase
hmm, sounds like it, please could you open a github issue with some more info?

edit: I've just fixed an issue that looks similar to this, please run with `npx deprank@0.1.1 ./path/to/folder` and let me know if you're still having problems

phpnode··on Deepkit – High-Performance TypeScript Framework
author of ts-sql[0] here, this looks great (and a way more practical approach!)

[0] https://github.com/codemix/ts-sql

phpnode··on Deepkit – High-Performance TypeScript Framework
I just want to say that this looks fantastic, especially the runtime types stuff - the idea that types are values hasn't caught on yet but it's great to see movement in this area. A long time ago I did something very similar to this for Flow (https://gajus.github.io/flow-runtime/#/try) but typescript is a much more suitable target. Congratulations on an amazing job, I really hope you have plans to sustain this project for a long time, because it's very ambitious but very compelling.
phpnode··on Tech Layoff Tracker
Does it matter? The relevant part (to most of us) is whether they're laying off engineers. Almost any company is a tech company these days
phpnode··on Historic fertilizer crunch threatens food security
To make this work there would need to be a big social push towards eating in line with the seasons again (which was obviously the norm for 99.99% of the history of humanity). I think this might be a hard sell, people are now very used to being able to buy whatever they want whenever they want, e.g. strawberries in january
phpnode··on Fast Is Shutting Down
Approximately 0% of consumers install browser extensions, it's a non-starter and also a totally different proposition. Every merchant wants more money but no one wants to mess up their payment flow, no one reasonable wants to add yet another option, yet another decision when it comes to the most critical part of their sales process - the thing that actually gets them paid. Fast's only shot was with merchants who already did a lot of sales via Stripe and they'd have to make integration utterly frictionless.
phpnode··on Fast Is Shutting Down
(I didn't know of this company's existence until their non-existence today)

I don't think the idea is really that bad, and a form-filling browser extension would not be comparable to what they were trying to do here. The idea is pretty compelling in isolation - your random mom n pop ecommerce site can compete with Amazon on price for a lot of things, but it can't compete with convenience.

If I go to Amazon I can buy something with one or two clicks and be pretty certain that my card details aren't going to get stolen and the thing I ordered will probably arrive when they say it will just about.

If I go to a random ecommerce site I probably have to register, have to enter my card details and confront the possibility of getting ripped off. It's so much less convenient, so for most purchases I just go to Amazon, which is bad for a bunch of reasons.

What Fast was promising to do was to bring that convenience and trust to ecommerce sites, so that they could become more competitive with the Amazons of this world, get more sales, make more money, consumers save money, everyone wins.

Of course the problem is that they're only compelling when they're ubiquitous, and when everyone already has an account and everyone already trusts them. It's a bootstrapping problem, one that only really works if you burn a whole bunch of capital to get both consumers and suppliers signed up, or if you can piggyback off someone else's market penetration, e.g. Stripe, and even with that leg-up they weren't able to survive. All of this also ignores the existence of paypal, apple pay, google pay etc which do offer most of the convenience already.

phpnode··on Choose your status game wisely
> Who is more cool?

> Somebody who makes it clear they're wealthy or well connected or attractive or smart or etc...

> Or somebody who is upbeat and friendly with no desire to display anything about themselves?

The first one. It's the first one.

phpnode··on Show HN: Bionic Reading – Formats text to make it faster to read
I think yours infringes the patent ;)
phpnode··on Show HN: Bionic Reading – Formats text to make it faster to read
Cool, here's a quick hack to try a similar technique with the comments in this thread (copy and paste into dev tools:

    $$('span.commtext').forEach(span => {
        const frag = document.createDocumentFragment();
        span.textContent.split(/\s+/).forEach(word => {
          const len = Math.ceil(word.length * 0.3);
          const leading = document.createElement('strong');
          leading.textContent = word.slice(0, len);
          const trailing = document.createTextNode(word.slice(len) + ' ');
          frag.appendChild(leading);
          frag.appendChild(trailing);
        });
        span.parentNode.replaceChild(frag, span);
    })
phpnode··on Microservices: Why Are We Doing This?
I'm not criticising the idea or the framework, but the react team have had to go to enormous lengths to make that one simple idea work. And the community have had to embrace (and then sometimes, forget) some pretty controversial techniques and concepts in that time, with more big changes coming soon (hello concurrent mode!). It has cost FB tens of millions of dollars to develop. I'm not saying that investment hasn't been worth it, but peek under the hood and the complexity is huge.
← PreviousPage 10 of 34Next →