HNHacker News
TopNewBestAskShowJobs

nathas

969 karma · joined May 3, 2013

https://nds.lol
submissionscomments
nathas··on Run Stable Diffusion on Your M1 Mac’s GPU
Try the lstein fork: https://github.com/lstein/stable-diffusion/tree/fix-cuda-res...

You'll still need to play with modifying some of the code to get it to run, but `dream.py` works for me. Funny enough, I got only img2img effectively working with the lstein branch; it broke txt2img for me.

nathas··on Run Stable Diffusion on Your M1 Mac’s GPU
Broadly speaking, it looks like they are. The implementation of Stable Diffusion doesn't appear to be using all of those features correctly (i.e. device selection fails if you don't have CUDA enabled even though MPS (https://pytorch.org/docs/stable/notes/mps.html) is supported by PyTorch.

Similar goes for quirks of Tensorflow that weren't taken advantage of. That's largely the work that is on-going in the OSX and M1 forks.

nathas··on Run Stable Diffusion on Your M1 Mac’s GPU
I haven't ran this fork yet, but about 1.3 sec/iter. Usually ~30-50 iters/sample (image).
nathas··on Ask HN: What are some cool but obscure data structures you know about?
Hashed time wheels: https://blog.acolyer.org/2015/11/23/hashed-and-hierarchical-...

Great for short-lived values in a cache that are frequently accessed. If all of your values always have the same expiration period (i.e. expires at insert time + N period) then it's super efficient.

More or less you have an array with a head and tail. Every "tick" (usually each second but you can customize it) you move the read pointer ahead by 1 array slot. The tail is then evicted.

If you have a highly accessed part of your code, you can be lazy and avoid using an extra thread and just tick ahead the read pointer when the time changes.

nathas··on The DynamoDB Paper
Nice write-up from Marc. This definitely hits on the most common problems distributed systems face. I haven't read the paper yet but it is pretty cool they published this and talk about changes over time.

1. Managing 'heat' in the system (or assuming that you'll have an uniform distribution of requests)

2. Recovering a distributed system from a cold state and what that implies for your caches.

3. The obvious one that people that do this type of thing spend a lot of time thinking about: CAP theorem shenanigans and using Paxos.

Reminds me of the Grugbrained developer on microservices: https://grugbrain.dev/#grug-on-microservices

Good luck getting every piece working on the first major recovery. My 100% unscientific hunch is that most folks aren't testing their cold state recovery from a big failure, much how folks don't test their database restoration solutions (or historically haven't).

nathas··on Show HN: Looptap – A minimal game to waste your time
Oh neat! You did the Harder version and didn't use the game's own code to check it. I find that with JS games it's better to imitate the game's exact logic and call it's functions to make sure the state is working/updates correctly.

Of course, for how delightfully simple this one is, your approach is definitely faster/better!

nathas··on Show HN: Looptap – A minimal game to waste your time
Most definitely :D
nathas··on Show HN: Looptap – A minimal game to waste your time
I haven't really tried. Most of the time I do this and use the actual game functions for autoclicker games like e.g. Cookie Clicker. It makes progression a lot simpler and I get to see the "fun" aspects of the game (like the super weird late game stuff) without actually breaking the fundamental game code. I like operating within the game's own code boundaries.
nathas··on Show HN: Looptap – A minimal game to waste your time
One of my favorite things to do with these neat little games is to build something that plays them for me by just pasting stuff into the browser JS console.

https://pastebin.com/aTYuaNVS

At a score of 1,619 the ball is moving so fast it no longer works! I switched to a new tab (hoping that the event loop would be sent to the background/context switch/whatever) and ta-da - it misclicked. High score of 1,637.

nathas··on FDA Approves First Covid-19 Vaccine
That's an interesting point of view. If we know the rate of an event's outcome, in aggregate, is X, why is it important to know if A * B * C = X, or to know A/B/C at all? Totally sincere - I don't know if I'm missing something.

Imagine we're bottling soda in plastic bottles. There's an X% chance that a bottle explodes during the process. We also know if we over-fill a plastic bottle with CO2 the start it makes it slightly more elastic, and empirically it reduces that rate by Y%. We're not really sure why they were exploding, but we know that stretching them works.

Do you care about the other parts of the bottling process?

nathas··on FDA Approves First Covid-19 Vaccine
> * But, of course, many deaths were undercounted; especially those who died before seeking medical care, or before testing was widely available.

Yeah, so I went with the stats we did have data for. I didn't speculate since I'm not omniscient and that's ignorant at best, disingenuous at worst. Both COVID cases and deaths are under-reported.

> Drunk driving is far, far, far more common than the arrest rates would suggest. Like, its actually insane how common drunk driving is. Cops are not gods. They do not catch everyone. One million people were arrested in 2016 for drunk driving; its likely that 50 million+ people drove above the legal limit in that same year, multiple times each.

The link I gave called out that 111M people self-reported drunk driving. That's an unreliable stat, so I went with the arrest rate which is a known quantity.

I wasn't "convinced" of anything. I chose the closest stats that we can get, which are definitely NOT perfect. What real-world data is "perfect"? Only when systems are self-reporting is data even close (e.g. latency, HTTP status counts, etc) and even those can be wrong due to log loss, servers failing, networks failing, etc.

You work with the data you have, and try to make informed decisions, instead of wildly guessing.

nathas··on FDA Approves First Covid-19 Vaccine
> the assumption that the probability of a covid transmission ending in harm crosses the same probability threshold if, say, drunk driving ending in harm.

You do realize that drunk driving is illegal, right? Do you think drunk driving should be legal because it's "unlikely" to cause harm to others?

> I say it doesn't.

628k confirmed deaths in the US from COVID. 37.8M confirmed infections. That's a death rate of 1.66%.

In 2016, 10,497 people died from drunk driving. 1 million people were arrested in 2016 for drunk driving. That's a rate of 1.0497%. So COVID is literally more dangerous than drunk driving.

Drunk driving stats: https://www.cdc.gov/transportationsafety/impaired_driving/im...

nathas··on Twilio: Someone broke into our AWS S3 silo, added 'non-malicious' code to JS SDK
There's a new tool around that helps these cases be prevented at an organization level called CfnGuard: https://aws.amazon.com/about-aws/whats-new/2020/06/introduci...

Obviously you have to be using CloudFormation, so if they're using i.e. Terraform they're out of luck.

nathas··on T-Mobile officially completes merger with Sprint, CEO John Legere steps down
> "If, like most people, you were buying a phone from your carrier"

Most people bought a phone from their carrier because it was so heavily subsidized and the plans were so expensive. If you broke your phone, you were out a huge amount of money, AND you had an expensive plan to boot.

T-Mobile did the right thing and gave consumers an option.

nathas··on What Is the Most Valuable Thing You Can Learn in One Hour?
I've heard it paraphrased that men communicate to solve problems, women communicate to share information. That's heavily reductionist, but I've found it to be a helpful idea to keep in mind when navigating conversations.

"Is this person trying to solve a problem, or are they trying to be heard and commiserated with?"

nathas··on Google Cloud Healthcare API
I disagree. The data format is well defined, but how those documents interact with each other is still a jumbled mess.

There's also so much extensibility that someone implementing it could just throw away all of the default fields in a patient's record and create their own, and we're right back to a mess of records that are useless across systems without having custom handlers.

nathas··on Google One
> This isn't some side project like Wave that they'll cut off.

Wave was launched to a ton of fan-fare and seemed like a first-order product, similar to Hangouts... which is now also dying a slow death.

nathas··on NTSB: Autopilot steered Tesla car toward traffic barrier before deadly crash
I find it hard to think that a group of engineers didn't consider stationary objects when _designing_ an autopilot system. I would no longer consider it a flaw if it was considered.
nathas··on Ask HN: Which books have made you introspect?
Shop Class as Soulcraft: An Inquiry into the Value of Work by Matthew Crawford.

I've often questioned if spending 8+ hours a day writing software was the right thing for me to do, when I get so much more gratification from physically manipulating something. It was a welcomed read.

nathas··on Year 1: My full time indie developer life
Really sounds like he needs to stop paying for art assets and start paying someone to handle marketing...

While I haven't played his games, I don't think the game play really matters as long as it's "good enough". Most games aren't going to be the 0.01% smash hit; you just need a regular audience that appreciates what you're doing, and enough eyeballs that are caught to say "hey, I'll gamble my $5 on something that looks fun".

I think this is partly hubris. I see startups fall into the same pattern - "well it's a great product so our customers will evangelize", "if we add X feature we'll get more sales [even though no one has asked for it]", "if only it was faster, we'll get more sales [even though no one complained about latency]".

No, you need to figure out who you're selling to and how to make the customer aware you even exist. It's a big pond.

nathas··on The Merge
Intentionally. I suppose emergent behavior could create this AI, but I'm pretty heavily skeptical there.
nathas··on The Merge
Evolution isn't a noun.
nathas··on The Merge
As a human, you can imagine the existence of a color you've never seen. However, it's greater than what you are able to perceive as a human. We can only see our slice of the spectrum. Therefore it's impossible to describe or create that color.

As far as I'm concerned, this is the same with AI.

You can imagine an AI that is smarter, bigger, more capable than humanity, but realistically we can't describe that.

We can't create something that is greater than our own limitations, the same way we can't create a color that we can't perceive.

Humanity is bound by it's own intellect, so any AI could only ever be as smart as we are.

nathas··on Windows for Linux Nerds
You're probably going to have a bad time. Some of the lower-level network APIs are pretty buggy last time I checked.
nathas··on Let them paste passwords
Length seems like a reasonable requirement, e.g. it can't be "asd"
nathas··on Dwarf Fortress and the Terrible, Horrible, No Good, Very Bad Interface
NetHack springs to mind.
nathas··on ThinkPad X1 Carbon
For me it has nothing to do with appearance - it has to do with feel.

My job provides me with an HP Ultrabook. When I type on it, the plastic near the trackpad creaks. If I bought it retail it's something like $1400. And it creaks.

If I'm spending $1400 on a piece of technology I expect to have for 3-5 years, and I'm going to be hauling it between locations (on-call schedule) I really need to feel like "Yeah, this won't get broken if I accidentally put something a little heavy on top of it (e.g. in my bag)".

It's partially a performance story, but I rather pay an extra $100-200 for a solid chassis that makes me think the motherboard won't bend when I put pressure from my wrists on it.

nathas··on The bizarre role reversal of Apple and Microsoft
Why do you think Windows is a tire fire and OSX is usable?

I used my first OSX machine ever earlier this year. I wanted to add some extra keyboard commands, so I had to download a 3rd party program that had to unlock accessibility controls and essentially take full control of the machine. That's absurd to me.

I also hit tons of external display problems. Things wouldn't connect or sync right, desktops not correctly moving to the right screens, no window snapping even though it's a high res screen, etc.

I hit way more beach balls/lags than I do with my modern Windows machines.

Windows 7 was solid, Windows 8 was a bit of a mess (as has been every 1st iteration of Windows [98, 2000, ME, XP, Vista, 7, 8, 10]), but Win 10 is really enjoyable.

It's unfortunate that the BSODs caused largely by shitty drivers in Windows 98/XP has hounded the Windows ecosystem for over a decade, even though the driver verifier has fixed the vast majority of those.

nathas··on FBI reopens investigation of emails from Clinton’s private server
Unless the Congress ends up largely being Republican, which it may.
nathas··on FBI reopens investigation of emails from Clinton’s private server
I wonder what new information came across the FBI's desk.

It seemed like a "decided not to pursue" case, as opposed to a "not guilty" case before.

Does anyone have any insight into recent hacks that could link back to data in those emails?

← PreviousPage 2 of 6Next →