Hacker Newsnew | past | comments | ask | show | jobs | submit | jvuygbbkuurx's commentslogin

Does this solution copy the state on each iteration?


Haskell values are immutable, so it creates a new state on each iteration. Since most of these "game of life" type problems need to touch every cell in the simulation multiple times anyway, building a new value is not really that much more expensive than mutating in place. The Haskell GC is heavily optimized for quickly allocating and collecting short-lived objects anyway.

But yeah, if you're looking to solve the puzzle in under a microsecond you probably want something like Rust or C and keep all the data in L1 cache like some people do. If solving it in under a millisecond is still good enough, Haskell is fine.


Fun fact about Game of Life is that the leading algorithm, HashLife[1], uses immutable data structures. It's quite well suited to functional languages, and was in fact originally implemented in Lisp by Bill Gosper.

1. https://en.wikipedia.org/wiki/Hashlife


Bugfixes can be breaking changes


This is how it works in Finland, but with some adjustments based on family income. You are eligible for up to 500€/month if you take care of your child. The other option being childcare costing up to 300€/month.


Did they also phish the login password after clicking the link or did they already have it?


They phished username, password (unique to npm), and a TOTP code.

They even gave me a new TOTP code to install (lol) and it worked. Showed up in authy fine. Whoever made this put a ton of effort into it.


Damn, that's an impressively well-done attack. Curious, do you use a password manager? If so, did it not autofilling feel like a red flag to you?

I've always wondered if I ever get phished if I'll notice bc of that or if I'll just go "ugh 1password isn't working, guess i'll paste my password in manually" and end up pwned


I was on mobile, didn't use the autofiller. Also previous experience with the web extensions showed me that they were flakey at best anyway.

The `.help` should have been the biggest red flag, followed by the 48-hours request timeline. I wasn't thinking about things like I normally would this morning and just wanted to get things done today. Been a particularly stressful week, not that it's any excuse.


I'm thinking on what all the anti-passkey folks have to say right now. Or the "password managers aren't necessary" crowd.


I think you are oversimplifying it. Thinking is output.


It will be easy to dismiss any critisism when it's forced to be vague.


This will break old clients. Having a deployment stategy taking that into account is important.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: