HNHacker News
TopNewBestAskShowJobs

simonbw

553 karma · joined March 9, 2016

submissionscomments
simonbw··on The saga of the Closure compiler, and why TypeScript won
I thought I was pretty good at TypeScript, but I can't imagine how I would write that function. Would you mind sharing that?
simonbw··on Show HN: E-Ink Day Schedule
I made something almost exactly like this before. I needed to convert svgs to pngs and have them display the same way they looked in the browser. It turned out that spinning up chromium and taking a screenshot was the easiest thing way to do that. I think I used puppeteer.

Headless Chrome seems like it should be able to do what you want pretty easily. https://developer.chrome.com/blog/headless-chrome/

simonbw··on Sweden brings more books and handwriting practice back to its tech-heavy schools
Usually this could be solved with a "home copy" for each kid, then "classroom copies" for kids to use in class. Kids still carry their notes, but those weigh a small fraction of what hardback textbooks do.
simonbw··on Ricochet Robots Solver
I discovered this game at a board game convention earlier this year and quickly fell in love. After coming home and realizing it was fairly hard to get a copy these days, I decided to make my own web version of it so I could play with my friends. I also tried to implement a solver just to be able to check if the solutions we found were the best, but I didn't spend much time on it, and I never went past a breath first search that can really only check about 5 levels deep in a realistic amount of time. This might inspire me to revisit it and try to improve my solver. So thank you for posting this!
simonbw··on So You're an American?
This doesn't seem to load anything beyond the "Introduction" section for me on each page. Using an up-to-date iPhone.
simonbw··on tRPC – Build and consume typesafe APIs without schemas or code generation
Web apps can still have the problem of the server and client getting out of sync.

1. Plenty of people deploy their frontend and their backend separately. 2. Even if frontend and backend are deployed at the same time, there's still the case where the user has the old version of the client loaded in their browser as a new backend gets deployed. I've seen some web apps tackle this by periodically checking if a new version is available and either refreshing the page or prompting the user to refresh the page.

simonbw··on JavaScript Gom Jabbar
I'd just like to point out that the parent is a variant on the GNU/Linux copypasta: https://stallman-copypasta.github.io/
simonbw··on Maps distort how we see the world
I see that you like Isaac Asimov, XML, and shoes with toes.

https://xkcd.com/977/

simonbw··on How to make a QR code with Stable Diffusion
I've been wanting to do that with a wood laser cutting. My lazier version was to set the desktop background of the tv in my living room to that QR code.
simonbw··on Typescale: A tool for easy CSS typography
I hadn’t seen musical intervals used to express ratios between things that weren’t pitches, but I think it’s an interesting idea. I guess all they really are is a nice name for specific ratios, so it makes sense that they could be useful in more contexts. Has anyone seen them used in other interesting contexts?
simonbw··on AI voice scams: 77% of victims lose money
For a lot of people (like me and everyone in my friend group), close to 100% of calls from unknown numbers are scam calls.

I think many people also don’t think someone they don’t know has the right to speak to them just because they have their phone number.

simonbw··on It looks like GPT-4-32k is rolling out
Not really. The API is stateless, you pass it in a whole conversation and it responds with the next message. The entire conversation including its response is limited to 32k tokens.
simonbw··on The Match Girls
Somewhat related: my favorite Disney short is called The Little Matchgirl. It’s set to a Borodin string quartet, which I think is an excellent choice. If you haven’t seen it, I think it’s worth 6 minutes of your time.

https://www.dailymotion.com/video/x7ybb3s

simonbw··on The Age of PageRank Is Over
I think it implies that they intend to take VC money at some point in the future, like a series A, and they’re trying to avoid VC money now while they can get better terms. I don’t know if that necessarily means they plan an exit, or if they’d be happy just being profitable, but I do think it implies they plan to grow significantly.

EDIT: Their website says that they don’t plan to take VC money, so I have no idea what a SAFE means in this case. The point of a SAFE is that the investor is guaranteed the best terms when a priced round of investment happens.

simonbw··on Nearly Half of San Franciscans Have Been Victims of Theft, New Poll Says
I live in Seattle and I don’t think I personally know anyone here who hasn’t had something of theirs stolen. Mostly cars broken into, bikes stolen, things stolen out of their yard.
simonbw··on Barcode Detection API
In general, assuming you have an easy-to-use QR scanner, it's easier to scan a QR code than type in a URL on a phone, especially a complicated one. A couple examples I've run into recently:

- Lately it's been pretty common for restaurants to replace their physical menus with a QR code on the table that links to their online menu.

- When I've taken COVID tests recently, the site gives me a sticker with a QR code that links to my results page.

- I encoded my wifi network/password into a QR code and printed it out, so guests can just scan it to join, rather than have to scroll and find the right network and type in a password.

simonbw··on Eyeo wins German copyright decision, sets legal precedent for who ‘owns’ HTML
>> Not only that, they're trying to weaken the other adblockers that are there to get rid of ads for you.

> I'm going to need a citation for that.

I was mostly referring to the fact that they bought uBlock and made it use their “acceptable ads” program, which seems mainly like a move intended to weaken uBlock Origin, or at least leech off its reputation.

Honestly I don’t really know much about them, I just know that I’d much rather support uBlock Origin than this company.

simonbw··on Eyeo wins German copyright decision, sets legal precedent for who ‘owns’ HTML
I don’t think I misunderstood anything. ABP still makes their money by getting people to see ads, and they still send businesses emails saying “give us money or we’ll block your ads”.
simonbw··on Eyeo wins German copyright decision, sets legal precedent for who ‘owns’ HTML
But ABP isn't there to get rid of them for you, they're there to get paid for allowing you to see them. Not only that, they're trying to weaken the other adblockers that are there to get rid of ads for you.
simonbw··on LOL just got kicked out of @ycombinator
I live in Seattle. What I remember is that they advertised that they were following the same eligibility requirements as everywhere else in the state, but they were having such trouble getting enough people to show up that they put out requests for anyone over 18 to show up. I know a few people who drove out there to get their shots a couple weeks ahead of when they would be eligible to make an appointment elsewhere in the state. None of them lied about their eligibility factors.
simonbw··on I bought 300 emoji domain names from Kazakhstan and built an email service
I think it's pretty common that when people get married it becomes our money instead of my and your money.
simonbw··on Siliconpr0n: High Resolution Chip Maps
On iOS you can double tap a paragraph to zoom in on it. That’s been around as long as I can remember.
simonbw··on Factorio 1.1 stable
I think the QA process isn't usually as pipelineable as you're suggesting. On a website it's often easy to QA changes that happen on page A at the same time you QA changes on page B. But in a game, especially one like factorio, it's probably a lot harder to find features that can be tested and deployed simultaneously with other features.

It would be easy to test changes to the design of Level 3 at the same time as changes to the design of Level 5, but it would be hard to test changes to the way inserters work at the same time as testing changes to the way conveyor belts work.

simonbw··on Factorio 1.1 stable
While having people find bugs might be one reason for an alpha release, it's not the only reason, or even necessarily the main reason. You might also want to see if people like a new feature, if the feature is well balanced, if it interacts with other systems well, etc. This is all useful information to gather before releasing a polished version to the general public.

If your alpha release is full of bugs, the type of feedback you'll be getting from users of the alpha is "this thing doesn't work" rather than "this thing is too easy/hard".

simonbw··on The Tyranny of Merit
I think it’s really hard to evaluate “merit” in an unbiased way. Just because you’re not explicitly using those categories you list doesn’t mean they’re not creeping in to your other metrics.
simonbw··on Did our early ancestors boil their food in hot springs?
> but certainly not to meat

Here is a study showing that cooked meat provides significantly more energy than raw meat.

https://www.pnas.org/content/108/48/19199

simonbw··on Ask and Show HN: Ever coded for love? Willing to share?
There's a reason I put "researching" and "discovered" in quotes ;) That toast fact is exactly as correct as it's supposed to be.
simonbw··on Ask and Show HN: Ever coded for love? Willing to share?
Somehow on dating apps my most successful profile line has been “Message me if you want to learn an interesting fact about toast.”

This led to me “researching” a lot of facts about toast and getting deeper and deeper into the bit. Long story short I now run toastfacts.com.

I only have about 7 facts on there right now, but I “discovered” some more good facts last night which I plan to add to the site when I get home.

simonbw··on Game Programming Patterns (2014)
By input states do you mean stuff like knowing whether a key is currently pressed or a mouse button is currently held down? Could you explain what you mean by it gets messy?
simonbw··on Build Your First Real-Time App in Node
The term “real-time” generally has a different meaning in the context of web development than in the context of systems programming. A lot of people in these comments seem to be making fun of the author for using the term in a different context than they’re used to.
← PreviousPage 3 of 5Next →